marko 6.0.0-next.3.67 → 6.0.0-next.3.69

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.
package/dist/html.mjs CHANGED
@@ -97,7 +97,7 @@ function forTo(to, from, step, cb) {
97
97
  }
98
98
 
99
99
  // src/html/inlined-runtimes.ts
100
- var WALKER_RUNTIME_CODE = '(e=>self[e]=self[e]||(l=>{let t,d={},s=[],f=document,i=f.createTreeWalker(f,129),n=self[e][l]={i:l=e+l,d:f,l:d,v:s,x(){},w(e){for(;e=i.nextNode();)this.x(n=(n=e.data)&&!n.indexOf(l)&&(d[t=n.slice(x+1)]=e,n[x]),t,e),n>"#"&&s.push(e)}},x=l.length}))', REORDER_RUNTIME_CODE = '(e=>{let i,t,r,l={},o=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(d,n,a,c,p)=>{"#"==d?(l[n]=t).i++:a==r&&i(),"T"==a.tagName&&(n=a.getAttribute(e.i))&&((c=e.l["^"+n])&&(l[n]={i:1,c(i=e.l[n]||a){for(;i.parentNode!==c.parentNode;)i=i.parentNode;for(;i!=r;(r=c.nextSibling).remove());o(c,a)}}),r=a.nextSibling,t=l[n],i=()=>{c||o(e.l[n],a),--t.i||t.c()},(d=e.j[n])&&(p=t.c,t.c=()=>p()+d(e.r)))}})';
100
+ var WALKER_RUNTIME_CODE = '(e=>self[e]=self[e]||(l=>{let t,d={},s=[],f=document,i=f.createTreeWalker(f,129),n=self[e][l]={i:l=e+l,d:f,l:d,v:s,x(){},w(e){for(;e=i.nextNode();)this.x(n=(n=e.data)&&!n.indexOf(l)&&(d[t=n.slice(x+1)]=e,n[x]),t,e),n>"#"&&s.push(e)}},x=l.length}))', REORDER_RUNTIME_CODE = '(e=>{let i,l,t,r={},c=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(d,o,n,a,g)=>{"#"==d?(r[o]=l).i++:n==t&&i(),"T"==n.tagName&&(o=n.getAttribute(e.i))&&((a=e.l["^"+o])&&(r[o]={i:1,c(i=e.l[o]||n){for(;(t=i.previousSibling||a).remove(),a!=t;);c(i,n)}}),t=n.nextSibling,l=r[o],i=()=>{a||c(e.l[o],n),--l.i||l.c()},(d=e.j[o])&&(g=l.c,l.c=()=>g()+d(e.r)))}})';
101
101
 
102
102
  // src/html/serializer.ts
