{const n=t[s]??[];for(const t of n)e(t,o)}}function He(e,t=0,s=1){const o=[];for(let n=(e-t)/s,r=0;r<=n;r++)o.push(t+r*s);return[o,Ve]}function Ve(e){return e}function Ie(e){return[Object.entries(e),ze]}function ze(e){return e[0]}var Ge=new WeakMap,Ke={capture:!0};function qe(e,t,s){const o=e.getRootNode();let n=Ge.get(o);n||Ge.set(o,n=new Map);let r=n.get(t);r||(n.set(t,r=new WeakMap),o.addEventListener(t,Je,Ke)),r.set(e,s)}function Je(e){let t=e.target;if(t){const s=t.getRootNode(),o=Ge.get(s).get(e.type);let n=o.get(t);if(e.bubbles)for(;!n&&!e.cancelBubble&&(t=t.parentElement);)n=o.get(t);n&&n(e,t)}}},"../utils/compiler/index.js":(e,t,s)=>{"use strict";s.d(t,{g:()=>E,M:()=>M});var o=s("../../node_modules/memfs/lib/index.js"),n=s.n(o),r=s("../../node_modules/rollup/dist/rollup.browser.js"),a=s("../../node_modules/path-browserify/index.js"),d=s.n(a),i=s("../../browser-shims/compiler/modules.js");const m=s.g.__INTERNAL_MODULES__={};m.events=()=>s("../../node_modules/events-light/src/index.js"),m.marked=()=>s("../../node_modules/marked/lib/marked.cjs"),m.path=()=>s("../../node_modules/path-browserify/index.js"),m.url=()=>s("../../node_modules/url/url.js"),m["@marko/runtime-fluurt/dist/debug/dom"]=()=>s("../../browser-shims/v6/runtime.js"),[s("../../node_modules/@marko/translator-default/dist sync recursive \\.(js(on)?)$"),s("../../node_modules/@marko/build/dist/components sync recursive \\.(js(on)?%7Cmarko)$"),s("../../node_modules/@marko/tags-api-preview sync recursive \\.(mjs%7Cjson%7Cmarko)$"),s("../../node_modules/marko/dist/core-tags sync recursive \\.(js(on)?)$"),s("../../node_modules/marko/dist/runtime sync recursive \\.(js(on)?)$")].forEach((e=>{e.keys().forEach((t=>{const s=d().resolve(e.resolve(t).replace(/^[./]+\/node_modules\//,"/node_modules/")),o=d().dirname(s);m[s]=()=>(window.__dirname=o,window.__filename=s,e(t)),n().mkdirSync(o,{recursive:!0}),n().writeFileSync(s,".json"===d().extname(s)?JSON.stringify(e(t)):"")}))})),i.require=e=>{const t=d().resolve(e),o=m[e]||m[t];if(o)return o();let r;try{r=n().readFileSync(t,"utf-8")}catch{return s(e)}const a={exports:{}};return new Function("exports","require","module","__filename","__dirname",r)(a.exports,i.require,a,t,d().dirname(t)),a.exports};const l=Object.keys(m),u=l.reduce(((e,t)=>(e[t]=`__INTERNAL_MODULES__[${JSON.stringify(t)}]()`,e)),{});var c=s("../../browser-shims/module.js"),p=s.n(c),_=s("../../node_modules/resolve-from/index.js"),j=s.n(_);const f=e=>({name:"memfs",resolveId(t,s){const o=p()._resolveExportsOptions.browser;try{return p()._resolveExportsOptions.browser=e,d().resolve(j()(d().dirname(s||"/"),t))}catch{this.error(`Unable to resolve "${t}"${s?` from "${s}"`:""}.`)}finally{p()._resolveExportsOptions.browser=o}},load:e=>n().existsSync(e)?n().readFileSync(e,"utf-8"):null});var g=s("../../node_modules/magic-string/dist/magic-string.es.mjs"),k=s("../../node_modules/@babel/core/lib/index.js"),v=s("../../node_modules/concat-with-sourcemaps/index.js"),h=s.n(v),w=s("../../node_modules/babel-plugin-transform-commonjs/dist/index.js"),b=s("../../node_modules/babel-plugin-transform-define/lib/index.js"),x=s.n(b),y=s("../../node_modules/@marko/translator-default/dist/index.js"),N=s("../../browser-shims/compiler/dist/babel-plugin/index.js"),O=s("../../browser-shims/compiler/dist/taglib/index.js");y.taglibs.push(["../../node_modules/@marko/tags-api-preview/marko.json",s("../../node_modules/@marko/tags-api-preview/marko.json")]),O.register("../../node_modules/@marko/build/dist/components/marko.json",s("../../node_modules/@marko/build/dist/components/marko.json"));const S=({output:e,optimize:t,translator:s=y})=>{let o,r;return{name:"babel",buildStart(e){r=new Map,o=e.cssContent},buildEnd(){r=void 0,O.clearCaches()},transform(a,i){const m=d().extname(i),l=[[x(),{__filename:i,__dirname:d().dirname(i)}]];if(".marko"===m)l.push([N.default,{output:e,optimize:t,translator:s,fileSystem:n(),cache:r||new Map}]);else{if(".js"!==m)return null;l.push(w.Z)}let{code:u,map:c,metadata:p}=(0,k.transform)(a,{configFile:!1,sourceMaps:!0,babelrc:!1,compact:!1,sourceFileName:i,filename:i,plugins:l});if(p.marko){const{deps:e}=p.marko,t=new(h())(!0,"",";");for(let s of e)if(s.virtualPath){if(".css"!==d().extname(s.virtualPath))throw new Error(`Unsupported virtual dependency:\n${s.code}`);o&&o.add(new g.ZP(a,{filename:i}).remove(0,s.startPos).remove(s.endPos,a.length))}else t.add(null,`import ${JSON.stringify(s)}`);t.add(i,u,c),u=t.content.toString("utf-8"),c=t.sourceMap}return{code:u,map:c}}}},C=()=>{let e;return{name:"css",buildStart(t){t.cssContent=e=new Set},transform:(t,s)=>".css"!==d().extname(s)?null:(e.add(new g.ZP(t,{filename:s})),""),generateBundle(t){if(!e.size)return;const s=new g.bN;for(const t of e)s.addSource(t);let o="",n=s.toString().replace(/@import[^;]+(?:;|$)/g,(e=>(o+=`${e}\n`,e.replace(/\S/g," "))));n=`${o}${n}`,this.emitFile({type:"asset",fileName:d().basename(t.file,d().extname(t.file))+".css",source:`${n}\n/*# sourceMappingURL=${s.generateMap().toUrl()}*/`})}}};async function E({entry:e,markoOptions:t}){const s=await(0,r.rollup)({input:e,external:l,inlineDynamicImports:!0,plugins:[f("html"!==t.output),C(),S(t)],onwarn(e,t){if("MISSING_NODE_BUILTINS"!==e.code||1!==e.modules.length||"events"!==e.modules[0])return t(e)}}),o=await s.generate({name:"_",format:"iife",file:"compiled.js",sourcemap:!0,globals:u}),n=o.output.find((e=>"compiled.js"===e.fileName)),a=o.output.find((e=>"compiled.css"===e.fileName));return{css:a?a.source:"",js:`${n.code.slice(8)}\n//# sourceMappingURL=${n.map.toUrl()}\n`}}async function M({entry:e,markoOptions:t}){const s=S(t),o=s.transform(n().readFileSync(e,"utf-8"),e);return s.buildEnd(),o.code}},"../utils/highlight.js":(e,t,s)=>{const o=s("../utils/lang-to-scope.js"),{getTokenizer:n,getColorMap:r}=s("../utils/language-registry/index.js"),a=/\r\n|[\n\r\u2028\u2029]/;function d(e,t){let s=(8372224&t)>>>14,o=(4286578688&t)>>>23;return 1===s&&(s=0),2===o&&(o=0),i(e,(14336&t)>>>11,s,o)}function i(e,t,s,o){let n="";return s>0&&(n+=`color:${e[s]};`),o>0&&(n+=`background-color:${e[o]};`),t>0&&(1&t&&(n+="font-style:italic;"),2&t&&(n+="font-weight:bold;"),4&t&&(n+="font-decoration:underline;")),n?n.slice(0,-1):n}e.exports=(e,t)=>{const s=n(o(e)),m=r(),l=t.split(a),u=i(m,0,1,2);let c=s.getInitialState(),p=``;for(const e of l){if(""!==e){const t=s.tokenizeEncoded(e,c),{tokens:o}=t;c=t.endState;for(let t=0;t${a}`:a}}p+="\n"}return p+="
",p}},"../../node_modules/marko/dist/core-tags sync recursive \\.(js(on)?)$":(e,t,s)=>{var o={"./components/init-components-tag.js":"../../node_modules/marko/dist/core-tags/components/init-components-tag.js","./components/preferred-script-location-tag.js":"../../node_modules/marko/dist/core-tags/components/preferred-script-location-tag.js","./components/preserve-tag.js":"../../node_modules/marko/dist/core-tags/components/preserve-tag.js","./core/__flush_here_and_after__.js":"../../node_modules/marko/dist/core-tags/core/__flush_here_and_after__.js","./core/await/AsyncValue.js":"../../node_modules/marko/dist/core-tags/core/await/AsyncValue.js","./core/await/client-reorder-runtime.js":"../../node_modules/marko/dist/core-tags/core/await/client-reorder-runtime.js","./core/await/renderer.js":"../../node_modules/marko/dist/core-tags/core/await/renderer.js","./core/await/reorderer-renderer.js":"../../node_modules/marko/dist/core-tags/core/await/reorderer-renderer.js"};function n(e){var t=r(e);return s(t)}function r(e){if(!s.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=r,e.exports=n,n.id="../../node_modules/marko/dist/core-tags sync recursive \\.(js(on)?)$"},"../../node_modules/marko/dist/runtime/components/legacy/dependencies sync recursive":e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id="../../node_modules/marko/dist/runtime/components/legacy/dependencies sync recursive",e.exports=t},"../../node_modules/marko/dist/runtime sync recursive \\.(js(on)?)$":(e,t,s)=>{var o={"./RenderResult.js":"../../node_modules/marko/dist/runtime/RenderResult.js","./components/Component.js":"../../node_modules/marko/dist/runtime/components/Component.js","./components/ComponentDef.js":"../../node_modules/marko/dist/runtime/components/ComponentDef.js","./components/ComponentsContext.js":"../../node_modules/marko/dist/runtime/components/ComponentsContext.js","./components/GlobalComponentsContext.js":"../../node_modules/marko/dist/runtime/components/GlobalComponentsContext.js","./components/KeySequence.js":"../../node_modules/marko/dist/runtime/components/KeySequence.js","./components/ServerComponent.js":"../../node_modules/marko/dist/runtime/components/ServerComponent.js","./components/State.js":"../../node_modules/marko/dist/runtime/components/State.js","./components/attach-detach.js":"../../node_modules/marko/dist/runtime/components/attach-detach.js","./components/defineComponent.js":"../../node_modules/marko/dist/runtime/components/defineComponent.js","./components/dom-data.js":"../../node_modules/marko/dist/runtime/components/dom-data.js","./components/event-delegation.js":"../../node_modules/marko/dist/runtime/components/event-delegation.js","./components/index.js":"../../node_modules/marko/dist/runtime/components/index.js","./components/legacy/browser.json":"../../node_modules/marko/dist/runtime/components/legacy/browser.json","./components/legacy/defineComponent-legacy.js":"../../node_modules/marko/dist/runtime/components/legacy/defineComponent-legacy.js","./components/legacy/defineRenderer-legacy.js":"../../node_modules/marko/dist/runtime/components/legacy/defineRenderer-legacy.js","./components/legacy/defineWidget-legacy.js":"../../node_modules/marko/dist/runtime/components/legacy/defineWidget-legacy.js","./components/legacy/dependencies/html.js":"../../node_modules/marko/dist/runtime/components/legacy/dependencies/html.js","./components/legacy/dependencies/index.js":"../../node_modules/marko/dist/runtime/components/legacy/dependencies/index.js","./components/legacy/dependencies/vdom.js":"../../node_modules/marko/dist/runtime/components/legacy/dependencies/vdom.js","./components/legacy/index.js":"../../node_modules/marko/dist/runtime/components/legacy/index.js","./components/legacy/jquery.js":"../../node_modules/marko/dist/runtime/components/legacy/jquery.js","./components/legacy/ready.js":"../../node_modules/marko/dist/runtime/components/legacy/ready.js","./components/legacy/renderer-legacy.js":"../../node_modules/marko/dist/runtime/components/legacy/renderer-legacy.js","./components/registry.js":"../../node_modules/marko/dist/runtime/components/registry.js","./components/renderer.js":"../../node_modules/marko/dist/runtime/components/renderer.js","./components/update-manager.js":"../../node_modules/marko/dist/runtime/components/update-manager.js","./createOut.js":"../../node_modules/marko/dist/runtime/createOut.js","./dom-insert.js":"../../node_modules/marko/dist/runtime/dom-insert.js","./events.js":"../../node_modules/marko/dist/runtime/events.js","./helpers/_change-case.js":"../../node_modules/marko/dist/runtime/helpers/_change-case.js","./helpers/assign.js":"../../node_modules/marko/dist/runtime/helpers/assign.js","./helpers/class-value.js":"../../node_modules/marko/dist/runtime/helpers/class-value.js","./helpers/dynamic-tag.js":"../../node_modules/marko/dist/runtime/helpers/dynamic-tag.js","./helpers/load-nested-tag.js":"../../node_modules/marko/dist/runtime/helpers/load-nested-tag.js","./helpers/merge.js":"../../node_modules/marko/dist/runtime/helpers/merge.js","./helpers/render-tag.js":"../../node_modules/marko/dist/runtime/helpers/render-tag.js","./helpers/repeatable.js":"../../node_modules/marko/dist/runtime/helpers/repeatable.js","./helpers/self-iterator.js":"../../node_modules/marko/dist/runtime/helpers/self-iterator.js","./helpers/style-value.js":"../../node_modules/marko/dist/runtime/helpers/style-value.js","./helpers/to-string.js":"../../node_modules/marko/dist/runtime/helpers/to-string.js","./html/AsyncStream.js":"../../node_modules/marko/dist/runtime/html/AsyncStream.js","./html/BufferedWriter.js":"../../node_modules/marko/dist/runtime/html/BufferedWriter.js","./html/StringWriter.js":"../../node_modules/marko/dist/runtime/html/StringWriter.js","./html/helpers/_dynamic-attr.js":"../../node_modules/marko/dist/runtime/html/helpers/_dynamic-attr.js","./html/helpers/attr.js":"../../node_modules/marko/dist/runtime/html/helpers/attr.js","./html/helpers/attrs.js":"../../node_modules/marko/dist/runtime/html/helpers/attrs.js","./html/helpers/class-attr.js":"../../node_modules/marko/dist/runtime/html/helpers/class-attr.js","./html/helpers/data-marko.js":"../../node_modules/marko/dist/runtime/html/helpers/data-marko.js","./html/helpers/escape-quotes.js":"../../node_modules/marko/dist/runtime/html/helpers/escape-quotes.js","./html/helpers/escape-script-placeholder.js":"../../node_modules/marko/dist/runtime/html/helpers/escape-script-placeholder.js","./html/helpers/escape-style-placeholder.js":"../../node_modules/marko/dist/runtime/html/helpers/escape-style-placeholder.js","./html/helpers/escape-xml.js":"../../node_modules/marko/dist/runtime/html/helpers/escape-xml.js","./html/helpers/merge-attrs.js":"../../node_modules/marko/dist/runtime/html/helpers/merge-attrs.js","./html/helpers/props-script.js":"../../node_modules/marko/dist/runtime/html/helpers/props-script.js","./html/helpers/style-attr.js":"../../node_modules/marko/dist/runtime/html/helpers/style-attr.js","./html/hot-reload.js":"../../node_modules/marko/dist/runtime/html/hot-reload.js","./html/index.js":"../../node_modules/marko/dist/runtime/html/index.js","./queueMicrotask.js":"../../node_modules/marko/dist/runtime/queueMicrotask.js","./renderable.js":"../../node_modules/marko/dist/runtime/renderable.js","./vdom/AsyncVDOMBuilder.js":"../../node_modules/marko/dist/runtime/vdom/AsyncVDOMBuilder.js","./vdom/VComponent.js":"../../node_modules/marko/dist/runtime/vdom/VComponent.js","./vdom/VDocumentFragment.js":"../../node_modules/marko/dist/runtime/vdom/VDocumentFragment.js","./vdom/VElement.js":"../../node_modules/marko/dist/runtime/vdom/VElement.js","./vdom/VFragment.js":"../../node_modules/marko/dist/runtime/vdom/VFragment.js","./vdom/VNode.js":"../../node_modules/marko/dist/runtime/vdom/VNode.js","./vdom/VText.js":"../../node_modules/marko/dist/runtime/vdom/VText.js","./vdom/helpers/attrs.js":"../../node_modules/marko/dist/runtime/vdom/helpers/attrs.js","./vdom/helpers/const.js":"../../node_modules/marko/dist/runtime/vdom/helpers/const.js","./vdom/helpers/merge-attrs.js":"../../node_modules/marko/dist/runtime/vdom/helpers/merge-attrs.js","./vdom/helpers/v-element.js":"../../node_modules/marko/dist/runtime/vdom/helpers/v-element.js","./vdom/helpers/v-text.js":"../../node_modules/marko/dist/runtime/vdom/helpers/v-text.js","./vdom/hot-reload.js":"../../node_modules/marko/dist/runtime/vdom/hot-reload.js","./vdom/index.js":"../../node_modules/marko/dist/runtime/vdom/index.js","./vdom/morphdom/fragment.js":"../../node_modules/marko/dist/runtime/vdom/morphdom/fragment.js","./vdom/morphdom/helpers.js":"../../node_modules/marko/dist/runtime/vdom/morphdom/helpers.js","./vdom/morphdom/index.js":"../../node_modules/marko/dist/runtime/vdom/morphdom/index.js","./vdom/morphdom/specialElHandlers.js":"../../node_modules/marko/dist/runtime/vdom/morphdom/specialElHandlers.js","./vdom/parse-html.js":"../../node_modules/marko/dist/runtime/vdom/parse-html.js","./vdom/preserve-attrs.js":"../../node_modules/marko/dist/runtime/vdom/preserve-attrs.js","./vdom/vdom.js":"../../node_modules/marko/dist/runtime/vdom/vdom.js"};function n(e){var t=r(e);return s(t)}function r(e){if(!s.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=r,e.exports=n,n.id="../../node_modules/marko/dist/runtime sync recursive \\.(js(on)?)$"},"?98fd":()=>{},"?2e65":()=>{},"?6a61":()=>{},"?e376":()=>{},"?7dc1":()=>{},"?f84f":()=>{},"?378b":()=>{},"?4c42":()=>{},"?c95a":()=>{},"?c86f":()=>{},"?d1e8":()=>{}}]);
-//# sourceMappingURL=551.8e6e0c6b.js.map
\ No newline at end of file
diff --git a/assets/551.8e6e0c6b.js.br b/assets/551.8e6e0c6b.js.br
deleted file mode 100644
index e089e4de..00000000
Binary files a/assets/551.8e6e0c6b.js.br and /dev/null differ
diff --git a/assets/551.8e6e0c6b.js.gz b/assets/551.8e6e0c6b.js.gz
deleted file mode 100644
index dbc6d858..00000000
Binary files a/assets/551.8e6e0c6b.js.gz and /dev/null differ
diff --git a/assets/551.8e6e0c6b.js.map b/assets/551.8e6e0c6b.js.map
deleted file mode 100644
index 59ea053a..00000000
--- a/assets/551.8e6e0c6b.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"551.8e6e0c6b.js","mappings":"oKAAA,IAAIA,EAAM,CACT,eAAgB,6DAChB,kCAAmC,iFAIpC,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,EAC5B,CACA,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,CACP,CACA,OAAOP,EAAIE,EACZ,CACAD,EAAeS,KAAO,WACrB,OAAOC,OAAOD,KAAKV,EACpB,EACAC,EAAeW,QAAUR,EACzBS,EAAOC,QAAUb,EACjBA,EAAeE,GAAK,sF,iGCvBpB,IAAIH,EAAM,CACT,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,4BAA6B,qEAC7B,+EAAgF,wHAChF,oDAAqD,6FACrD,uDAAwD,gGACxD,uDAAwD,gGACxD,qEAAsE,8GACtE,0CAA2C,mFAC3C,6CAA8C,sFAC9C,6CAA8C,sFAC9C,yCAA0C,kFA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iBAAkB,sDAInB,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,EAC5B,CACA,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,CACP,CACA,OAAOP,EAAIE,EACZ,CACAD,EAAeS,KAAO,WACrB,OAAOC,OAAOD,KAAKV,EACpB,EACAC,EAAeW,QAAUR,EACzBS,EAAOC,QAAUb,EACjBA,EAAeE,GAAK,oE","sources":["webpack:///../../node_modules/@marko/build/dist/components/ sync \\.(js(on)","webpack:///../../node_modules/@marko/tags-api-preview/ sync \\.(mjs%7Cjson%7Cmarko)$","webpack:///../../node_modules/@marko/translator-default/dist/ sync \\.(js(on)","webpack:///../../browser-shims/compiler/dist/babel-plugin/index.js","webpack:///../../browser-shims/compiler/dist/babel-types/index.js","webpack:///../../browser-shims/compiler/dist/taglib/index.js","webpack:///../../browser-shims/compiler/index.js","webpack:///../../browser-shims/compiler/modules.js","webpack:///../../browser-shims/fs.js","webpack:///../../browser-shims/module.js","webpack:///../../browser-shims/v6/runtime.js","webpack:///../utils/compiler/internal-modules.js","webpack:///../utils/compiler/rollup-plugins/memfs.js","webpack:///../utils/compiler/rollup-plugins/babel.js","webpack:///../utils/compiler/rollup-plugins/css.js","webpack:///../utils/compiler/index.js","webpack:///../utils/highlight.js","webpack:///../../node_modules/marko/dist/core-tags/ sync \\.(js(on)","webpack:///../../node_modules/marko/dist/runtime/components/legacy/dependencies/ sync","webpack:///../../node_modules/marko/dist/runtime/ sync \\.(js(on)"],"sourcesContent":["var map = {\n\t\"./marko.json\": \"../../node_modules/@marko/build/dist/components/marko.json\",\n\t\"./src-attributes-transformer.js\": \"../../node_modules/@marko/build/dist/components/src-attributes-transformer.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"../../node_modules/@marko/build/dist/components sync recursive \\\\.(js(on)?%7Cmarko)$\";","var map = {\n\t\"./dist/chunk-2Z7MIEYJ.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-2Z7MIEYJ.mjs\",\n\t\"./dist/chunk-3HOSD3AX.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-3HOSD3AX.mjs\",\n\t\"./dist/chunk-3JWOFENM.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-3JWOFENM.mjs\",\n\t\"./dist/chunk-3P6FHBO5.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-3P6FHBO5.mjs\",\n\t\"./dist/chunk-4RPD6DMI.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-4RPD6DMI.mjs\",\n\t\"./dist/chunk-5R2Z7TR6.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-5R2Z7TR6.mjs\",\n\t\"./dist/chunk-6QKU2CQW.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-6QKU2CQW.mjs\",\n\t\"./dist/chunk-6RP5NCIJ.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-6RP5NCIJ.mjs\",\n\t\"./dist/chunk-73OEUL4O.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-73OEUL4O.mjs\",\n\t\"./dist/chunk-BHRCPSMP.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-BHRCPSMP.mjs\",\n\t\"./dist/chunk-EOOMCNH2.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-EOOMCNH2.mjs\",\n\t\"./dist/chunk-EXYEAROA.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-EXYEAROA.mjs\",\n\t\"./dist/chunk-G2QGH4BR.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-G2QGH4BR.mjs\",\n\t\"./dist/chunk-HLW4GEXA.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-HLW4GEXA.mjs\",\n\t\"./dist/chunk-IOWZ77TV.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-IOWZ77TV.mjs\",\n\t\"./dist/chunk-KHJR3GW6.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-KHJR3GW6.mjs\",\n\t\"./dist/chunk-KN5RH2HU.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-KN5RH2HU.mjs\",\n\t\"./dist/chunk-M2NZ6OKP.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-M2NZ6OKP.mjs\",\n\t\"./dist/chunk-NX57VA7G.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-NX57VA7G.mjs\",\n\t\"./dist/chunk-P2PU46OZ.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-P2PU46OZ.mjs\",\n\t\"./dist/chunk-RGPWTAKF.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-RGPWTAKF.mjs\",\n\t\"./dist/chunk-RTKXODG2.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-RTKXODG2.mjs\",\n\t\"./dist/chunk-SHWFSW6A.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-SHWFSW6A.mjs\",\n\t\"./dist/chunk-SJ26H7XU.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-SJ26H7XU.mjs\",\n\t\"./dist/chunk-T5RCUW6W.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-T5RCUW6W.mjs\",\n\t\"./dist/chunk-XT7NBTKV.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/chunk-XT7NBTKV.mjs\",\n\t\"./dist/components/_instance-stateless/components/component-def/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance-stateless/components/component-def/translate.mjs\",\n\t\"./dist/components/_instance-stateless/index.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance-stateless/index.marko\",\n\t\"./dist/components/_instance-stateless/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance-stateless/marko-tag.json\",\n\t\"./dist/components/_instance-stateless/translator.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance-stateless/translator.mjs\",\n\t\"./dist/components/_instance/components/component-def/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance/components/component-def/translate.mjs\",\n\t\"./dist/components/_instance/index.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance/index.marko\",\n\t\"./dist/components/_instance/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance/marko-tag.json\",\n\t\"./dist/components/_instance/translator.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/_instance/translator.mjs\",\n\t\"./dist/components/attrs/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/attrs/marko-tag.json\",\n\t\"./dist/components/attrs/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/attrs/translate.mjs\",\n\t\"./dist/components/const/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/const/index.d.marko\",\n\t\"./dist/components/const/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/const/marko-tag.json\",\n\t\"./dist/components/const/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/const/translate.mjs\",\n\t\"./dist/components/effect/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/effect/index.d.marko\",\n\t\"./dist/components/effect/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/effect/index.mjs\",\n\t\"./dist/components/effect/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/effect/marko-tag.json\",\n\t\"./dist/components/effect/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/effect/translate.mjs\",\n\t\"./dist/components/else-if/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/else-if/marko-tag.json\",\n\t\"./dist/components/else-if/transformer.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/else-if/transformer.mjs\",\n\t\"./dist/components/for/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/for/marko-tag.json\",\n\t\"./dist/components/for/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/for/transform.mjs\",\n\t\"./dist/components/get/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/get/index.d.marko\",\n\t\"./dist/components/get/index.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/get/index.marko\",\n\t\"./dist/components/get/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/get/marko-tag.json\",\n\t\"./dist/components/get/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/get/transform.mjs\",\n\t\"./dist/components/get/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/get/translate.mjs\",\n\t\"./dist/components/id/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/id/index.d.marko\",\n\t\"./dist/components/id/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/id/marko-tag.json\",\n\t\"./dist/components/id/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/id/translate.mjs\",\n\t\"./dist/components/if/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/if/marko-tag.json\",\n\t\"./dist/components/if/transformer.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/if/transformer.mjs\",\n\t\"./dist/components/let/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/let/index.d.marko\",\n\t\"./dist/components/let/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/let/marko-tag.json\",\n\t\"./dist/components/let/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/let/translate.mjs\",\n\t\"./dist/components/lifecycle/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/lifecycle/index.d.marko\",\n\t\"./dist/components/lifecycle/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/lifecycle/index.mjs\",\n\t\"./dist/components/lifecycle/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/lifecycle/marko-tag.json\",\n\t\"./dist/components/lifecycle/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/lifecycle/translate.mjs\",\n\t\"./dist/components/return/index-browser.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/return/index-browser.mjs\",\n\t\"./dist/components/return/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/return/index.mjs\",\n\t\"./dist/components/return/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/return/marko-tag.json\",\n\t\"./dist/components/return/package.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/return/package.json\",\n\t\"./dist/components/return/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/return/translate.mjs\",\n\t\"./dist/components/set/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/set/index.d.marko\",\n\t\"./dist/components/set/index.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/set/index.marko\",\n\t\"./dist/components/set/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/set/marko-tag.json\",\n\t\"./dist/components/set/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/set/translate.mjs\",\n\t\"./dist/components/style/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/style/marko-tag.json\",\n\t\"./dist/components/style/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/style/transform.mjs\",\n\t\"./dist/components/tag/index.d.marko\": \"../../node_modules/@marko/tags-api-preview/dist/components/tag/index.d.marko\",\n\t\"./dist/components/tag/marko-tag.json\": \"../../node_modules/@marko/tags-api-preview/dist/components/tag/marko-tag.json\",\n\t\"./dist/components/tag/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/components/tag/translate.mjs\",\n\t\"./dist/transform/assignments-to-change-call.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/assignments-to-change-call.mjs\",\n\t\"./dist/transform/attribute-bindings.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/attribute-bindings.mjs\",\n\t\"./dist/transform/cached-values/index-browser.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/cached-values/index-browser.mjs\",\n\t\"./dist/transform/cached-values/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/cached-values/index.mjs\",\n\t\"./dist/transform/cached-values/package.json\": \"../../node_modules/@marko/tags-api-preview/dist/transform/cached-values/package.json\",\n\t\"./dist/transform/cached-values/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/cached-values/transform.mjs\",\n\t\"./dist/transform/custom-tag-var.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/custom-tag-var.mjs\",\n\t\"./dist/transform/feature-detection.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/feature-detection.mjs\",\n\t\"./dist/transform/hoist-tag-vars/index-browser.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/hoist-tag-vars/index-browser.mjs\",\n\t\"./dist/transform/hoist-tag-vars/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/hoist-tag-vars/index.mjs\",\n\t\"./dist/transform/hoist-tag-vars/package.json\": \"../../node_modules/@marko/tags-api-preview/dist/transform/hoist-tag-vars/package.json\",\n\t\"./dist/transform/hoist-tag-vars/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/hoist-tag-vars/transform.mjs\",\n\t\"./dist/transform/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/index.mjs\",\n\t\"./dist/transform/native-tag-var/index-browser.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/native-tag-var/index-browser.mjs\",\n\t\"./dist/transform/native-tag-var/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/native-tag-var/index.mjs\",\n\t\"./dist/transform/native-tag-var/package.json\": \"../../node_modules/@marko/tags-api-preview/dist/transform/native-tag-var/package.json\",\n\t\"./dist/transform/native-tag-var/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/native-tag-var/transform.mjs\",\n\t\"./dist/transform/tag-body-parameters.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/tag-body-parameters.mjs\",\n\t\"./dist/transform/wrapper-component.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/transform/wrapper-component.mjs\",\n\t\"./dist/translate/class-api-custom-tag-handlers.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/class-api-custom-tag-handlers.mjs\",\n\t\"./dist/translate/for-key-scope.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/for-key-scope.mjs\",\n\t\"./dist/translate/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/index.mjs\",\n\t\"./dist/translate/native-tag-handlers/index-browser.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/native-tag-handlers/index-browser.mjs\",\n\t\"./dist/translate/native-tag-handlers/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/native-tag-handlers/index.mjs\",\n\t\"./dist/translate/native-tag-handlers/package.json\": \"../../node_modules/@marko/tags-api-preview/dist/translate/native-tag-handlers/package.json\",\n\t\"./dist/translate/native-tag-handlers/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/native-tag-handlers/translate.mjs\",\n\t\"./dist/translate/track-rendering/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/track-rendering/index.mjs\",\n\t\"./dist/translate/track-rendering/translate.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/translate/track-rendering/translate.mjs\",\n\t\"./dist/util/assert-no-assignments.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/assert-no-assignments.mjs\",\n\t\"./dist/util/build-aggregate-error.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/build-aggregate-error.mjs\",\n\t\"./dist/util/deep-freeze/index-browser.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/deep-freeze/index-browser.mjs\",\n\t\"./dist/util/deep-freeze/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/deep-freeze/index.mjs\",\n\t\"./dist/util/deep-freeze/package.json\": \"../../node_modules/@marko/tags-api-preview/dist/util/deep-freeze/package.json\",\n\t\"./dist/util/deep-freeze/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/deep-freeze/transform.mjs\",\n\t\"./dist/util/get-attr.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/get-attr.mjs\",\n\t\"./dist/util/import-runtime.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/import-runtime.mjs\",\n\t\"./dist/util/is-api.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/is-api.mjs\",\n\t\"./dist/util/is-at-root.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/is-at-root.mjs\",\n\t\"./dist/util/is-core-tag.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/is-core-tag.mjs\",\n\t\"./dist/util/patch-lifecycle.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/patch-lifecycle.mjs\",\n\t\"./dist/util/replace-assignments/index.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/replace-assignments/index.mjs\",\n\t\"./dist/util/replace-assignments/transform.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/replace-assignments/transform.mjs\",\n\t\"./dist/util/taglib-id.mjs\": \"../../node_modules/@marko/tags-api-preview/dist/util/taglib-id.mjs\",\n\t\"./marko.json\": \"../../node_modules/@marko/tags-api-preview/marko.json\",\n\t\"./package.json\": \"../../node_modules/@marko/tags-api-preview/package.json\",\n\t\"magic-string/package.json\": \"../../node_modules/@marko/tags-api-preview/node_modules/magic-string/package.json\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"../../node_modules/@marko/tags-api-preview sync recursive \\\\.(mjs%7Cjson%7Cmarko)$\";","var map = {\n\t\"./cdata/index.js\": \"../../node_modules/@marko/translator-default/dist/cdata/index.js\",\n\t\"./cdata/index[html].js\": \"../../node_modules/@marko/translator-default/dist/cdata/index[html].js\",\n\t\"./cdata/index[vdom].js\": \"../../node_modules/@marko/translator-default/dist/cdata/index[vdom].js\",\n\t\"./class.js\": \"../../node_modules/@marko/translator-default/dist/class.js\",\n\t\"./comment/index.js\": \"../../node_modules/@marko/translator-default/dist/comment/index.js\",\n\t\"./comment/index[html].js\": \"../../node_modules/@marko/translator-default/dist/comment/index[html].js\",\n\t\"./comment/index[vdom].js\": \"../../node_modules/@marko/translator-default/dist/comment/index[vdom].js\",\n\t\"./declaration/index.js\": \"../../node_modules/@marko/translator-default/dist/declaration/index.js\",\n\t\"./declaration/index[html].js\": \"../../node_modules/@marko/translator-default/dist/declaration/index[html].js\",\n\t\"./declaration/index[vdom].js\": \"../../node_modules/@marko/translator-default/dist/declaration/index[vdom].js\",\n\t\"./document-type/index.js\": \"../../node_modules/@marko/translator-default/dist/document-type/index.js\",\n\t\"./document-type/index[html].js\": \"../../node_modules/@marko/translator-default/dist/document-type/index[html].js\",\n\t\"./document-type/index[vdom].js\": \"../../node_modules/@marko/translator-default/dist/document-type/index[vdom].js\",\n\t\"./index.js\": \"../../node_modules/@marko/translator-default/dist/index.js\",\n\t\"./placeholder/index.js\": \"../../node_modules/@marko/translator-default/dist/placeholder/index.js\",\n\t\"./placeholder/index[html].js\": \"../../node_modules/@marko/translator-default/dist/placeholder/index[html].js\",\n\t\"./placeholder/index[vdom].js\": \"../../node_modules/@marko/translator-default/dist/placeholder/index[vdom].js\",\n\t\"./scriptlet.js\": \"../../node_modules/@marko/translator-default/dist/scriptlet.js\",\n\t\"./tag/attribute-tag.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute-tag.js\",\n\t\"./tag/attribute/directives/class.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/class.js\",\n\t\"./tag/attribute/directives/index.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/index.js\",\n\t\"./tag/attribute/directives/no-update-body-if.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/no-update-body-if.js\",\n\t\"./tag/attribute/directives/no-update-body.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/no-update-body.js\",\n\t\"./tag/attribute/directives/no-update-if.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/no-update-if.js\",\n\t\"./tag/attribute/directives/no-update.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/no-update.js\",\n\t\"./tag/attribute/directives/style.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/directives/style.js\",\n\t\"./tag/attribute/index.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/index.js\",\n\t\"./tag/attribute/modifiers/index.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/modifiers/index.js\",\n\t\"./tag/attribute/modifiers/no-update.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/modifiers/no-update.js\",\n\t\"./tag/attribute/modifiers/scoped.js\": \"../../node_modules/@marko/translator-default/dist/tag/attribute/modifiers/scoped.js\",\n\t\"./tag/custom-tag.js\": \"../../node_modules/@marko/translator-default/dist/tag/custom-tag.js\",\n\t\"./tag/dynamic-tag.js\": \"../../node_modules/@marko/translator-default/dist/tag/dynamic-tag.js\",\n\t\"./tag/index.js\": \"../../node_modules/@marko/translator-default/dist/tag/index.js\",\n\t\"./tag/macro-tag.js\": \"../../node_modules/@marko/translator-default/dist/tag/macro-tag.js\",\n\t\"./tag/native-tag.js\": \"../../node_modules/@marko/translator-default/dist/tag/native-tag.js\",\n\t\"./tag/native-tag[html]/attributes.js\": \"../../node_modules/@marko/translator-default/dist/tag/native-tag[html]/attributes.js\",\n\t\"./tag/native-tag[html]/index.js\": \"../../node_modules/@marko/translator-default/dist/tag/native-tag[html]/index.js\",\n\t\"./tag/native-tag[vdom]/attributes.js\": \"../../node_modules/@marko/translator-default/dist/tag/native-tag[vdom]/attributes.js\",\n\t\"./tag/native-tag[vdom]/index.js\": \"../../node_modules/@marko/translator-default/dist/tag/native-tag[vdom]/index.js\",\n\t\"./tag/util.js\": \"../../node_modules/@marko/translator-default/dist/tag/util.js\",\n\t\"./taglib/core/conditional/translate-else-if.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/conditional/translate-else-if.js\",\n\t\"./taglib/core/conditional/translate-else.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/conditional/translate-else.js\",\n\t\"./taglib/core/conditional/translate-if.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/conditional/translate-if.js\",\n\t\"./taglib/core/conditional/util.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/conditional/util.js\",\n\t\"./taglib/core/index.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/index.js\",\n\t\"./taglib/core/macro/parse.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/macro/parse.js\",\n\t\"./taglib/core/macro/translate.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/macro/translate.js\",\n\t\"./taglib/core/parse-class.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/parse-class.js\",\n\t\"./taglib/core/parse-export.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/parse-export.js\",\n\t\"./taglib/core/parse-import.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/parse-import.js\",\n\t\"./taglib/core/parse-module-code.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/parse-module-code.js\",\n\t\"./taglib/core/parse-static.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/parse-static.js\",\n\t\"./taglib/core/parse-style.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/parse-style.js\",\n\t\"./taglib/core/transform-style.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/transform-style.js\",\n\t\"./taglib/core/translate-await.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-await.js\",\n\t\"./taglib/core/translate-body.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-body.js\",\n\t\"./taglib/core/translate-for.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-for.js\",\n\t\"./taglib/core/translate-html-comment.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-html-comment.js\",\n\t\"./taglib/core/translate-include-content.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-include-content.js\",\n\t\"./taglib/core/translate-server-only.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-server-only.js\",\n\t\"./taglib/core/translate-while.js\": \"../../node_modules/@marko/translator-default/dist/taglib/core/translate-while.js\",\n\t\"./taglib/index.js\": \"../../node_modules/@marko/translator-default/dist/taglib/index.js\",\n\t\"./taglib/migrate/all-templates.js\": \"../../node_modules/@marko/translator-default/dist/taglib/migrate/all-templates.js\",\n\t\"./taglib/migrate/index.js\": \"../../node_modules/@marko/translator-default/dist/taglib/migrate/index.js\",\n\t\"./text/index.js\": \"../../node_modules/@marko/translator-default/dist/text/index.js\",\n\t\"./text/index[html].js\": \"../../node_modules/@marko/translator-default/dist/text/index[html].js\",\n\t\"./text/index[vdom].js\": \"../../node_modules/@marko/translator-default/dist/text/index[vdom].js\",\n\t\"./util/add-dependencies.js\": \"../../node_modules/@marko/translator-default/dist/util/add-dependencies.js\",\n\t\"./util/get-component-files.js\": \"../../node_modules/@marko/translator-default/dist/util/get-component-files.js\",\n\t\"./util/html-out-write.js\": \"../../node_modules/@marko/translator-default/dist/util/html-out-write.js\",\n\t\"./util/key-manager.js\": \"../../node_modules/@marko/translator-default/dist/util/key-manager.js\",\n\t\"./util/optimize-html-writes.js\": \"../../node_modules/@marko/translator-default/dist/util/optimize-html-writes.js\",\n\t\"./util/optimize-vdom-create.js\": \"../../node_modules/@marko/translator-default/dist/util/optimize-vdom-create.js\",\n\t\"./util/plugin-hooks.js\": \"../../node_modules/@marko/translator-default/dist/util/plugin-hooks.js\",\n\t\"./util/runtime-flags.js\": \"../../node_modules/@marko/translator-default/dist/util/runtime-flags.js\",\n\t\"./util/vdom-out-write.js\": \"../../node_modules/@marko/translator-default/dist/util/vdom-out-write.js\",\n\t\"./util/with-previous-location.js\": \"../../node_modules/@marko/translator-default/dist/util/with-previous-location.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"../../node_modules/@marko/translator-default/dist sync recursive \\\\.(js(on)?)$\";","module.exports = require(\"../../../../node_modules/@marko/compiler/dist/babel-plugin\");\n","module.exports = require(\"../../../../node_modules/@marko/compiler/dist/babel-types\");\n","module.exports = require(\"../../../../node_modules/@marko/compiler/dist/taglib\");\n","// We don't bring in the full Marko compiler, but the ast types are needed.\nexports.types = require(\"./dist/babel-types\");\n","module.exports = require(\"../../node_modules/@marko/compiler/modules\");\n","module.exports = require(\"memfs\");\n","const path = require(\"path\");\nconst resolve = require(\"resolve\");\nconst resolveExports = require(\"resolve.exports\");\n\nconst Module = {\n _nodeModulePaths: nodeModulePaths,\n _resolveFilename: function (target, fromModule) {\n return resolve.sync(target, {\n basedir: path.dirname(fromModule.filename),\n paths: fromModule.paths,\n extensions: [\".js\", \".json\", \".marko\", \".mjs\"],\n pathFilter(pkg, _, relativePath) {\n if (/^index(\\.[^/\\\\]+)?$/.test(relativePath)) {\n try {\n return resolveExports.legacy(pkg, Module._resolveExportsOptions);\n } catch {}\n } else {\n try {\n return resolveExports.resolve(\n pkg,\n relativePath,\n Module._resolveExportsOptions\n );\n } catch {}\n }\n\n return relativePath;\n },\n });\n },\n _resolveExportsOptions: {\n browser: true,\n },\n};\n\nmodule.exports = Module;\n\nfunction nodeModulePaths(dir) {\n const paths = [];\n\n while (true) {\n const parentDir = path.dirname(dir);\n paths.push(path.join(dir, \"node_modules\"));\n\n if (!parentDir || parentDir === dir) {\n break;\n }\n\n dir = parentDir;\n }\n\n return paths;\n}\n","// src/dom/fragment.ts\nvar singleNodeFragment = {\n ___insertBefore(scope, parent, nextSibling) {\n parent.insertBefore(scope.___startNode, nextSibling);\n },\n ___remove(scope) {\n scope.___startNode.remove();\n },\n ___getParentNode(scope) {\n return this.___getFirstNode(scope).parentNode;\n },\n ___getAfterNode(scope) {\n return this.___getLastNode(scope).nextSibling;\n },\n ___getFirstNode(scope) {\n return scope.___startNode;\n },\n ___getLastNode(scope) {\n return scope.___endNode;\n }\n};\nvar staticNodesFragment = {\n ...singleNodeFragment,\n ___insertBefore(scope, parent, nextSibling) {\n let current = this.___getFirstNode(scope);\n const stop = this.___getAfterNode(scope);\n while (current !== stop) {\n const next = current.nextSibling;\n parent.insertBefore(current, nextSibling);\n current = next;\n }\n },\n ___remove(scope) {\n let current = this.___getFirstNode(scope);\n const stop = this.___getAfterNode(scope);\n while (current !== stop) {\n const next = current.nextSibling;\n current.remove();\n current = next;\n }\n }\n};\nvar dynamicFragment = {\n ...staticNodesFragment,\n ___getFirstNode: getFirstNode,\n ___getLastNode: getLastNode\n};\nfunction getFirstNode(currentScope, nodeOrAccessor = currentScope.___startNode, last) {\n let scopeOrScopes;\n if (true) {\n if (\"!\" /* COND_SCOPE */ !== \"!\" /* LOOP_SCOPE_ARRAY */) {\n throw new Error(\"Offset mismatch between conditionals and loops\");\n }\n }\n return typeof nodeOrAccessor === \"object\" ? nodeOrAccessor : !(scopeOrScopes = currentScope[nodeOrAccessor + \"!\" /* COND_SCOPE */]) || scopeOrScopes === emptyMarkerArray ? currentScope[nodeOrAccessor] : (last ? getLastNode : getFirstNode)(Array.isArray(scopeOrScopes) ? scopeOrScopes[last ? scopeOrScopes.length - 1 : 0] : scopeOrScopes);\n}\nfunction getLastNode(currentScope) {\n return getFirstNode(currentScope, currentScope.___endNode, true);\n}\nvar defaultFragment = staticNodesFragment;\n\n// src/dom/schedule.ts\nvar port2 = /* @__PURE__ */ (() => {\n const { port1, port2: port22 } = new MessageChannel();\n port1.onmessage = () => {\n isScheduled = false;\n run();\n };\n return port22;\n})();\nvar isScheduled;\nfunction schedule() {\n if (!isScheduled) {\n isScheduled = true;\n queueMicrotask(flushAndWaitFrame);\n }\n}\nfunction flushAndWaitFrame() {\n run();\n requestAnimationFrame(triggerMacroTask);\n}\nfunction triggerMacroTask() {\n port2.postMessage(0);\n}\n\n// src/dom/queue.ts\nvar currentBatch = [];\nvar currentEffects = [];\nfunction queueSource(scope, signal, value2) {\n schedule();\n signal(scope, 0, 1);\n currentBatch.push(scope, signal, value2);\n return value2;\n}\nfunction queueEffect(scope, fn) {\n currentEffects.push(scope, fn);\n}\nfunction run() {\n try {\n for (let i = 0; i < currentBatch.length; i += 3 /* TOTAL */) {\n const scope = currentBatch[i + 0 /* SCOPE */];\n const signal = currentBatch[i + 1 /* SIGNAL */];\n const value2 = currentBatch[i + 2 /* VALUE */];\n signal(scope, value2, true);\n }\n } finally {\n currentBatch = [];\n }\n runEffects();\n}\nfunction runEffects() {\n try {\n for (let i = 0; i < currentEffects.length; i += 2 /* TOTAL */) {\n const scope = currentEffects[i];\n const fn = currentEffects[i + 1];\n fn(scope);\n }\n } finally {\n currentEffects = [];\n }\n}\n\n// src/dom/scope.ts\nfunction createScope(context) {\n const scope = {};\n scope.___client = true;\n scope.___context = context;\n return scope;\n}\nvar emptyScope = createScope();\nfunction getEmptyScope(marker) {\n emptyScope.___startNode = emptyScope.___endNode = marker;\n return emptyScope;\n}\nfunction write(scope, localIndex, value2) {\n if (scope[localIndex] !== value2) {\n scope[localIndex] = value2;\n return 1;\n }\n return 0;\n}\nfunction binder(bind) {\n return (scope, value2) => {\n scope.___bound ??= /* @__PURE__ */ new Map();\n let bound = scope.___bound.get(value2);\n if (!bound) {\n bound = bind(scope, value2);\n scope.___bound.set(value2, bound);\n }\n return bound;\n };\n}\nvar bindRenderer = binder((ownerScope, renderer) => ({\n ...renderer,\n ___owner: ownerScope\n}));\nvar bindFunction = binder((boundScope, fn) => fn.length ? function bound(...args) {\n return fn.call(this, boundScope, ...args);\n} : function bound() {\n return fn.call(this, boundScope);\n});\nfunction destroyScope(scope) {\n _destroyScope(scope);\n scope._?.___cleanup?.delete(scope);\n const closureSignals = scope.___renderer?.___closureSignals;\n if (closureSignals) {\n for (const signal of closureSignals) {\n signal.___unsubscribe?.(scope);\n }\n }\n return scope;\n}\nfunction _destroyScope(scope) {\n const cleanup = scope.___cleanup;\n if (cleanup) {\n for (const instance of cleanup) {\n if (typeof instance === \"object\") {\n _destroyScope(instance);\n } else {\n queueEffect(scope, scope[instance]);\n }\n }\n }\n}\nfunction onDestroy(scope, localIndex) {\n (scope.___cleanup = scope.___cleanup || /* @__PURE__ */ new Set()).add(localIndex);\n let parentScope = scope._;\n while (parentScope && !parentScope.___cleanup?.has(scope)) {\n (parentScope.___cleanup = parentScope.___cleanup || /* @__PURE__ */ new Set()).add(scope);\n scope = parentScope;\n parentScope = scope._;\n }\n}\n\n// src/dom/reconcile-longest-increasing-subsequence.ts\nvar WRONG_POS = 2147483647;\nfunction reconcile(parent, oldScopes, newScopes, afterReference, fragment = defaultFragment) {\n let oldStart = 0;\n let newStart = 0;\n let oldEnd = oldScopes.length - 1;\n let newEnd = newScopes.length - 1;\n let oldStartScope = oldScopes[oldStart];\n let newStartScope = newScopes[newStart];\n let oldEndScope = oldScopes[oldEnd];\n let newEndScope = newScopes[newEnd];\n let i;\n let j;\n let k;\n let nextSibling;\n let oldScope;\n let newScope;\n outer: {\n while (oldStartScope === newStartScope) {\n ++oldStart;\n ++newStart;\n if (oldStart > oldEnd || newStart > newEnd) {\n break outer;\n }\n oldStartScope = oldScopes[oldStart];\n newStartScope = newScopes[newStart];\n }\n while (oldEndScope === newEndScope) {\n --oldEnd;\n --newEnd;\n if (oldStart > oldEnd || newStart > newEnd) {\n break outer;\n }\n oldEndScope = oldScopes[oldEnd];\n newEndScope = newScopes[newEnd];\n }\n }\n if (oldStart > oldEnd) {\n if (newStart <= newEnd) {\n k = newEnd + 1;\n nextSibling = k < newScopes.length ? fragment.___getFirstNode(newScopes[k]) : afterReference;\n do {\n fragment.___insertBefore(newScopes[newStart++], parent, nextSibling);\n } while (newStart <= newEnd);\n }\n } else if (newStart > newEnd) {\n do {\n fragment.___remove(destroyScope(oldScopes[oldStart++]));\n } while (oldStart <= oldEnd);\n } else {\n const oldLength = oldEnd - oldStart + 1;\n const newLength = newEnd - newStart + 1;\n const aNullable = oldScopes;\n const sources = new Array(newLength);\n for (i = 0; i < newLength; ++i) {\n sources[i] = -1;\n }\n let pos = 0;\n let synced = 0;\n const keyIndex = /* @__PURE__ */ new Map();\n for (j = newStart; j <= newEnd; ++j) {\n keyIndex.set(newScopes[j], j);\n }\n for (i = oldStart; i <= oldEnd && synced < newLength; ++i) {\n oldScope = oldScopes[i];\n j = keyIndex.get(oldScope);\n if (j !== void 0) {\n pos = pos > j ? WRONG_POS : j;\n ++synced;\n newScope = newScopes[j];\n sources[j - newStart] = i;\n aNullable[i] = null;\n }\n }\n if (oldLength === oldScopes.length && synced === 0) {\n for (; newStart < newLength; ++newStart) {\n fragment.___insertBefore(newScopes[newStart], parent, afterReference);\n }\n for (; oldStart < oldLength; ++oldStart) {\n fragment.___remove(destroyScope(oldScopes[oldStart]));\n }\n } else {\n i = oldLength - synced;\n while (i > 0) {\n oldScope = aNullable[oldStart++];\n if (oldScope !== null) {\n fragment.___remove(destroyScope(oldScope));\n i--;\n }\n }\n if (pos === WRONG_POS) {\n const seq = longestIncreasingSubsequence(sources);\n j = seq.length - 1;\n k = newScopes.length;\n for (i = newLength - 1; i >= 0; --i) {\n if (sources[i] === -1) {\n pos = i + newStart;\n newScope = newScopes[pos++];\n nextSibling = pos < k ? fragment.___getFirstNode(newScopes[pos]) : afterReference;\n fragment.___insertBefore(newScope, parent, nextSibling);\n } else {\n if (j < 0 || i !== seq[j]) {\n pos = i + newStart;\n newScope = newScopes[pos++];\n nextSibling = pos < k ? fragment.___getFirstNode(newScopes[pos]) : afterReference;\n fragment.___insertBefore(newScope, parent, nextSibling);\n } else {\n --j;\n }\n }\n }\n } else if (synced !== newLength) {\n k = newScopes.length;\n for (i = newLength - 1; i >= 0; --i) {\n if (sources[i] === -1) {\n pos = i + newStart;\n newScope = newScopes[pos++];\n nextSibling = pos < k ? fragment.___getFirstNode(newScopes[pos]) : afterReference;\n fragment.___insertBefore(newScope, parent, nextSibling);\n }\n }\n }\n }\n }\n}\nfunction longestIncreasingSubsequence(a) {\n const p = a.slice();\n const result = [];\n result.push(0);\n let u;\n let v;\n for (let i = 0, il = a.length; i < il; ++i) {\n if (a[i] === -1) {\n continue;\n }\n const j = result[result.length - 1];\n if (a[j] < a[i]) {\n p[i] = j;\n result.push(i);\n continue;\n }\n u = 0;\n v = result.length - 1;\n while (u < v) {\n const c = (u + v) / 2 | 0;\n if (a[result[c]] < a[i]) {\n u = c + 1;\n } else {\n v = c;\n }\n }\n if (a[i] < a[result[u]]) {\n if (u > 0) {\n p[i] = result[u - 1];\n }\n result[u] = i;\n }\n }\n u = result.length;\n v = result[u - 1];\n while (u-- > 0) {\n result[u] = v;\n v = p[v];\n }\n return result;\n}\n\n// src/common/context.ts\nvar Context = null;\nvar usesContext = false;\nfunction pushContext(key, value2) {\n usesContext = true;\n (Context = Object.create(Context))[key] = value2;\n}\nfunction popContext() {\n Context = Object.getPrototypeOf(Context);\n}\nfunction getInContext(key) {\n if (!Context || !Object.prototype.hasOwnProperty.call(Context, key)) {\n throw new Error(`Unable to receive ${key} from current context`);\n }\n return Context[key];\n}\nfunction setContext(v) {\n usesContext && (Context = v);\n}\n\n// src/common/helpers.ts\nfunction classValue(value2) {\n return toDelimitedString(value2, \" \", stringifyClassObject);\n}\nfunction stringifyClassObject(name, value2) {\n if (isVoid(value2)) {\n return \"\";\n }\n return name;\n}\nfunction styleValue(value2) {\n return toDelimitedString(value2, \";\", stringifyStyleObject);\n}\nvar NON_DIMENSIONAL = /^(--|ta|or|li|z)|n-c|i(do|nk|m|t)|w$|we/;\nfunction stringifyStyleObject(name, value2) {\n if (isVoid(value2)) {\n return \"\";\n }\n if (typeof value2 === \"number\" && value2 && !NON_DIMENSIONAL.test(name)) {\n value2 += \"px\";\n }\n return `${name}:${value2}`;\n}\nfunction toDelimitedString(val, delimiter, stringify) {\n switch (typeof val) {\n case \"string\":\n return val;\n case \"object\":\n if (val !== null) {\n let result = \"\";\n let curDelimiter = \"\";\n if (Array.isArray(val)) {\n for (const v of val) {\n const part = toDelimitedString(v, delimiter, stringify);\n if (part !== \"\") {\n result += curDelimiter + part;\n curDelimiter = delimiter;\n }\n }\n } else {\n for (const name in val) {\n const v = val[name];\n const part = stringify(name, v);\n if (part !== \"\") {\n result += curDelimiter + part;\n curDelimiter = delimiter;\n }\n }\n }\n return result;\n }\n }\n return \"\";\n}\nfunction isVoid(value2) {\n return value2 == null || value2 === false;\n}\n\n// src/dom/dom.ts\nfunction attr(element, name, value2) {\n const normalizedValue = normalizeAttrValue(value2);\n if (normalizedValue === void 0) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, normalizedValue);\n }\n}\nfunction classAttr(element, value2) {\n attr(element, \"class\", classValue(value2) || false);\n}\nfunction styleAttr(element, value2) {\n attr(element, \"style\", styleValue(value2) || false);\n}\nfunction data(node, value2) {\n const normalizedValue = normalizeString(value2);\n if (node.data !== normalizedValue) {\n node.data = normalizedValue;\n }\n}\nfunction attrs(scope, elementAccessor, nextAttrs) {\n const prevAttrs = scope[elementAccessor + \"~\" /* PREVIOUS_ATTRIBUTES */];\n const element = scope[elementAccessor];\n if (prevAttrs) {\n for (const name in prevAttrs) {\n if (!(nextAttrs && name in nextAttrs)) {\n element.removeAttribute(name);\n }\n }\n }\n for (const name in nextAttrs) {\n if (!(prevAttrs && nextAttrs[name] === prevAttrs[name])) {\n if (name === \"class\") {\n classAttr(element, nextAttrs[name]);\n } else if (name === \"style\") {\n styleAttr(element, nextAttrs[name]);\n } else if (name !== \"renderBody\") {\n attr(element, name, nextAttrs[name]);\n }\n }\n }\n scope[elementAccessor + \"~\" /* PREVIOUS_ATTRIBUTES */] = nextAttrs;\n}\nvar doc = document;\nvar parser = /* @__PURE__ */ doc.createElement(\"template\");\nfunction html(scope, value2, index) {\n const firstChild = scope[index];\n const lastChild = scope[index + \"-\"] || firstChild;\n const parentNode = firstChild.parentNode;\n const afterReference = lastChild.nextSibling;\n parser.innerHTML = value2 || value2 === 0 ? `${value2}` : \"\";\n const newContent = parser.content;\n write(scope, index, newContent.firstChild);\n write(scope, index + \"-\", newContent.lastChild);\n parentNode.insertBefore(newContent, firstChild);\n let current = firstChild;\n while (current !== afterReference) {\n const next = current.nextSibling;\n current.remove();\n current = next;\n }\n}\nfunction props(scope, nodeIndex, index) {\n const nextProps = scope[index];\n const prevProps = scope[index + \"-\"];\n const node = scope[nodeIndex];\n if (prevProps) {\n for (const name in prevProps) {\n if (!(name in nextProps)) {\n node[name] = void 0;\n }\n }\n }\n for (const name in nextProps) {\n node[name] = nextProps[name];\n }\n scope[index + \"-\"] = nextProps;\n}\nfunction normalizeAttrValue(value2) {\n if (value2 || value2 === 0) {\n return value2 === true ? \"\" : value2 + \"\";\n }\n}\nfunction normalizeString(value2) {\n return value2 || value2 === 0 ? value2 + \"\" : \"\\u200D\";\n}\nfunction userEffect(scope, index, fn) {\n const cleanup = scope[index];\n const nextCleanup = fn(scope);\n if (cleanup) {\n cleanup();\n } else {\n onDestroy(scope, index);\n }\n scope[index] = nextCleanup;\n}\nfunction lifecycle(scope, index, thisObj) {\n let storedThis = scope[index];\n if (!storedThis) {\n storedThis = scope[index] = thisObj;\n scope[\"-\" /* CLEANUP */ + index] = () => storedThis.onDestroy?.call(storedThis);\n onDestroy(scope, \"-\" /* CLEANUP */ + index);\n storedThis.onMount?.call(storedThis);\n } else {\n Object.assign(storedThis, thisObj);\n storedThis.onUpdate?.call(storedThis);\n }\n}\n\n// src/dom/walker.ts\nvar walker = /* @__PURE__ */ document.createTreeWalker(document);\nfunction trimWalkString(walkString) {\n let end = walkString.length;\n while (walkString.charCodeAt(--end) > 47 /* BeginChild */)\n ;\n return walkString.slice(0, end + 1);\n}\nfunction walk(startNode, walkCodes, scope) {\n walker.currentNode = startNode;\n walkInternal(walkCodes, scope, 0);\n walker.currentNode = document.documentElement;\n}\nfunction walkInternal(walkCodes, scope, currentWalkIndex) {\n let value2;\n let storedMultiplier = 0;\n let currentMultiplier = 0;\n let currentScopeIndex = 0;\n while (value2 = walkCodes.charCodeAt(currentWalkIndex++)) {\n currentMultiplier = storedMultiplier;\n storedMultiplier = 0;\n if (value2 >= 117 /* Multiplier */) {\n storedMultiplier = currentMultiplier * 10 /* Multiplier */ + value2 - 117 /* Multiplier */;\n } else if (value2 >= 107 /* Out */) {\n value2 = 10 /* Out */ * currentMultiplier + value2 - 107 /* Out */;\n while (value2--) {\n walker.parentNode();\n }\n walker.nextSibling();\n } else if (value2 >= 97 /* Over */) {\n value2 = 10 /* Over */ * currentMultiplier + value2 - 97 /* Over */;\n while (value2--) {\n !walker.nextSibling() && !walker.nextNode();\n }\n } else if (value2 >= 67 /* Next */) {\n value2 = 20 /* Next */ * currentMultiplier + value2 - 67 /* Next */;\n while (value2--) {\n walker.nextNode();\n }\n } else if (value2 === 47 /* BeginChild */) {\n currentWalkIndex = walkInternal(walkCodes, scope[true ? getDebugKey(currentScopeIndex++, \"#childScope\") : currentScopeIndex++] = createScope(scope.___context), currentWalkIndex);\n } else if (value2 === 38 /* EndChild */) {\n return currentWalkIndex;\n } else if (value2 === 32 /* Get */) {\n scope[true ? getDebugKey(currentScopeIndex++, walker.currentNode) : currentScopeIndex++] = walker.currentNode;\n } else {\n const newNode = scope[true ? getDebugKey(currentScopeIndex++, \"#text\") : currentScopeIndex++] = document.createTextNode(\"\");\n const current = walker.currentNode;\n const parentNode = current.parentNode;\n if (value2 === 33 /* Before */) {\n parentNode.insertBefore(newNode, current);\n } else {\n if (value2 === 35 /* After */) {\n parentNode.insertBefore(newNode, current.nextSibling);\n } else {\n if (value2 !== 37 /* Replace */) {\n throw new Error(`Unknown walk code: ${value2}`);\n }\n parentNode.replaceChild(newNode, current);\n }\n walker.currentNode = newNode;\n }\n }\n }\n return currentWalkIndex;\n}\nfunction getDebugKey(index, node) {\n if (typeof node === \"string\") {\n return `${node}/${index}`;\n } else if (node.nodeType === 3 /* Text */) {\n return `#text/${index}`;\n } else if (node.nodeType === 8 /* Comment */) {\n return `#comment/${index}`;\n } else if (node.nodeType === 1 /* Element */) {\n return `#${node.tagName.toLowerCase()}/${index}`;\n }\n return index;\n}\n\n// src/dom/resume.ts\nvar registeredObjects = /* @__PURE__ */ new Map();\nvar doc2 = document;\nfunction register(id, obj) {\n registeredObjects.set(id, obj);\n return obj;\n}\nfunction init(runtimeId = \"M\") {\n const runtimeLength = runtimeId.length;\n const resumeVar = runtimeId + \"$h\" /* VAR_RESUME */;\n const initialHydration = window[resumeVar];\n const walker2 = doc2.createTreeWalker(doc2, 128);\n let currentScopeId;\n let currentNode;\n const scopeLookup = {};\n const getScope = (id) => scopeLookup[id] ?? (scopeLookup[id] = {});\n const stack = [];\n const fakeArray = { push: resume };\n const bind = (registryId, scope) => {\n const obj = registeredObjects.get(registryId);\n if (!scope) {\n return obj;\n } else if (obj.___template) {\n return bindRenderer(scope, obj);\n } else {\n return bindFunction(scope, obj);\n }\n };\n Object.defineProperty(window, resumeVar, {\n get() {\n return fakeArray;\n }\n });\n if (initialHydration) {\n for (let i = 0; i < initialHydration.length; i += 2) {\n resume(initialHydration[i], initialHydration[i + 1]);\n }\n }\n function resume(scopesFn, calls) {\n if (doc2.readyState !== \"loading\") {\n walker2.currentNode = doc2;\n }\n const scopes = scopesFn?.(bind, scopeLookup);\n for (const scopeIdAsString in scopes) {\n const scopeId = parseInt(scopeIdAsString);\n const scope = scopes[scopeId];\n const storedScope = scopeLookup[scopeId];\n if (storedScope !== scope) {\n scopeLookup[scopeId] = Object.assign(scope, storedScope);\n }\n }\n while (currentNode = walker2.nextNode()) {\n const nodeValue = currentNode.nodeValue;\n if (nodeValue?.startsWith(`${runtimeId}`)) {\n const token = nodeValue[runtimeLength];\n const scopeId = parseInt(nodeValue.slice(runtimeLength + 1));\n const scope = getScope(scopeId);\n const data2 = nodeValue.slice(nodeValue.indexOf(\" \") + 1);\n if (token === \"#\" /* NODE */) {\n scope[data2] = currentNode.previousSibling;\n } else if (token === \"^\" /* SECTION_START */) {\n stack.push(currentScopeId);\n currentScopeId = scopeId;\n scope.___startNode = currentNode;\n } else if (token === \"/\" /* SECTION_END */) {\n scope[data2] = currentNode;\n if (scopeId < currentScopeId) {\n const currScope = scopeLookup[currentScopeId];\n const currParent = currentNode.parentNode;\n const startNode = currScope.___startNode;\n if (currParent !== startNode.parentNode) {\n currParent.prepend(startNode);\n }\n currScope.___endNode = currentNode.previousSibling;\n currentScopeId = stack.pop();\n }\n } else if (token === \"|\" /* SECTION_SINGLE_NODES_END */) {\n scope[true ? data2.slice(0, data2.indexOf(\" \")) : parseInt(data2)] = currentNode;\n const childScopeIds = JSON.parse(\"[\" + data2.slice(data2.indexOf(\" \") + 1) + \"]\");\n for (let i = childScopeIds.length - 1; i >= 0; i--) {\n const childScope = getScope(childScopeIds[i]);\n while ((currentNode = currentNode.previousSibling).nodeType === 8)\n ;\n childScope.___startNode = childScope.___endNode = currentNode;\n }\n } else if (true) {\n throw new Error(\"MALFORMED MARKER: \" + nodeValue);\n }\n }\n }\n for (let i = 0; i < calls.length; i += 2) {\n registeredObjects.get(calls[i + 1])(scopeLookup[calls[i]]);\n }\n }\n}\nfunction resumeSubscription(signal, ownerValueAccessor, getOwnerScope = (scope) => scope._) {\n const ownerMarkAccessor = ownerValueAccessor + \"#\" /* MARK */;\n const ownerSubscribersAccessor = ownerValueAccessor + \"*\" /* SUBSCRIBERS */;\n return (subscriberScope) => {\n const ownerScope = getOwnerScope(subscriberScope);\n const boundSignal = bindFunction(subscriberScope, signal);\n const ownerMark = ownerScope[ownerMarkAccessor];\n (ownerScope[ownerSubscribersAccessor] ??= /* @__PURE__ */ new Set()).add(boundSignal);\n if (ownerMark === 0) {\n } else if (ownerMark >= 1) {\n }\n };\n}\n\n// src/dom/renderer.ts\nfunction createScopeWithRenderer(renderer, context, ownerScope) {\n setContext(context);\n const newScope = createScope(context);\n newScope._ = renderer.___owner || ownerScope;\n newScope.___renderer = renderer;\n initRenderer(renderer, newScope);\n if (renderer.___closureSignals) {\n for (const signal of renderer.___closureSignals) {\n signal.___subscribe?.(newScope);\n }\n }\n setContext(null);\n return newScope;\n}\nfunction initContextProvider(scope, scopeAccessor, valueAccessor, contextKey, renderer) {\n const node = scope[scopeAccessor];\n const newScope = createScopeWithRenderer(renderer, {\n ...scope.___context,\n [contextKey]: [scope, valueAccessor]\n }, scope);\n (renderer.___fragment ?? defaultFragment).___insertBefore(newScope, node.parentNode, node.nextSibling);\n for (const signal of renderer.___closureSignals) {\n signal(newScope, true);\n }\n}\nfunction initRenderer(renderer, scope) {\n const dom = typeof renderer === \"string\" ? document.createElement(renderer) : renderer.___clone();\n walk(dom.nodeType === 11 /* DocumentFragment */ ? dom.firstChild : dom, renderer.___walks ?? \" \", scope);\n scope.___startNode = dom.nodeType === 11 /* DocumentFragment */ ? dom.firstChild : dom;\n scope.___endNode = dom.nodeType === 11 /* DocumentFragment */ ? dom.lastChild : dom;\n if (renderer.___setup) {\n renderer.___setup(scope);\n }\n if (renderer.___dynamicStartNodeOffset !== void 0) {\n scope.___startNode = renderer.___dynamicStartNodeOffset;\n }\n if (renderer.___dynamicEndNodeOffset !== void 0) {\n scope.___endNode = renderer.___dynamicEndNodeOffset;\n }\n return dom;\n}\nfunction dynamicTagAttrs(nodeAccessor, renderBody) {\n return (scope, getAttrs, clean) => {\n const renderer = scope[nodeAccessor + \"(\" /* COND_RENDERER */];\n if (!renderer || renderer === renderBody || clean && !renderer.___attrs) {\n return;\n }\n const childScope = scope[nodeAccessor + \"!\" /* COND_SCOPE */];\n if (typeof renderer === \"string\") {\n const elementAccessor = true ? `#${renderer}/0` : 0;\n attrs(childScope, elementAccessor, getAttrs());\n setConditionalRendererOnlyChild(childScope, elementAccessor, renderBody);\n } else if (renderer.___attrs) {\n if (clean) {\n renderer.___attrs(childScope, null, clean);\n } else {\n const attributes = getAttrs();\n renderer.___attrs(childScope, {\n ...attributes,\n renderBody: renderBody ?? attributes.renderBody\n }, clean);\n }\n }\n };\n}\nfunction createRenderFn(template, walks, setup, attrs2, closureSignals, templateId, dynamicStartNodeOffset, dynamicEndNodeOffset) {\n const renderer = createRenderer(template, walks, setup, closureSignals, 0, void 0, dynamicStartNodeOffset, dynamicEndNodeOffset, attrs2);\n return register(templateId, Object.assign((input, element) => {\n const scope = createScope();\n queueEffect(scope, () => {\n element.replaceChildren(dom);\n });\n const dom = initRenderer(renderer, scope);\n if (attrs2) {\n attrs2(scope, input);\n }\n runEffects();\n return {\n update: (newInput) => {\n if (attrs2) {\n attrs2(scope, newInput, 1);\n attrs2(scope, newInput);\n runEffects();\n }\n },\n destroy: () => {\n }\n };\n }, renderer));\n}\nfunction createRenderer(template, walks, setup, closureSignals = [], hasUserEffects = 0, fragment, dynamicStartNodeOffset, dynamicEndNodeOffset, attrs2) {\n return {\n ___template: template,\n ___walks: walks && /* @__PURE__ */ trimWalkString(walks),\n ___setup: setup,\n ___clone: _clone,\n ___closureSignals: closureSignals,\n ___hasUserEffects: hasUserEffects,\n ___sourceNode: void 0,\n ___fragment: fragment,\n ___dynamicStartNodeOffset: dynamicStartNodeOffset,\n ___dynamicEndNodeOffset: dynamicEndNodeOffset,\n ___attrs: attrs2,\n ___owner: void 0\n };\n}\nfunction _clone() {\n let sourceNode = this.___sourceNode;\n if (!sourceNode) {\n if (this.___template === void 0) {\n throw new Error(\"The renderer does not have a template to clone: \" + JSON.stringify(this));\n }\n const walks = this.___walks;\n const ensureFragment = walks && walks.length < 4 && walks.charCodeAt(walks.length - 1) !== 32 /* Get */;\n this.___sourceNode = sourceNode = parse(this.___template, ensureFragment);\n }\n return sourceNode.cloneNode(true);\n}\nvar doc3 = document;\nvar parser2 = /* @__PURE__ */ doc3.createElement(\"template\");\nfunction parse(template, ensureFragment) {\n let node;\n parser2.innerHTML = template;\n const content = parser2.content;\n if (ensureFragment || (node = content.firstChild) !== content.lastChild || node && node.nodeType === 8 /* Comment */) {\n node = doc3.createDocumentFragment();\n node.appendChild(content);\n } else if (!node) {\n node = doc3.createTextNode(\"\");\n }\n return node;\n}\n\n// src/dom/signals.ts\nfunction value(valueAccessor, render, intersection2, valueWithIntersection) {\n const markAccessor = valueAccessor + \"#\" /* MARK */;\n return (scope, nextValue, clean) => {\n let creation;\n let currentMark;\n if (clean === 1) {\n currentMark = scope[markAccessor] = (scope[markAccessor] ?? 0) + 1;\n } else {\n creation = scope[markAccessor] === void 0;\n currentMark = scope[markAccessor] ||= 1;\n }\n if (currentMark === 1) {\n if (clean !== 1 && (creation || !(clean &&= scope[valueAccessor] === nextValue))) {\n scope[valueAccessor] = nextValue;\n render?.(scope, nextValue);\n } else {\n valueWithIntersection?.(scope, 0, clean);\n }\n intersection2?.(scope, clean);\n }\n if (clean !== 1) {\n scope[markAccessor]--;\n }\n };\n}\nvar accessorId = 0;\nfunction intersection(count, fn, intersection2, valueWithIntersection) {\n const cleanAccessor = \"?\" /* DYNAMIC */ + accessorId++;\n const markAccessor = cleanAccessor + \"#\" /* MARK */;\n return (scope, clean) => {\n let currentMark;\n if (clean === 1) {\n currentMark = scope[markAccessor] = (scope[markAccessor] ?? 0) + 1;\n } else {\n if (scope[markAccessor] === void 0) {\n scope[markAccessor] = count - 1;\n clean = void 0;\n } else {\n currentMark = scope[markAccessor]--;\n clean = scope[cleanAccessor] &&= clean;\n }\n }\n if (currentMark === 1) {\n if (clean) {\n valueWithIntersection?.(scope, 0, clean);\n } else {\n scope[cleanAccessor] = true;\n fn(scope, clean);\n }\n intersection2?.(scope, clean);\n }\n };\n}\nvar defaultGetOwnerScope = (scope) => scope._;\nfunction closure(ownerValueAccessor, fn, _getOwnerScope, intersection2, valueWithIntersection) {\n const cleanAccessor = \"?\" /* DYNAMIC */ + accessorId++;\n const markAccessor = cleanAccessor + 1;\n const getOwnerScope = _getOwnerScope || defaultGetOwnerScope;\n const getOwnerValueAccessor = typeof ownerValueAccessor === \"function\" ? ownerValueAccessor : () => ownerValueAccessor;\n return (scope, clean) => {\n let ownerScope, ownerValueAccessor2, currentMark;\n if (clean === 1) {\n currentMark = scope[markAccessor] = (scope[markAccessor] ?? 0) + 1;\n } else {\n if (scope[markAccessor] === void 0) {\n ownerScope = getOwnerScope(scope);\n ownerValueAccessor2 = getOwnerValueAccessor(scope);\n const ownerMark = ownerScope[ownerValueAccessor2 + \"#\" /* MARK */];\n const ownerHasRun = ownerMark === void 0 ? !ownerScope.___client : ownerMark === 0;\n scope[markAccessor] = (currentMark = ownerHasRun ? 1 : 2) - 1;\n clean = void 0;\n } else {\n currentMark = scope[markAccessor]--;\n clean = scope[cleanAccessor] &&= clean;\n }\n }\n if (currentMark === 1) {\n if (clean) {\n valueWithIntersection?.(scope, 0, clean);\n } else {\n scope[cleanAccessor] = false;\n ownerScope ??= getOwnerScope(scope);\n ownerValueAccessor2 ??= getOwnerValueAccessor(scope);\n fn?.(scope, ownerScope[ownerValueAccessor2]);\n }\n intersection2?.(scope, clean);\n }\n };\n}\nfunction dynamicClosure(ownerValueAccessor, fn, _getOwnerScope, intersection2, valueWithIntersection) {\n const getOwnerScope = _getOwnerScope || defaultGetOwnerScope;\n const getOwnerValueAccessor = typeof ownerValueAccessor === \"function\" ? ownerValueAccessor : () => ownerValueAccessor;\n const signalFn = closure(getOwnerValueAccessor, fn, getOwnerScope, intersection2, valueWithIntersection);\n return Object.assign(signalFn, {\n ___subscribe(scope) {\n const ownerScope = getOwnerScope(scope);\n const providerSubscriptionsAccessor = getOwnerValueAccessor(scope) + \"*\" /* SUBSCRIBERS */;\n ownerScope[providerSubscriptionsAccessor] ??= /* @__PURE__ */ new Set();\n ownerScope[providerSubscriptionsAccessor].add(bindFunction(scope, signalFn));\n },\n ___unsubscribe(scope) {\n const ownerScope = getOwnerScope(scope);\n const providerSubscriptionsAccessor = getOwnerValueAccessor(scope) + \"*\" /* SUBSCRIBERS */;\n ownerScope[providerSubscriptionsAccessor]?.delete(bindFunction(scope, signalFn));\n }\n });\n}\nfunction contextClosure(valueAccessor, contextKey, fn, intersection2, valueWithIntersection) {\n return dynamicClosure((scope) => scope.___context[contextKey][1], value(valueAccessor, fn), (scope) => scope.___context[contextKey][0], intersection2, valueWithIntersection);\n}\nfunction childClosures(closureSignals, childAccessor) {\n const signal = (scope, clean) => {\n const childScope = scope[childAccessor];\n for (const closureSignal of closureSignals) {\n closureSignal(childScope, clean);\n }\n };\n return Object.assign(signal, {\n ___subscribe(scope) {\n const childScope = scope[childAccessor];\n for (const closureSignal of closureSignals) {\n closureSignal.___subscribe?.(childScope);\n }\n },\n ___unsubscribe(scope) {\n const childScope = scope[childAccessor];\n for (const closureSignal of closureSignals) {\n closureSignal.___unsubscribe?.(childScope);\n }\n }\n });\n}\nfunction dynamicSubscribers(valueAccessor) {\n const subscribersAccessor = valueAccessor + \"*\" /* SUBSCRIBERS */;\n return (scope, clean) => {\n const subscribers = scope[subscribersAccessor];\n if (subscribers) {\n for (const subscriber of subscribers) {\n subscriber(clean);\n }\n }\n };\n}\nfunction setTagVar(scope, childAccessor, tagVarSignal2) {\n scope[childAccessor][\"/\" /* TAG_VARIABLE */] = bindFunction(scope, tagVarSignal2);\n}\nvar tagVarSignal = (scope, value2, clean) => scope[\"/\" /* TAG_VARIABLE */]?.(value2, clean);\nvar renderBodyClosures = (renderBody, childScope, clean) => {\n const signals = renderBody?.___closureSignals;\n if (signals) {\n for (const signal of signals) {\n signal(childScope, clean);\n }\n }\n};\nvar tagId = 0;\nfunction nextTagId() {\n return \"c\" + tagId++;\n}\nfunction inChild(childAccessor, signal) {\n return (scope, _, clean) => {\n signal(scope[childAccessor], _, clean);\n };\n}\nfunction intersections(signals) {\n return (scope, clean) => {\n for (const signal of signals) {\n signal(scope, clean);\n }\n };\n}\nfunction values(signals) {\n return (scope, _, clean) => {\n for (const signal of signals) {\n signal(scope, _, clean);\n }\n };\n}\n\n// src/dom/control-flow.ts\nfunction conditional(nodeAccessor, dynamicTagAttrs2, intersection2, valueWithIntersection) {\n const rendererAccessor = nodeAccessor + \"(\" /* COND_RENDERER */;\n const childScopeAccessor = nodeAccessor + \"!\" /* COND_SCOPE */;\n return (scope, newRenderer, clean) => {\n newRenderer ||= void 0;\n let currentRenderer = scope[rendererAccessor];\n if (!clean && !(clean = currentRenderer === newRenderer)) {\n currentRenderer = scope[rendererAccessor] = newRenderer;\n setConditionalRenderer(scope, nodeAccessor, newRenderer);\n dynamicTagAttrs2?.(scope);\n } else {\n valueWithIntersection?.(scope, 0, clean);\n }\n intersection2?.(scope, clean);\n renderBodyClosures(currentRenderer, scope[childScopeAccessor], clean);\n };\n}\nfunction inConditionalScope(signal, nodeAccessor) {\n const scopeAccessor = nodeAccessor + \"!\" /* COND_SCOPE */;\n return (scope, clean) => {\n const conditionalScope = scope[scopeAccessor];\n if (conditionalScope) {\n signal(conditionalScope, clean);\n }\n };\n}\nfunction setConditionalRenderer(scope, nodeAccessor, newRenderer) {\n let newScope;\n let prevScope = scope[nodeAccessor + \"!\" /* COND_SCOPE */];\n const newFragment = newRenderer?.___fragment ?? defaultFragment;\n const prevFragment = prevScope?.___renderer?.___fragment ?? defaultFragment;\n if (newRenderer) {\n newScope = scope[nodeAccessor + \"!\" /* COND_SCOPE */] = createScopeWithRenderer(newRenderer, scope[nodeAccessor + \"^\" /* COND_CONTEXT */] ||= scope.___context, scope);\n prevScope = prevScope || getEmptyScope(scope[nodeAccessor]);\n } else {\n newScope = getEmptyScope(scope[nodeAccessor]);\n scope[nodeAccessor + \"!\" /* COND_SCOPE */] = void 0;\n }\n newFragment.___insertBefore(newScope, prevFragment.___getParentNode(prevScope), prevFragment.___getFirstNode(prevScope));\n prevFragment.___remove(destroyScope(prevScope));\n}\nfunction conditionalOnlyChild(nodeAccessor, action) {\n const rendererAccessor = nodeAccessor + \"(\" /* COND_RENDERER */;\n const childScopeAccessor = nodeAccessor + \"!\" /* COND_SCOPE */;\n return (scope, newRenderer, clean) => {\n let currentRenderer = scope[rendererAccessor];\n if (!clean && currentRenderer !== newRenderer) {\n currentRenderer = scope[rendererAccessor] = newRenderer;\n setConditionalRendererOnlyChild(scope, nodeAccessor, newRenderer);\n }\n renderBodyClosures(currentRenderer, scope[childScopeAccessor], clean);\n action?.(scope, currentRenderer, clean);\n };\n}\nfunction setConditionalRendererOnlyChild(scope, nodeAccessor, newRenderer) {\n const prevScope = scope[nodeAccessor + \"!\" /* COND_SCOPE */];\n const referenceNode = scope[nodeAccessor];\n referenceNode.textContent = \"\";\n if (newRenderer) {\n const newScope = scope[nodeAccessor + \"!\" /* COND_SCOPE */] = createScopeWithRenderer(newRenderer, scope[nodeAccessor + \"^\" /* COND_CONTEXT */] ||= scope.___context, scope);\n (newRenderer.___fragment ?? defaultFragment).___insertBefore(newScope, referenceNode, null);\n }\n prevScope && destroyScope(prevScope);\n}\nvar emptyMarkerMap = /* @__PURE__ */ (() => (/* @__PURE__ */ new Map()).set(Symbol(\"empty\"), getEmptyScope()))();\nvar emptyMarkerArray = [/* @__PURE__ */ getEmptyScope()];\nvar emptyMap = /* @__PURE__ */ new Map();\nvar emptyArray = [];\nfunction loop(nodeAccessor, renderer, params) {\n const loopScopeAccessor = nodeAccessor + \"!\" /* LOOP_SCOPE_ARRAY */;\n const closureSignals = renderer.___closureSignals;\n return (scope, value2, clean) => {\n if (clean) {\n for (const childScope of scope[loopScopeAccessor]) {\n params?.(childScope, null, clean);\n for (const signal of closureSignals) {\n signal(childScope, clean);\n }\n }\n } else {\n setLoopOf(scope, nodeAccessor, value2[0], renderer, value2[1], params, closureSignals);\n }\n };\n}\nfunction inLoopScope(signal, loopNodeAccessor) {\n const loopScopeAccessor = loopNodeAccessor + \"!\" /* LOOP_SCOPE_ARRAY */;\n return (scope, clean) => {\n const loopScopes = scope[loopScopeAccessor] ?? [];\n for (const scope2 of loopScopes) {\n signal(scope2, clean);\n }\n };\n}\nfunction setLoopOf(scope, nodeAccessor, newValues, renderer, keyFn, params, closureSignals) {\n let newMap;\n let newArray;\n const len = newValues.length;\n const referenceNode = scope[nodeAccessor];\n const referenceIsMarker = referenceNode.nodeType === 8 || referenceNode.nodeType === 3;\n const oldMap = scope[nodeAccessor + \"(\" /* LOOP_SCOPE_MAP */] || (referenceIsMarker ? emptyMarkerMap : emptyMap);\n const oldArray = scope[nodeAccessor + \"!\" /* LOOP_SCOPE_ARRAY */] || Array.from(oldMap.values());\n let afterReference;\n let parentNode;\n let needsReconciliation = true;\n if (len > 0) {\n newMap = /* @__PURE__ */ new Map();\n newArray = [];\n for (let index = 0; index < len; index++) {\n const item = newValues[index];\n const key = keyFn ? keyFn(item) : index;\n let childScope = oldMap.get(key);\n const isNew = !childScope;\n if (!childScope) {\n childScope = createScopeWithRenderer(renderer, scope[nodeAccessor + \"^\" /* LOOP_CONTEXT */] ||= scope.___context, scope);\n } else {\n }\n if (params) {\n params(childScope, [item, index, newValues]);\n }\n if (closureSignals) {\n for (const signal of closureSignals) {\n signal(childScope, isNew);\n }\n }\n newMap.set(key, childScope);\n newArray.push(childScope);\n }\n } else {\n if (referenceIsMarker) {\n newMap = emptyMarkerMap;\n newArray = emptyMarkerArray;\n getEmptyScope(referenceNode);\n } else {\n if (renderer.___hasUserEffects) {\n for (let i = 0; i < oldArray.length; i++) {\n destroyScope(oldArray[i]);\n }\n }\n referenceNode.textContent = \"\";\n newMap = emptyMap;\n newArray = emptyArray;\n needsReconciliation = false;\n }\n }\n if (needsReconciliation) {\n if (referenceIsMarker) {\n if (oldMap === emptyMarkerMap) {\n getEmptyScope(referenceNode);\n }\n const oldLastChild = oldArray[oldArray.length - 1];\n const fragment = renderer.___fragment ?? defaultFragment;\n afterReference = fragment.___getAfterNode(oldLastChild);\n parentNode = fragment.___getParentNode(oldLastChild);\n } else {\n afterReference = null;\n parentNode = referenceNode;\n }\n reconcile(parentNode, oldArray, newArray, afterReference, renderer.___fragment);\n }\n scope[nodeAccessor + \"(\" /* LOOP_SCOPE_MAP */] = newMap;\n scope[nodeAccessor + \"!\" /* LOOP_SCOPE_ARRAY */] = newArray;\n}\nfunction computeLoopToFrom(to, from = 0, step = 1) {\n const range = [];\n for (let _steps = (to - from) / step, i = 0; i <= _steps; i++) {\n range.push(from + i * step);\n }\n return [range, keyFromTo];\n}\nfunction keyFromTo(item) {\n return item;\n}\nfunction computeLoopIn(object) {\n return [Object.entries(object), keyIn];\n}\nfunction keyIn(item) {\n return item[0];\n}\n\n// src/dom/event.ts\nvar delegationRoots = /* @__PURE__ */ new WeakMap();\nvar eventOpts = {\n capture: true\n};\nfunction on(element, type, handler) {\n const delegationRoot = element.getRootNode();\n let delegationEvents = delegationRoots.get(delegationRoot);\n if (!delegationEvents) {\n delegationRoots.set(delegationRoot, delegationEvents = /* @__PURE__ */ new Map());\n }\n let delegationHandlers = delegationEvents.get(type);\n if (!delegationHandlers) {\n delegationEvents.set(type, delegationHandlers = /* @__PURE__ */ new WeakMap());\n delegationRoot.addEventListener(type, handleDelegated, eventOpts);\n }\n delegationHandlers.set(element, handler);\n}\nfunction handleDelegated(ev) {\n let target = ev.target;\n if (target) {\n const delegationRoot = target.getRootNode();\n const delegationEvents = delegationRoots.get(delegationRoot);\n const delegationHandlers = delegationEvents.get(ev.type);\n let handler = delegationHandlers.get(target);\n if (ev.bubbles) {\n while (!handler && !ev.cancelBubble && (target = target.parentElement)) {\n handler = delegationHandlers.get(target);\n }\n }\n if (handler) {\n handler(ev, target);\n }\n }\n}\nexport {\n attr,\n attrs,\n bindFunction,\n bindRenderer,\n childClosures,\n classAttr,\n closure,\n computeLoopIn,\n computeLoopToFrom,\n conditional,\n conditionalOnlyChild,\n contextClosure,\n createRenderFn,\n createRenderer,\n data,\n dynamicClosure,\n dynamicFragment,\n dynamicSubscribers,\n dynamicTagAttrs,\n getInContext,\n html,\n inChild,\n inConditionalScope,\n inLoopScope,\n init,\n initContextProvider,\n intersection,\n intersections,\n lifecycle,\n loop,\n nextTagId,\n on,\n popContext,\n props,\n pushContext,\n queueEffect,\n queueSource,\n register,\n resumeSubscription,\n run,\n setTagVar,\n staticNodesFragment,\n styleAttr,\n tagVarSignal,\n userEffect,\n value,\n values,\n write\n};\n//# sourceMappingURL=index.esm.js.map\n","import fs from \"memfs\";\nimport path from \"path\";\nimport markoModules from \"@marko/compiler/modules\";\n\nconst internalModuleLookup = (global.__INTERNAL_MODULES__ = {});\n\ninternalModuleLookup.events = () => require(\"events-light\");\ninternalModuleLookup.marked = () => require(\"marked\");\ninternalModuleLookup.path = () => require(\"path\");\ninternalModuleLookup.url = () => require(\"url\");\ninternalModuleLookup[\"@marko/runtime-fluurt/dist/debug/dom\"] = () => require(\"../../../browser-shims/v6/runtime\");\n\n[\n require.context(\"@marko/translator-default/dist\", true, /\\.(js(on)?)$/),\n require.context(\"@marko/build/dist/components\", true, /\\.(js(on)?|marko)$/),\n require.context(\n \"../../../node_modules/@marko/tags-api-preview/\",\n true,\n /\\.(mjs|json|marko)$/\n ),\n ...(process.env.NODE_ENV === \"production\"\n ? [\n require.context(\"marko/dist/core-tags\", true, /\\.(js(on)?)$/),\n require.context(\"marko/dist/runtime\", true, /\\.(js(on)?)$/),\n ]\n : [\n require.context(\"marko/src/core-tags\", true, /\\.(js(on)?)$/),\n require.context(\"marko/src/runtime\", true, /\\.(js(on)?)$/),\n ]),\n].forEach((req) => {\n req.keys().forEach((key) => {\n const file = path.resolve(req.resolve(key).replace(/^[./]+\\/node_modules\\//, \"/node_modules/\"));\n const dir = path.dirname(file);\n internalModuleLookup[file] = () => {\n window.__dirname = dir;\n window.__filename = file;\n return req(key);\n };\n fs.mkdirSync(dir, { recursive: true });\n fs.writeFileSync(\n file,\n path.extname(file) === \".json\" ? JSON.stringify(req(key)) : \"\"\n );\n });\n});\n\nmarkoModules.require = (request) => {\n const resolved = path.resolve(request);\n const getInternalModule =\n internalModuleLookup[request] || internalModuleLookup[resolved];\n\n if (getInternalModule) {\n return getInternalModule();\n }\n\n let code;\n\n try {\n code = fs.readFileSync(resolved, \"utf-8\");\n } catch {\n return __webpack_require__(request);\n }\n\n const module = { exports: {} };\n new Function(\"exports\", \"require\", \"module\", \"__filename\", \"__dirname\", code)(\n module.exports,\n markoModules.require,\n module,\n resolved,\n path.dirname(resolved)\n );\n return module.exports;\n};\n\nexport const internalModules = Object.keys(internalModuleLookup);\nexport const internalModuleGlobals = internalModules.reduce((result, id) => {\n result[id] = `__INTERNAL_MODULES__[${JSON.stringify(id)}]()`;\n return result;\n}, {});\n","import fs from \"memfs\";\nimport path from \"path\";\nimport Module from \"module\";\nimport resolveFrom from \"resolve-from\";\n\nexport default (isBrowser) => {\n return {\n name: \"memfs\",\n resolveId(id, importer) {\n const wasBrowser = Module._resolveExportsOptions.browser;\n try {\n Module._resolveExportsOptions.browser = isBrowser;\n return path.resolve(resolveFrom(path.dirname(importer || \"/\"), id));\n } catch {\n this.error(\n `Unable to resolve \"${id}\"${importer ? ` from \"${importer}\"` : \"\"}.`\n );\n } finally {\n Module._resolveExportsOptions.browser = wasBrowser;\n }\n },\n load(id) {\n if (fs.existsSync(id)) {\n return fs.readFileSync(id, \"utf-8\");\n }\n\n return null;\n }\n };\n};\n","import fs from \"memfs\";\nimport path from \"path\";\nimport MagicString from \"magic-string\";\nimport { transform } from \"@babel/core\";\nimport ConcatMap from \"concat-with-sourcemaps\";\nimport commonjsPlugin from \"babel-plugin-transform-commonjs\";\nimport definePlugin from \"babel-plugin-transform-define\";\nimport * as defaultTranslator from \"@marko/translator-default\";\nimport markoPlugin from \"@marko/compiler/dist/babel-plugin\";\nimport * as taglib from \"@marko/compiler/dist/taglib\";\n\ndefaultTranslator.taglibs.push([\n require.resolve(\"@marko/tags-api-preview/marko.json\"),\n require(\"@marko/tags-api-preview/marko.json\")\n]);\n\ntaglib.register(\n require.resolve(\"@marko/build/dist/components/marko.json\"),\n require(\"@marko/build/dist/components/marko.json\")\n);\n\nexport default ({ output, optimize, translator = defaultTranslator }) => {\n let cssContent;\n let buildCache;\n return {\n name: \"babel\",\n buildStart(config) {\n buildCache = new Map();\n cssContent = config.cssContent;\n },\n buildEnd() {\n buildCache = undefined;\n taglib.clearCaches();\n },\n transform(source, id) {\n const ext = path.extname(id);\n const plugins = [\n [\n definePlugin,\n {\n __filename: id,\n __dirname: path.dirname(id)\n }\n ]\n ];\n\n if (ext === \".marko\") {\n plugins.push([markoPlugin, { output, optimize, translator, fileSystem: fs, cache: buildCache || new Map() }]);\n } else if (ext === \".js\") {\n plugins.push(commonjsPlugin);\n } else {\n return null;\n }\n\n let { code, map, metadata } = transform(source, {\n configFile: false,\n sourceMaps: true,\n babelrc: false,\n compact: false,\n sourceFileName: id,\n filename: id,\n plugins\n });\n\n if (metadata.marko) {\n const { deps } = metadata.marko;\n const concatMap = new ConcatMap(true, \"\", \";\");\n\n for (let dep of deps) {\n if (dep.virtualPath) {\n if (path.extname(dep.virtualPath) === \".css\") {\n cssContent &&\n cssContent.add(\n new MagicString(source, { filename: id })\n .remove(0, dep.startPos)\n .remove(dep.endPos, source.length)\n );\n } else {\n throw new Error(`Unsupported virtual dependency:\\n${dep.code}`);\n }\n } else {\n concatMap.add(null, `import ${JSON.stringify(dep)}`);\n }\n }\n\n concatMap.add(id, code, map);\n code = concatMap.content.toString(\"utf-8\");\n map = concatMap.sourceMap;\n }\n\n return { code, map };\n }\n };\n};\n","import path from \"path\";\nimport MagicString, { Bundle } from \"magic-string\";\n\nexport default () => {\n let cssContent;\n return {\n name: \"css\",\n buildStart(config) {\n config.cssContent = cssContent = new Set();\n },\n transform(source, id) {\n const ext = path.extname(id);\n\n if (ext !== \".css\") {\n return null;\n }\n\n cssContent.add(new MagicString(source, { filename: id }));\n return \"\";\n },\n generateBundle(options) {\n if (!cssContent.size) {\n return;\n }\n\n const bundle = new Bundle();\n\n for (const content of cssContent) {\n bundle.addSource(content);\n }\n\n // Strips out css @imports (since they need to be before everything else to load)\n // We replace the existing import with whitespace to preserve source map positions.\n let imports = \"\";\n let bundleString = bundle.toString().replace(/@import[^;]+(?:;|$)/g, m => {\n imports += `${m}\\n`;\n return m.replace(/\\S/g, \" \");\n });\n\n bundleString = `${imports}${bundleString}`;\n\n this.emitFile({\n type: \"asset\",\n fileName: path.basename(options.file, path.extname(options.file)) + \".css\",\n source: `${bundleString}\\n/*# sourceMappingURL=${bundle\n .generateMap()\n .toUrl()}*/`\n });\n }\n };\n};\n","import fs from \"memfs\";\nimport { rollup } from \"rollup/dist/rollup.browser.js\";\nimport { internalModules, internalModuleGlobals } from \"./internal-modules\";\nimport memFSPlugin from \"./rollup-plugins/memfs\";\nimport babelPlugin from \"./rollup-plugins/babel\";\nimport cssPlugin from \"./rollup-plugins/css\";\n\nexport async function bundle({ entry, markoOptions }) {\n const bundle = await rollup({\n input: entry,\n external: internalModules,\n inlineDynamicImports: true,\n plugins: [memFSPlugin(markoOptions.output !== \"html\"), cssPlugin(), babelPlugin(markoOptions)],\n onwarn(warning, warn) {\n if (\n warning.code === \"MISSING_NODE_BUILTINS\" &&\n warning.modules.length === 1 &&\n warning.modules[0] === \"events\"\n ) {\n return;\n }\n\n return warn(warning);\n }\n });\n\n const result = await bundle.generate({\n name: \"_\",\n format: \"iife\",\n file: \"compiled.js\",\n sourcemap: true,\n globals: internalModuleGlobals\n });\n\n const jsOutput = result.output.find(\n output => output.fileName === \"compiled.js\"\n );\n const cssOutput = result.output.find(\n output => output.fileName === \"compiled.css\"\n );\n\n return {\n css: cssOutput ? cssOutput.source : \"\",\n js: `${jsOutput.code.slice(\n \"var _ = \".length\n )}\\n//# sourceMappingURL=${jsOutput.map.toUrl()}\\n`\n };\n}\n\nexport async function compile({ entry, markoOptions }) {\n const plugin = babelPlugin(markoOptions);\n const result = plugin.transform(fs.readFileSync(entry, \"utf-8\"), entry);\n plugin.buildEnd();\n return result.code;\n}\n","const langToScope = require(\"./lang-to-scope\");\nconst { getTokenizer, getColorMap } = require(\"./language-registry\");\nconst NEW_LINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\nmodule.exports = (lang, code) => {\n const tokenizer = getTokenizer(langToScope(lang));\n const colorMap = getColorMap();\n const lines = code.split(NEW_LINE);\n const defaultStyles = toStyle(\n colorMap,\n 0, /* Default font */\n 1, /* Default foreground color */\n 2 /* Default background color */\n );\n\n let state = tokenizer.getInitialState();\n let html = ``;\n\n for (const line of lines) {\n if (line !== \"\") {\n const tokenized = tokenizer.tokenizeEncoded(line, state);\n const { tokens } = tokenized;\n state = tokenized.endState;\n \n for (let i = 0; i < tokens.length; i += 2) {\n const startIndex = tokens[i];\n const meta = tokens[i + 1];\n const endIndex = tokens[i + 2];\n const content = line.slice(startIndex, endIndex).replace(/${content}` : content;\n }\n }\n\n html += \"\\n\";\n }\n\n html += \"
\";\n\n return html;\n};\n\nfunction metaToStyle(colorMap, meta) {\n let fontStyle = (meta & 14336) /* FONT_STYLE_MASK */ >>> 11 /* FONT_STYLE_OFFSET */;\n let foregroundColor = (meta & 8372224) /* FOREGROUND_MASK */ >>> 14 /* FOREGROUND_OFFSET */;\n let backgroundColor = (meta & 4286578688) /* BACKGROUND_MASK */ >>> 23 /* BACKGROUND_OFFSET */;\n\n if (foregroundColor === 1 /* Default foreground color */) {\n foregroundColor = 0;\n }\n\n if (backgroundColor === 2 /* Default background color */) {\n backgroundColor = 0;\n }\n\n return toStyle(colorMap, fontStyle, foregroundColor, backgroundColor);\n}\n\nfunction toStyle(colorMap, fontStyle, foregroundColor, backgroundColor) {\n let result = \"\";\n\n if (foregroundColor > 0) {\n result += `color:${colorMap[foregroundColor]};`;\n }\n\n if (backgroundColor > 0) {\n result += `background-color:${colorMap[backgroundColor]};`;\n }\n\n if (fontStyle > 0) {\n if (fontStyle & 1 /* FONT_ITALIC */) {\n result += \"font-style:italic;\";\n }\n\n if (fontStyle & 2 /* FONT_BOLD */) {\n result += \"font-weight:bold;\";\n }\n\n if (fontStyle & 4 /* FONT_UNDERLINE */) {\n result += \"font-decoration:underline;\";\n }\n }\n\n if (result) {\n return result.slice(0, -1);\n }\n\n return result;\n}\n","var map = {\n\t\"./components/init-components-tag.js\": \"../../node_modules/marko/dist/core-tags/components/init-components-tag.js\",\n\t\"./components/preferred-script-location-tag.js\": \"../../node_modules/marko/dist/core-tags/components/preferred-script-location-tag.js\",\n\t\"./components/preserve-tag.js\": \"../../node_modules/marko/dist/core-tags/components/preserve-tag.js\",\n\t\"./core/__flush_here_and_after__.js\": \"../../node_modules/marko/dist/core-tags/core/__flush_here_and_after__.js\",\n\t\"./core/await/AsyncValue.js\": \"../../node_modules/marko/dist/core-tags/core/await/AsyncValue.js\",\n\t\"./core/await/client-reorder-runtime.js\": \"../../node_modules/marko/dist/core-tags/core/await/client-reorder-runtime.js\",\n\t\"./core/await/renderer.js\": \"../../node_modules/marko/dist/core-tags/core/await/renderer.js\",\n\t\"./core/await/reorderer-renderer.js\": \"../../node_modules/marko/dist/core-tags/core/await/reorderer-renderer.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"../../node_modules/marko/dist/core-tags sync recursive \\\\.(js(on)?)$\";","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = \"../../node_modules/marko/dist/runtime/components/legacy/dependencies sync recursive\";\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./RenderResult.js\": \"../../node_modules/marko/dist/runtime/RenderResult.js\",\n\t\"./components/Component.js\": \"../../node_modules/marko/dist/runtime/components/Component.js\",\n\t\"./components/ComponentDef.js\": \"../../node_modules/marko/dist/runtime/components/ComponentDef.js\",\n\t\"./components/ComponentsContext.js\": \"../../node_modules/marko/dist/runtime/components/ComponentsContext.js\",\n\t\"./components/GlobalComponentsContext.js\": \"../../node_modules/marko/dist/runtime/components/GlobalComponentsContext.js\",\n\t\"./components/KeySequence.js\": \"../../node_modules/marko/dist/runtime/components/KeySequence.js\",\n\t\"./components/ServerComponent.js\": \"../../node_modules/marko/dist/runtime/components/ServerComponent.js\",\n\t\"./components/State.js\": \"../../node_modules/marko/dist/runtime/components/State.js\",\n\t\"./components/attach-detach.js\": \"../../node_modules/marko/dist/runtime/components/attach-detach.js\",\n\t\"./components/defineComponent.js\": \"../../node_modules/marko/dist/runtime/components/defineComponent.js\",\n\t\"./components/dom-data.js\": \"../../node_modules/marko/dist/runtime/components/dom-data.js\",\n\t\"./components/event-delegation.js\": \"../../node_modules/marko/dist/runtime/components/event-delegation.js\",\n\t\"./components/index.js\": \"../../node_modules/marko/dist/runtime/components/index.js\",\n\t\"./components/legacy/browser.json\": \"../../node_modules/marko/dist/runtime/components/legacy/browser.json\",\n\t\"./components/legacy/defineComponent-legacy.js\": \"../../node_modules/marko/dist/runtime/components/legacy/defineComponent-legacy.js\",\n\t\"./components/legacy/defineRenderer-legacy.js\": \"../../node_modules/marko/dist/runtime/components/legacy/defineRenderer-legacy.js\",\n\t\"./components/legacy/defineWidget-legacy.js\": \"../../node_modules/marko/dist/runtime/components/legacy/defineWidget-legacy.js\",\n\t\"./components/legacy/dependencies/html.js\": \"../../node_modules/marko/dist/runtime/components/legacy/dependencies/html.js\",\n\t\"./components/legacy/dependencies/index.js\": \"../../node_modules/marko/dist/runtime/components/legacy/dependencies/index.js\",\n\t\"./components/legacy/dependencies/vdom.js\": \"../../node_modules/marko/dist/runtime/components/legacy/dependencies/vdom.js\",\n\t\"./components/legacy/index.js\": \"../../node_modules/marko/dist/runtime/components/legacy/index.js\",\n\t\"./components/legacy/jquery.js\": \"../../node_modules/marko/dist/runtime/components/legacy/jquery.js\",\n\t\"./components/legacy/ready.js\": \"../../node_modules/marko/dist/runtime/components/legacy/ready.js\",\n\t\"./components/legacy/renderer-legacy.js\": \"../../node_modules/marko/dist/runtime/components/legacy/renderer-legacy.js\",\n\t\"./components/registry.js\": \"../../node_modules/marko/dist/runtime/components/registry.js\",\n\t\"./components/renderer.js\": \"../../node_modules/marko/dist/runtime/components/renderer.js\",\n\t\"./components/update-manager.js\": \"../../node_modules/marko/dist/runtime/components/update-manager.js\",\n\t\"./createOut.js\": \"../../node_modules/marko/dist/runtime/createOut.js\",\n\t\"./dom-insert.js\": \"../../node_modules/marko/dist/runtime/dom-insert.js\",\n\t\"./events.js\": \"../../node_modules/marko/dist/runtime/events.js\",\n\t\"./helpers/_change-case.js\": \"../../node_modules/marko/dist/runtime/helpers/_change-case.js\",\n\t\"./helpers/assign.js\": \"../../node_modules/marko/dist/runtime/helpers/assign.js\",\n\t\"./helpers/class-value.js\": \"../../node_modules/marko/dist/runtime/helpers/class-value.js\",\n\t\"./helpers/dynamic-tag.js\": \"../../node_modules/marko/dist/runtime/helpers/dynamic-tag.js\",\n\t\"./helpers/load-nested-tag.js\": \"../../node_modules/marko/dist/runtime/helpers/load-nested-tag.js\",\n\t\"./helpers/merge.js\": \"../../node_modules/marko/dist/runtime/helpers/merge.js\",\n\t\"./helpers/render-tag.js\": \"../../node_modules/marko/dist/runtime/helpers/render-tag.js\",\n\t\"./helpers/repeatable.js\": \"../../node_modules/marko/dist/runtime/helpers/repeatable.js\",\n\t\"./helpers/self-iterator.js\": \"../../node_modules/marko/dist/runtime/helpers/self-iterator.js\",\n\t\"./helpers/style-value.js\": \"../../node_modules/marko/dist/runtime/helpers/style-value.js\",\n\t\"./helpers/to-string.js\": \"../../node_modules/marko/dist/runtime/helpers/to-string.js\",\n\t\"./html/AsyncStream.js\": \"../../node_modules/marko/dist/runtime/html/AsyncStream.js\",\n\t\"./html/BufferedWriter.js\": \"../../node_modules/marko/dist/runtime/html/BufferedWriter.js\",\n\t\"./html/StringWriter.js\": \"../../node_modules/marko/dist/runtime/html/StringWriter.js\",\n\t\"./html/helpers/_dynamic-attr.js\": \"../../node_modules/marko/dist/runtime/html/helpers/_dynamic-attr.js\",\n\t\"./html/helpers/attr.js\": \"../../node_modules/marko/dist/runtime/html/helpers/attr.js\",\n\t\"./html/helpers/attrs.js\": \"../../node_modules/marko/dist/runtime/html/helpers/attrs.js\",\n\t\"./html/helpers/class-attr.js\": \"../../node_modules/marko/dist/runtime/html/helpers/class-attr.js\",\n\t\"./html/helpers/data-marko.js\": \"../../node_modules/marko/dist/runtime/html/helpers/data-marko.js\",\n\t\"./html/helpers/escape-quotes.js\": \"../../node_modules/marko/dist/runtime/html/helpers/escape-quotes.js\",\n\t\"./html/helpers/escape-script-placeholder.js\": \"../../node_modules/marko/dist/runtime/html/helpers/escape-script-placeholder.js\",\n\t\"./html/helpers/escape-style-placeholder.js\": \"../../node_modules/marko/dist/runtime/html/helpers/escape-style-placeholder.js\",\n\t\"./html/helpers/escape-xml.js\": \"../../node_modules/marko/dist/runtime/html/helpers/escape-xml.js\",\n\t\"./html/helpers/merge-attrs.js\": \"../../node_modules/marko/dist/runtime/html/helpers/merge-attrs.js\",\n\t\"./html/helpers/props-script.js\": \"../../node_modules/marko/dist/runtime/html/helpers/props-script.js\",\n\t\"./html/helpers/style-attr.js\": \"../../node_modules/marko/dist/runtime/html/helpers/style-attr.js\",\n\t\"./html/hot-reload.js\": \"../../node_modules/marko/dist/runtime/html/hot-reload.js\",\n\t\"./html/index.js\": \"../../node_modules/marko/dist/runtime/html/index.js\",\n\t\"./queueMicrotask.js\": \"../../node_modules/marko/dist/runtime/queueMicrotask.js\",\n\t\"./renderable.js\": \"../../node_modules/marko/dist/runtime/renderable.js\",\n\t\"./vdom/AsyncVDOMBuilder.js\": \"../../node_modules/marko/dist/runtime/vdom/AsyncVDOMBuilder.js\",\n\t\"./vdom/VComponent.js\": \"../../node_modules/marko/dist/runtime/vdom/VComponent.js\",\n\t\"./vdom/VDocumentFragment.js\": \"../../node_modules/marko/dist/runtime/vdom/VDocumentFragment.js\",\n\t\"./vdom/VElement.js\": \"../../node_modules/marko/dist/runtime/vdom/VElement.js\",\n\t\"./vdom/VFragment.js\": \"../../node_modules/marko/dist/runtime/vdom/VFragment.js\",\n\t\"./vdom/VNode.js\": \"../../node_modules/marko/dist/runtime/vdom/VNode.js\",\n\t\"./vdom/VText.js\": \"../../node_modules/marko/dist/runtime/vdom/VText.js\",\n\t\"./vdom/helpers/attrs.js\": \"../../node_modules/marko/dist/runtime/vdom/helpers/attrs.js\",\n\t\"./vdom/helpers/const.js\": \"../../node_modules/marko/dist/runtime/vdom/helpers/const.js\",\n\t\"./vdom/helpers/merge-attrs.js\": \"../../node_modules/marko/dist/runtime/vdom/helpers/merge-attrs.js\",\n\t\"./vdom/helpers/v-element.js\": \"../../node_modules/marko/dist/runtime/vdom/helpers/v-element.js\",\n\t\"./vdom/helpers/v-text.js\": \"../../node_modules/marko/dist/runtime/vdom/helpers/v-text.js\",\n\t\"./vdom/hot-reload.js\": \"../../node_modules/marko/dist/runtime/vdom/hot-reload.js\",\n\t\"./vdom/index.js\": \"../../node_modules/marko/dist/runtime/vdom/index.js\",\n\t\"./vdom/morphdom/fragment.js\": \"../../node_modules/marko/dist/runtime/vdom/morphdom/fragment.js\",\n\t\"./vdom/morphdom/helpers.js\": \"../../node_modules/marko/dist/runtime/vdom/morphdom/helpers.js\",\n\t\"./vdom/morphdom/index.js\": \"../../node_modules/marko/dist/runtime/vdom/morphdom/index.js\",\n\t\"./vdom/morphdom/specialElHandlers.js\": \"../../node_modules/marko/dist/runtime/vdom/morphdom/specialElHandlers.js\",\n\t\"./vdom/parse-html.js\": \"../../node_modules/marko/dist/runtime/vdom/parse-html.js\",\n\t\"./vdom/preserve-attrs.js\": \"../../node_modules/marko/dist/runtime/vdom/preserve-attrs.js\",\n\t\"./vdom/vdom.js\": \"../../node_modules/marko/dist/runtime/vdom/vdom.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"../../node_modules/marko/dist/runtime sync recursive \\\\.(js(on)?)$\";"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","types","path","require","resolveExports","Module","_nodeModulePaths","dir","paths","parentDir","dirname","push","join","_resolveFilename","target","fromModule","sync","basedir","filename","extensions","pathFilter","pkg","_","relativePath","test","legacy","_resolveExportsOptions","browser","staticNodesFragment","___insertBefore","scope","parent","nextSibling","insertBefore","___startNode","___remove","remove","___getParentNode","this","___getFirstNode","parentNode","___getAfterNode","___getLastNode","___endNode","current","stop","next","dynamicFragment","getFirstNode","getLastNode","currentScope","nodeOrAccessor","last","scopeOrScopes","emptyMarkerArray","Array","isArray","length","isScheduled","defaultFragment","port2","port1","port22","MessageChannel","onmessage","run","flushAndWaitFrame","requestAnimationFrame","triggerMacroTask","postMessage","currentBatch","currentEffects","queueSource","signal","value2","queueMicrotask","queueEffect","fn","i","runEffects","createScope","context","___context","emptyScope","getEmptyScope","marker","write","localIndex","binder","bind","___bound","Map","bound","get","set","bindRenderer","ownerScope","renderer","___owner","bindFunction","boundScope","args","call","destroyScope","_destroyScope","___cleanup","delete","closureSignals","___renderer","___closureSignals","___unsubscribe","cleanup","instance","onDestroy","Set","add","parentScope","has","WRONG_POS","Context","usesContext","pushContext","key","create","popContext","getPrototypeOf","getInContext","prototype","hasOwnProperty","setContext","v","stringifyClassObject","name","isVoid","NON_DIMENSIONAL","stringifyStyleObject","toDelimitedString","val","delimiter","stringify","result","curDelimiter","part","attr","element","normalizedValue","normalizeAttrValue","removeAttribute","setAttribute","classAttr","classValue","styleAttr","styleValue","data","node","normalizeString","attrs","elementAccessor","nextAttrs","prevAttrs","parser","document","createElement","html","index","firstChild","lastChild","afterReference","innerHTML","newContent","content","props","nodeIndex","nextProps","prevProps","userEffect","nextCleanup","lifecycle","thisObj","storedThis","assign","onUpdate","onMount","walker","createTreeWalker","trimWalkString","walkString","end","charCodeAt","slice","walk","startNode","walkCodes","currentNode","walkInternal","documentElement","currentWalkIndex","storedMultiplier","currentMultiplier","currentScopeIndex","nextNode","getDebugKey","newNode","createTextNode","replaceChild","nodeType","tagName","toLowerCase","registeredObjects","doc2","register","obj","init","runtimeId","runtimeLength","resumeVar","initialHydration","window","walker2","currentScopeId","scopeLookup","getScope","stack","fakeArray","resume","registryId","___template","defineProperty","scopesFn","calls","readyState","scopes","scopeIdAsString","scopeId","parseInt","storedScope","nodeValue","startsWith","token","data2","indexOf","previousSibling","currScope","currParent","prepend","pop","childScopeIds","JSON","parse","childScope","resumeSubscription","ownerValueAccessor","getOwnerScope","ownerMarkAccessor","ownerSubscribersAccessor","subscriberScope","boundSignal","createScopeWithRenderer","newScope","initRenderer","___subscribe","initContextProvider","scopeAccessor","valueAccessor","contextKey","___fragment","dom","___clone","___walks","___setup","___dynamicStartNodeOffset","___dynamicEndNodeOffset","dynamicTagAttrs","nodeAccessor","renderBody","getAttrs","clean","___attrs","setConditionalRendererOnlyChild","attributes","createRenderFn","template","walks","setup","attrs2","templateId","dynamicStartNodeOffset","dynamicEndNodeOffset","createRenderer","input","replaceChildren","update","newInput","destroy","hasUserEffects","fragment","_clone","___hasUserEffects","___sourceNode","sourceNode","ensureFragment","parser2","doc3","createDocumentFragment","appendChild","cloneNode","value","render","intersection2","valueWithIntersection","markAccessor","nextValue","creation","currentMark","accessorId","intersection","count","cleanAccessor","defaultGetOwnerScope","closure","_getOwnerScope","getOwnerValueAccessor","ownerValueAccessor2","ownerMark","ownerHasRun","___client","dynamicClosure","signalFn","providerSubscriptionsAccessor","contextClosure","childClosures","childAccessor","closureSignal","dynamicSubscribers","subscribersAccessor","subscribers","subscriber","setTagVar","tagVarSignal2","tagVarSignal","renderBodyClosures","signals","tagId","nextTagId","inChild","intersections","values","conditional","dynamicTagAttrs2","rendererAccessor","childScopeAccessor","newRenderer","currentRenderer","prevScope","newFragment","prevFragment","setConditionalRenderer","inConditionalScope","conditionalScope","conditionalOnlyChild","action","referenceNode","textContent","emptyMarkerMap","Symbol","emptyMap","emptyArray","loop","params","loopScopeAccessor","newValues","keyFn","newMap","newArray","len","referenceIsMarker","oldMap","oldArray","from","needsReconciliation","item","isNew","oldLastChild","oldScopes","newScopes","j","k","oldScope","oldStart","newStart","oldEnd","newEnd","oldStartScope","newStartScope","oldEndScope","newEndScope","outer","oldLength","newLength","aNullable","sources","pos","synced","keyIndex","seq","a","p","u","il","c","longestIncreasingSubsequence","reconcile","setLoopOf","inLoopScope","loopNodeAccessor","loopScopes","scope2","computeLoopToFrom","to","step","range","_steps","keyFromTo","computeLoopIn","object","entries","keyIn","delegationRoots","WeakMap","eventOpts","capture","on","type","handler","delegationRoot","getRootNode","delegationEvents","delegationHandlers","addEventListener","handleDelegated","ev","bubbles","cancelBubble","parentElement","internalModuleLookup","global","__INTERNAL_MODULES__","events","marked","url","forEach","file","replace","__dirname","__filename","fs","recursive","markoModules","request","resolved","getInternalModule","Function","internalModules","internalModuleGlobals","reduce","isBrowser","resolveId","importer","wasBrowser","resolveFrom","error","load","defaultTranslator","taglib","output","optimize","translator","cssContent","buildCache","buildStart","config","buildEnd","undefined","clearCaches","transform","source","ext","plugins","definePlugin","markoPlugin","fileSystem","cache","commonjsPlugin","metadata","configFile","sourceMaps","babelrc","compact","sourceFileName","marko","deps","concatMap","ConcatMap","dep","virtualPath","MagicString","startPos","endPos","toString","sourceMap","generateBundle","options","size","bundle","Bundle","addSource","imports","bundleString","m","emitFile","fileName","generateMap","toUrl","async","entry","markoOptions","rollup","external","inlineDynamicImports","memFSPlugin","cssPlugin","babelPlugin","onwarn","warning","warn","modules","generate","format","sourcemap","globals","jsOutput","find","cssOutput","css","js","compile","plugin","langToScope","getTokenizer","getColorMap","NEW_LINE","metaToStyle","colorMap","meta","foregroundColor","backgroundColor","toStyle","fontStyle","lang","tokenizer","lines","split","defaultStyles","state","getInitialState","line","tokenized","tokenizeEncoded","tokens","endState","startIndex","endIndex","style","webpackEmptyContext"],"sourceRoot":""}
\ No newline at end of file
diff --git a/assets/551.8e6e0c6b.js.map.br b/assets/551.8e6e0c6b.js.map.br
deleted file mode 100644
index 3629ed8d..00000000
Binary files a/assets/551.8e6e0c6b.js.map.br and /dev/null differ
diff --git a/assets/551.8e6e0c6b.js.map.gz b/assets/551.8e6e0c6b.js.map.gz
deleted file mode 100644
index 2a215628..00000000
Binary files a/assets/551.8e6e0c6b.js.map.gz and /dev/null differ
diff --git a/assets/664.6a733e1a.js b/assets/664.6a733e1a.js
new file mode 100644
index 00000000..e86d51e0
--- /dev/null
+++ b/assets/664.6a733e1a.js
@@ -0,0 +1,2 @@
+(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[664],{"../components/repl/index.marko":(e,t,r)=>{"use strict";r.d(t,{Z:()=>oe});var n=r("../../node_modules/marko/dist/runtime/vdom/index.js"),s=r("../../node_modules/@marko/tags-api-preview/dist/util/replace-assignments/index.mjs"),o=r("../../node_modules/@marko/tags-api-preview/dist/transform/cached-values/index-browser.mjs"),a=r("../../node_modules/@marko/tags-api-preview/dist/transform/native-tag-var/index-browser.mjs"),i=r("../../node_modules/@marko/tags-api-preview/dist/components/lifecycle/index.mjs"),l=r("../../node_modules/@marko/tags-api-preview/dist/components/_instance/index.marko"),c=r("../../node_modules/marko/dist/runtime/helpers/render-tag.js"),d=r.n(c),p=r("../../node_modules/marko/dist/runtime/helpers/class-value.js"),u=r.n(p),f=r("../../node_modules/@marko/tags-api-preview/dist/chunk-5R2Z7TR6.mjs"),m=r("../../node_modules/marko/dist/runtime/components/renderer.js"),y=r.n(m),h=r("../../node_modules/marko/dist/runtime/components/registry.js"),g=r("../../node_modules/marko/dist/runtime/components/defineComponent.js"),b=r.n(g);const v="6o3N4O4f",x=(0,n.t)(v),w=x;(0,h.r)(v,(()=>x));const k={onCreate(){this.state={}}};x._=y()((function(e,t,r,n,c,p){(0,f.begin)();try{var m=n,y=c;const{selectedIndexChange:p,filesChange:f,files:h,selectedIndex:g}=e,b=f||(e=>m.setState("0",e)),v=f?h:"0"in y?y[0]:y[0]=h,x=p||(e=>m.setState("1",e)),w=p?g:"1"in y?y[1]:y[1]=g,k=v[w];t.be("div",{class:"file-tabs"},"0",n,null,1);{const e="2"in y?y[2]:y[2]=1,c=e=>m.setState("2",e);let p=0;for(const e of v||[]){let n=p++;const c=`[${n}]`;d()(l.default,{renderBody:(t,r,p,f)=>{var m=r,y=p;const h="0"in f?f[0]:f[0]=!1,g=e=>p.setState("0",e),E=k===e,S=n>0;t.be("div",{class:u()(["file-tab",{selected:E}])},"2"+c,y,null,1,{onclick:m.d("click",(function(){E?(0,s.default)(g,!0):((0,s.default)(g,!1),(0,s.default)(x,n))}),!1)}),h&&E&&S?d()(l.default,{renderBody:(t,r,l,c)=>{var d=r,p=l;const u="0"in c?c[0]:c[0]=e.name,f=(0,o.cache)((0,o.cached)(l,[u,v])||function(){const t={...e,name:u,path:e.path.replace(e.name,u)};(0,s.default)(b,[...v.slice(0,n),t,...v.slice(n+1)]),(0,s.default)(g,!1)}),m=(0,a.default)(l,"0");var y=e=>l.setState("0",e);t.e("input",{type:"text",size:u.length,value:u},"@0",p,0,0,{pa:[y&&"value"],onblur:d.d("blur",f,!1),onkeydown:d.d("keydown",(function(e){"Enter"===e.code&&f()}),!1),oninput:d.d("input",(e=>{y(e.target.value)}),!1)}),(0,i.default)(p,{onMount:(0,o.cache)((0,o.cached)(l,[u])||function(){m().focus(),m().setSelectionRange(0,u.indexOf("."))})})}},t,m,"3"+c):t.t(e.name,y),S&&(t.be("button",{class:"file-close"},"4"+c,y,null,1,{onclick:m.d("click",(function(t){window.confirm(`Delete ${e.path}?`)&&(w>=n&&(0,s.default)(x,w-1),(0,s.default)(b,[...v.slice(0,n),...v.slice(n+1)])),t.stopPropagation()}),!1)}),t.t("×",y),t.ee()),t.ee()}},t,r,"1"+c)}t.be("button",{class:"new-file"},"5",n,null,1,{onclick:r.d("click",(function(){const t={name:`Component${e}.marko`,path:`/components/Component${e}.marko`,content:""},r=v.length;(0,s.default)(b,v.concat(t)),(0,s.default)(x,r),(0,s.default)(c,e+1)}),!1)}),t.t("+",n),t.ee()}t.ee()}finally{(0,f.end)()}}),{t:v},k),x.Component=b()(k,x._);var E=r("../../node_modules/marko/dist/runtime/helpers/self-iterator.js"),S=r.n(E),C=r("../../node_modules/marko/dist/runtime/helpers/dynamic-tag.js"),T=r.n(C),D=r("../../node_modules/marko/dist/runtime/vdom/helpers/v-element.js"),I=r.n(D);const A="QAUP5peK",j=(0,n.t)(A),L=j,_=I()("div",{class:"pane-divider"},"3",null,0,1);(0,h.r)(A,(()=>j));const M={};j._=y()((function(e,t,r,n,s,o){(0,f.begin)();try{const{actions:s,body:o}=e;t.be("div",{class:"pane"},"0",n,null,1),t.be("div",{class:"pane-actions"},"1",n,null,1),T()(t,s.renderBody,null,null,null,null,r,"2"),t.ee(),t.n(_,n),t.be("div",{class:"pane-body"},"4",n,null,1),T()(t,o.renderBody,null,null,null,null,r,"5"),t.ee(),t.ee()}finally{(0,f.end)()}}),{t:A,i:!0},M),j.Component=b()(M,j._);var $=r("../../node_modules/@marko/tags-api-preview/dist/components/effect/index.mjs");const N="rRMAwOPg",R=(0,n.t)(N),F=R;(0,h.r)(N,(()=>R));const P={onCreate(){this.state={}}};R._=y()((function(e,t,r,n,s,i){(0,f.begin)();try{var l=n;const{value:s,valueChange:i,renderBody:c,class:d}=e,p=(0,a.default)(l,"0");t.be("select",{class:u()(d)},"@0",n,null,1,{onchange:r.d("change",(function(e){i(e.target.value)}),!1)}),T()(t,c,null,null,null,null,r,"0"),t.ee(),(0,$.default)(n,(0,o.cache)((0,o.cached)(l,[s,c,i])||function(){p().value=s}))}finally{(0,f.end)()}}),{t:N},P),R.Component=b()(P,R._);var O=r("../../node_modules/lz-string/libs/lz-string.js"),U=r("../../node_modules/@marko/tags-api-preview/dist/translate/native-tag-handlers/index-browser.mjs"),B=r("../../node_modules/marko/dist/runtime/vdom/helpers/attrs.js"),z=r.n(B);const q="ftG9dvL8",W=(0,n.t)(q),V=W,H=I()("span",null,"1",null,1,0).t("Open in playground ");(0,h.r)(q,(()=>W));const Z={};W._=y()((function(e,t,r,n,s,o){(0,f.begin)();try{const{files:s,...o}=e;var a={};t.be("a",z()((0,U.default)({...o,href:`/playground/#${(0,O.compressToEncodedURIComponent)(JSON.stringify(s))}`,target:"_top",class:"playground-link"},r,"a",a)),"0",n,null,4,{...a}),t.n(H,n),t.t("↗",n),t.ee()}finally{(0,f.end)()}}),{t:q,i:!0},Z),W.Component=b()(Z,W._);var K=r("../../node_modules/@marko/tags-api-preview/dist/components/return/index-browser.mjs");const Y="dL815V5K",J=(0,n.t)(Y),G=J;(0,h.r)(Y,(()=>J));const X={onCreate(){this.state={}}};J._=y()((function(e,t,r,n,a,i){(0,f.begin)();try{var l=n,c=a;const{value:t,fallback:r}=e,i="0"in c?c[0]:c[0]=window.matchMedia(t).matches,d=e=>l.setState("0",e);(0,$.default)(n,(0,o.cache)((0,o.cached)(l,[t])||function(){const e=window.matchMedia(t),r=()=>(0,s.default)(d,!!e.matches);return e.addEventListener("change",r),(0,s.default)(d,!!e.matches),()=>e.removeEventListener("change",r)})),e._return&&e._return({value:i},1)}finally{(0,f.end)()}}),{t:Y},X),J.Component=b()(X,J._);const Q="V970f081",ee=(0,n.t)(Q),te=ee;(0,h.r)(Q,(()=>ee));const re={onCreate(){this.state={}}};ee._=y()((function(e,t,r,n,i,c){(0,f.begin)();try{var p=n,m=i;const{left:c,right:f}=e,b="0"in m?m[0]:m[0]=.5,v=e=>p.setState("0",e),x="1"in m?m[1]:m[1]=!1,w=e=>p.setState("1",e);var y=(0,K.default)(p);d()(G,{value:"(max-aspect-ratio: 1/1)",_return:y},t,r,"0");const{value:k}=y(),E=(0,a.default)(p,"0");t.be("div",{class:u()(["panes",x&&"resizing"])},"@0",n,null,1);var h={};t.be("div",z()((0,U.default)({...c,style:`flex-grow:${b}`},r,"div",h)),"1",n,null,4,{...h}),T()(t,c.renderBody,null,null,null,null,r,"2"),t.ee(),t.be("div",{class:"divider"},"3",n,null,1),t.e("div",{class:"inner"},"4",n,0,1,{onmousedown:r.d("mousedown",(function(e){(0,s.default)(w,!0),e.preventDefault(),e.stopPropagation()}),!1)}),t.ee();var g={};t.be("div",z()((0,U.default)({...f,style:"flex-grow:"+(1-b)},r,"div",g)),"5",n,null,4,{...g}),T()(t,f.renderBody,null,null,null,null,r,"6"),t.ee(),t.ee(),x&&d()(l.default,{renderBody:(e,t,r,n)=>{var a=r;(0,$.default)(a,(0,o.cache)((0,o.cached)(r,[k])||function(){const e=e=>{if(e.buttons||e.which){const t=E().getBoundingClientRect(),r=k?(e.clientY-t.top)/t.height:(e.clientX-t.left)/t.width;r>0&&(0,s.default)(v,Math.min(.8,Math.max(.2,r)))}else(0,s.default)(w,!1)};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)}))}},t,r,"7")}finally{(0,f.end)()}}),{t:Q},re),ee.Component=b()(re,ee._);const ne="Y/QiYO60",se=(0,n.t)(ne),oe=se,ae=I()("option",{value:"preview"},"10",null,1,0).t("App Preview"),ie=I()("option",{value:"compiled-html"},"11",null,1,0).t("Compiled (HTML)"),le=I()("option",{value:"compiled-vdom"},"12",null,1,0).t("Compiled (DOM)");(0,h.r)(ne,(()=>se));const ce={onCreate(){this.state={}}};se._=y()((function(e,t,n,a,c,p){(0,f.begin)();try{var u=a,m=c;const{filesChange:p,getCompilerOptions:f,files:y}=e,h="0"in m?m[0]:m[0]=0,g=e=>u.setState("0",e),b="1"in m?m[1]:m[1]="preview",v=e=>u.setState("1",e),x="2"in m?m[2]:m[2]=!1,k=e=>u.setState("2",e),E=y[h];d()(te,{left:{class:"editor-container",renderBody:e=>{d()(L,{actions:{renderBody:e=>{d()(l.default,{renderBody:(e,t,r,n)=>{var a=t;d()(w,{files:y,filesChange:p,selectedIndex:h,selectedIndexChange:(0,o.cache)((0,o.cached)(r,[])||(e=>(0,s.default)(g,e)))},e,a,"3")}},e,n,"2")},[Symbol.iterator]:S()},body:{renderBody:e=>{d()(l.default,{renderBody:(e,t,n,a)=>{var c=t,u=n;const f="0"in a?a[0]:a[0]=null,m=e=>n.setState("0",e);f&&d()(l.default,{renderBody:(e,t,r,n)=>{var a=t;T()(e,f,(()=>({value:E.content,filename:E.path,valueChange:(0,o.cache)((0,o.cached)(r,[E,y,h])||function(e){const t={...E,content:e};(0,s.default)(p,[...y.slice(0,h),t,...y.slice(h+1)]),(0,s.default)(k,!0)})})),null,null,null,a,"6")}},e,c,"5"),(0,i.default)(u,{onMount:(0,o.cache)((0,o.cached)(n,[])||(async()=>{const e=await Promise.all([r.e(103),r.e(410),r.e(109),r.e(888),r.e(176)]).then(r.bind(r,"../components/repl/components/editor.marko"));await e.loading,(0,s.default)(m,e)}))})}},e,n,"4")},[Symbol.iterator]:S()}},e,n,"1")},[Symbol.iterator]:S()},right:{renderBody:e=>{d()(L,{actions:{renderBody:e=>{d()(l.default,{renderBody:(e,t,r,n)=>{var a=t,i=r;d()(F,{value:b,valueChange:(0,o.cache)((0,o.cached)(r,[])||function(e){(0,s.default)(v,e),(0,s.default)(k,!1)}),class:"preview-select",renderBody:e=>{e.n(ae,i),e.n(ie,i),e.n(le,i)}},e,a,"9"),d()(V,{files:y},e,a,"13")}},e,n,"8")},[Symbol.iterator]:S()},body:{renderBody:e=>{d()(l.default,{renderBody:(e,t,n,a)=>{var l=t,c=n;const d="0"in a?a[0]:a[0]=null,p=e=>n.setState("0",e);T()(e,d,(()=>({type:b,files:y,selectedFile:E,getCompilerOptions:f,debounce:x})),null,null,null,l,"15"),(0,i.default)(c,{onMount:(0,o.cache)((0,o.cached)(n,[])||(async()=>{(0,s.default)(p,await Promise.all([r.e(103),r.e(641),r.e(410),r.e(995),r.e(888),r.e(551),r.e(25)]).then(r.bind(r,"../components/repl/components/preview.marko")))}))})}},e,n,"14")},[Symbol.iterator]:S()}},e,n,"7")},[Symbol.iterator]:S()}},t,n,"0")}finally{(0,f.end)()}}),{t:ne},ce),se.Component=b()(ce,se._)},"./playground/components/hash-value.marko":(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r("../../node_modules/marko/dist/runtime/vdom/index.js"),s=r("../../node_modules/lz-string/libs/lz-string.js"),o=r("../../node_modules/@marko/tags-api-preview/dist/transform/cached-values/index-browser.mjs"),a=r("../../node_modules/@marko/tags-api-preview/dist/util/replace-assignments/index.mjs"),i=r("../../node_modules/@marko/tags-api-preview/dist/components/lifecycle/index.mjs"),l=r("../../node_modules/@marko/tags-api-preview/dist/chunk-5R2Z7TR6.mjs"),c=r("../../node_modules/marko/dist/runtime/components/renderer.js"),d=r.n(c),p=r("../../node_modules/marko/dist/runtime/components/registry.js"),u=r("../../node_modules/marko/dist/runtime/components/defineComponent.js"),f=r.n(u);const m="41NMzc7K",y=(0,n.t)(m),h=y;(0,p.r)(m,(()=>y));const g={onCreate(){this.state={}}};y._=d()((function(e,t,r,n,c,d){(0,l.begin)();try{var p=n,u=c;const{value:t}=e,r="0"in u?u[0]:u[0]=function(){try{return JSON.parse((0,s.decompressFromEncodedURIComponent)(window.location.hash.slice(1)))}catch(e){console.error(e)}}()||t,l=e=>p.setState("0",e);(0,i.default)(n,{onMount:(0,o.cache)((0,o.cached)(p,[])||function(){window.addEventListener("hashchange",this.handler=()=>{try{this.isUpdating?this.isUpdating=!1:(0,a.default)(l,JSON.parse((0,s.decompressFromEncodedURIComponent)(window.location.hash.slice(1))))}catch(e){console.error(e)}})}),onUpdate:(0,o.cache)((0,o.cached)(p,[r])||function(){this.isUpdating=!0,window.location.hash=(0,s.compressToEncodedURIComponent)(JSON.stringify(r))}),onDestroy:(0,o.cache)((0,o.cached)(p,[])||function(){window.removeEventListener("hashchange",this.handler)})}),e._return&&e._return({value:r,valueChange:(0,o.cache)((0,o.cached)(p,[])||(e=>(0,a.default)(l,e)))},1)}finally{(0,l.end)()}}),{t:m},g),y.Component=f()(g,y._)},"./playground/v6/index.marko?browser-entry":(e,t,r)=>{"use strict";var n={};r.r(n),r.d(n,{analyze:()=>an,taglibs:()=>cn,translate:()=>ln});var s=r("../../node_modules/marko/dist/runtime/components/index.js"),o=(r("../components/app-layout/favicon.png"),r("../logos/marko.svg"),r("../components/app-layout/components/layout-header/component-browser.js")),a=r.n(o),i=r("../components/app-layout/components/layout-sidebar/components/version-switcher/component-browser.js"),l=r.n(i),c=r("../components/app-layout/components/layout-sidebar/component-browser.js"),d=r.n(c),p=(r("../components/app-footer/openjsf.svg"),r("../components/app-footer/osi.svg"),r("../components/app-footer/ebay.svg"),r("../logos/discord.svg"),r("../../node_modules/marko/dist/runtime/vdom/index.js")),u=r("../../browser-shims/compiler/index.js"),f=r("../../node_modules/@marko/babel-utils/dist/index.js"),m=r("../../node_modules/path-browserify/index.js"),y=r.n(m);function h(){return"html"===b().output}function g(){return!h()}function b(){return Ot.hub.file.markoOpts}function v(){return b().optimize}var x=/^<.*>$|\.marko$/;function w(e){const t=e.node.extra??={};if(void 0===t.tagNameType){const r=e.get("name");if(r.isStringLiteral()){if(t.tagNameType="@"===r.node.value[0]?3:(0,f.isNativeTag)(e)?0:1,1===t.tagNameType){const r=(0,f.loadFileForTag)(e),n=r?.ast.program;"class"===n?.extra.___featureType&&(t.tagNameType=2,t.___featureType="class")}t.tagNameNullable=t.tagNameNullable=!1}else{const e=[r];let n,s,o=!1;for(;(n=e.pop())&&2!==s;)if(n.isConditionalExpression())e.push(n.get("test")),e.push(n.get("consequent")),n.node.alternate&&e.push(n.get("alternate"));else if(n.isLogicalExpression())"||"===n.node.operator?e.push(n.get("left")):o=!0,e.push(n.get("right"));else if(n.isAssignmentExpression())e.push(n.get("right"));else if(n.isBinaryExpression())s="+"!==n.node.operator||void 0!==s?2:0;else if(n.isStringLiteral()||n.isTemplateLiteral())s=void 0!==s?2:0;else if(n.isNullLiteral())o=!0;else if(n.isIdentifier()){if("undefined"===n.node.name){o=!0;continue}const t=n.scope.getBinding(n.node.name);if(!t){s=2;continue}if("module"===t.kind){const e=t.path.parent;s=x.test(e.source.value)&&e.specifiers.some((e=>u.types.isImportDefaultSpecifier(e)))?void 0!==s&&1!==s?2:1:2;continue}const r=t.path;if(r.isMarkoTag()&&"local"===t.kind){const t=r.get("name").node.value;if("tag"===t){s=void 0!==s&&1!==s?2:1;continue}if("const"===t){e.push(r.get("attributes")[0].get("value"));continue}if("let"===t){s=2;continue}continue}s=2}else s=2;t.tagNameType=s,t.tagNameNullable=o,t.tagNameDynamic=!0}void 0===t.tagNameType&&(t.tagNameType=2)}return t.tagNameType}function k(e){const t=e.node.extra??={};let r=t.section;if(!r){const n=e.parentPath?E(e.parentPath):void 0,s=e.parentPath?.get("name"),o=e.isProgram()?"":Ot.scope.generateUid(s.toString()+"Body"),a=e.hub.file.path.node.extra??={},i=a.sections??=[];r=t.section={id:i.length,name:o,depth:n?n.depth+1:0,parent:n},i.push(r)}return r}function E(e){let t=e;for(;;){if("Program"===t.type||"MarkoTagBody"===t.type&&0!==w(t.parentPath))return k(t);t=t.parentPath}}function S(e){let t,r=e;for(;void 0===(t=r.node.extra?.section);)r=r.parentPath;return I(t,r),t}function C(e,t){return[r=>{const n=Ot.state[e]??={};return n[r.id]??=t&&t(r)},(t,r)=>{(Ot.state[e]??={})[t.id]=r}]}var[T]=C("scopeIdIdentifier",(e=>Ot.scope.generateUidIdentifier(`scope${e.id}_id`))),[D,I]=C("sectionPath"),[A]=C("scopeIdentifier",(()=>u.types.identifier("undefined"))),j=(e,t)=>{const r=A(e);return t||"undefined"!==r.name||(r.name=Ot.scope.generateUid(`scope${e.id}_`)),r};function L(e){const{sections:t}=Ot.node.extra;t?.forEach(e)}var _=class{constructor(e){this.compare=e}add(e,t){return e?Array.isArray(e)?$(this.compare,e,t):M(this.compare,e,t):t}addAll(e,t){if(e){if(Array.isArray(e)){if(t)if(Array.isArray(t))for(const r of t)$(this.compare,e,r);else $(this.compare,e,t);return e}return t?Array.isArray(t)?$(this.compare,[...t],e):M(this.compare,t,e):e}return Array.isArray(t)?[...t]:t}find(e,t){if(e){if(!Array.isArray(e))return 0===this.compare(e,t)?e:void 0;{let r=e.length,n=0;for(;n>>1,o=e[s],a=this.compare(o,t);if(0===a)return o;a>0?r=s:n=s+1}}}}clone(e){return Array.isArray(e)?[...e]:e}size(e){return e?Array.isArray(e)?e.length:1:0}toArray(e,t){return e?Array.isArray(e)?e.map(t):[t(e)]:[]}*iterate(e){if(e)if(Array.isArray(e))for(const t of e)yield t;else yield e}};function M(e,t,r){const n=e(t,r);return 0===n?t:n<0?[t,r]:[r,t]}function $(e,t,r){const n=t.length;let s=n,o=0;for(;o>>1,a=e(t[n],r);if(0===a)return t;a>0?s=n:o=n+1}let a=r;for(;o[void 0,void 0,void 0]));function R(e,t,r,n,s=n){const o=r.extra??={};if(o.reserve){const e=o.reserve;return e.name+="_"+n,e}const a=N(t),i=o.reserve={id:0,type:e,name:n,debugKey:s,section:t};return a[e]?i.id=a[e].push(i)-1:a[e]=[i],i}function F(e){return v()?u.types.numericLiteral(e.id):u.types.stringLiteral(e.debugKey+(0===e.type?`/${e.id}`:""))}var P=new _((function(e,t){return e.section.id-t.section.id||e.type-t.type||e.id-t.id})),O=new WeakMap,U=new _((function(e,t){const r=e.length,n=r-t.length;if(0!==n)return n;for(let n=0;n[]));function q(e,t){const r=t.scope,n=t.getBindingIdentifiers();for(const t in n){const s=r.getBinding(t).referencePaths.concat(r.getBinding(t).constantViolations.filter((e=>e.isAssignmentExpression()&&"="!==e.node.operator))),o=R(1,e,n[t],t);for(const e of s){const t=Z(e.scope.path),r=H(t||e),n=r.parentPath,s=t??r;if(s){const e=s.node.id?.name;e||n.isMarkoAttribute()&&!n.node.default&&((s.node.extra??={}).name=n.node.name),W(s,"references",o)}W(n,`${r.listKey||r.key}References`,o)}}}function W(e,t,r){const n=E(e),s=e.node.extra??={},o=s[t];o?o!==r&&(s[t]=G(J(n,P.add(P.clone(o),r))),Q(o)&&X(J(n,o))):s[t]=r}function V(e,t){let r;for(const[n,s]of t){const t=n[s];Q(t)&&X(J(e,t)),r=P.addAll(r,t),delete n[s]}return Q(r)&&(r=G(J(e,r))),r}function H(e){let t=e;for(;!K(t.parentPath);)t=t.parentPath;return t}function Z(e){let t=e;if(!t.isProgram()){for(;!Y(t);){if(K(t))return;t=t.parentPath}return t}}function K(e){switch(e.type){case"MarkoTag":case"MarkoTagBody":case"MarkoAttribute":case"MarkoSpreadAttribute":case"MarkoPlaceholder":case"MarkoScriptlet":return!0;default:return!1}}function Y(e){switch(e.type){case"FunctionExpression":case"ArrowFunctionExpression":return!0;default:return!1}}function J(e,t){const r=B(e);let n=U.find(r,t);return n||(n=t,z(e,U.add(r,t))),n}function G(e){return O.set(e,(O.get(e)||0)+1),e}function X(e){return O.set(e,O.get(e)-1),e}function Q(e){return Array.isArray(e)}function ee(e){return e||0===e?e+"":""}var te=ae((e=>{let t="",r=0;for(let n=0,s=e.length;n{let n="",s=0,o=e.indexOf(t,s);for(;-1!==o;)n+=e.slice(s,o)+r,s=o+1,o=e.indexOf(t,s);return s?n+e.slice(s):e}}function oe(e){const t=e.length;let r=0;do{switch(e[r]){case'"':return ie(e,r+1,"'","'");case"'":case">":case" ":case"\t":case"\n":case"\r":case"\f":return ie(e,r+1,'"',""");default:r++}}while(r{if(!t&&0!==t)return"";switch(typeof t){case"string":return e(t);case"boolean":return"true";case"number":return t+"";default:return e(t+"")}}}function ie(e,t,r,n){let s=r,o=0;for(let a=t,i=e.length;au.types.templateElement({raw:e}))),r)):n?u.types.stringLiteral(n):void 0}function De(e,t){e[e.length-1]+=t}function Ie(e,t,r){for(let n=e.length-1;n>=t;n--)e[n+r]=e[n]}var[Ae]=C("walks",(()=>[""])),[je]=C("walkComment",(()=>[])),[Le]=C("steps",(()=>[])),_e={32:"get",33:"before",35:"after",36:"inside",37:"replace",38:"endChild",47:"beginChild",67:"next",97:"over",107:"out",117:"multiplier",91:"nextEnd",106:"overEnd",116:"outEnd",126:"multiplierEnd"};function Me(e){Le(S(e)).push(0)}function $e(e){Le(S(e)).push(1)}function Ne(e){Le(S(e)).push(0,1)}function Re(e,t){const{reserve:r}=e.node.extra;if(t&&(!r||0!==r.type))throw e.buildCodeFrameError("Tried to visit a node that was not marked as needing to visit during analyze.");if(h())return;const n=S(e),s=Le(n),o=Ae(n),a=je(n);let i="";if(s.length){const e=[];let t=0;for(const r of s)0===r?(t++,e.push(67)):(t--,t>=0?(e.length=e.lastIndexOf(67),e.push(97)):(e.length=e.lastIndexOf(107)+1,e.push(107),t=0));let r=e[0],n=0;for(const t of e)t!==r?(a.push(`${_e[r]}(${n})`),i+=Fe(r,n),r=t,n=1):n++;a.push(`${_e[r]}(${n})`),i+=Fe(r,n),s.length=0}void 0!==t&&(32!==t&&We(e)``,a.push(`${_e[t]}`),i+=String.fromCharCode(t)),De(o,i)}function Fe(e,t){switch(e){case 67:return Pe(t,e,20);case 97:case 107:return Pe(t,e,10);default:throw new Error(`Unexpected walk code: ${e}`)}}function Pe(e,t,r){let n="";if(e>=r){const t=Math.floor(e/r);n+=Pe(t,117,10),e-=t*r}return n+=String.fromCharCode(t+e),n}function Oe(e){const t=Te(Ae(e))||u.types.stringLiteral("");return""!==t.value&&(t.leadingComments=[{type:"CommentBlock",value:" "+je(e).join(", ")+" "}]),t}var[Ue]=C("renderer",(e=>u.types.identifier(e.name))),[Be]=C("writes",(()=>[""])),[ze,qe]=C("registerRenderer",(()=>!1));function We(e){const t=S(e);return(e,...r)=>{const n=r.length,s=Be(t);De(s,e[0]);for(let t=0;t{const n=r.length,s=Be(t);s[0]+=e[n];for(let t=0;t tag does not support ...spread attributes.`)}function Xe(e){if(e.node.body.body.length)throw e.get("name").buildCodeFrameError(`The <${e.get("name")}> tag does not support body content.`)}var[Qe,et]=C("returnId"),tt={translate(e){(0,f.assertNoVar)(e),(0,f.assertNoParams)(e),Xe(e),Ge(e);const t=S(e),{node:r,hub:{file:n}}=e,[s]=r.attributes;if(!u.types.isMarkoAttribute(s)||!s.default)throw e.get("name").buildCodeFrameError("The '' tag requires default attribute like ''.");if(r.attributes.length>1){const t=r.attributes[1].loc?.start,n=r.attributes[r.attributes.length-1].loc?.end,s="The '' tag only supports a default attribute.";throw null==t||null==n?e.get("name").buildCodeFrameError(s):e.hub.buildError({loc:{start:t,end:n}},s,Error)}if(h()){Ze(e);const r=n.path.scope.generateUidIdentifier("return");et(t,r),e.replaceWith(u.types.variableDeclaration("const",[u.types.variableDeclarator(r,s.value)]))[0].skip()}else Tt(t,s.extra?.valueReferences,{identifier:Ee("tagVarSignal"),hasDownstreamIntersections:()=>!0},s.value),e.remove()},autocomplete:[{displayText:"return=",description:"Provides a value for use in a parent template.",snippet:"return=${1:value}",descriptionMoreURL:"https://markojs.com/docs/core-tags/#return"}]},[rt]=C("signals",(()=>new Map)),[nt,st]=C("queue");function ot(e,t){st(S(e.get("body")),t)}var[at]=C("closures",(()=>[])),it=(e,t,r)=>{let n=e;for(;void 0!==n&&n!==t;)at(n).push(r),n=n.parent},[lt,ct]=C("forceResumeScope"),[dt]=C("serializedScopeProperties",(()=>new Map)),[pt,ut]=C("register");function ft(e,t){ut(S(e.get("body")),t)}var mt=()=>u.types.stringLiteral("SIGNAL NOT INITIALIZED");function yt(e,t){const r=rt(e);let n=r.get(t);if(!n){if(r.set(t,n={identifier:u.types.identifier(Et(e,t)),reserve:t,section:e,values:[],intersection:void 0,render:[],effect:[],effectInlineReferences:void 0,subscribers:[],closures:new Map,hasDownstreamIntersections:()=>n.intersection||n.closures.size||n.values.some((e=>e.signal.hasDownstreamIntersections()))?(n.hasDownstreamIntersections=()=>!0,!0):(n.hasDownstreamIntersections=()=>!1,!1),build:mt}),h())return n;if(t){if(Array.isArray(t))kt(t,n),n.build=()=>Se("intersection",u.types.numericLiteral(t.length),gt(n,[Ut],t));else if(t.section!==e){const r=yt(t.section,t);it(e,t.section,n.identifier),r.closures.set(e,n),n.build=()=>{const r=nt(e),s=xe(e,t.section),o=s.object===Ut;return Se(r&&o?"closure":"dynamicClosure",F(t),gt(n,[Ut,u.types.identifier(t.name)]),o?null:u.types.arrowFunctionExpression([Ut],s),bt(n),vt(n))}}}else n.build=()=>gt(n,[Ut])}return n}function ht(e,t=F(e)){const r=yt(e.section,e);return r.build=()=>{const n=gt(r,[Ut,u.types.identifier(e.name)]),s=bt(r),o=vt(r);return n.body.body.length>0||s||o?Se("value",t,n,s,o):n},r.valueAccessor=t,r}function gt(e,t,r){const n=e.section;for(const t of e.values)e.render.push(u.types.expressionStatement(u.types.callExpression(t.signal.identifier,[t.scope,t.value])));return r&&e.render.unshift(u.types.variableDeclaration("const",[u.types.variableDeclarator(ve(n,r),Ut)])),u.types.arrowFunctionExpression(t,u.types.blockStatement(e.render))}function bt(e){let t=e.intersection;const r=e.section,n=Array.from(e.closures.entries()).sort((([e],[t])=>e.id-t.id));for(const[s,o]of n){const n=nt(s),a=s.parent===r;n&&a?t=xt(t,n(o.identifier)):e.hasDynamicSubscribers||(e.hasDynamicSubscribers=!0)}return e.hasDynamicSubscribers&&(e.hasDynamicSubscribers=!0,t=xt(t,Se("dynamicSubscribers",e.valueAccessor))),Array.isArray(t)?Se("intersections",u.types.arrayExpression(t)):t}function vt(e){let t;for(const r of e.values)r.signal.hasDownstreamIntersections()&&(t=xt(t,r.intersectionExpression??u.types.identifier(r.signal.identifier.name)));return Array.isArray(t)?Se("values",u.types.arrayExpression(t)):t}function xt(e,t){return e?Array.isArray(e)?(e.push(t),e):[e,t]:t}function wt(e,t){const r=Array.isArray(e)?e:Object.values(e);if(r.length){const e=Ot.scope.generateUidIdentifier("destructure"),n=r.map((e=>ht(e.extra?.reserve))),s=u.types.variableDeclaration("let",r.map((e=>u.types.variableDeclarator(e))));return{get identifier(){const e=Ot.scope.generateUidIdentifier("destructure");return Ot.pushContainer("body",[u.types.variableDeclaration("const",[u.types.variableDeclarator(e,this.build(!0))])]),e},build(o){return o&&!this.hasDownstreamIntersections()?u.types.arrowFunctionExpression([Ut,t],u.types.blockStatement(n.map(((e,t)=>u.types.expressionStatement(u.types.callExpression(e.identifier,[Ut,r[t]])))))):u.types.arrowFunctionExpression([Ut,e,Bt],u.types.blockStatement([s,u.types.ifStatement(u.types.unaryExpression("!",Bt),u.types.expressionStatement(u.types.assignmentExpression("=",t,e))),...n.map(((e,t)=>u.types.expressionStatement(u.types.callExpression(e.identifier,[Ut,r[t],Bt]))))]))},hasDownstreamIntersections:()=>r.some((e=>{const t=e.extra.reserve;return yt(t.section,t).hasDownstreamIntersections()}))}}}function kt(e,t){if(Array.isArray(e))return void e.forEach((e=>kt(e,t)));const r=yt(t.section,e);r.intersection=xt(r.intersection,t.identifier)}function Et(e,t){let r;if(t)if(Array.isArray(t)){r="expr";for(const e of t)r+=`_${e.name}`}else r=t.name;else r="setup";return r+=e.name.replace("_","$"),Ot.scope.generateUid(r)}function St(e){for(let t=e.length-1;t>=0;t--){const r=e[t];if(u.types.isArrowFunctionExpression(r)){const n=r.body.body;n&&(0===n.length?e[t]=u.types.nullLiteral():1===n.length&&u.types.isExpressionStatement(n[0])&&(r.body=n[0].expression))}}for(let t=e.length-1;u.types.isNullLiteral(e[t]);)e.length=t--}function Ct(e,t,r,n,s,o){const a=yt(t,r),i=a[e]??=[];if(Array.isArray(n)?i.push(...n):i.push(n),"effect"===e)if(Array.isArray(s))for(const e of s)!o&&u.types.isFunction(e)||Dt(a,e);else!o&&u.types.isFunction(s)||Dt(a,s)}function Tt(e,t,r,n,s=Ut,o){yt(e,t).values.push({signal:r,value:n,scope:s,intersectionExpression:o})}function Dt(e,t){e.effectInlineReferences=P.addAll(e.effectInlineReferences,t.extra?.references)}function It(e,t){const{markoOpts:{optimize:r},opts:{filename:n}}=Ot.hub.file;let s="";if(t)if("string"==typeof t)s+=`_${t}`;else if(Array.isArray(t))for(const e of t)s+=`_${e.name}`;else s+=`_${t.name}`;return(0,f.getTemplateId)(r,`${n}_${e.id}${s}`)}function At(e,t){const r=jt(e),n=jt(t);for(let e=Math.max(r.length,n.length)-1;e>=0;e--){const t=(n[e]??-1)-(r[e]??-1);if(0!==t)return t}return 0}function jt({reserve:e}){return e?Array.isArray(e)?e.map(Lt).sort():[Lt(e)]:[]}function Lt(e){return 1e4*(0===e.type?1:0)+e.id}function _t(e,t){Ct("effect",e,t,void 0,[])}function Mt(e,t){const r=E(e),n=Ot.node.extra.intersectionsBySection?.[r.id]??[],s=Array.from(rt(r).values()),o=T(r),a=[];for(const e of n)for(const t of e)0!==t.type&&P.add(a,t);for(let t=s.length;t--;)if(s[t].effect.length){const n=s[t].reserve;P.addAll(a,n),e.pushContainer("body",u.types.expressionStatement(Se("writeEffect",o,u.types.stringLiteral(It(r,n)))))}const i=new Set,l=dt(r),c=a.reduce(((e,t)=>{const n=F(t);return t.section.id===r.id?(e.push(u.types.objectProperty(n,u.types.identifier(t.name))),i.add(n.value)):(dt(t.section).set(n,u.types.identifier(t.name)),dt(r).set(u.types.stringLiteral("_"),Se("serializedScope",T(t.section)))),e}),[]);t&&void 0!==Qe(r)&&c.push(u.types.objectProperty(u.types.stringLiteral("/"),t));for(const[e,t]of l)i.has(e.value)||(c.push(u.types.objectProperty(e,t,!u.types.isLiteral(e))),i.add(e.value));if(c.length||lt(r)){const t=pt(r);e.pushContainer("body",u.types.expressionStatement(Se("writeScope",o,t?t(u.types.objectExpression(c)):u.types.objectExpression(c))))}e.get("body").length&&e.unshiftContainer("body",u.types.variableDeclaration("const",[u.types.variableDeclarator(o,Se("nextScopeId"))]))}var $t={FunctionExpression:{exit:Nt},ArrowFunctionExpression:{exit:Nt}};function Nt(e,{root:t,section:r}){const{node:n}=e,{extra:s}=n,o=s?.references,a=e.hub.file.path.scope.generateUidIdentifier(s?.name);o&&("BlockStatement"!==n.body.type&&(n.body=u.types.blockStatement([u.types.returnStatement(n.body)])),n.body.body.unshift(u.types.variableDeclaration("const",[u.types.variableDeclarator(ve(r,o),Ut)])));let i=e.parentPath;for(;i;){if(i.isFunction())return;if(i===t)return;i=i.parentPath}t.insertBefore(u.types.variableDeclaration("const",[u.types.variableDeclarator(a,n)])),n.params.unshift(Ut),e.replaceWith(Se("bindFunction",Ut,a))}function Rt(e){return rt(e).get(void 0)?.identifier}var Ft={translate:{exit(e){Re(e);const t=S(e),r=u.types.identifier("template"),n=u.types.identifier("walks"),s=u.types.identifier("setup"),o=u.types.identifier("attrs"),a=u.types.identifier("closures"),{attrs:i}=e.node.extra,{walks:l,writes:c,setup:d}=Ye(t);if(function(e){const{sections:t}=Ot.node.extra;for(let r=t.length;r--;)e(t[r])}((r=>{const n=D(r),s=n.isProgram()?void 0:function(e,t=u.types.arrayPattern(e.map((e=>e.node)))){return wt(e.reduce(((e,t)=>Object.assign(e,t.getBindingIdentifiers())),{}),u.types.objectPattern([u.types.objectProperty(u.types.identifier("value"),t)]))}(n.get("params"));if(function(e){const t=[...rt(e).values()].sort(At);for(const r of t){let t;if(r.effect.length){const n=u.types.identifier(`${r.identifier.name}_effect`);r.effectInlineReferences&&r.effect.unshift(u.types.variableDeclaration("const",[u.types.variableDeclarator(ve(e,r.effectInlineReferences),Ut)])),t=u.types.variableDeclarator(n,Se("register",u.types.stringLiteral(It(e,r.reserve)),u.types.arrowFunctionExpression([Ut],1===r.effect.length&&u.types.isExpressionStatement(r.effect[0])?r.effect[0].expression:u.types.blockStatement(r.effect)))),r.render.push(u.types.expressionStatement(Se("queueEffect",Ut,n)))}const n=r.register?Se("register",u.types.stringLiteral(It(e,r.reserve)),r.build()):r.build();u.types.isCallExpression(n)&&St(n.arguments);const s=u.types.variableDeclarator(r.identifier,n),o=Ot.pushContainer("body",t?[u.types.variableDeclaration("const",[t]),u.types.variableDeclaration("const",[s])]:u.types.variableDeclaration("const",[s]));for(const t of o)t.traverse($t,{root:t,section:e})}}(r),r!==t){const{walks:t,writes:n,setup:o,register:a}=Ye(r),i=at(r),l=Ue(r),c=Se("createRenderer",n,t,o,i.length&&u.types.arrayExpression(i),void 0,void 0,void 0,void 0,s?.build());e.node.body.push(u.types.variableDeclaration("const",[u.types.variableDeclarator(l,a?Se("register",u.types.stringLiteral(It(r,"renderer")),c):c)]))}})),i){const r=[];for(const e in i.bindings){const n=i.bindings[e],s=yt(t,n.extra.reserve).identifier;r.push(u.types.exportSpecifier(s,s))}e.node.body.push(u.types.exportNamedDeclaration(u.types.variableDeclaration("const",[u.types.variableDeclarator(o,u.types.isIdentifier(i.var)?yt(t,i.var.extra.reserve).identifier:wt(i.bindings,i.var)?.build())])),u.types.exportNamedDeclaration(null,r))}const p=at(t);e.node.body.push(u.types.exportNamedDeclaration(u.types.variableDeclaration("const",[u.types.variableDeclarator(r,c||u.types.stringLiteral(""))])),u.types.exportNamedDeclaration(u.types.variableDeclaration("const",[u.types.variableDeclarator(n,l||u.types.stringLiteral(""))])),u.types.exportNamedDeclaration(u.types.variableDeclaration("const",[u.types.variableDeclarator(s,u.types.isNullLiteral(d)||!d?u.types.functionExpression(null,[],u.types.blockStatement([])):d)]))),p.length&&e.node.body.push(u.types.exportNamedDeclaration(u.types.variableDeclaration("const",[u.types.variableDeclarator(a,u.types.arrayExpression(p))])));const{markoOpts:{optimize:m},opts:{filename:y}}=e.hub.file;e.node.body.push(u.types.exportDefaultDeclaration(Se("createTemplate",Se("createRenderer",r,n,s,p.length&&a,void 0,void 0,void 0,void 0,i&&o),u.types.stringLiteral((0,f.getTemplateId)(m,`${y}`)))))}}};function Pt(e){return e.isImportDeclaration()||e.isExportDeclaration()||e.isMarkoScriptlet({static:!0})}var Ot,Ut,Bt,zt={translate:{exit(e){const t=S(e),r=e.scope.generateUidIdentifier("tagVar");Ke(e),Mt(e,r);const n=Qe(t);void 0!==n&&e.pushContainer("body",u.types.returnStatement(n));const s=[];for(const t of e.get("body"))Pt(t)?t.isMarkoScriptlet()&&t.replaceWithMultiple(t.node.body):(s.push(t.node),t.remove());const o=e.scope.generateUidIdentifier("renderer"),{attrs:a}=e.node.extra,{markoOpts:{optimize:i},opts:{filename:l}}=e.hub.file;e.pushContainer("body",[u.types.variableDeclaration("const",[u.types.variableDeclarator(o,Se("createRenderer",u.types.arrowFunctionExpression([a?a.var:u.types.identifier("input"),r],u.types.blockStatement(s))))]),u.types.exportDefaultDeclaration(Se("createTemplate",o,u.types.stringLiteral((0,f.getTemplateId)(i,`${l}`))))])}}},qt=new WeakMap,Wt={migrate:{enter(e){qt.set(e,Ot),Ot=e},exit(){Ot.scope.crawl(),Ot=qt.get(Ot)}},analyze:{enter(e){qt.set(e,Ot),Ot=e,k(e)},exit(){L((e=>{let t=0;for(const r of N(e))if(r)for(const e of r)e.id=t,t+=1})),function(){const e=(Ot.node.extra??={}).intersectionsBySection={};L((t=>{e[t.id]=B(t).filter((e=>O.get(e)>0))}))}(),Ot=qt.get(Ot)}},translate:{enter(e){if(qt.set(e,Ot),Ot=e,Ut=g()?e.scope.generateUidIdentifier("scope"):null,Bt=g()?e.scope.generateUidIdentifier("clean"):null,"hydrate"===b().output)return e.skip(),e.node.body=[u.types.importDeclaration([],u.types.stringLiteral(e.hub.file.opts.filename))],void((e.node.extra.hasInteractiveChild||e.node.extra.isInteractive)&&e.node.body.push(u.types.expressionStatement(Se("init"))))},exit(e){h()?zt.translate.exit(e):Ft.translate.exit(e),Ot=qt.get(Ot)}}},Vt={translate:{exit(e){const t=e.get("source"),r=t.node.value;t.node.value=(0,f.resolveTagImport)(t,r)||r}}},Ht={translate(e){h()&&We(e)``,e.remove()}},Zt=new WeakMap;function Kt(e,t){return Zt.get(e.node)?.(e,t)}var Yt={translate:{exit(e){if(g()){const t="="===e.node.operator?e.node.right:u.types.binaryExpression(e.node.operator.slice(0,-1),e.node.left,e.node.right),r=Kt(e,t);r&&e.replaceWith(r)}}}},Jt={translate:{exit(e){if(g()){const t=Kt(e,u.types.binaryExpression("++"===e.node.operator?"+":"-",e.node.argument,u.types.numericLiteral(1)));t&&e.replaceWith(e.node.prefix||e.parentPath.isExpressionStatement()?t:u.types.sequenceExpression([t,e.node.argument]))}}}},Gt={translate(e){h()&&We(e)`${e.node.value}?>`,e.remove()}},Xt={translate(e){h()&&We(e)``,e.remove()}},Qt={translate(e){const t=e.container.slice(e.key+1);let r=!1;if(h())for(const e of t){if(u.types.isMarkoPlaceholder(e)){r=!0;break}if(u.types.isMarkoTag(e)||u.types.isMarkoText(e))break}We(e)`${e.node.value}${r?"":""}`,Ne(e),e.remove()}};function er(e,t){if(!e)return!1;const{node:r}=t,n=rr(e)?e.default:e;return nr(n)?n(t,u.types):n.enter&&n.enter(t,u.types),r!==t.node}function tr(e,t){if(!e)return!1;const{node:r}=t,n=rr(e)?e.default:e;return!nr(n)&&n.exit&&n.exit(t,u.types),r!==t.node}function rr(e){return Boolean(e.default)}function nr(e){return"function"==typeof e}function sr(e){const{extra:t}=e.node;t.nestedAttributeTags={},t.hoistedControlFlows=0,or(t,!1,!1,e)}function or(e,t,r,n){let s=!1;for(const o of n.get("body").get("body"))o.isMarkoTag()&&ar(e,t,r,o)&&(s=!0);return s}function ar(e,t,r,n){if((0,f.isTransparentTag)(n)){if(or(e,t||(0,f.isLoopTag)(n),!0,n))return(0,f.isTransparentTag)(n.parentPath.parentPath)||e.hoistedControlFlows++,!0}else if((0,f.isAttributeTag)(n)){const s=n.node.name.value.slice(1),o=e.nestedAttributeTags,a=o[s],i=a||(o[s]={dynamic:!1,repeated:!1});return i.dynamic||=r,i.repeated||=t||void 0!==a,!0}return!1}var ir=/^[0-9A-Z_$]+$/i;function lr(e,t=!1){const{node:r}=e;let n=u.types.objectExpression([]);const s=n.extra={};for(const e of r.attributes){const t=e.value;u.types.isMarkoSpreadAttribute(e)?n.properties.push(u.types.spreadElement(t)):n.properties.push(u.types.objectProperty((o=e.name,ir.test(o)?u.types.identifier(o):u.types.stringLiteral(o)),t))}var o;if(t){const{body:t,params:s}=r.body;let o=r.extra.hoistedControlFlows;if(o)for(const t of e.get("body").get("body"))if(e.insertBefore(t.node),t.remove(),(t.isConditional()||t.isLoop())&&! --o)break;t.length&&n.properties.push(u.types.objectMethod("method",u.types.identifier("renderBody"),s.length?[u.types.objectPattern([u.types.objectProperty(u.types.identifier("value"),u.types.arrayPattern(s))])]:[],u.types.blockStatement(t)))}if(n.properties.length&&1===n.properties.length){const[e]=n.properties;u.types.isSpreadElement(e)&&(n=e.argument,n.extra=s)}return n}function cr(e){if(u.types.isObjectExpression(e)){const t=e.properties[e.properties.length-1];if(u.types.isObjectMethod(t)&&"renderBody"===t.key.name)return t}}function dr(e,t,r="const"){const{node:{var:n}}=e;n&&(e.get("var").remove(),e.insertBefore(u.types.variableDeclaration(r,[u.types.variableDeclarator(u.types.cloneDeep(n),t)])),e.hub.file.path.scope.crawl())}function pr(e){let{extra:t}=e.node;if(t||(t=e.node.extra={}),void 0===t.confident){const r=e.get("value"),{confident:n,value:s}=r.evaluate();t.computed=s,t.confident=n}return t}var ur={analyze:{enter(e){const{node:t}=e,r=e.get("attributes");let n=e.has("var")?E(e):void 0;if(r.some(fr));else for(const t of r){const r=t.node,{name:s}=r;mr(s)?(n??=E(e),(Ot.node.extra??{}).isInteractive=!0):pr(t).confident||(n??=E(e))}const s=t.var?t.var.name:t.name.value;void 0!==n&&R(0,n,t,s,`#${e.get("name").evaluate().value}`)}},translate:{enter(e){const{extra:t}=e.node,r=h(),n=e.get("name"),s=e.get("attributes"),o=(0,f.getTagDef)(e),a=s.some((e=>e.isMarkoSpreadAttribute())),i=We(e),l=S(e);if(r&&t.tagNameNullable&&Ze(e),e.has("var"))if(r)dr(e,u.types.arrowFunctionExpression([],u.types.blockStatement([u.types.throwStatement(u.types.newExpression(u.types.identifier("Error"),[u.types.stringLiteral("Cannot reference DOM node from server")]))])));else{const r=e.node.var.name,n=e.scope.getBinding(r).referencePaths;let s;for(const e of n){const n=S(e);e.parentPath?.isCallExpression()?e.parentPath.replaceWith(u.types.expressionStatement(we(n,t.reserve))):(s??=u.types.identifier(r+"_getter"),e.replaceWith(Se("bindFunction",xe(n,t.reserve.section),s)))}s&&Ot.pushContainer("body",u.types.variableDeclaration("const",[u.types.variableDeclarator(s,u.types.arrowFunctionExpression([Ut],u.types.memberExpression(Ut,F(t.reserve),!0)))]))}let c;if(t.reserve&&(c=F(t.reserve),Re(e,32)),i`<${n.node}`,a){const t=Se("attrs",Ut,lr(e));r?i`${t}`:e.insertBefore(u.types.expressionStatement(t))}else for(const e of s){const t=e.node.name,n=e.node.extra??{},s=e.get("value"),{confident:o,computed:a,valueReferences:p}=n;switch(t){case"class":case"style":{const e=`${t}Attr`;o?i`${Ce()[e](a)}`:r?i`${Se(e,s.node)}`:Ct("render",l,p,u.types.expressionStatement(Se(e,u.types.memberExpression(Ut,c,!0),s.node)));break}default:o?i`${Ce().attr(t,a)}`:r?mr(t)?_t(l,p):i`${Se("attr",u.types.stringLiteral(t),s.node)}`:mr(t)?Ct("effect",l,p,u.types.expressionStatement(Se("on",u.types.memberExpression(Ut,c,!0),u.types.stringLiteral("-"===(d=t).charAt(2)?d.slice(3):d.charAt(2).toLowerCase()+d.slice(3)),s.node)),s.node):Ct("render",l,p,u.types.expressionStatement(Se("attr",u.types.memberExpression(Ut,c,!0),u.types.stringLiteral(t),s.node)))}}var d;if(o&&o.parseOptions?.openTagOnly)switch(o.htmlType){case"svg":case"math":i`/>`;break;default:i`>`}else i`>`;r&&t.tagNameNullable&&e.insertBefore(u.types.ifStatement(n.node,He(e)))[0].skip(),Me(e)},exit(e){const{extra:t}=e.node,r=h(),n=(0,f.getTagDef)(e)?.parseOptions?.openTagOnly;r&&t.tagNameNullable&&Ke(e),e.insertBefore(e.node.body.body).forEach((e=>e.skip())),n||We(e)`${e.node.name}>`,r&&t.tagNameNullable&&e.insertBefore(u.types.ifStatement(e.node.name,He(e)))[0].skip(),t.reserve&&Je(e),$e(e),e.remove()}}};function fr(e){return"MarkoSpreadAttribute"===e.type}function mr(e){return/^on[A-Z-]/.test(e)}var yr={analyze:{enter(e){!function(e){e.has("var")&&q(E(e),e.get("var"));const t=e.get("body");t.get("body").length&&t.get("params").length&&q(E(t),t)}(e);const t=e.get("body");t.get("body").length&&k(t),(0,f.getTagDef)(e)?.template&&R(0,E(e),e.node,"#childScope");const r=(0,f.loadFileForTag)(e),n=r?.ast.program.extra;(n?.isInteractive||n?.hasInteractiveChild)&&((Ot.node.extra??{}).hasInteractiveChild=!0)},exit(e){const t=(0,f.getTagDef)(e),r=t?.template,n=E(e);r&&(e.node.extra.attrsReferences=V(n,e.node.attributes.filter((e=>e.extra?.valueReferences)).map((e=>[e.extra,"valueReferences"]))))}},translate:{enter(e){Re(e),h()&&Ze(e)},exit(e){h()?function(e){const t=e.get("body"),{node:r}=e;let n;if(Ke(e),Mt(t),u.types.isStringLiteral(r.name)){const{file:t}=e.hub,s=r.name.value,o=hr(e);n=u.types.memberExpression((0,f.importDefault)(t,o,s),u.types.identifier("_"))}else n=r.name;const s=r.var,o=lr(e,!0),a=cr(o);if(r.extra.tagNameNullable){let t,r=br(n,lr(e));if(a){t=e.scope.generateUidIdentifier("renderBody");const[r]=e.insertBefore(u.types.variableDeclaration("const",[u.types.variableDeclarator(t,Se("createRenderer",u.types.arrowFunctionExpression(a.params.length?[u.types.objectPattern([u.types.objectProperty(u.types.identifier("value"),u.types.arrayPattern(a.params))])]:[],a.body)))]));r.skip(),o.properties[o.properties.length-1]=u.types.objectProperty(u.types.identifier("renderBody"),t)}s&&(dr(e,u.types.unaryExpression("void",u.types.numericLiteral(0)),"let"),r=u.types.assignmentExpression("=",s,r)),e.replaceWith(u.types.ifStatement(n,u.types.expressionStatement(r),t&&gr(t)))[0].skip()}else if(s){const t=S(e);dr(e,br(n,o,Se("register",Se("createRenderer",u.types.arrowFunctionExpression([],u.types.blockStatement([]))),u.types.stringLiteral(It(t,r.var.extra?.reserve)),T(t)))),function(e){ct(e,!0)}(t),e.remove()}else e.replaceWith(gr(n,o))[0].skip()}(e):function(e){const t=S(e),r=S(e.get("body")),{node:n}=e,s=We(e),o=n.extra.reserve,{file:a}=e.hub,i=n.name.value,l=hr(e),c=(0,f.loadFileForTag)(e).ast.program,d=(0,f.importNamed)(a,l,"setup",i);let p;c.extra.attrs&&(p=(0,f.importNamed)(a,l,"attrs",`${i}_attrs`)),s`${(0,f.importNamed)(a,l,"template",`${i}_template`)}`,function(e,t){const r=Ae(S(e));je(S(e)).push(`${_e[47]}`,t.name,_e[38]),De(r,String.fromCharCode(47)),r.push(t,String.fromCharCode(38))}(e,(0,f.importNamed)(a,l,"walks",`${i}_walks`)),c.extra.closures&&at(t).push(Se("childClosures",(0,f.importNamed)(a,l,"closures",`${i}_closures`),F(o)));let m=lr(e);if(r!==t&&(m??=u.types.objectExpression([]),m.properties.push(u.types.objectProperty(u.types.identifier("renderBody"),Se("bindRenderer",Ut,Ue(r))))),n.var){const e=ht(n.var.extra.reserve);e.register=!0,Ct("render",t,void 0,u.types.expressionStatement(Se("setTagVar",Ut,F(o),e.identifier)))}Ct("render",t,void 0,u.types.expressionStatement(u.types.callExpression(d,[we(t,o)]))),m&&p&&Tt(t,e.node.extra.attrsReferences,{identifier:p,hasDownstreamIntersections:()=>!0},m,we(t,o),Se("inChild",F(o),u.types.identifier(p.name))),e.remove()}(e)}}};function hr(e){const{node:t,hub:{file:r}}=e,n=u.types.isStringLiteral(t.name);let s;if(n){const t=(0,f.getTagDef)(e),n=t?.template;s=n&&(0,f.resolveRelativePath)(r,n)}if(!s)throw e.get("name").buildCodeFrameError(`Unable to find entry point for custom tag <${n?t.name.value:t.name}>.`);const o=r.metadata.marko.tags;return o.includes(s)||o.push(s),s}function gr(e,...t){return u.types.expressionStatement(br(e,...t))}function br(e,...t){return u.types.callExpression(e,t.filter(Boolean))}function vr(e){const t=e.body;return 1===t.length&&u.types.isExpressionStatement(t[0])?t[0].expression:u.types.isBlockStatement(e)?e:u.types.blockStatement(t)}var xr={analyze:{enter(e){R(0,E(e),e.node,"dynamicTagName","#text"),yr.analyze.enter(e)},exit(e){e.node.extra.attrsReferences=V(E(e),e.node.attributes.filter((e=>e.extra?.valueReferences)).map((e=>[e.extra,"valueReferences"]))),W(e,"attrsReferences",e.node.extra.reserve)}},translate:{enter(e){Re(e,37),Ne(e),h()&&Ze(e)},exit(e){const{node:t}=e;let r=t.name;if(u.types.isStringLiteral(r)){const{file:t}=e.hub,n=hr(e);r=(0,f.importDefault)(t,n,r.value)}if("class"===e.node.extra?.___featureType)if((0,f.importDefault)(e.hub.file,`marko/src/runtime/helpers/tags-compat-${h()?"html":"dom"}.js`,"marko_tags_compat"),h()){const t=(0,f.importNamed)(e.hub.file,"marko/src/runtime/helpers/tags-compat-html.js","serialized5to6");Ot.pushContainer("body",u.types.expressionStatement(u.types.callExpression(t,[u.types.identifier(r.name),u.types.stringLiteral((0,f.getTemplateId)(v(),(0,f.loadFileForTag)(e).metadata.marko.id))])))}else Ot.pushContainer("body",u.types.expressionStatement(Se("register",u.types.stringLiteral((0,f.getTemplateId)(v(),(0,f.loadFileForTag)(e).metadata.marko.id)),u.types.identifier(r.name))));if(h()){Ke(e),Mt(e.get("body"));const n=lr(e,!0),s=u.types.isObjectExpression(n)&&!n.properties.length,o=cr(n),a=[r,s?u.types.nullLiteral():n];o&&(n.properties.pop(),a.push(Se("createRenderer",u.types.arrowFunctionExpression(o.params.length?[u.types.objectPattern([u.types.objectProperty(u.types.identifier("value"),u.types.arrayPattern(o.params))])]:[],vr(o.body)))));const i=Ot.scope.generateUidIdentifier("dynamicScope"),l=Se("dynamicTag",...a);t.var?(dr(e,l),e.remove()):e.replaceWith(u.types.variableDeclaration("const",[u.types.variableDeclarator(i,l)]))[0].skip();const c=S(e);We(e)`${Se("markResumeControlEnd",T(c),F(t.extra.reserve))}`,dt(c).set(u.types.stringLiteral(F(t.extra.reserve).value+"!"),i),dt(c).set(u.types.stringLiteral(F(t.extra.reserve).value+"("),u.types.isIdentifier(r)?u.types.identifier(r.name):r)}else{const n=S(e),s=S(e.get("body")),o=n!==s&&Ue(s),a=t.extra?.reserve,i=yt(n,a);i.build=()=>Se("conditional",F(a),gt(i,[Ut]),bt(i),vt(i)),i.hasDownstreamIntersections=()=>!0,Tt(n,t.extra?.nameReferences,i,o?u.types.logicalExpression("||",r,o):r);const l=lr(e,!0);if(!u.types.isObjectExpression(l)||l.properties.length||o){const r=u.types.arrowFunctionExpression([],l),s=Ot.scope.generateUidIdentifier(e.get("name").toString()+"_input");let i=!1;Tt(n,t.extra?.attrsReferences,{get identifier(){return i||(Ot.pushContainer("body",u.types.variableDeclaration("const",[u.types.variableDeclarator(s,Se("dynamicTagAttrs",F(a),o))])),i=!0),s},hasDownstreamIntersections:()=>!0},r)}e.remove()}}}},wr={analyze:{enter(e){const t=e.get("body");t.get("body").length&&k(t)}},translate:{enter(e){if(S(e.get("body")),function(e){const t=Be(S(e));return Boolean(t.length>1||t[0])}(e))throw e.get("name").buildCodeFrameError("Dynamic @tags cannot be mixed with body content.")},exit(e){(0,f.assertNoVar)(e),Ke(e);const t=(0,f.findParentTag)(e);if(!t)throw e.get("name").buildCodeFrameError("@tags must be nested within another tag.");const r=t.node.extra;if(0===r.tagNameType)throw e.get("name").buildCodeFrameError("@tags cannot be nested under native tags.");const n=e.node.name.value.slice(1),s=r.nestedAttributeTags[n],o=lr(e,!0);if(s.dynamic)s.identifier||(s.identifier=t.scope.generateUidIdentifier(n),t.insertBefore(s.repeated?u.types.variableDeclaration("const",[u.types.variableDeclarator(s.identifier,u.types.arrayExpression([]))]):u.types.variableDeclaration("let",[u.types.variableDeclarator(s.identifier)])),t.pushContainer("attributes",u.types.markoAttribute(n,s.identifier))),e.replaceWith(u.types.expressionStatement(s.repeated?u.types.callExpression(u.types.memberExpression(s.identifier,u.types.identifier("push")),[o]):u.types.assignmentExpression("=",s.identifier,o)));else if(s.repeated){const r=t.get("attributes").find((e=>e.node.name===n));r?r.get("value").pushContainer("elements",o):t.pushContainer("attributes",u.types.markoAttribute(n,u.types.arrayExpression([o]))),e.remove()}else t.pushContainer("attributes",u.types.markoAttribute(n,o)),e.remove()}}},kr={analyze:{enter(e){const t=(0,f.getTagDef)(e),r=w(e),n=t?.analyzer?.hook;if(n)er(n,e);else switch(r){case 0:ur.analyze.enter(e);break;case 1:yr.analyze.enter(e);break;case 3:wr.analyze.enter(e);break;case 2:xr.analyze.enter(e)}},exit(e){const t=(0,f.getTagDef)(e),r=w(e),n=t?.analyzer?.hook;if(n)tr(n,e);else if(0!==r)switch(sr(e),r){case 1:yr.analyze.exit(e);break;case 3:break;case 2:xr.analyze.exit(e)}}},translate:{enter(e){const t=(0,f.getTagDef)(e),r=e.node.extra;if((0,f.assertNoArgs)(e),t?.translator)return t.translator.path&&e.hub.file.metadata.marko.watchFiles.push(t.translator.path),void er(t.translator.hook,e);for(const t of e.get("attributes"))if(t.isMarkoAttribute()){if(t.node.arguments)throw t.buildCodeFrameError(`Unsupported arguments on the "${t.node.name}" attribute.`);if(t.node.modifier){if(!(0,f.isNativeTag)(t.parentPath))throw t.buildCodeFrameError(`Unsupported modifier "${t.node.modifier}".`);t.node.name+=`:${t.node.modifier}`}}if(r.tagNameDynamic&&r.tagNameNullable&&!e.get("name").isIdentifier()&&h()){const t=e.scope.generateUidIdentifier("tagName"),[r]=e.insertBefore(u.types.variableDeclaration("const",[u.types.variableDeclarator(t,e.node.name)]));r.skip(),e.set("name",t)}switch(r.tagNameType){case 0:ur.translate.enter(e);break;case 1:yr.translate.enter(e);break;case 2:xr.translate.enter(e);break;case 3:wr.translate.enter(e)}},exit(e){const t=(0,f.getTagDef)(e)?.translator;if(t)tr(t.hook,e);else switch(e.node.extra.tagNameType){case 0:ur.translate.exit(e);break;case 1:yr.translate.exit(e);break;case 2:xr.translate.exit(e);break;case 3:wr.translate.exit(e)}}}},Er="marko-core";function Sr(e){return e.isMarkoTag()&&(0,f.getTagDef)(e)?.taglibId===Er}function Cr(e,t){return Sr(e)&&e.node.name.value===t}var Tr={script:"escapeScript",style:"escapeStyle"},Dr={analyze(e){const{node:t}=e,{confident:r,computed:n}=pr(e);(!r||!t.escape&&n)&&(R(0,E(e),t,"placeholder","#text"),function(e){let t=e.getPrevSibling();for(;t.node&&Ir(t);)t=t.getPrevSibling();if((t.node||u.types.isProgram(e.parentPath))&&(!u.types.isMarkoTag(t)||!(0,f.isNativeTag)(t)))return e.node.extra.needsMarker=!0;let r=e.getNextSibling();for(;r.node&&Ir(r);)r=r.getNextSibling();if((r.node||u.types.isProgram(e.parentPath))&&(!u.types.isMarkoTag(r)||!(0,f.isNativeTag)(r)))return e.node.extra.needsMarker=!0;e.node.extra.needsMarker=!1}(e))},translate(e){const t=h(),r=We(e),n=e.node.extra,{confident:s,computed:o,valueReferences:a,reserve:i}=n,l=t||s&&(e.node.escape||!o),c=l?e.node.escape?Tr[function({parentPath:e}){return e.isMarkoTag()&&(0,f.isNativeTag)(e)&&e.node.name.value||""}(e)]||"escapeXML":"toString":e.node.escape?"data":"html";s&&l?r`${Ce()[c](o)}`:(n.needsMarker?Re(e,37):(t||r` `,Re(e,32)),t?(r`${Se(c,e.node.value)}`,Je(e)):Ct("render",S(e),a,u.types.expressionStatement("data"===c?Se("data",u.types.memberExpression(Ut,F(i),!0),e.node.value):Se("html",Ut,e.node.value,F(i))))),Ne(e),e.remove()}};function Ir(e){return u.types.isMarkoComment(e)||u.types.isMarkoTag(e)&&Sr(e)&&["let","const","effect","lifecycle","attrs","get","id"].includes(e.node.name.value)}var Ar={translate(e){if(h()){if(e.node.static)return;e.replaceWithMultiple(e.node.body)}else e.node.static?e.replaceWithMultiple(e.node.body):(Ct("render",S(e),e.node.extra?.bodyReferences,e.node.body),e.remove())}},jr=/^\[if |`}e.remove()}},_r={parse(e){const{node:t}=e;e.replaceWith((0,f.parseStatements)(e.hub.file,t.rawValue,t.start,t.end)[0])},parseOptions:{rootOnly:!0,rawOpenTag:!0,openTagOnly:!0,ignoreAttributes:!0,relaxRequireCommas:!0},autocomplete:[{displayText:'import from ""',description:"Use to import external modules, follows the same syntax as JavaScript imports.",snippet:'import ${2} from "${1:path}"',descriptionMoreURL:"https://markojs.com/docs/syntax/#importing-external-files"}]},Mr={parse(e){const{node:t}=e;e.replaceWith((0,f.parseStatements)(e.hub.file,t.rawValue,t.start,t.end)[0])},parseOptions:{rootOnly:!0,rawOpenTag:!0,openTagOnly:!0,ignoreAttributes:!0,relaxRequireCommas:!0},autocomplete:[{displayText:"export "}]},$r={analyze(e){if(e.has("var")){const t=e.get("var"),r=t.getBindingIdentifiers();q(E(e),t),(Ot.node.extra??={}).attrs={bindings:r,var:t.node}}},translate(e){const t=Ot.node.extra?.attrs?.bindings;if(t)for(const e in t)ht(t[e].extra.reserve);e.remove()},attributes:{},autocomplete:[{displayText:"attrs/{ ... }",description:"Use to receive the attributes passed into this template.",snippet:"attrs/{ $1 }$2"}]};function Nr(e){const t=e.body;return 1===t.length?t[0]:u.types.isBlockStatement(e)?e:u.types.blockStatement(t)}var Rr={analyze:{enter(e){R(0,E(e),e.node,"if","#text"),yr.analyze.enter(e)},exit(e){sr(e),Or(e)}},translate:{enter(e){const{node:t}=e,[r]=t.attributes;if((0,f.assertNoVar)(e),(0,f.assertNoParams)(e),!u.types.isMarkoAttribute(r)||!r.default)throw e.get("name").buildCodeFrameError("The '' tag requires a default attribute like ''.");if(t.attributes.length>1){const r=t.attributes[1].loc?.start,n=t.attributes[t.attributes.length-1].loc?.end,s="The '' tag only supports a default attribute.";throw null==r||null==n?e.get("name").buildCodeFrameError(s):e.hub.buildError({loc:{start:r,end:n}},s,Error)}Re(e,37),Ne(e),h()&&Ze(e)},exit(e){Ur(e)}},attributes:{},autocomplete:[{snippet:"if=${1:condition}",description:"Use to display content only if the condition is met.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#if-else-if-else"}]},Fr=new WeakMap;function Pr(e,t){const r=Fr.get(e)??[],n=e.getNextSibling(),s=!(Cr(n,"else")||Cr(n,"else-if"));return r.push({tag:e,section:t}),s||Fr.set(n,r),[s,r]}function Or(e){const t=E(e),r=E(e.get("body")),[n,s]=Pr(e,r);if(n){const e=s[0].tag.node.extra,r=V(t,s.filter((({tag:e})=>e.node.attributes[0]?.extra?.valueReferences)).map((({tag:e})=>[e.node.attributes[0].extra,"valueReferences"])));e.conditionalReferences=r,e.isStateful=!!r,e.singleNodeOptimization=s.every((({tag:e})=>1===e.node.body.body.length))}}function Ur(e){const t=e.get("body"),r=S(e),n=S(t),[s,o]=Pr(e,n),a=o[0].tag.node.extra,i=a.isStateful,l=a.singleNodeOptimization;if(h()&&(i&&(l||Ve(t)`${Se("markResumeScopeStart",T(n))}`,ft(e,(e=>u.types.assignmentExpression("=",j(n),e))),dt(n).set(u.types.stringLiteral("_"),Se("serializedScope",T(r)))),Ke(e),Mt(t)),s){const{extra:t}=o[0].tag.node;if(g()){let e=u.types.nullLiteral();for(let r=o.length;r--;){const{tag:n,section:s}=o[r],[a]=n.node.attributes,l=Ue(s);ot(n,(e=>Se("inConditionalScope",e,F(t.reserve)))),i&&qe(s,!0),n.remove(),e=a?u.types.conditionalExpression(a.value,l,e):l}const n=yt(r,t.reserve);n.build=()=>Se("conditional",F(t.reserve),gt(n,[Ut])),n.hasDownstreamIntersections=()=>o.some((e=>at(e.section).length>0)),Tt(r,t.conditionalReferences,n,e)}else{const n=We(e),s=e.getNextSibling(),a=e.scope.generateUidIdentifier("ifScopeId"),c=j(o[0].section),d=e.scope.generateUidIdentifier("ifRenderer");let p;for(let e=o.length;e--;){const{tag:t,section:r}=o[e];j(r,!0).name=c.name,i&&(t.node.body.body.push(u.types.expressionStatement(Se("register",u.types.assignmentExpression("=",d,Se("createRenderer",u.types.arrowFunctionExpression([],u.types.blockStatement([])))),u.types.stringLiteral(It(r,"renderer"))))),l&&t.node.body.body.push(u.types.expressionStatement(u.types.assignmentExpression("=",a,T(r)))));const[n]=t.node.attributes,s=Nr(t.node.body);p=n?u.types.ifStatement(n.value,s,p):s,t.remove()}i?(s.insertBefore([u.types.variableDeclaration("let",[l&&u.types.variableDeclarator(a),u.types.variableDeclarator(c),u.types.variableDeclarator(d)].filter(Boolean)),p]),l?n`${Se("markResumeControlSingleNodeEnd",T(r),F(t.reserve),a)}`:n`${Se("markResumeControlEnd",T(r),F(t.reserve))}`,dt(r).set(u.types.stringLiteral(F(t.reserve).value+"!"),c),dt(r).set(u.types.stringLiteral(F(t.reserve).value+"("),d)):s.insertBefore(p)}}}var Br={analyze:{enter(e){yr.analyze.enter(e)},exit(e){Or(e)}},translate:{enter(e){const{node:t}=e,[r]=t.attributes;if((0,f.assertNoVar)(e),(0,f.assertNoParams)(e),!u.types.isMarkoAttribute(r)||!r.default)throw e.get("name").buildCodeFrameError("The '' tag requires a default attribute like ''.");if(t.attributes.length>1){const r=t.attributes[1].loc?.start,n=t.attributes[t.attributes.length-1].loc?.end,s="The '' tag only supports a default attribute.";throw null==r||null==n?e.get("name").buildCodeFrameError(s):e.hub.buildError({loc:{start:r,end:n}},s,Error)}},exit(e){Ur(e)}},attributes:{},autocomplete:[{snippet:"else-if=${1:condition}",description:"Use after an or tag to display content if those conditions do not match and this one does.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#if-else-if-else"}]},zr={analyze:{enter(e){yr.analyze.enter(e)},exit(e){Or(e)}},translate:{enter(e){const{node:t}=e,[r]=t.attributes;if((0,f.assertNoVar)(e),(0,f.assertNoParams)(e),t.attributes.length>1||r&&"if"!==r.name){const r=t.attributes[1].loc?.start,n=t.attributes[t.attributes.length-1].loc?.end,s="The '' tag only supports an if attribute.";throw null==r||null==n?e.get("name").buildCodeFrameError(s):e.hub.buildError({loc:{start:r,end:n}},s,Error)}},exit(e){Ur(e)}},attributes:{},autocomplete:[{description:"Use after an or tag to display content if those conditions do not match.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#if-else-if-else"}]},qr={translate(e){const{node:t}=e,[r]=t.attributes;if((0,f.assertNoParams)(e),Xe(e),!t.var)throw e.get("name").buildCodeFrameError("The 'const' tag requires a tag variable.");if(!r)throw e.get("name").buildCodeFrameError("The 'const' tag requires a default attribute.");if(t.attributes.length>1||!u.types.isMarkoAttribute(r)||!r.default&&"value"!==r.name)throw e.get("name").buildCodeFrameError("The 'const' tag only supports the 'default' attribute.");if(g()){const t=S(e),s=r.extra?.valueReferences;Tt(t,s,(n=e.get("var")).isIdentifier()?ht(n.node.extra.reserve):wt(Object.values(n.getBindingIdentifiers()),n.node),r.value)}else dr(e,r.value);var n;e.remove()},attributes:{},autocomplete:[{description:"Use to create an constant binding.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#const"}]},Wr={analyze(e){R(1,E(e),e.node,"cleanup"),(Ot.node.extra??{}).isInteractive=!0},translate:{exit(e){const{node:t}=e,[r]=t.attributes;if((0,f.assertNoParams)(e),Xe(e),!r)throw e.get("name").buildCodeFrameError("The 'effect' tag requires a default attribute.");if(t.attributes.length>1||!u.types.isMarkoAttribute(r)||!r.default&&"value"!==r.name)throw e.get("name").buildCodeFrameError("The 'effect' tag only supports the 'default' attribute.");const n=S(e);if(g()){const{value:t}=r;let s=null;(u.types.isFunctionExpression(t)||u.types.isArrowFunctionExpression(t)&&u.types.isBlockStatement(t.body))&&(s=t.body.body,u.types.traverse(t.body,(e=>{u.types.isReturnStatement(e)&&(s=null)}))),Ct("effect",n,r.extra?.valueReferences,s||u.types.expressionStatement(Se("userEffect",Ut,F(e.node.extra.reserve),r.value)),t,!!s)}else _t(n,r.extra?.valueReferences);e.remove()}},attributes:{},autocomplete:[{description:"Use to create a side effects.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#effect"}]},Vr={analyze:{enter(e){yr.analyze.enter(e),R(1,E(e),e.node,"cleanup"),(Ot.node.extra??{}).isInteractive=!0},exit(e){yr.analyze.exit(e);const t=E(e);e.node.extra.attrsReferences=V(t,e.node.attributes.filter((e=>e.extra?.valueReferences)).map((e=>[e.extra,"valueReferences"])))}},translate:{exit(e){const{node:t}=e;(0,f.assertNoParams)(e),Xe(e);const r=S(e);if(g()){const n=lr(e);Ct("effect",r,t.extra.attrsReferences,u.types.expressionStatement(Se("lifecycle",Ut,F(e.node.extra.reserve),n)),t.attributes.map((e=>e.value)))}else _t(r,t.extra.attrsReferences);e.remove()}},attributes:{},autocomplete:[{description:"Use to create a side effects.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#effect"}]},Hr={translate(e){const{node:t}=e,{var:r}=t,n=Se("nextTagId");if((0,f.assertNoArgs)(e),(0,f.assertNoAttributes)(e),Xe(e),(0,f.assertNoParams)(e),!t.var)throw e.get("name").buildCodeFrameError("The 'id' tag requires a tag variable.");if(!u.types.isIdentifier(r))throw e.get("var").buildCodeFrameError("The 'id' tag cannot be destructured");if(h())e.replaceWith(u.types.variableDeclaration("const",[u.types.variableDeclarator(t.var,n)]));else{const t=ht(r.extra.reserve);Tt(S(e),void 0,t,n),e.remove()}},attributes:{},autocomplete:[{displayText:"id/",description:"Use to create a unique identifier.",snippet:"id/${1:name}",descriptionMoreURL:"https://markojs.com/docs/core-tags/#id"}]},Zr={analyze:{enter(e){const t=function(e){return e.node.extra??={},u.types.isMarkoTag(e.parentPath?.parent)&&(0,f.getTagDef)(e.parentPath.parentPath)?.html?e.node.extra.isOnlyChild=1===e.parent.body.length:e.node.extra.isOnlyChild=!1}(e),r=t?e.parentPath.parent:void 0,n=r?.name?.value;R(0,E(e),t?r:e.node,"for",t?`#${n}`:"#text"),yr.analyze.enter(e)},exit(e){sr(e);const t=E(e);e.node.extra.attrsReferences=V(t,e.node.attributes.filter((e=>u.types.isMarkoAttribute(e)&&void 0!==e.extra?.valueReferences)).map((e=>[e.extra,"valueReferences"]))),e.node.extra.isStateful=!!e.node.extra.attrsReferences&&!Object.keys(e.node.extra.nestedAttributeTags).length,e.node.extra.singleNodeOptimization=1===e.node.body.body.length}},translate:{enter(e){!function(e){const t=e.node.attributes,r=e.node.body.params.length>0;if((0,f.assertNoVar)(e),Jr(t,"of")){if((0,f.assertAllowedAttributes)(e,["of","by"]),!r)throw e.buildCodeFrameError("Invalid 'for of' tag, missing |value, index| params.")}else if(Jr(t,"in")){if((0,f.assertAllowedAttributes)(e,["in","by"]),!r)throw e.buildCodeFrameError("Invalid 'for in' tag, missing |key, value| params.")}else{if(!Jr(t,"to"))throw e.buildCodeFrameError("Invalid 'for' tag, missing an 'of', 'in' or 'to' attribute.");(0,f.assertAllowedAttributes)(e,["from","to","step","by"])}}(e);const{extra:{isOnlyChild:t}}=e.node;t||(Re(e,37),Ne(e)),h()&&Ze(e)},exit(e){h()?Yr.exit(e):Kr.exit(e)}},attributes:{of:{type:"expression",autocomplete:[{description:"Iterates over a list of items."}]},in:{type:"expression",autocomplete:[{description:"Iterates over the keys and values of an object."}]},to:{type:"number",autocomplete:[{description:"Iterates up to the provided number (inclusive)"}]},from:{type:"number",autocomplete:[{description:"Iterates starting from the provided number (inclusive)"}]},step:{type:"number",autocomplete:[{description:"The amount to increment during each interation (with from/to)"}]}},autocomplete:[{snippet:"for|${1:value, index}| of=${3:array}",description:"Use to iterate over lists, object properties, or between ranges.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#iterating-over-a-list"},{snippet:"for|${1:name, value}| in=${3:object}",descriptionMoreURL:"https://markojs.com/docs/core-tags/#iterating-over-an-objects-properties"},{snippet:"for|${1:index}| from=${2:number} to=${3:number} step=${4:number}",descriptionMoreURL:"https://markojs.com/docs/core-tags/#iterating-between-a-range-of-numbers"}]},Kr={exit(e){const t=e.get("body"),r=S(e),n=S(t),{node:s}=e,{attributes:o,extra:{isOnlyChild:a,attrsReferences:i}}=s,{extra:{reserve:l}}=a?e.parentPath.parent:e.node,c=Object.values(t.getBindingIdentifiers());ot(e,(e=>Se("inLoopScope",e,F(l)))),e.remove();const d=Ue(n),p=Jr(o,"of"),f=Jr(o,"to"),m=Jr(o,"in"),y=[];let h;if(p)h="loopOf",y.push(p.value);else if(m)h="loopIn",y.push(m.value);else{if(!f)throw e.get("name").buildCodeFrameError("Invalid tag. Expected either an 'of', 'to', or 'in' attribute.");{const e=Jr(o,"from"),t=Jr(o,"step");h="loopTo",y.push(f.value,e?e.value:u.types.numericLiteral(0),t?t.value:u.types.numericLiteral(1))}}const g=Jr(o,"by");g&&y.push(g.value);const b=yt(r,l);b.build=()=>Se(h,F(l),d),b.hasDownstreamIntersections=()=>{for(const e of c)if(yt(n,e.extra.reserve).hasDownstreamIntersections())return!0;return at(n).length>0},Tt(r,i,b,u.types.arrayExpression(y))}},Yr={exit(e){const t=e.get("body"),r=S(e),n=S(t),{node:s}=e,{attributes:o,body:{body:a,params:i},extra:{isStateful:l,singleNodeOptimization:c,isOnlyChild:d}}=s,{extra:{reserve:p}}=d?e.parentPath.parent:s,f=e.get("name"),m=Jr(o,"of"),y=Jr(o,"in"),h=Jr(o,"to"),g=Jr(o,"by"),b=u.types.blockStatement(a),v=We(e),x=[];let w,k=u.types.identifier("NOO");if(l&&(c||Ve(t)`${Se("markResumeScopeStart",T(n))}`,ft(e,(e=>{const t=Ot.scope.generateUidIdentifier("s");return u.types.callExpression(u.types.arrowFunctionExpression([t],u.types.sequenceExpression([u.types.callExpression(u.types.memberExpression(j(n),u.types.identifier("set")),[k,t]),t])),[e])})),dt(n).set(u.types.stringLiteral("_"),Se("serializedScope",T(r)))),g&&l){const e=Ot.scope.generateUidIdentifier("by");x.push(u.types.variableDeclaration("const",[u.types.variableDeclarator(e,g.value)])),w=[],k=u.types.callExpression(e,w)}if(y){const[e,t]=i;k=e,t&&b.body.unshift(u.types.variableDeclaration("const",[u.types.variableDeclarator(t,u.types.memberExpression(y.value,e,!0))])),x.push(u.types.forInStatement(u.types.variableDeclaration("const",[u.types.variableDeclarator(e)]),y.value,b))}else if(m){let t=m.value,[r,n,s]=i;if(!r)throw f.buildCodeFrameError("Invalid 'for of' tag, missing |value, index| params.");if(!u.types.isIdentifier(r)&&w){const e=Ot.scope.generateUidIdentifier("v");b.body.unshift(u.types.variableDeclaration("const",[u.types.variableDeclarator(r,e)])),r=e}if(n||l){n??=Ot.scope.generateUidIdentifier("i");const t=e.scope.generateUidIdentifierBasedOnNode(n,"i");x.push(u.types.variableDeclaration("let",[u.types.variableDeclarator(t,u.types.numericLiteral(0))])),b.body.unshift(u.types.variableDeclaration("let",[u.types.variableDeclarator(n,u.types.updateExpression("++",t))]))}s&&(u.types.isIdentifier(s)&&(t=s),x.push(u.types.variableDeclaration("const",[u.types.variableDeclarator(s,m.value)]))),w?w.push(r,n):k=n,x.push(u.types.forOfStatement(u.types.variableDeclaration("const",[u.types.variableDeclarator(r)]),t,b))}else if(h){const t=Jr(o,"step")?.value??u.types.numericLiteral(1),r=Jr(o,"from")?.value??u.types.numericLiteral(0);let[n]=i;const s=e.scope.generateUidIdentifier("steps"),a=e.scope.generateUidIdentifier("i"),c=e.scope.generateUidIdentifier("step"),d=e.scope.generateUidIdentifier("from");(n||l)&&(n??=Ot.scope.generateUidIdentifier("i"),k=n,b.body.unshift(u.types.variableDeclaration("const",[u.types.variableDeclarator(n,u.types.binaryExpression("+",d,u.types.binaryExpression("*",a,c)))]))),x.push(u.types.forStatement(u.types.variableDeclaration("let",[u.types.variableDeclarator(d,u.types.logicalExpression("??",r,u.types.numericLiteral(0))),u.types.variableDeclarator(c,u.types.logicalExpression("??",t,u.types.numericLiteral(1))),u.types.variableDeclarator(s,u.types.binaryExpression("/",u.types.binaryExpression("-",h.value,d),c)),u.types.variableDeclarator(a,u.types.numericLiteral(0))]),u.types.binaryExpression("<=",a,s),u.types.updateExpression("++",a),b))}if(l){const t=e.scope.generateUidIdentifier("forScopeIds"),s=j(n);x.unshift(u.types.variableDeclaration("const",[c&&u.types.variableDeclarator(t,u.types.arrayExpression([])),u.types.variableDeclarator(s,u.types.newExpression(u.types.identifier("Map"),[]))].filter(Boolean))),c?(b.body.push(u.types.expressionStatement(u.types.callExpression(u.types.memberExpression(t,u.types.identifier("push")),[T(n)]))),v`${Se("markResumeControlSingleNodeEnd",T(r),F(p),t)}`):v`${Se("markResumeControlEnd",T(r),F(p))}`,dt(r).set(u.types.stringLiteral(F(p).value+"("),u.types.conditionalExpression(u.types.memberExpression(s,u.types.identifier("size")),s,u.types.identifier("undefined")))}Ke(e),Mt(t),b.body.push(u.types.expressionStatement(Se("maybeFlush"))),e.replaceWithMultiple(x)}};function Jr(e,t){return e.find((e=>u.types.isMarkoAttribute(e)&&e.name===t))}var Gr={analyze:{enter(e){0===E(e).id&&((Ot.node.extra??={}).closures=!0),yr.analyze.enter(e)},exit:yr.analyze.exit},translate(e){(0,f.assertNoParams)(e),Xe(e),h()&&Ze(e);const{node:t,hub:{file:r}}=e,[n]=t.attributes;let s;if(!t.var)throw e.get("name").buildCodeFrameError(" requires a variable to be defined, eg .");if(void 0===n)s="$";else{if(!u.types.isMarkoAttribute(n)||!n.default||!u.types.isStringLiteral(n.value))throw e.get("name").buildCodeFrameError("The '' tag requires default attribute that is a string that resolves to a Marko file like '' or '\">'.");if(t.attributes.length>1){const r=t.attributes[1].loc?.start,n=t.attributes[t.attributes.length-1].loc?.end,s="The '' tag only supports a default attribute.";throw null==r||null==n?e.get("name").buildCodeFrameError(s):e.hub.buildError({loc:{start:r,end:n}},s,Error)}const o=e.get("attributes")[0].get("value");if("."===n.value.value)s=r.metadata.marko.id;else{const e=(0,f.resolveTagImport)(o,o.node.value);if(!e)throw o.buildCodeFrameError("Unable to resolve template provided to '' tag.");s=(0,f.getTemplateId)(r.markoOpts.optimize,y().resolve(r.opts.filename,"..",e))}}h()?e.replaceWith(u.types.variableDeclaration("const",[u.types.variableDeclarator(t.var,Se("getInContext",u.types.stringLiteral(s)))])):(!function(e,t){const r=t.section,n=yt(r,t);at(r).push(n.identifier),n.build=()=>Se("contextClosure",F(t),u.types.stringLiteral(e),gt(n,[Ut,u.types.identifier(t.name)]))}(s,Object.values(e.get("var").getBindingIdentifiers())[0].extra.reserve),e.remove())},autocomplete:[{displayText:'get/=""',description:"Gets a value provided from another template.",snippet:'get/${1:name}="${2:from}"',descriptionMoreURL:"https://markojs.com/docs/core-tags/#get"}]},Xr={analyze:{enter(e){R(0,E(e),e.node,"put","#text"),yr.analyze.enter(e)},exit(e){yr.analyze.exit(e)}},translate:{enter(e){const{node:t}=e,[r]=t.attributes;if(!t.body.body.length)throw e.buildCodeFrameError("The '' tag requires body content that the context is forwarded through.");if(!u.types.isMarkoAttribute(r)||!r.default)throw e.get("name").buildCodeFrameError("The '' tag requires default attribute like ''.");if(t.attributes.length>1){const r=t.attributes[1].loc?.start,n=t.attributes[t.attributes.length-1].loc?.end,s="The '' tag only supports a default attribute.";throw null==r||null==n?e.get("name").buildCodeFrameError(s):e.hub.buildError({loc:{start:r,end:n}},s,Error)}if(h())Ze(e),e.insertBefore(u.types.expressionStatement(Se("pushContext",u.types.stringLiteral(e.hub.file.metadata.marko.id),r.value)));else{Re(e,37),Ne(e);const n=S(e.get("body")),s=Ue(n);!function(e,t,r,n,s){const o=t.section,a=F(t),i=u.types.stringLiteral(`${t.id}:`),l=ht(t,i);Tt(o,r,l,n),l.hasDynamicSubscribers=!0,l.hasDownstreamIntersections=()=>!0,Ct("render",t.section,void 0,u.types.expressionStatement(Se("initContextProvider",Ut,a,i,u.types.stringLiteral(e),s)))}(e.hub.file.metadata.marko.id,t.extra.reserve,r.extra?.valueReferences,r.value,s)}},exit(e){(0,f.assertNoParams)(e),(0,f.assertNoVar)(e),h()&&(Ke(e),Mt(e.get("body")),e.insertAfter(u.types.expressionStatement(Se("popContext")))),e.replaceWithMultiple(e.node.body.body)}},autocomplete:[{displayText:"put=",description:"Sets a value which can be read from a child template.",snippet:"put=${1:value}",descriptionMoreURL:"https://markojs.com/docs/core-tags/#put"}]},Qr={migrate:[e=>e.remove()]},en={taglibId:Er,"":_r,"":Mr,"":$r,"":Rr,"":Br,"":zr,"":Zr,"":{translate(e){const{node:t}=e,r=t.var,n=t.attributes.find((e=>u.types.isMarkoAttribute(e)&&(e.default||"value"===e.name)))??u.types.markoAttribute("value",u.types.identifier("undefined"));if((0,f.assertNoParams)(e),Xe(e),!r)throw e.get("name").buildCodeFrameError("The 'let' tag requires a tag variable.");if(!u.types.isIdentifier(r))throw e.get("var").buildCodeFrameError("The 'let' cannot be destructured.");if(g()){const t=S(e),s=r.extra.reserve,o=ht(s),a=n.extra?.valueReferences;if(a){let r;Tt(t,a,{get identifier(){return r||(r=e.scope.generateUidIdentifier(o.identifier.name+"_init"),Ot.pushContainer("body",u.types.variableDeclaration("const",[u.types.variableDeclarator(r,Se("initValue",F(s),o.identifier))]))),r},hasDownstreamIntersections:()=>o.hasDownstreamIntersections()},n.value)}else Tt(t,a,o,n.value);!function(e,t){for(const r of e.constantViolations)Zt.set(r.node,t)}(e.scope.getBinding(s.name),((e,t)=>function(e,t,r){return Se("queueSource",xe(r,e.section),e.identifier,t)}(o,t,S(e))))}else dr(e,n.value);e.remove()},attributes:{},autocomplete:[{description:"Use to create a mutable binding.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#let"}]},"":qr,"":Wr,"":Vr,"":Hr,"":{analyze(){},translate:{enter(e){Me(e),We(e)``,e.remove()}},parseOptions:{text:!0},attributes:{},autocomplete:[{description:"Use to create an html comment that is not stripped from the output.",descriptionMoreURL:"https://markojs.com/docs/core-tags/#html-comment"}]},"":{translate:{enter(e){if(h()&&Ze(e),!e.node.var)throw e.get("name").buildCodeFrameError(" requires a variable to be defined, eg .")},exit(e){h()&&Ke(e),e.replaceWith(u.types.variableDeclaration("const",[u.types.variableDeclarator(e.node.var,Se("createRenderer",u.types.arrowFunctionExpression(e.node.body.params,vr(e.node.body))))]))}},attributes:{},autocomplete:[{displayText:"tag/||",description:"Creates a reusable fragment within the template.",snippet:"tag/${1:name}|${2:param1, param2}|",descriptionMoreURL:"https://markojs.com/docs/core-tags/#tag"}]},"":Xr,"":Gr,"":tt,"","\n\n\n \n <${actions.renderBody}/>\n \n \n \n <${body.renderBody}/>\n \n\n\n\n","\n\n\n // back to the original value. So we track those values as well,\n // so we can re-set the