marko 6.4.3 → 6.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/cheatsheet.md +2 -2
  2. package/dist/common/constants/renderer-prop.d.ts +2 -0
  3. package/dist/common/constants/renderer-prop.debug.d.ts +2 -0
  4. package/dist/debug/dom/catch.feat.js +1 -1
  5. package/dist/debug/dom/catch.feat.mjs +1 -1
  6. package/dist/debug/dom/controllable-input.feat.js +1 -1
  7. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  8. package/dist/debug/dom/controllable-open.feat.js +1 -1
  9. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  10. package/dist/debug/dom/controllable-select.feat.js +1 -1
  11. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  12. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  13. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  14. package/dist/debug/dom/controllable.feat.js +1 -1
  15. package/dist/debug/dom/controllable.feat.mjs +1 -1
  16. package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
  17. package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
  18. package/dist/debug/dom/dynamic-tag-var.feat.js +5 -1
  19. package/dist/debug/dom/dynamic-tag-var.feat.mjs +5 -1
  20. package/dist/debug/dom/lazy.feat.js +1 -1
  21. package/dist/debug/dom/lazy.feat.mjs +1 -1
  22. package/dist/debug/dom/placeholder.feat.js +1 -1
  23. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  24. package/dist/debug/{dom-uEY0J_H9.mjs → dom-BeY1nGUb.mjs} +15 -12
  25. package/dist/debug/{dom-C7F3yZTh.js → dom-CUxvM4i9.js} +32 -23
  26. package/dist/debug/dom.js +3 -10
  27. package/dist/debug/dom.mjs +3 -10
  28. package/dist/debug/html.js +24 -16
  29. package/dist/debug/html.mjs +24 -16
  30. package/dist/dom/catch.feat.js +4 -4
  31. package/dist/dom/catch.feat.mjs +1 -1
  32. package/dist/dom/control-flow.d.ts +2 -2
  33. package/dist/dom/controllable-input.feat.js +2 -2
  34. package/dist/dom/controllable-input.feat.mjs +1 -1
  35. package/dist/dom/controllable-open.feat.js +2 -2
  36. package/dist/dom/controllable-open.feat.mjs +1 -1
  37. package/dist/dom/controllable-select.feat.js +2 -2
  38. package/dist/dom/controllable-select.feat.mjs +1 -1
  39. package/dist/dom/controllable-textarea.feat.js +2 -2
  40. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  41. package/dist/dom/controllable.feat.js +2 -2
  42. package/dist/dom/controllable.feat.mjs +1 -1
  43. package/dist/dom/dynamic-tag-script.feat.js +2 -2
  44. package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
  45. package/dist/dom/dynamic-tag-var.feat.js +3 -3
  46. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  47. package/dist/dom/lazy.feat.js +1 -1
  48. package/dist/dom/lazy.feat.mjs +1 -1
  49. package/dist/dom/load.d.ts +0 -1
  50. package/dist/dom/placeholder.feat.js +3 -3
  51. package/dist/dom/placeholder.feat.mjs +1 -1
  52. package/dist/dom/renderer.d.ts +9 -2
  53. package/dist/{dom-DHg9YChM.mjs → dom-DefWmvQB.mjs} +10 -7
  54. package/dist/{dom-CtIT8Mpr.js → dom-Diu8MpmL.js} +124 -126
  55. package/dist/dom.d.ts +2 -2
  56. package/dist/dom.js +31 -37
  57. package/dist/dom.mjs +2 -8
  58. package/dist/html/assets.d.ts +1 -1
  59. package/dist/html/content.d.ts +1 -0
  60. package/dist/html/dynamic-tag.d.ts +1 -1
  61. package/dist/html/template.d.ts +1 -0
  62. package/dist/html.js +7 -7
  63. package/dist/html.mjs +7 -7
  64. package/dist/translator/index.js +119 -66
  65. package/dist/translator/util/module-registrations.d.ts +1 -1
  66. package/dist/translator/util/solve-reasons.d.ts +1 -0
  67. package/dist/translator/visitors/function.d.ts +15 -10
  68. package/dist/translator/visitors/import-declaration.d.ts +3 -4
  69. package/package.json +3 -3
  70. package/tags-html.d.ts +3 -2
@@ -37,6 +37,7 @@ const Renderer = "#Renderer";
37
37
  const TagVariable = "#TagVariable";
38
38
  const Owner = "owner";
39
39
  const Embed = "embed";
40
+ const Lazy = "lazy";
40
41
  //#endregion
41
42
  //#region src/common/helpers.ts
42
43
  const htmlAttrNameReg = /^[^a-z_]|[^a-z0-9._:-]/i;