103
103
  var { hasOwnProperty } = {}, Generator = function* () {
@@ -411,10 +411,7 @@ function register(id, val, scope) {
411
411
  function getRegistered(val) {
412
412
  let registered = REGISTRY.get(val);
413
413
  if (registered)
414
- return {
415
- id: registered.id,
416
- scope: registered.scope
417
- };
414
+ return { id: registered.id, scope: registered.scope };
418
415
  }
419
416
  function writeRoot(state, root) {
420
417
  let { buf, assigned, mutations } = state, hadBuf = buf.length !== 0, result = "";
@@ -510,7 +507,7 @@ function writeRegistered(state, val, parent, accessor, { access, scope, getter }
510
507
  return newScopeRef && ensureId(state, newScopeRef), !0;
511
508
  }
512
509
  if (scopeRef) {
513
- if (isCircular(parent, scopeRef))
510
+ if (parent && (state.assigned.has(scopeRef) || isCircular(parent, scopeRef)))
514
511
  return state.assigned.add(parent), state.assigned.add(fnRef), fnRef.init = access + "(" + ensureId(state, scopeRef) + ")", addAssignment(fnRef, ensureId(state, parent) + toAccess(accessor)), !1;
515
512
  state.buf.push(access + "(" + ensureId(state, scopeRef) + ")");
516
513
  } else {
@@ -1012,7 +1009,7 @@ function withContext(key, value, cb) {
1012
1009
  let ctx = $chunk.context ||= { [kPendingContexts]: 0 }, prev = ctx[key];
1013
1010
  ctx[kPendingContexts]++, ctx[key] = value;
1014
1011
  try {
1015
- cb();
1012
+ return cb();
1016
1013
  } finally {
1017
1014
  ctx[kPendingContexts]--, ctx[key] = prev;
1018
1015
  }
@@ -1060,20 +1057,26 @@ function hoist(scopeId, id) {
1060
1057
  }
1061
1058
  function resumeClosestBranch(scopeId) {
1062
1059
  let branchId = $chunk.context?.[branchIdKey];
1063
- branchId !== void 0 && branchId !== scopeId && writeScope(scopeId, {
1064
- g: branchId
1065
- });
1060
+ branchId !== void 0 && branchId !== scopeId && writeScope(scopeId, { g: branchId });
1066
1061
  }
1067
1062
  var branchIdKey = Symbol();
1068
- function resumeForOf(list, cb, scopeId, accessor) {
1069
- forOf(list, (item, i) => {
1063
+ function withBranchId(branchId, cb) {
1064
+ return withContext(branchIdKey, branchId, cb);
1065
+ }
1066
+ function resumeForOf(list, cb, by, scopeId, accessor) {
1067
+ let loopScopes = /* @__PURE__ */ new Map();
1068
+ forOf(list, (item, index) => {
1070
1069
  let branchId = peekNextScopeId();
1071
1070
  $chunk.writeHTML(
1072
1071
  $chunk.boundary.state.mark(
1073
1072
  "[" /* BranchStart */,
1074
- branchId + (i ? " " : "")
1073
+ branchId + (index ? " " : "")
1075
1074
  )
1076
- ), withContext(branchIdKey, branchId, () => cb(item, i));
1075
+ ), withBranchId(branchId, () => {
1076
+ cb(item, index), loopScopes.set(forOfBy(by, item, index), writeScope(branchId, {}));
1077
+ });
1078
+ }), loopScopes.size && writeScope(scopeId, {
1079
+ ["m" /* LoopScopeMap */ + accessor]: loopScopes
1077
1080
  }), $chunk.writeHTML(
1078
1081
  $chunk.boundary.state.mark(
1079
1082
  "]" /* BranchEnd */,
@@ -1081,11 +1084,15 @@ function resumeForOf(list, cb, scopeId, accessor) {
1081
1084
  )
1082
1085
  );
1083
1086
  }
1084
- function resumeSingleNodeForOf(list, cb, scopeId, accessor, onlyChildInParent) {
1085
- let branchIds = "";
1087
+ function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, onlyChildInParent) {
1088
+ let loopScopes = /* @__PURE__ */ new Map(), branchIds = "";
1086
1089
  forOf(list, (item, index) => {
1087
1090
  let branchId = peekNextScopeId();
1088
- branchIds = " " + branchId + branchIds, withContext(branchIdKey, branchId, () => cb(item, index));
1091
+ branchIds = " " + branchId + branchIds, withBranchId(branchId, () => {
1092
+ cb(item, index), loopScopes.set(forOfBy(by, item, index), writeScope(branchId, {}));
1093
+ });
1094
+ }), loopScopes.size && writeScope(scopeId, {
1095
+ ["m" /* LoopScopeMap */ + accessor]: loopScopes
1089
1096
  }), $chunk.writeHTML(
1090
1097
  $chunk.boundary.state.mark(
1091
1098
  onlyChildInParent ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
@@ -1093,13 +1100,20 @@ function resumeSingleNodeForOf(list, cb, scopeId, accessor, onlyChildInParent) {
1093
1100
  )
1094
1101
  );
1095
1102
  }
1096
- function resumeForIn(obj, cb, scopeId, accessor) {
1097
- let sep = "";
1103
+ function forOfBy(by, item, index) {
1104
+ return by ? typeof by == "string" ? item[by] : by(item, index) : index;
1105
+ }
1106
+ function resumeForIn(obj, cb, by, scopeId, accessor) {
1107
+ let loopScopes = /* @__PURE__ */ new Map(), sep = "";
1098
1108
  forIn(obj, (key, value) => {
1099
1109
  let branchId = peekNextScopeId();
1100
1110
  $chunk.writeHTML(
1101
1111
  $chunk.boundary.state.mark("[" /* BranchStart */, branchId + sep)
1102
- ), sep = " ", withContext(branchIdKey, branchId, () => cb(key, value));
1112
+ ), sep = " ", withBranchId(branchId, () => {
1113
+ cb(key, value), loopScopes.set(forInBy(by, key, value), writeScope(branchId, {}));
1114
+ });
1115
+ }), loopScopes.size && writeScope(scopeId, {
1116
+ ["m" /* LoopScopeMap */ + accessor]: loopScopes
1103
1117
  }), $chunk.writeHTML(
1104
1118
  $chunk.boundary.state.mark(
1105
1119
  "]" /* BranchEnd */,
@@ -1107,11 +1121,15 @@ function resumeForIn(obj, cb, scopeId, accessor) {
1107
1121
  )
1108
1122
  );
1109
1123
  }
1110
- function resumeSingleNodeForIn(obj, cb, scopeId, accessor, onlyChild) {
1111
- let branchIds = "";
1124
+ function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, onlyChild) {
1125
+ let loopScopes = /* @__PURE__ */ new Map(), branchIds = "";
1112
1126
  forIn(obj, (key, value) => {
1113
1127
  let branchId = peekNextScopeId();
1114
- branchIds = " " + branchId + branchIds, withContext(branchIdKey, branchId, () => cb(key, value));
1128
+ branchIds = " " + branchId + branchIds, withBranchId(branchId, () => {
1129
+ cb(key, value), loopScopes.set(forInBy(by, key, value), writeScope(branchId, {}));
1130
+ });
1131
+ }), loopScopes.size && writeScope(scopeId, {
1132
+ ["m" /* LoopScopeMap */ + accessor]: loopScopes
1115
1133
  }), $chunk.writeHTML(
1116
1134
  $chunk.boundary.state.mark(
1117
1135
  onlyChild ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
@@ -1119,13 +1137,20 @@ function resumeSingleNodeForIn(obj, cb, scopeId, accessor, onlyChild) {
1119
1137
  )
1120
1138
  );
1121
1139
  }
1122
- function resumeForTo(to, from, step, cb, scopeId, accessor) {
1123
- let sep = "";
1140
+ function forInBy(by, name, value) {
1141
+ return by ? by(name, value) : name;
1142
+ }
1143
+ function resumeForTo(to, from, step, cb, by, scopeId, accessor) {
1144
+ let loopScopes = /* @__PURE__ */ new Map(), sep = "";
1124
1145
  forTo(to, from, step, (index) => {
1125
1146
  let branchId = peekNextScopeId();
1126
1147
  $chunk.writeHTML(
1127
1148
  $chunk.boundary.state.mark("[" /* BranchStart */, branchId + sep)
1128
- ), sep = " ", withContext(branchIdKey, branchId, () => cb(index));
1149
+ ), sep = " ", withBranchId(branchId, () => {
1150
+ cb(index), loopScopes.set(forToBy(by, index), writeScope(branchId, {}));
1151
+ });
1152
+ }), loopScopes.size && writeScope(scopeId, {
1153
+ ["m" /* LoopScopeMap */ + accessor]: loopScopes
1129
1154
  }), $chunk.writeHTML(
1130
1155
  $chunk.boundary.state.mark(
1131
1156
  "]" /* BranchEnd */,
@@ -1133,11 +1158,15 @@ function resumeForTo(to, from, step, cb, scopeId, accessor) {
1133
1158
  )
1134
1159
  );
1135
1160
  }
1136
- function resumeSingleNodeForTo(to, from, step, cb, scopeId, accessor, onlyChild) {
1137
- let branchIds = "";
1161
+ function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, onlyChild) {
1162
+ let loopScopes = /* @__PURE__ */ new Map(), branchIds = "";
1138
1163
  forTo(to, from, step, (index) => {
1139
1164
  let branchId = peekNextScopeId();
1140
- branchIds = " " + branchId + branchIds, withContext(branchIdKey, branchId, () => cb(index));
1165
+ branchIds = " " + branchId + branchIds, withBranchId(branchId, () => {
1166
+ cb(index), loopScopes.set(forToBy(by, index), writeScope(branchId, {}));
1167
+ });
1168
+ }), loopScopes.size && writeScope(scopeId, {
1169
+ ["m" /* LoopScopeMap */ + accessor]: loopScopes
1141
1170
  }), $chunk.writeHTML(
1142
1171
  $chunk.boundary.state.mark(
1143
1172
  onlyChild ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
@@ -1145,22 +1174,31 @@ function resumeSingleNodeForTo(to, from, step, cb, scopeId, accessor, onlyChild)
1145
1174
  )
1146
1175
  );
1147
1176
  }
1148
- function resumeConditional(cb, scopeId, accessor) {
1177
+ function forToBy(by, index) {
1178
+ return by ? by(index) : index;
1179
+ }
1180
+ function resumeConditional(cb, scopeId, accessor, dynamic) {
1149
1181
  let branchId = peekNextScopeId();
1150
- $chunk.writeHTML(
1182
+ dynamic && $chunk.writeHTML(
1151
1183
  $chunk.boundary.state.mark("[" /* BranchStart */, branchId + "")
1152
- ), withContext(branchIdKey, branchId, cb), peekNextScopeId() !== branchId ? writeScope(branchId, {}) : nextScopeId(), $chunk.writeHTML(
1184
+ );
1185
+ let branchIndex = withBranchId(branchId, cb);
1186
+ branchIndex !== void 0 ? writeScope(scopeId, {
1187
+ ["c" /* ConditionalRenderer */ + accessor]: dynamic ? branchIndex : void 0,
1188
+ ["d" /* ConditionalScope */ + accessor]: writeScope(branchId, {})
1189
+ }) : nextScopeId(), dynamic && $chunk.writeHTML(
1153
1190
  $chunk.boundary.state.mark(
1154
1191
  "]" /* BranchEnd */,
1155
1192
  scopeId + " " + accessor
1156
1193
  )
1157
1194
  );
1158
1195
  }
1159
- function resumeSingleNodeConditional(cb, scopeId, accessor, onlyChild) {
1160
- let branchId = peekNextScopeId();
1161
- withContext(branchIdKey, branchId, cb);
1162
- let rendered = peekNextScopeId() !== branchId;
1163
- rendered ? writeScope(branchId, {}) : nextScopeId(), $chunk.writeHTML(
1196
+ function resumeSingleNodeConditional(cb, scopeId, accessor, dynamic, onlyChild) {
1197
+ let branchId = peekNextScopeId(), branchIndex = withBranchId(branchId, cb), rendered = branchIndex !== void 0;
1198
+ rendered ? writeScope(scopeId, {
1199
+ ["c" /* ConditionalRenderer */ + accessor]: dynamic ? branchIndex : void 0,
1200
+ ["d" /* ConditionalScope */ + accessor]: writeScope(branchId, {})
1201
+ }) : nextScopeId(), dynamic && $chunk.writeHTML(
1164
1202
  $chunk.boundary.state.mark(
1165
1203
  onlyChild ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
1166
1204
  scopeId + " " + accessor + (rendered ? " " + branchId : "")
@@ -1438,8 +1476,9 @@ function prepareChunk(chunk) {
1438
1476
  for (let reorderedChunk of state.writeReorders) {
1439
1477
  let { reorderId } = reorderedChunk, reorderHTML = "", reorderEffects = "", reorderScripts = "", cur = reorderedChunk;
1440
1478
  for (reorderedChunk.reorderId = null; ; ) {
1479
+ cur.flushPlaceholder();
1441
1480
  let { next } = cur;
1442
- if (cur.flushPlaceholder(), cur.consumed = !0, reorderHTML += cur.html, reorderEffects = concatEffects(reorderEffects, cur.effects), reorderScripts = concatScripts(reorderScripts, cur.scripts), cur.async && (reorderHTML += state.mark(
1481
+ if (cur.consumed = !0, reorderHTML += cur.html, reorderEffects = concatEffects(reorderEffects, cur.effects), reorderScripts = concatScripts(reorderScripts, cur.scripts), cur.async && (reorderHTML += state.mark(
1443
1482
  "#" /* ReorderMarker */,
1444
1483
  cur.reorderId = state.nextReorderId()
1445
1484
  ), cur.html = cur.effects = cur.scripts = "", cur.next = null), next)
@@ -1712,80 +1751,51 @@ var prefix = "$C_", RENDERER_REGISTER_ID = prefix + "r", SET_SCOPE_REGISTER_ID =
1712
1751
  var DEFAULT_RUNTIME_ID = "M", DEFAULT_RENDER_ID = "_";
1713
1752
 
1714
1753
  // src/html/dynamic-tag.ts
1715
- var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
1716
- function dynamicTagId(tagName) {
1717
- let normalizedRenderer = normalizeDynamicRenderer(tagName);
1718
- return normalizedRenderer?.h || normalizedRenderer;
1719
- }
1720
- var dynamicTagInput = (scopeId, accessor, tag, input, content) => {
1721
- if (!tag && !content) {
1722
- nextScopeId();
1723
- return;
1724
- }
1725
- if (!tag) {
1726
- resumeConditional(content, scopeId, accessor);
1727
- return;
1728
- }
1729
- if (typeof tag == "string") {
1730
- resumeSingleNodeConditional(
1731
- () => {
1732
- nextScopeId(), write(`<${tag}${attrs(input, accessor, scopeId, tag)}>`), voidElementsReg.test(tag) || (tag === "textarea" ? write(
1733
- controllable_textarea_value(
1734
- scopeId,
1735
- accessor,
1736
- input.value,
1737
- input.valueChange
1738
- )
1739
- ) : content && (tag === "select" && ("value" in input || "valueChange" in input) ? controllable_select_value(
1754
+ var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/, dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, resume) => {
1755
+ let renderer = normalizeDynamicRenderer(tag), chunk = getChunk(), branchId = peekNextScopeId(), result;
1756
+ if (typeof renderer == "string") {
1757
+ let input = (inputIsArgs ? inputOrArgs[0] : inputOrArgs) || {};
1758
+ nextScopeId(), write(`<${renderer}${attrs(input, accessor, scopeId, renderer)}>`), voidElementsReg.test(renderer) || (withBranchId(branchId, () => {
1759
+ renderer === "textarea" ? write(
1760
+ controllable_textarea_value(
1740
1761
  scopeId,
1741
1762
  accessor,
1742
1763
  input.value,
1743
- input.valueChange,
1744
- content
1745
- ) : content()), write(`</${tag}>`));
1746
- },
1747
- scopeId,
1748
- accessor
1764
+ input.valueChange
1765
+ )
1766
+ ) : content && (renderer === "select" && ("value" in input || "valueChange" in input) ? controllable_select_value(
1767
+ scopeId,
1768
+ accessor,
1769
+ input.value,
1770
+ input.valueChange,
1771
+ content
1772
+ ) : content());
1773
+ }), write(`</${renderer}>`)), resume && chunk.writeHTML(
1774
+ chunk.boundary.state.mark(
1775
+ "|" /* BranchSingleNode */,
1776
+ scopeId + " " + accessor + " " + branchId
1777
+ )
1749
1778
  );
1750
- return;
1751
- }
1752
- let renderer = normalizeDynamicRenderer(
1753
- tag
1754
- ), result;
1755
- return resumeConditional(
1756
- () => {
1757
- result = renderer(content ? { ...input, content } : input);
1758
- },
1759
- scopeId,
1760
- accessor
1761
- ), result;
1762
- }, dynamicTagArgs = (scopeId, accessor, tag, args) => {
1763
- if (!tag) {
1764
- nextScopeId();
1765
- return;
1766
- }
1767
- if (typeof tag == "string") {
1768
- resumeSingleNodeConditional(
1769
- () => {
1770
- nextScopeId(), write(
1771
- `<${tag}${attrs(args[0], accessor, scopeId, tag)}>`
1772
- ), voidElementsReg.test(tag) || write(`</${tag}>`);
1773
- },
1774
- scopeId,
1775
- accessor
1779
+ } else
1780
+ resume && chunk.writeHTML(
1781
+ chunk.boundary.state.mark("[" /* BranchStart */, branchId + "")
1782
+ ), result = withBranchId(branchId, () => {
1783
+ if (renderer)
1784
+ return inputIsArgs ? renderer(...inputOrArgs) : renderer(
1785
+ content ? { ...inputOrArgs, content } : inputOrArgs
1786
+ );
1787
+ if (content)
1788
+ return content();
1789
+ }), resume && chunk.writeHTML(
1790
+ chunk.boundary.state.mark(
1791
+ "]" /* BranchEnd */,
1792
+ scopeId + " " + accessor
1793
+ )
1776
1794
  );
1777
- return;
1778
- }
1779
- let renderer = normalizeDynamicRenderer(
1780
- tag
1781
- ), result;
1782
- return resumeConditional(
1783
- () => {
1784
- result = renderer(...args);
1785
- },
1786
- scopeId,
1787
- accessor
1788
- ), result;
1795
+ return peekNextScopeId() !== branchId ? resume && writeScope(scopeId, {
1796
+ ["d" /* ConditionalScope */ + accessor]: writeScope(branchId, {}),
1797
+ ["c" /* ConditionalRenderer */ + accessor]: renderer?.h || renderer
1798
+ }) : nextScopeId(), result;
1789
1799
  };
1790
1800
  function createContent(id, fn) {
1791
1801
  return fn.h = id, fn;
@@ -1794,18 +1804,18 @@ function registerContent(id, fn, scopeId) {
1794
1804
  return register2(createContent(id, fn), id, scopeId);
1795
1805
  }
1796
1806
  function patchDynamicTag(patch) {
1797
- dynamicTagInput = /* @__PURE__ */ ((originalDynamicTagInput) => (scopeId, accessor, tag, input, content) => originalDynamicTagInput(
1798
- scopeId,
1799
- accessor,
1800
- patch(scopeId, accessor, tag),
1801
- input,
1802
- content
1803
- ))(dynamicTagInput), dynamicTagArgs = /* @__PURE__ */ ((originalDynamicTagArgs) => (scopeId, accessor, tag, args) => originalDynamicTagArgs(
1804
- scopeId,
1805
- accessor,
1806
- patch(scopeId, accessor, tag),
1807
- args
1808
- ))(dynamicTagArgs);
1807
+ dynamicTag = /* @__PURE__ */ ((originalDynamicTag) => (scopeId, accessor, tag, input, content, inputIsArgs, resume) => {
1808
+ let patched = patch(scopeId, accessor, tag);
1809
+ return patched.h = tag, originalDynamicTag(
1810
+ scopeId,
1811
+ accessor,
1812
+ patched,
1813
+ input,
1814
+ content,
1815
+ inputIsArgs,
1816
+ resume
1817
+ );
1818
+ })(dynamicTag);
1809
1819
  }
1810
1820
 
1811
1821
  // src/html/compat.ts
@@ -1880,13 +1890,13 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
1880
1890
  };
1881
1891
 
1882
1892
  // src/html/for.ts
1883
- function forOfBy(by, item, index) {
1893
+ function forOfBy2(by, item, index) {
1884
1894
  return by ? typeof by == "string" ? item[by] : by(item, index) : index;
1885
1895
  }
1886
- function forInBy(by, name, value) {
1896
+ function forInBy2(by, name, value) {
1887
1897
  return by ? by(name, value) : name;
1888
1898
  }
1889
- function forToBy(by, index) {
1899
+ function forToBy2(by, index) {
1890
1900
  return by ? by(index) : index;
1891
1901
  }
1892
1902
 
@@ -2046,19 +2056,17 @@ export {
2046
2056
  controllable_textarea_value,
2047
2057
  createContent,
2048
2058
  createTemplate,
2049
- dynamicTagArgs,
2050
- dynamicTagId,
2051
- dynamicTagInput,
2059
+ dynamicTag,
2052
2060
  ensureScopeWithId,
2053
2061
  escapeScript,
2054
2062
  escapeStyle,
2055
2063
  escapeXML,
2056
2064
  forIn,
2057
- forInBy,
2065
+ forInBy2 as forInBy,
2058
2066
  forOf,
2059
- forOfBy,
2067
+ forOfBy2 as forOfBy,
2060
2068
  forTo,
2061
- forToBy,
2069
+ forToBy2 as forToBy,
2062
2070
  fork,
2063
2071
  getScopeById,
2064
2072
  hoist,