@@ -1853,10 +1854,7 @@ function _attr_option_value(value) {
1853
1854
  const valueAttr = _attr("value", value);
1854
1855
  const selectedValue = getContext(kSelectedValue);
1855
1856
  if (selectedValue !== void 0 && normalizedValueMatches(selectedValue, value)) {
1856
- {
1857
- const matched = getContext(kSelectedValueMatched);
1858
- if (matched) matched.value = true;
1859
- }
1857
+ getContext(kSelectedValueMatched)?.add(normalizeStrAttrValue(value));
1860
1858
  return valueAttr + " selected";
1861
1859
  }
1862
1860
  return valueAttr;
@@ -1868,9 +1866,12 @@ function _attr_select_value(scopeId, nodeAccessor, value, valueChange, content,
1868
1866
  if (content) {
1869
1867
  const selectedValue = value ?? "";
1870
1868
  if (valueChange) {
1871
- const matched = { value: false };
1869
+ const matched = /* @__PURE__ */ new Set();
1872
1870
  withContext(kSelectedValue, selectedValue, () => withContext(kSelectedValueMatched, matched, content));
1873
- if (!matched.value && (Array.isArray(value) ? value.some((v) => normalizeStrAttrValue(v) !== "") : normalizeStrAttrValue(value) !== "")) console.error("A controlled `<select>`'s `value` has no matching `<option>`:", value);
1871
+ if ((Array.isArray(value) ? value : [value]).some((v) => {
1872
+ const str = normalizeStrAttrValue(v);
1873
+ return str !== "" && !matched.has(str);
1874
+ })) console.error("A controlled `<select>`'s `value` has no matching `<option>`:", value);
1874
1875
  } else withContext(kSelectedValue, selectedValue, content);
1875
1876
  }
1876
1877
  }
@@ -3384,11 +3385,14 @@ function _escape(val) {
3384
3385
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
3385
3386
  }
3386
3387
  const unsafeScriptReg = /<(\/?script|!--)/gi;
3387
- const escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C$1") : str;
3388
+ const escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\u003C$1") : str;
3388
3389
  function _escape_script(val) {
3389
3390
  assertValidTextValue(val);
3390
3391
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
3391
3392
  }
3393
+ const unsafeScriptTemplateLiteralReg = /[`\\\r]|\$\{|<(?=\/?script|!--)/gi;
3394
+ const replaceUnsafeScriptTemplateLiteral = (c) => c === "<" ? "\\x3C" : c === "\r" ? "\\r" : "\\" + c;
3395
+ const quoteScriptTemplateLiteral = (str) => "`" + (unsafeScriptTemplateLiteralReg.test(str) ? str.replace(unsafeScriptTemplateLiteralReg, replaceUnsafeScriptTemplateLiteral) : str) + "`";
3392
3396
  const unsafeStyleReg = /<(\/style)/gi;
3393
3397
  const escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C$1") : str;
3394
3398
  function _escape_style(val) {
@@ -3411,7 +3415,7 @@ function _escape_comment(val) {
3411
3415
  //#endregion
3412
3416
  //#region src/html/dynamic-tag.ts
3413
3417
  const voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
3414
- let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, markerGuard) => {
3418
+ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, markerGuard, tagVar) => {
3415
3419
  const shouldResume = markerGuard !== 0;
3416
3420
  const renderer = normalizeDynamicRenderer(tag);
3417
3421
  const state = getState();
@@ -3448,6 +3452,7 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, m
3448
3452
  renderNative();
3449
3453
  result = _el(scopeId, DYNAMIC_TAG_VAR_REGISTER_ID + accessor);
3450
3454
  } else {
3455
+ if (tagVar && renderer?.["lazy"]) throw new Error(`A dynamic tag with a [tag variable](https://markojs.com/docs/reference/language#tag-variables) rendered \`${renderer["id"]}\`, which is lazily loaded, so it does not support one. Import it without \`load\`, or remove the variable.`);
3451
3456
  const chunk = getChunk();
3452
3457
  const beforeBranch = shouldResume ? deferBranchStart(chunk) : void 0;
3453
3458
  const render = () => {
@@ -3460,7 +3465,7 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, m
3460
3465
  } finally {
3461
3466
  _set_scope_reason(void 0);
3462
3467
  }
3463
- else if (content) return content();
3468
+ else if (content) content();
3464
3469
  };
3465
3470
  result = shouldResume ? withBranchId(branchId, render) : render();
3466
3471
  rendered = _peek_scope_id() !== branchId;
@@ -3484,10 +3489,10 @@ function _content_resume(id, fn, scopeId, locals) {
3484
3489
  return _resume(_content(id, fn, scopeId), id, scopeId, locals);
3485
3490
  }
3486
3491
  const patchDynamicTag = /* @__PURE__ */ ((originalDynamicTag) => (patch) => {
3487
- _dynamic_tag = (scopeId, accessor, tag, input, content, inputIsArgs, resume) => {
3492
+ _dynamic_tag = (scopeId, accessor, tag, input, content, inputIsArgs, resume, tagVar) => {
3488
3493
  const patched = patch(tag, scopeId, accessor);
3489
3494
  if (patched !== tag) patched["id"] = tag;
3490
- return originalDynamicTag(scopeId, accessor, patched, input, content, inputIsArgs, resume);
3495
+ return originalDynamicTag(scopeId, accessor, patched, input, content, inputIsArgs, resume, tagVar);
3491
3496
  };
3492
3497
  })(_dynamic_tag);
3493
3498
  //#endregion
@@ -3760,10 +3765,13 @@ function NOOP$1() {}
3760
3765
  const kAssets = Symbol();
3761
3766
  const kHead = Symbol();
3762
3767
  function withLoadAssets(renderer, flush, assetId, triggers) {
3763
- return Object.assign((input) => {
3768
+ return register(renderer["id"], Object.assign((input) => {
3764
3769
  writeLoadAsset(assetId, flush, triggers);
3765
3770
  return writeWaitReady(assetId, renderer, input);
3766
- }, renderer);
3771
+ }, {
3772
+ ...renderer,
3773
+ [Lazy]: 1
3774
+ }));
3767
3775
  }
3768
3776
  function writeLoadAsset(assetId, flush, triggers) {
3769
3777
  const g = $global();
@@ -3812,7 +3820,7 @@ function writeAsset(g, asset) {
3812
3820
  if (g[kHead] || g.__flush__ !== flushPage) {
3813
3821
  const block = blockHTML(g, asset);
3814
3822
  _html(block + (asset.triggers ? "" : deferHTML(g, asset)));
3815
- if (block && isInResumedBranch()) writeScript(`document.head.insertAdjacentHTML("beforeend",${_escape_script(JSON.stringify(block))})`);
3823
+ if (block && isInResumedBranch()) writeScript(`document.head.insertAdjacentHTML("beforeend",${quoteScriptTemplateLiteral(block)})`);
3816
3824
  asset.htmlAt = catchableBoundary();
3817
3825
  }
3818
3826
  }
@@ -3848,8 +3856,8 @@ function addAsset(g, id, flush, triggers) {
3848
3856
  return asset;
3849
3857
  }
3850
3858
  function triggerScript(id, html, triggers) {
3851
- const htmlStr = _escape_script(JSON.stringify(html));
3852
- const insert = `(d=new Range().createContextualFragment(h),d.querySelectorAll("script").forEach(s=>s.onerror=()=>console.error(${_escape_script(JSON.stringify(`The lazy module for "${id}" failed to load; its server-rendered content cannot become interactive.`))})),document.head.append(d))`;
3859
+ const htmlStr = quoteScriptTemplateLiteral(html);
3860
+ const insert = `(d=new Range().createContextualFragment(h),d.querySelectorAll("script").forEach(s=>s.onerror=()=>console.error(${quoteScriptTemplateLiteral(`The lazy module for "${id}" failed to load; its server-rendered content cannot become interactive.`)})),document.head.append(d))`;
3853
3861
  const exprs = triggers.map((trigger) => {
3854
3862
  const options = trigger.options && toObjectExpression(trigger.options);
3855
3863
  switch (trigger.type) {
@@ -35,6 +35,7 @@ const Renderer = "#Renderer";
35
35
  const TagVariable = "#TagVariable";
36
36
  const Owner = "owner";
37
37
  const Embed = "embed";
38
+ const Lazy = "lazy";
38
39
  //#endregion
39
40
  //#region src/common/helpers.ts
40
41
  const htmlAttrNameReg = /^[^a-z_]|[^a-z0-9._:-]/i;
@@ -1851,10 +1852,7 @@ function _attr_option_value(value) {
1851
1852
  const valueAttr = _attr("value", value);
1852
1853
  const selectedValue = getContext(kSelectedValue);
1853
1854
  if (selectedValue !== void 0 && normalizedValueMatches(selectedValue, value)) {
1854
- {
1855
- const matched = getContext(kSelectedValueMatched);
1856
- if (matched) matched.value = true;
1857
- }
1855
+ getContext(kSelectedValueMatched)?.add(normalizeStrAttrValue(value));
1858
1856
  return valueAttr + " selected";
1859
1857
  }
1860
1858
  return valueAttr;
@@ -1866,9 +1864,12 @@ function _attr_select_value(scopeId, nodeAccessor, value, valueChange, content,
1866
1864
  if (content) {
1867
1865
  const selectedValue = value ?? "";
1868
1866
  if (valueChange) {
1869
- const matched = { value: false };
1867
+ const matched = /* @__PURE__ */ new Set();
1870
1868
  withContext(kSelectedValue, selectedValue, () => withContext(kSelectedValueMatched, matched, content));
1871
- if (!matched.value && (Array.isArray(value) ? value.some((v) => normalizeStrAttrValue(v) !== "") : normalizeStrAttrValue(value) !== "")) console.error("A controlled `<select>`'s `value` has no matching `<option>`:", value);
1869
+ if ((Array.isArray(value) ? value : [value]).some((v) => {
1870
+ const str = normalizeStrAttrValue(v);
1871
+ return str !== "" && !matched.has(str);
1872
+ })) console.error("A controlled `<select>`'s `value` has no matching `<option>`:", value);
1872
1873
  } else withContext(kSelectedValue, selectedValue, content);
1873
1874
  }
1874
1875
  }
@@ -3382,11 +3383,14 @@ function _escape(val) {
3382
3383
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
3383
3384
  }
3384
3385
  const unsafeScriptReg = /<(\/?script|!--)/gi;
3385
- const escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C$1") : str;
3386
+ const escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\u003C$1") : str;
3386
3387
  function _escape_script(val) {
3387
3388
  assertValidTextValue(val);
3388
3389
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
3389
3390
  }
3391
+ const unsafeScriptTemplateLiteralReg = /[`\\\r]|\$\{|<(?=\/?script|!--)/gi;
3392
+ const replaceUnsafeScriptTemplateLiteral = (c) => c === "<" ? "\\x3C" : c === "\r" ? "\\r" : "\\" + c;
3393
+ const quoteScriptTemplateLiteral = (str) => "`" + (unsafeScriptTemplateLiteralReg.test(str) ? str.replace(unsafeScriptTemplateLiteralReg, replaceUnsafeScriptTemplateLiteral) : str) + "`";
3390
3394
  const unsafeStyleReg = /<(\/style)/gi;
3391
3395
  const escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C$1") : str;
3392
3396
  function _escape_style(val) {
@@ -3409,7 +3413,7 @@ function _escape_comment(val) {
3409
3413
  //#endregion
3410
3414
  //#region src/html/dynamic-tag.ts
3411
3415
  const voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
3412
- let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, markerGuard) => {
3416
+ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, markerGuard, tagVar) => {
3413
3417
  const shouldResume = markerGuard !== 0;
3414
3418
  const renderer = normalizeDynamicRenderer(tag);
3415
3419
  const state = getState();
@@ -3446,6 +3450,7 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, m
3446
3450
  renderNative();
3447
3451
  result = _el(scopeId, DYNAMIC_TAG_VAR_REGISTER_ID + accessor);
3448
3452
  } else {
3453
+ if (tagVar && renderer?.["lazy"]) throw new Error(`A dynamic tag with a [tag variable](https://markojs.com/docs/reference/language#tag-variables) rendered \`${renderer["id"]}\`, which is lazily loaded, so it does not support one. Import it without \`load\`, or remove the variable.`);
3449
3454
  const chunk = getChunk();
3450
3455
  const beforeBranch = shouldResume ? deferBranchStart(chunk) : void 0;
3451
3456
  const render = () => {
@@ -3458,7 +3463,7 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, m
3458
3463
  } finally {
3459
3464
  _set_scope_reason(void 0);
3460
3465
  }
3461
- else if (content) return content();
3466
+ else if (content) content();
3462
3467
  };
3463
3468
  result = shouldResume ? withBranchId(branchId, render) : render();
3464
3469
  rendered = _peek_scope_id() !== branchId;
@@ -3482,10 +3487,10 @@ function _content_resume(id, fn, scopeId, locals) {
3482
3487
  return _resume(_content(id, fn, scopeId), id, scopeId, locals);
3483
3488
  }
3484
3489
  const patchDynamicTag = /* @__PURE__ */ ((originalDynamicTag) => (patch) => {
3485
- _dynamic_tag = (scopeId, accessor, tag, input, content, inputIsArgs, resume) => {
3490
+ _dynamic_tag = (scopeId, accessor, tag, input, content, inputIsArgs, resume, tagVar) => {
3486
3491
  const patched = patch(tag, scopeId, accessor);
3487
3492
  if (patched !== tag) patched["id"] = tag;
3488
- return originalDynamicTag(scopeId, accessor, patched, input, content, inputIsArgs, resume);
3493
+ return originalDynamicTag(scopeId, accessor, patched, input, content, inputIsArgs, resume, tagVar);
3489
3494
  };
3490
3495
  })(_dynamic_tag);
3491
3496
  //#endregion
@@ -3758,10 +3763,13 @@ function NOOP$1() {}
3758
3763
  const kAssets = Symbol();
3759
3764
  const kHead = Symbol();
3760
3765
  function withLoadAssets(renderer, flush, assetId, triggers) {
3761
- return Object.assign((input) => {
3766
+ return register(renderer["id"], Object.assign((input) => {
3762
3767
  writeLoadAsset(assetId, flush, triggers);
3763
3768
  return writeWaitReady(assetId, renderer, input);
3764
- }, renderer);
3769
+ }, {
3770
+ ...renderer,
3771
+ [Lazy]: 1
3772
+ }));
3765
3773
  }
3766
3774
  function writeLoadAsset(assetId, flush, triggers) {
3767
3775
  const g = $global();
@@ -3810,7 +3818,7 @@ function writeAsset(g, asset) {
3810
3818
  if (g[kHead] || g.__flush__ !== flushPage) {
3811
3819
  const block = blockHTML(g, asset);
3812
3820
  _html(block + (asset.triggers ? "" : deferHTML(g, asset)));
3813
- if (block && isInResumedBranch()) writeScript(`document.head.insertAdjacentHTML("beforeend",${_escape_script(JSON.stringify(block))})`);
3821
+ if (block && isInResumedBranch()) writeScript(`document.head.insertAdjacentHTML("beforeend",${quoteScriptTemplateLiteral(block)})`);
3814
3822
  asset.htmlAt = catchableBoundary();
3815
3823
  }
3816
3824
  }
@@ -3846,8 +3854,8 @@ function addAsset(g, id, flush, triggers) {
3846
3854
  return asset;
3847
3855
  }
3848
3856
  function triggerScript(id, html, triggers) {
3849
- const htmlStr = _escape_script(JSON.stringify(html));
3850
- const insert = `(d=new Range().createContextualFragment(h),d.querySelectorAll("script").forEach(s=>s.onerror=()=>console.error(${_escape_script(JSON.stringify(`The lazy module for "${id}" failed to load; its server-rendered content cannot become interactive.`))})),document.head.append(d))`;
3857
+ const htmlStr = quoteScriptTemplateLiteral(html);
3858
+ const insert = `(d=new Range().createContextualFragment(h),d.querySelectorAll("script").forEach(s=>s.onerror=()=>console.error(${quoteScriptTemplateLiteral(`The lazy module for "${id}" failed to load; its server-rendered content cannot become interactive.`)})),document.head.append(d))`;
3851
3859
  const exprs = triggers.map((trigger) => {
3852
3860
  const options = trigger.options && toObjectExpression(trigger.options);
3853
3861
  switch (trigger.type) {
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js"), handlePendingTry = (fn, scope, branch) => {
2
+ let require_control_flow = require("../dom-Diu8MpmL.js"), handlePendingTry = (fn, scope, branch) => {
3
3
  for (; branch;) {
4
- if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = () => complete() || require_control_flow.un(branch, require_control_flow.dn, require_control_flow.x))(branch.O.c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
4
+ if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = () => complete() || require_control_flow.ln(branch, require_control_flow.un, require_control_flow.b))(branch.O.c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
5
5
  branch = branch.N;
6
6
  }
7
7
  };
8
8
  //#region src/dom/catch.feat.ts
9
- require_control_flow.cn((effects) => {
9
+ require_control_flow.sn((effects) => {
10
10
  let i = 0, fn, scope, branch;
11
11
  for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !handlePendingTry(fn, scope, branch) && fn(scope);
12
12
  }, (runRender) => (render) => {
@@ -18,7 +18,7 @@ require_control_flow.cn((effects) => {
18
18
  }
19
19
  render.f = 0, runRender(render);
20
20
  } catch (error) {
21
- require_control_flow.b(render.b, error);
21
+ require_control_flow.y(render.b, error);
22
22
  }
23
23
  });
24
24
  //#endregion
@@ -4,7 +4,7 @@ let handlePendingTry = (fn, scope, branch) => {
4
4
  branch = branch.N;
5
5
  }
6
6
  };
7
- import { b as renderCatch, cn as installCatch, dn as queueEffect, un as queueAsyncRender, x as runPendingEffects } from "../dom-DHg9YChM.mjs";
7
+ import { b as runPendingEffects, ln as queueAsyncRender, sn as installCatch, un as queueEffect, y as renderCatch } from "../dom-DefWmvQB.mjs";
8
8
  //#region src/dom/catch.feat.ts
9
9
  installCatch((effects) => {
10
10
  let i = 0, fn, scope, branch;
@@ -11,9 +11,9 @@ export declare const _if: (nodeAccessor: EncodedAccessor, ...branchesArgs: (stri
11
11
  export declare const _show: (nodeAccessor: EncodedAccessor, startNodeAccessor?: EncodedAccessor, endNodeAccessor?: EncodedAccessor) => (scope: Scope, display: unknown) => void;
12
12
  export declare function rendererKey(renderer: Renderer | string | undefined): string | Renderer | undefined;
13
13
  export declare function patchDynamicTag(fn: <T extends typeof _dynamic_tag>(cond: T) => T): void;
14
- export declare let _dynamic_tag: (nodeAccessor: EncodedAccessor, getContent?: ((scope: Scope) => Renderer) | 0, getTagVar?: (() => Signal<unknown>) | 0, inputIsArgs?: 1) => Signal<Renderer | string | undefined>;
14
+ export declare let _dynamic_tag: (nodeAccessor: EncodedAccessor, getContent?: ((scope: Scope) => Renderer) | 0, getTagVar?: (() => (scope: Scope, value?: unknown) => void) | 0, inputIsArgs?: 1) => Signal<Renderer | string | undefined>;
15
15
  export declare const _dynamic_tag_content: (nodeAccessor: EncodedAccessor) => Signal<Renderer | undefined>;
16
- export declare let bindTagVar: undefined | ((scope: Scope, branch: BranchScope, scopeKey: number, renderer?: Renderer | string) => void);
16
+ export declare let bindTagVar: undefined | ((scope: Scope, branch: BranchScope, scopeKey: number, renderer: Renderer | string) => void);
17
17
  export declare function installDynamicTagVar(bind: NonNullable<typeof bindTagVar>): void;
18
18
  export declare function dynamicTagScript(branch: Scope): void;
19
19
  export declare function setConditionalRenderer<T>(scope: Scope, nodeAccessor: Accessor, newRenderer: T, createBranch: ($global: Scope[typeof AccessorProp.Global], renderer: NonNullable<T>, parentScope: Scope, parentNode: ParentNode) => BranchScope): void;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
3
- require_control_flow.W[0] = require_control_flow.A, require_control_flow.W[1] = require_control_flow.O, require_control_flow.W[2] = require_control_flow.F;
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
+ require_control_flow.U[0] = require_control_flow.k, require_control_flow.U[1] = require_control_flow.D, require_control_flow.U[2] = require_control_flow.P;
4
4
  //#endregion
@@ -1,3 +1,3 @@
1
- import { A as _attr_input_checked_script, F as _attr_input_value_script, O as _attr_input_checkedValue_script, W as controllableScripts } from "../dom-DHg9YChM.mjs";
1
+ import { D as _attr_input_checkedValue_script, P as _attr_input_value_script, U as controllableScripts, k as _attr_input_checked_script } from "../dom-DefWmvQB.mjs";
2
2
  controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
3
3
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
3
  //#region src/dom/controllable-open.feat.ts
4
- require_control_flow.W[4] = require_control_flow.w;
4
+ require_control_flow.U[4] = require_control_flow.C;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { W as controllableScripts, w as _attr_details_or_dialog_open_script } from "../dom-DHg9YChM.mjs";
1
+ import { C as _attr_details_or_dialog_open_script, U as controllableScripts } from "../dom-DefWmvQB.mjs";
2
2
  //#region src/dom/controllable-open.feat.ts
3
3
  controllableScripts[4] = _attr_details_or_dialog_open_script;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
3
  //#region src/dom/controllable-select.feat.ts
4
- require_control_flow.W[3] = require_control_flow.R;
4
+ require_control_flow.U[3] = require_control_flow.L;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { R as _attr_select_value_script, W as controllableScripts } from "../dom-DHg9YChM.mjs";
1
+ import { L as _attr_select_value_script, U as controllableScripts } from "../dom-DefWmvQB.mjs";
2
2
  //#region src/dom/controllable-select.feat.ts
3
3
  controllableScripts[3] = _attr_select_value_script;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
3
  //#region src/dom/controllable-textarea.feat.ts
4
- require_control_flow.W[2] = require_control_flow.F;
4
+ require_control_flow.U[2] = require_control_flow.P;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { F as _attr_input_value_script, W as controllableScripts } from "../dom-DHg9YChM.mjs";
1
+ import { P as _attr_input_value_script, U as controllableScripts } from "../dom-DefWmvQB.mjs";
2
2
  //#region src/dom/controllable-textarea.feat.ts
3
3
  controllableScripts[2] = _attr_input_value_script;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
3
- require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.U.INPUT = require_control_flow.z, require_control_flow.U.TEXTAREA = require_control_flow.H, require_control_flow.U.SELECT = require_control_flow.V, require_control_flow.U.DETAILS = require_control_flow.U.DIALOG = require_control_flow.B;
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
+ require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.H.INPUT = require_control_flow.R, require_control_flow.H.TEXTAREA = require_control_flow.V, require_control_flow.H.SELECT = require_control_flow.B, require_control_flow.H.DETAILS = require_control_flow.H.DIALOG = require_control_flow.z;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { B as _controllable_open, H as _controllable_textarea, U as controllableRenders, V as _controllable_select, z as _controllable_input } from "../dom-DHg9YChM.mjs";
1
+ import { B as _controllable_select, H as controllableRenders, R as _controllable_input, V as _controllable_textarea, z as _controllable_open } from "../dom-DefWmvQB.mjs";
2
2
  import "./controllable-input.feat.mjs";
3
3
  import "./controllable-open.feat.mjs";
4
4
  import "./controllable-select.feat.mjs";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
3
  //#region src/dom/dynamic-tag-script.feat.ts
4
- require_control_flow.wt._d = require_control_flow.Tn(require_control_flow._);
4
+ require_control_flow.Ct._d = require_control_flow.wn(require_control_flow.g);
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Tn as withBranches, _ as dynamicTagScript, wt as _resumed } from "../dom-DHg9YChM.mjs";
1
+ import { Ct as _resumed, g as dynamicTagScript, wn as withBranches } from "../dom-DefWmvQB.mjs";
2
2
  //#region src/dom/dynamic-tag-script.feat.ts
3
3
  _resumed._d = withBranches(dynamicTagScript);
4
4
  //#endregion
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
3
- require_control_flow.sn(), require_control_flow.v((scope, branch, scopeKey, renderer) => {
4
- branch.BR = require_control_flow.on(scope, scopeKey), typeof renderer == "string" && branch.T(() => branch.S);
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
+ require_control_flow.on(), require_control_flow._((scope, branch, scopeKey, renderer) => {
4
+ branch.BR = require_control_flow.an(scope, scopeKey), typeof renderer == "string" && branch.T(() => branch.S);
5
5
  });
6
6
  //#endregion
@@ -1,4 +1,4 @@
1
- import { on as createBranchRenders, sn as installBranchRenders, v as installDynamicTagVar } from "../dom-DHg9YChM.mjs";
1
+ import { _ as installDynamicTagVar, an as createBranchRenders, on as installBranchRenders } from "../dom-DefWmvQB.mjs";
2
2
  installBranchRenders(), installDynamicTagVar((scope, branch, scopeKey, renderer) => {
3
3
  branch.BR = createBranchRenders(scope, scopeKey), typeof renderer == "string" && branch.T(() => branch.S);
4
4
  });
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  //#region src/dom/lazy.feat.ts
3
- require("../dom-CtIT8Mpr.js").jt();
3
+ require("../dom-Diu8MpmL.js").At();
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { jt as withLazy } from "../dom-DHg9YChM.mjs";
1
+ import { At as withLazy } from "../dom-DefWmvQB.mjs";
2
2
  //#region src/dom/lazy.feat.ts
3
3
  withLazy();
4
4
  //#endregion
@@ -12,7 +12,6 @@ export interface LoadTrigger {
12
12
  }
13
13
  export declare function _load_template(id: string, load: () => Promise<Renderer>): Template & Renderer;
14
14
  export declare function _load_setup(load: () => Promise<LoadModule>): (owner: Scope, child: BranchScope, marker: ChildNode) => void;
15
- export declare function _load_setup_var(load: () => Promise<LoadModule>): (owner: Scope, child: BranchScope, marker: ChildNode) => void;
16
15
  export declare function _load_signal(load: () => Promise<LoadSignal>): Signal;
17
16
  export declare function _load_visible_trigger(selector: string, options?: IntersectionObserverInit): LoadTrigger;
18
17
  export declare function _load_idle_trigger(options?: {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-CtIT8Mpr.js");
2
+ let require_control_flow = require("../dom-Diu8MpmL.js");
3
3
  //#region src/dom/placeholder.feat.ts
4
- require_control_flow.wt._f = (tryBranch) => {
5
- tryBranch.P &&= (require_control_flow.$t(tryBranch.P), 0);
4
+ require_control_flow.Ct._f = (tryBranch) => {
5
+ tryBranch.P &&= (require_control_flow.Qt(tryBranch.P), 0);
6
6
  };
7
7
  //#endregion
@@ -1,4 +1,4 @@
1
- import { $t as destroyBranch, wt as _resumed } from "../dom-DHg9YChM.mjs";
1
+ import { Ct as _resumed, Qt as destroyBranch } from "../dom-DefWmvQB.mjs";
2
2
  //#region src/dom/placeholder.feat.ts
3
3
  _resumed._f = (tryBranch) => {
4
4
  tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
@@ -4,16 +4,23 @@ export type Renderer = {
4
4
  [RendererProp.Id]: string;
5
5
  [RendererProp.Setup]: undefined | SetupFn;
6
6
  [RendererProp.Clone]: (branch: BranchScope, ns: string) => void;
7
- [RendererProp.Params]: Signal<unknown> | undefined;
7
+ [RendererProp.Params]: (Signal<unknown> & ReturnMark) | undefined;
8
8
  [RendererProp.Owner]: Scope | undefined;
9
9
  [RendererProp.Accessor]: Accessor | undefined;
10
10
  [RendererProp.LocalClosures]?: SetupFn;
11
+ [RendererProp.Lazy]?: 1;
12
+ };
13
+ export type SetupFn = ((scope: Scope) => void) & ReturnMark;
14
+ export type ReturnMark = {
15
+ [RendererProp.Returns]?: 1;
11
16
  };
12
- export type SetupFn = (scope: Scope) => void;
13
17
  export declare function createBranch($global: Scope[typeof AccessorProp.Global], renderer: Renderer | string, parentScope: Scope | undefined, parentNode: ParentNode): BranchScope;
14
18
  export declare function setParentBranch(branch: BranchScope, parentBranch: BranchScope | undefined): void;
15
19
  export declare function createAndSetupBranch($global: Scope[typeof AccessorProp.Global], renderer: Renderer, parentScope: Scope | undefined, parentNode: ParentNode): BranchScope;
16
20
  export declare function setupBranch(renderer: Renderer, branch: BranchScope): BranchScope;
21
+ export declare function _return_setup<T extends ((...args: any[]) => unknown) | {
22
+ _: SetupFn;
23
+ }>(setup: T): T;
17
24
  export declare function _content(id: string, template?: string | 0, walks?: string | 0, setup?: {
18
25
  _: Signal<unknown>;
19
26
  } | SetupFn | 0, params?: Signal<unknown> | 0, dynamicScopesAccessor?: Accessor): (owner?: Scope) => Renderer;
@@ -75,9 +75,9 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
75
75
  let childScopeAccessor = "A" + nodeAccessor, rendererAccessor = "D" + nodeAccessor;
76
76
  return (scope, newRenderer, getInput) => {
77
77
  let normalizedRenderer = normalizeDynamicRenderer(newRenderer);
78
- if (scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(normalizedRenderer)) || getContent && !(normalizedRenderer || scope[childScopeAccessor])) {
78
+ if (scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(normalizedRenderer) || (getContent ? void 0 : 0)) || getContent && !(normalizedRenderer || scope[childScopeAccessor])) {
79
79
  let renderer = normalizedRenderer || (getContent ? getContent(scope) : void 0);
80
- if (setConditionalRenderer(scope, nodeAccessor, renderer, createBranchWithTagNameOrRenderer), getTagVar && (scope[childScopeAccessor] ? (scope[childScopeAccessor].T = (value) => getTagVar()(scope, value), bindTagVar(scope, scope[childScopeAccessor], scope[scopeOffsetAccessor], normalizedRenderer)) : getTagVar()(scope, void 0)), typeof renderer == "string") {
80
+ if (setConditionalRenderer(scope, nodeAccessor, renderer, createBranchWithTagNameOrRenderer), getTagVar && (normalizedRenderer ? (scope[childScopeAccessor].T = (value) => getTagVar()(scope, value), bindTagVar(scope, scope[childScopeAccessor], scope[scopeOffsetAccessor], normalizedRenderer)) : getTagVar()(scope)), typeof renderer == "string") {
81
81
  if (getContent) {
82
82
  let content = getContent(scope);
83
83
  setConditionalRenderer(scope[childScopeAccessor], "a", content, createAndSetupBranch), content.f && subscribeToScopeSet(content.e, content.f, scope[childScopeAccessor].Aa);
@@ -626,8 +626,8 @@ function init(runtimeId = "M") {
626
626
  }
627
627
  }
628
628
  let retained = 0;
629
- for (visit of visits = render.v) lastTokenIndex = render.i.length, visitText = visit.data, visitType = visitText[lastTokenIndex++], visitScope = getScope(nextToken()), dynamicHtmlEnabled && visitType > "%" && visitType <= "'" ? visitType === "&" ? htmlStart = visit : (visitScope[nextToken()] = htmlStart, visitScope["H" + lastToken] = visit, (branchesEnabled || lazyEnabled) && pending[pending.length - 1] !== visitScope && pending.push(visitScope)) : branchesEnabled && visitType > "'" ? (visitBranches ||= createVisitBranches())() : lazyEnabled && render.b && visitType > "%" ? visits[retained++] = visit : (visitScope[nextToken()] = visitType === "%" ? visit.parentNode.insertBefore(new Text(), visit) : visit.previousSibling, (branchesEnabled || lazyEnabled) && pending[pending.length - 1] !== visitScope && pending.push(visitScope));
630
- return branchesEnabled && visitBranches && (visitType = "*", lastToken = "", visitBranches()), embedRenders && !embedAnchor && visit?.parentNode && embedRenders.set(embedAnchor = visit.parentNode.insertBefore(new Text(), visit.nextSibling), [renderId, scopeLookup]), visits.length = retained, effects;
629
+ for (visit of visits = render.v) lastTokenIndex = render.i.length, visitText = visit.data, visitType = visitText[lastTokenIndex++], visitScope = getScope(nextToken()), dynamicHtmlEnabled && visitType > "%" && visitType <= "'" ? visitType === "&" ? htmlStart = visit : (visitScope[nextToken()] = htmlStart, visitScope["H" + lastToken] = visit, (branchesEnabled || lazyEnabled) && pending[pending.length - 1] !== visitScope && pending.push(visitScope)) : branchesEnabled && visitType > "'" ? (visitBranches ||= createVisitBranches())() : lazyEnabled && render.b && visitType > "%" ? visits[retained++] = visit : (visitScope[nextToken()] = visitType === "%" ? visit.parentNode.insertBefore(new Text(), visit) : visit.previousSibling, (branchesEnabled || lazyEnabled) && pending[pending.length - 1] !== visitScope && pending.push(visitScope)), embedRenders && !embedAnchor && visit.parentNode && embedRenders.set(embedAnchor = visit.parentNode.insertBefore(new Text(), visit), [renderId, scopeLookup]);
630
+ return branchesEnabled && visitBranches && (visitType = "*", lastToken = "", visitBranches()), visits.length = retained, effects;
631
631
  }, render.w = () => {
632
632
  walk(), runResumeEffects(render);
633
633
  }, render;
@@ -678,6 +678,9 @@ function createAndSetupBranch($global, renderer, parentScope, parentNode) {
678
678
  function setupBranch(renderer, branch) {
679
679
  return renderer.c && queueRender(branch, renderer.c, -1), branch;
680
680
  }
681
+ function _return_setup(setup) {
682
+ return setup;
683
+ }
681
684
  function _content(id, template, walks, setup, params, dynamicScopesAccessor) {
682
685
  walks = walks ? walks.replace(/[^\0-1]+$/, "") : "", setup = setup ? setup._ || setup : void 0, params ||= void 0;
683
686
  let clone = template ? (branch, ns) => {
@@ -1031,14 +1034,14 @@ function observeOnce(scope, nodeAccessor, init, callback) {
1031
1034
  (scope["N" + nodeAccessor] ||= new MutationObserver(callback)).observe(scope[nodeAccessor], init);
1032
1035
  }
1033
1036
  function syncControllableFormInput(el, hasChanged, onChange) {
1034
- el._ = onChange, el.c = hasChanged, delegate("input", handleChange), el.form && delegate("reset", handleFormReset), isResuming && hasChanged(el) && queueMicrotask(onChange);
1037
+ el._ = onChange, el.c = hasChanged, delegate("input", handleChange), delegate("reset", handleFormReset), isResuming && hasChanged(el) && queueMicrotask(onChange);
1035
1038
  }
1036
1039
  function handleChange(ev) {
1037
1040
  ev.target._?.(ev);
1038
1041
  }
1039
1042
  function handleFormReset(ev) {
1040
1043
  let handlers = [];
1041
- for (let el of ev.target.elements) el._ && el.c(el) && handlers.push(el._);
1044
+ for (let el of ev.target.elements || []) el._ && el.c(el) && handlers.push(el._);
1042
1045
  requestAnimationFrame(() => {
1043
1046
  if (!ev.defaultPrevented) for (let change of handlers) change();
1044
1047
  });
@@ -1240,4 +1243,4 @@ function byFirstArg(name) {
1240
1243
  return name;
1241
1244
  }
1242
1245
  //#endregion
1243
- export { _attr_style_item as $, destroyBranch as $t, _attr_input_checked_script as A, readyFailed as At, _controllable_open as B, _hoist as Bt, _attr_details_or_dialog_open_default as C, _hoist_read_error as Cn, _el as Ct, _attr_input_checkedValue_default as D, init as Dt, _attr_input_checkedValue as E, getRegisteredWithScope as Et, _attr_input_value_script as F, _const as Ft, _attr as G, _let_change as Gt, _controllable_textarea as H, _id as Ht, _attr_select_value as I, _el_read as It, _attr_class_items as J, _return_change as Jt, _attr_class as K, _or as Kt, _attr_select_value_default as L, _for_closure as Lt, _attr_input_value_attribute_default as M, _child_setup as Mt, _attr_input_value_default as N, _closure as Nt, _attr_input_checkedValue_script as O, initEmbedded as Ot, _attr_input_value_dynamic_default as P, _closure_get as Pt, _attr_style as Q, _assert_init as Qt, _attr_select_value_script as R, _for_selector as Rt, _attr_details_or_dialog_open as S, _assert_hoist as Sn, _dynamic_tag_var_resume as St, _attr_input_checked as T, withBranches as Tn, _var_resume as Tt, controllableRenders as U, _if_closure as Ut, _controllable_select as V, _hoist_resume as Vt, controllableScripts as W, _let as Wt, _attr_content as X, _var as Xt, _attr_class_names as Y, _script as Yt, _attr_nonce as Z, _var_change as Zt, dynamicTagScript as _, forIn as _n, _content_resume as _t, _for_in as a, $signalReset as an, _attrs_script as at, renderCatch as b, forUntil as bn, setParentBranch as bt, _for_to as c, installCatch as cn, _style_rule_item as ct, _for_until_unkeyed as d, queueEffect as dn, _text_content as dt, insertBranchBefore as en, _attr_style_items as et, _if as f, queueRender as fn, _to_text as ft, bindTagVar as g, runId as gn, _content_closures as gt, addAwaitCounter as h, runEffects as hn, _content as ht, _dynamic_tag_content as i, $signal as in, _attrs_partial_content as it, _attr_input_value as j, withLazy as jt, _attr_input_checked_default as k, ready as kt, _for_to_unkeyed as l, prepareEffects as ln, _style_shell as lt, _try as m, run as mn, toInsertNode as mt, _await_promise as n, syncGen as nn, _attrs_content as nt, _for_of as o, createBranchRenders as on, _html as ot, _show as p, rendering as pn, insertChildNodes as pt, _attr_class_item as q, _return as qt, _dynamic_tag as r, _on as rn, _attrs_partial as rt, _for_of_unkeyed as s, installBranchRenders as sn, _lifecycle as st, _await_content as t, removeAndDestroyBranch as tn, _attrs as tt, _for_until as u, queueAsyncRender as un, _text as ut, installDynamicTagVar as v, forOf as vn, createAndSetupBranch as vt, _attr_details_or_dialog_open_script as w, _call as wn, _resumed as wt, runPendingEffects as x, _assert_class_toggles as xn, setupBranch as xt, patchDynamicTag as y, forTo as yn, createBranch as yt, _controllable_input as z, _global_read as zt };
1246
+ export { _attr_style_items as $, insertBranchBefore as $t, _attr_input_value as A, withLazy as At, _controllable_select as B, _hoist_resume as Bt, _attr_details_or_dialog_open_script as C, _call as Cn, _resumed as Ct, _attr_input_checkedValue_script as D, initEmbedded as Dt, _attr_input_checkedValue_default as E, init as Et, _attr_select_value as F, _el_read as Ft, _attr_class as G, _or as Gt, controllableRenders as H, _if_closure as Ht, _attr_select_value_default as I, _for_closure as It, _attr_class_names as J, _script as Jt, _attr_class_item as K, _return as Kt, _attr_select_value_script as L, _for_selector as Lt, _attr_input_value_default as M, _closure as Mt, _attr_input_value_dynamic_default as N, _closure_get as Nt, _attr_input_checked_default as O, ready as Ot, _attr_input_value_script as P, _const as Pt, _attr_style_item as Q, destroyBranch as Qt, _controllable_input as R, _global_read as Rt, _attr_details_or_dialog_open_default as S, _hoist_read_error as Sn, _el as St, _attr_input_checkedValue as T, getRegisteredWithScope as Tt, controllableScripts as U, _let as Ut, _controllable_textarea as V, _id as Vt, _attr as W, _let_change as Wt, _attr_nonce as X, _var_change as Xt, _attr_content as Y, _var as Yt, _attr_style as Z, _assert_init as Zt, installDynamicTagVar as _, forOf as _n, _return_setup as _t, _for_in as a, createBranchRenders as an, _html as at, runPendingEffects as b, _assert_class_toggles as bn, setupBranch as bt, _for_to as c, prepareEffects as cn, _style_shell as ct, _for_until_unkeyed as d, queueRender as dn, _to_text as dt, removeAndDestroyBranch as en, _attrs as et, _if as f, rendering as fn, insertChildNodes as ft, dynamicTagScript as g, forIn as gn, _content_resume as gt, addAwaitCounter as h, runId as hn, _content_closures as ht, _dynamic_tag_content as i, $signalReset as in, _attrs_script as it, _attr_input_value_attribute_default as j, _child_setup as jt, _attr_input_checked_script as k, readyFailed as kt, _for_to_unkeyed as l, queueAsyncRender as ln, _text as lt, _try as m, runEffects as mn, _content as mt, _await_promise as n, _on as nn, _attrs_partial as nt, _for_of as o, installBranchRenders as on, _lifecycle as ot, _show as p, run as pn, toInsertNode as pt, _attr_class_items as q, _return_change as qt, _dynamic_tag as r, $signal as rn, _attrs_partial_content as rt, _for_of_unkeyed as s, installCatch as sn, _style_rule_item as st, _await_content as t, syncGen as tn, _attrs_content as tt, _for_until as u, queueEffect as un, _text_content as ut, patchDynamicTag as v, forTo as vn, createAndSetupBranch as vt, _attr_input_checked as w, withBranches as wn, _var_resume as wt, _attr_details_or_dialog_open as x, _assert_hoist as xn, _dynamic_tag_var_resume as xt, renderCatch as y, forUntil as yn, createBranch as yt, _controllable_open as z, _hoist as zt };