marko 6.5.0 → 6.5.1
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/debug/dom/catch.feat.js +1 -1
- package/dist/debug/dom/catch.feat.mjs +1 -1
- package/dist/debug/dom/compat.feat.js +1 -1
- package/dist/debug/dom/compat.feat.mjs +1 -1
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +1 -1
- package/dist/debug/dom/controllable.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/lazy.feat.js +1 -1
- package/dist/debug/dom/lazy.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-D3A8gh_D.mjs → dom-4AzxJQHb.mjs} +12 -12
- package/dist/debug/{dom-BiJ_UKJV.js → dom-Uu_OCdvg.js} +12 -12
- package/dist/debug/dom.js +1 -1
- package/dist/debug/dom.mjs +1 -1
- package/dist/dom/catch.feat.js +1 -1
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/compat.feat.js +1 -1
- package/dist/dom/compat.feat.mjs +1 -1
- package/dist/dom/control-flow.d.ts +7 -7
- package/dist/dom/controllable-input.feat.js +1 -1
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +1 -1
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +1 -1
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +1 -1
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +1 -1
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +1 -1
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/{dom-B3piR0q1.js → dom-BdJeggv5.js} +9 -9
- package/dist/{dom-CPk_8CMB.mjs → dom-DJrZXgdr.mjs} +9 -9
- package/dist/dom.js +1 -1
- package/dist/dom.mjs +1 -1
- package/dist/translator/core/if.d.ts +1 -1
- package/dist/translator/core/show.d.ts +2 -3
- package/dist/translator/index.js +2630 -2687
- package/dist/translator/util/assert.d.ts +0 -10
- package/dist/translator/util/branch-tag.d.ts +1 -1
- package/dist/translator/util/get-root.d.ts +3 -1
- package/dist/translator/util/nested-attribute-tags.d.ts +4 -5
- package/dist/translator/util/optional.d.ts +0 -1
- package/dist/translator/util/params-tree.d.ts +1 -1
- package/dist/translator/util/sections.d.ts +4 -1
- package/dist/translator/util/state.d.ts +2 -2
- package/dist/translator/util/to-property-name.d.ts +0 -2
- package/dist/translator/util/visitors.d.ts +2 -2
- package/dist/translator/util/writer.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as ParentBranch, Fn as ClosestBranch, Hn as PendingEffects, Mn as Scope, Un as PendingRenders, Vn as PendingEffectScopes, _ as queuePendingEffects, an as installCatch, jn as Pending, sn as queueAsyncRender, v as renderCatch } from "../dom-
|
|
1
|
+
import { Bn as ParentBranch, Fn as ClosestBranch, Hn as PendingEffects, Mn as Scope, Un as PendingRenders, Vn as PendingEffectScopes, _ as queuePendingEffects, an as installCatch, jn as Pending, sn as queueAsyncRender, v as renderCatch } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/catch.feat.ts
|
|
3
3
|
const deferToPendingTry = (fn, scope, branch) => {
|
|
4
4
|
while (branch) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_control_flow = require("../dom-
|
|
3
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
4
4
|
// src/common/compat-meta.ts
|
|
5
5
|
const SET_SCOPE_REGISTER_ID = "$compat_setScope";
|
|
6
6
|
const RENDER_BODY_ID = "$compat_renderBody";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as Setup, Dn as Owner, En as LocalClosures, Gn as StartNode, In as EndNode, On as Params, Rn as Global, Sn as setClassAPIRenderer, St as init, cn as queueEffect, dt as _content, fn as runEffects, gt as setupBranch, ht as createBranch, ln as queueRender, on as prepareEffects, qt as destroyBranch, un as rendering, wn as Clone, xt as getRegisteredWithScope, yt as _resumed } from "../dom-
|
|
1
|
+
import { An as Setup, Dn as Owner, En as LocalClosures, Gn as StartNode, In as EndNode, On as Params, Rn as Global, Sn as setClassAPIRenderer, St as init, cn as queueEffect, dt as _content, fn as runEffects, gt as setupBranch, ht as createBranch, ln as queueRender, on as prepareEffects, qt as destroyBranch, un as rendering, wn as Clone, xt as getRegisteredWithScope, yt as _resumed } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/common/compat-meta.ts
|
|
3
3
|
const SET_SCOPE_REGISTER_ID = "$compat_setScope";
|
|
4
4
|
const RENDER_BODY_ID = "$compat_renderBody";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/controllable-input.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[0] = require_control_flow._attr_input_checked_script;
|
|
5
5
|
require_control_flow.controllableScripts[1] = require_control_flow._attr_input_checkedValue_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/controllable-input.feat.ts
|
|
3
3
|
controllableScripts[0] = _attr_input_checked_script;
|
|
4
4
|
controllableScripts[1] = _attr_input_checkedValue_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/controllable-open.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-
|
|
1
|
+
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/dynamic-tag-script.feat.ts
|
|
4
4
|
require_control_flow._resumed[require_control_flow.DYNAMIC_TAG_SCRIPT_REGISTER_ID] = require_control_flow.withBranches(require_control_flow.dynamicTagScript);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Cn as withBranches, Zt as DYNAMIC_TAG_SCRIPT_REGISTER_ID, h as dynamicTagScript, yt as _resumed } from "../dom-
|
|
1
|
+
import { Cn as withBranches, Zt as DYNAMIC_TAG_SCRIPT_REGISTER_ID, h as dynamicTagScript, yt as _resumed } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed[DYNAMIC_TAG_SCRIPT_REGISTER_ID] = withBranches(dynamicTagScript);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/dynamic-tag-var.feat.ts
|
|
4
4
|
require_control_flow.installBranchRenders();
|
|
5
5
|
require_control_flow.installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as _el_read, Gn as StartNode, Kn as TagVariable, Pn as BranchRenders, g as installDynamicTagVar, in as installBranchRenders, rn as createBranchRenders } from "../dom-
|
|
1
|
+
import { At as _el_read, Gn as StartNode, Kn as TagVariable, Pn as BranchRenders, g as installDynamicTagVar, in as installBranchRenders, rn as createBranchRenders } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-var.feat.ts
|
|
3
3
|
installBranchRenders();
|
|
4
4
|
installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-Uu_OCdvg.js");
|
|
3
3
|
// src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow._resumed[require_control_flow.PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
5
5
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as PLACEHOLDER_DISMISS_REGISTER_ID, Wn as PlaceholderBranch, qt as destroyBranch, yt as _resumed } from "../dom-
|
|
1
|
+
import { Qt as PLACEHOLDER_DISMISS_REGISTER_ID, Wn as PlaceholderBranch, qt as destroyBranch, yt as _resumed } from "../dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
4
4
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -1776,7 +1776,7 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1776
1776
|
insertBranchBefore(awaitBranch, scope[nodeAccessor].parentNode, scope[nodeAccessor]);
|
|
1777
1777
|
referenceNode.remove();
|
|
1778
1778
|
}
|
|
1779
|
-
params?.(awaitBranch,
|
|
1779
|
+
params?.(awaitBranch, value);
|
|
1780
1780
|
return awaitBranch;
|
|
1781
1781
|
};
|
|
1782
1782
|
const awaitPromise = (scope, promise) => {
|
|
@@ -1947,7 +1947,7 @@ function renderCatch(scope, error) {
|
|
|
1947
1947
|
setBranch(owner, tryWithCatch[BranchAccessor], catchContent, createBranch);
|
|
1948
1948
|
queueRender(owner[BranchScopes$1 + tryWithCatch[BranchAccessor]], (branch) => {
|
|
1949
1949
|
setupBranch(catchContent, branch);
|
|
1950
|
-
catchContent[Params]?.(branch,
|
|
1950
|
+
catchContent[Params]?.(branch, error);
|
|
1951
1951
|
}, -1);
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
@@ -2099,7 +2099,7 @@ const loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, tem
|
|
|
2099
2099
|
let hasPotentialMoves;
|
|
2100
2100
|
let start = 0;
|
|
2101
2101
|
var seenKeys = /* @__PURE__ */ new Set();
|
|
2102
|
-
forEach(value, (key,
|
|
2102
|
+
forEach(value, (key, a, b) => {
|
|
2103
2103
|
assertValidLoopKey(key, seenKeys);
|
|
2104
2104
|
const i = newScopes.length;
|
|
2105
2105
|
const oldScope = oldScopes[i];
|
|
@@ -2113,7 +2113,7 @@ const loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, tem
|
|
|
2113
2113
|
setupBranch(renderer, branch);
|
|
2114
2114
|
}
|
|
2115
2115
|
newScopes.push(branch);
|
|
2116
|
-
params?.(branch,
|
|
2116
|
+
params?.(branch, a, b);
|
|
2117
2117
|
});
|
|
2118
2118
|
scope[scopesAccessor] = newScopes;
|
|
2119
2119
|
const newLen = newScopes.length;
|
|
@@ -2154,24 +2154,24 @@ const loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, tem
|
|
|
2154
2154
|
});
|
|
2155
2155
|
const _for_of = /*@__PURE__*/ loop(([all, by], cb) => {
|
|
2156
2156
|
by ||= bySecondArg;
|
|
2157
|
-
if (typeof by === "string") forOf(all, (item, i) => cb(item[by],
|
|
2158
|
-
else forOf(all, (item, i) => cb(by(item, i),
|
|
2157
|
+
if (typeof by === "string") forOf(all, (item, i) => cb(item[by], item, i));
|
|
2158
|
+
else forOf(all, (item, i) => cb(by(item, i), item, i));
|
|
2159
2159
|
}, reorderKeyed);
|
|
2160
2160
|
const _for_in = /*@__PURE__*/ loop(([obj, by], cb) => {
|
|
2161
2161
|
by ||= byFirstArg;
|
|
2162
|
-
forIn(obj, (key, value) => cb(by(key, value),
|
|
2162
|
+
forIn(obj, (key, value) => cb(by(key, value), key, value));
|
|
2163
2163
|
}, reorderKeyed);
|
|
2164
2164
|
const _for_to = /*@__PURE__*/ loop(([to, from, step, by], cb) => {
|
|
2165
2165
|
by ||= byFirstArg;
|
|
2166
|
-
forTo(to, from, step, (v) => cb(by(v),
|
|
2166
|
+
forTo(to, from, step, (v) => cb(by(v), v));
|
|
2167
2167
|
}, reorderKeyed);
|
|
2168
2168
|
const _for_until = /*@__PURE__*/ loop(([until, from, step, by], cb) => {
|
|
2169
2169
|
by ||= byFirstArg;
|
|
2170
|
-
forUntil(until, from, step, (v) => cb(by(v),
|
|
2170
|
+
forUntil(until, from, step, (v) => cb(by(v), v));
|
|
2171
2171
|
}, reorderKeyed);
|
|
2172
|
-
const _for_of_unkeyed = /*@__PURE__*/ loop(([all], cb) => forOf(all, (item, i) => cb(i,
|
|
2173
|
-
const _for_to_unkeyed = /*@__PURE__*/ loop(([to, from, step], cb) => forTo(to, from, step, (v) => cb(v,
|
|
2174
|
-
const _for_until_unkeyed = /*@__PURE__*/ loop(([until, from, step], cb) => forUntil(until, from, step, (v) => cb(v,
|
|
2172
|
+
const _for_of_unkeyed = /*@__PURE__*/ loop(([all], cb) => forOf(all, (item, i) => cb(i, item, i)));
|
|
2173
|
+
const _for_to_unkeyed = /*@__PURE__*/ loop(([to, from, step], cb) => forTo(to, from, step, (v) => cb(v, v)));
|
|
2174
|
+
const _for_until_unkeyed = /*@__PURE__*/ loop(([until, from, step], cb) => forUntil(until, from, step, (v) => cb(v, v)));
|
|
2175
2175
|
function reorderKeyed(newScopes, start, newEnd, parentNode, afterReference) {
|
|
2176
2176
|
const diffLen = newEnd - start + 1;
|
|
2177
2177
|
const sources = new Array(diffLen);
|
|
@@ -1777,7 +1777,7 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1777
1777
|
insertBranchBefore(awaitBranch, scope[nodeAccessor].parentNode, scope[nodeAccessor]);
|
|
1778
1778
|
referenceNode.remove();
|
|
1779
1779
|
}
|
|
1780
|
-
params?.(awaitBranch,
|
|
1780
|
+
params?.(awaitBranch, value);
|
|
1781
1781
|
return awaitBranch;
|
|
1782
1782
|
};
|
|
1783
1783
|
const awaitPromise = (scope, promise) => {
|
|
@@ -1948,7 +1948,7 @@ function renderCatch(scope, error) {
|
|
|
1948
1948
|
setBranch(owner, tryWithCatch[BranchAccessor], catchContent, createBranch);
|
|
1949
1949
|
queueRender(owner[BranchScopes$1 + tryWithCatch[BranchAccessor]], (branch) => {
|
|
1950
1950
|
setupBranch(catchContent, branch);
|
|
1951
|
-
catchContent[Params]?.(branch,
|
|
1951
|
+
catchContent[Params]?.(branch, error);
|
|
1952
1952
|
}, -1);
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
@@ -2100,7 +2100,7 @@ const loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, tem
|
|
|
2100
2100
|
let hasPotentialMoves;
|
|
2101
2101
|
let start = 0;
|
|
2102
2102
|
var seenKeys = /* @__PURE__ */ new Set();
|
|
2103
|
-
forEach(value, (key,
|
|
2103
|
+
forEach(value, (key, a, b) => {
|
|
2104
2104
|
assertValidLoopKey(key, seenKeys);
|
|
2105
2105
|
const i = newScopes.length;
|
|
2106
2106
|
const oldScope = oldScopes[i];
|
|
@@ -2114,7 +2114,7 @@ const loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, tem
|
|
|
2114
2114
|
setupBranch(renderer, branch);
|
|
2115
2115
|
}
|
|
2116
2116
|
newScopes.push(branch);
|
|
2117
|
-
params?.(branch,
|
|
2117
|
+
params?.(branch, a, b);
|
|
2118
2118
|
});
|
|
2119
2119
|
scope[scopesAccessor] = newScopes;
|
|
2120
2120
|
const newLen = newScopes.length;
|
|
@@ -2155,24 +2155,24 @@ const loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, tem
|
|
|
2155
2155
|
});
|
|
2156
2156
|
const _for_of = /*@__PURE__*/ loop(([all, by], cb) => {
|
|
2157
2157
|
by ||= bySecondArg;
|
|
2158
|
-
if (typeof by === "string") forOf(all, (item, i) => cb(item[by],
|
|
2159
|
-
else forOf(all, (item, i) => cb(by(item, i),
|
|
2158
|
+
if (typeof by === "string") forOf(all, (item, i) => cb(item[by], item, i));
|
|
2159
|
+
else forOf(all, (item, i) => cb(by(item, i), item, i));
|
|
2160
2160
|
}, reorderKeyed);
|
|
2161
2161
|
const _for_in = /*@__PURE__*/ loop(([obj, by], cb) => {
|
|
2162
2162
|
by ||= byFirstArg;
|
|
2163
|
-
forIn(obj, (key, value) => cb(by(key, value),
|
|
2163
|
+
forIn(obj, (key, value) => cb(by(key, value), key, value));
|
|
2164
2164
|
}, reorderKeyed);
|
|
2165
2165
|
const _for_to = /*@__PURE__*/ loop(([to, from, step, by], cb) => {
|
|
2166
2166
|
by ||= byFirstArg;
|
|
2167
|
-
forTo(to, from, step, (v) => cb(by(v),
|
|
2167
|
+
forTo(to, from, step, (v) => cb(by(v), v));
|
|
2168
2168
|
}, reorderKeyed);
|
|
2169
2169
|
const _for_until = /*@__PURE__*/ loop(([until, from, step, by], cb) => {
|
|
2170
2170
|
by ||= byFirstArg;
|
|
2171
|
-
forUntil(until, from, step, (v) => cb(by(v),
|
|
2171
|
+
forUntil(until, from, step, (v) => cb(by(v), v));
|
|
2172
2172
|
}, reorderKeyed);
|
|
2173
|
-
const _for_of_unkeyed = /*@__PURE__*/ loop(([all], cb) => forOf(all, (item, i) => cb(i,
|
|
2174
|
-
const _for_to_unkeyed = /*@__PURE__*/ loop(([to, from, step], cb) => forTo(to, from, step, (v) => cb(v,
|
|
2175
|
-
const _for_until_unkeyed = /*@__PURE__*/ loop(([until, from, step], cb) => forUntil(until, from, step, (v) => cb(v,
|
|
2173
|
+
const _for_of_unkeyed = /*@__PURE__*/ loop(([all], cb) => forOf(all, (item, i) => cb(i, item, i)));
|
|
2174
|
+
const _for_to_unkeyed = /*@__PURE__*/ loop(([to, from, step], cb) => forTo(to, from, step, (v) => cb(v, v)));
|
|
2175
|
+
const _for_until_unkeyed = /*@__PURE__*/ loop(([until, from, step], cb) => forUntil(until, from, step, (v) => cb(v, v)));
|
|
2176
2176
|
function reorderKeyed(newScopes, start, newEnd, parentNode, afterReference) {
|
|
2177
2177
|
const diffLen = newEnd - start + 1;
|
|
2178
2178
|
const sources = new Array(diffLen);
|
package/dist/debug/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_control_flow = require("./dom-
|
|
3
|
+
const require_control_flow = require("./dom-Uu_OCdvg.js");
|
|
4
4
|
// src/dom/template.ts
|
|
5
5
|
const _template = (id, template, walks, setup, inputSignal) => {
|
|
6
6
|
const renderer = require_control_flow._content(id, template, walks, setup, inputSignal)();
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as _attrs, $t as _on, A as _attr_input_value_attribute_default, An as Setup, At as _el_read, B as _controllable_textarea, Bt as _or, C as _attr_input_checked, Ct as initEmbedded, D as _attr_input_checked_default, Dt as _closure, E as _attr_input_checkedValue_script, F as _attr_select_value_default, Ft as _hoist_resume, G as _attr_class_item, Gn as StartNode, Gt as _var_change, Ht as _return_change, I as _attr_select_value_script, It as _id, J as _attr_content, Jn as attrTags, Jt as insertBranchBefore, K as _attr_class_items, Kn as TagVariable, Kt as _assert_init, L as _controllable_input, Lt as _if_closure, M as _attr_input_value_dynamic_default, Mt as _for_selector, N as _attr_input_value_script, Nt as _global_read, O as _attr_input_checked_script, On as Params, Ot as _closure_get, P as _attr_select_value, Pt as _hoist, Q as _attr_style_items, R as _controllable_open, Rt as _let, S as _attr_details_or_dialog_open_script, St as init, T as _attr_input_checkedValue_default, Tn as Lazy, Tt as readyFailed, U as _attr, Ut as _script, Vt as _return, W as _attr_class, Wt as _var, X as _attr_style, Xt as syncGen, Y as _attr_nonce, Yt as removeAndDestroyBranch, Z as _attr_style_item, _n as forUntil, _t as _dynamic_tag_var_resume, a as _for_in, at as _lifecycle, b as _attr_details_or_dialog_open, bn as _hoist_read_error, bt as _var_resume, c as _for_to, ct as _text, d as _for_until_unkeyed, dn as run, dt as _content, en as $signal, et as _attrs_content, f as _if, fn as runEffects, ft as _content_closures, gn as forTo, gt as setupBranch, hn as forOf, ht as createBranch, i as _dynamic_tag_content, it as _html, j as _attr_input_value_default, jt as _for_closure, k as _attr_input_value, kt as _const, l as _for_to_unkeyed, ln as queueRender, lt as _text_content, m as _try, mn as forIn, mt as _return_setup, n as _await_promise, nn as onAbort, nt as _attrs_partial_content, o as _for_of, on as prepareEffects, ot as _style_rule_item, p as _show, pn as runId, pt as _content_closures_resume, q as _attr_class_names, qn as attrTag, r as _dynamic_tag, rt as _attrs_script, s as _for_of_unkeyed, sn as queueAsyncRender, st as _style_shell, t as _await_content, tn as $signalReset, tt as _attrs_partial, u as _for_until, ut as _to_text, v as renderCatch, vn as _assert_class_toggles, vt as _el, w as _attr_input_checkedValue, wn as Clone, wt as ready, x as _attr_details_or_dialog_open_default, xn as _call, y as startAwait, yn as _assert_hoist, yt as _resumed, z as _controllable_select, zn as Load, zt as _let_change } from "./dom-
|
|
1
|
+
import { $ as _attrs, $t as _on, A as _attr_input_value_attribute_default, An as Setup, At as _el_read, B as _controllable_textarea, Bt as _or, C as _attr_input_checked, Ct as initEmbedded, D as _attr_input_checked_default, Dt as _closure, E as _attr_input_checkedValue_script, F as _attr_select_value_default, Ft as _hoist_resume, G as _attr_class_item, Gn as StartNode, Gt as _var_change, Ht as _return_change, I as _attr_select_value_script, It as _id, J as _attr_content, Jn as attrTags, Jt as insertBranchBefore, K as _attr_class_items, Kn as TagVariable, Kt as _assert_init, L as _controllable_input, Lt as _if_closure, M as _attr_input_value_dynamic_default, Mt as _for_selector, N as _attr_input_value_script, Nt as _global_read, O as _attr_input_checked_script, On as Params, Ot as _closure_get, P as _attr_select_value, Pt as _hoist, Q as _attr_style_items, R as _controllable_open, Rt as _let, S as _attr_details_or_dialog_open_script, St as init, T as _attr_input_checkedValue_default, Tn as Lazy, Tt as readyFailed, U as _attr, Ut as _script, Vt as _return, W as _attr_class, Wt as _var, X as _attr_style, Xt as syncGen, Y as _attr_nonce, Yt as removeAndDestroyBranch, Z as _attr_style_item, _n as forUntil, _t as _dynamic_tag_var_resume, a as _for_in, at as _lifecycle, b as _attr_details_or_dialog_open, bn as _hoist_read_error, bt as _var_resume, c as _for_to, ct as _text, d as _for_until_unkeyed, dn as run, dt as _content, en as $signal, et as _attrs_content, f as _if, fn as runEffects, ft as _content_closures, gn as forTo, gt as setupBranch, hn as forOf, ht as createBranch, i as _dynamic_tag_content, it as _html, j as _attr_input_value_default, jt as _for_closure, k as _attr_input_value, kt as _const, l as _for_to_unkeyed, ln as queueRender, lt as _text_content, m as _try, mn as forIn, mt as _return_setup, n as _await_promise, nn as onAbort, nt as _attrs_partial_content, o as _for_of, on as prepareEffects, ot as _style_rule_item, p as _show, pn as runId, pt as _content_closures_resume, q as _attr_class_names, qn as attrTag, r as _dynamic_tag, rt as _attrs_script, s as _for_of_unkeyed, sn as queueAsyncRender, st as _style_shell, t as _await_content, tn as $signalReset, tt as _attrs_partial, u as _for_until, ut as _to_text, v as renderCatch, vn as _assert_class_toggles, vt as _el, w as _attr_input_checkedValue, wn as Clone, wt as ready, x as _attr_details_or_dialog_open_default, xn as _call, y as startAwait, yn as _assert_hoist, yt as _resumed, z as _controllable_select, zn as Load, zt as _let_change } from "./dom-4AzxJQHb.mjs";
|
|
2
2
|
// src/dom/template.ts
|
|
3
3
|
const _template = (id, template, walks, setup, inputSignal) => {
|
|
4
4
|
const renderer = _content(id, template, walks, setup, inputSignal)();
|
package/dist/dom/catch.feat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BdJeggv5.js"), deferToPendingTry = (fn, scope, branch) => {
|
|
3
3
|
for (; branch;) {
|
|
4
4
|
if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = (_) => complete() || require_control_flow.an(branch, require_control_flow._))(branch.O.c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
|
|
5
5
|
branch = branch.N;
|
package/dist/dom/catch.feat.mjs
CHANGED
|
@@ -4,7 +4,7 @@ let deferToPendingTry = (fn, scope, branch) => {
|
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
import { _ as queuePendingEffects, an as queueAsyncRender, rn as installCatch, v as renderCatch } from "../dom-
|
|
7
|
+
import { _ as queuePendingEffects, an as queueAsyncRender, rn as installCatch, v as renderCatch } from "../dom-DJrZXgdr.mjs";
|
|
8
8
|
// src/dom/catch.feat.ts
|
|
9
9
|
installCatch((effects) => {
|
|
10
10
|
let i = 0, fn, scope, branch;
|
package/dist/dom/compat.feat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BdJeggv5.js"), RENDER_BODY_ID = "$C_b", classIdToBranch = /* @__PURE__ */ new Map(), classEventResolver, scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
|
|
3
3
|
require_control_flow.St($global.runtimeId);
|
|
4
4
|
let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
|
|
5
5
|
return render && !scopes && scopesByRender.set(render, scopes = {}), scopes;
|
package/dist/dom/compat.feat.mjs
CHANGED
|
@@ -77,7 +77,7 @@ let RENDER_BODY_ID = "$C_b", classIdToBranch = /* @__PURE__ */ new Map(), classE
|
|
|
77
77
|
if (component.effects = rendering ? renderBranch() : prepareEffects(renderBranch), created) return branch.S.parentNode || branch.S;
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
import { St as init, bn as setClassAPIRenderer, cn as rendering, dt as _content, gt as setupBranch, ht as createBranch, in as prepareEffects, on as queueEffect, qt as destroyBranch, sn as queueRender, un as runEffects, xt as getRegisteredWithScope, yt as _resumed } from "../dom-
|
|
80
|
+
import { St as init, bn as setClassAPIRenderer, cn as rendering, dt as _content, gt as setupBranch, ht as createBranch, in as prepareEffects, on as queueEffect, qt as destroyBranch, sn as queueRender, un as runEffects, xt as getRegisteredWithScope, yt as _resumed } from "../dom-DJrZXgdr.mjs";
|
|
81
81
|
// src/common/compat-meta.ts
|
|
82
82
|
// src/dom/compat.feat.ts
|
|
83
83
|
function createClassRenderer(render, clone) {
|
|
@@ -16,10 +16,10 @@ export declare let bindTagVar: undefined | ((scope: Scope, branch: BranchScope,
|
|
|
16
16
|
export declare function installDynamicTagVar(bind: NonNullable<typeof bindTagVar>): void;
|
|
17
17
|
export declare function dynamicTagScript(branch: Scope): void;
|
|
18
18
|
export declare function setBranch<T>(scope: Scope, nodeAccessor: Accessor, newRenderer: T, createBranch: ($global: Scope[typeof AccessorProp.Global], renderer: NonNullable<T>, parentScope: Scope, parentNode: ParentNode) => BranchScope): void;
|
|
19
|
-
export declare const _for_of: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
20
|
-
export declare const _for_in: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
21
|
-
export declare const _for_to: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
22
|
-
export declare const _for_until: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
23
|
-
export declare const _for_of_unkeyed: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
24
|
-
export declare const _for_to_unkeyed: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
25
|
-
export declare const _for_until_unkeyed: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?:
|
|
19
|
+
export declare const _for_of: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [all: unknown[], by?: ((item: unknown, index: number) => unknown) | undefined]) => void;
|
|
20
|
+
export declare const _for_in: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [obj: {}, by?: ((key: string, v: unknown) => unknown) | undefined]) => void;
|
|
21
|
+
export declare const _for_to: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [to: number, from?: number | undefined, step?: number | undefined, by?: ((v: number) => unknown) | undefined]) => void;
|
|
22
|
+
export declare const _for_until: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [until: number, from?: number | undefined, step?: number | undefined, by?: ((v: number) => unknown) | undefined]) => void;
|
|
23
|
+
export declare const _for_of_unkeyed: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [all: unknown[]]) => void;
|
|
24
|
+
export declare const _for_to_unkeyed: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [to: number, from?: number | undefined, step?: number | undefined]) => void;
|
|
25
|
+
export declare const _for_until_unkeyed: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: (scope: Scope, a: unknown, b: unknown) => void) => (scope: Scope, value: [until: number, from?: number | undefined, step?: number | undefined]) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BdJeggv5.js");
|
|
3
3
|
require_control_flow.V[0] = require_control_flow.O, require_control_flow.V[1] = require_control_flow.E, require_control_flow.V[2] = require_control_flow.N;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-DJrZXgdr.mjs";
|
|
2
2
|
controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-DJrZXgdr.mjs";
|
|
2
2
|
// src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-DJrZXgdr.mjs";
|
|
2
2
|
// src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-DJrZXgdr.mjs";
|
|
2
2
|
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BdJeggv5.js");
|
|
3
3
|
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.H.INPUT = require_control_flow.L, require_control_flow.H.TEXTAREA = require_control_flow.B, require_control_flow.H.SELECT = require_control_flow.z, require_control_flow.H.DETAILS = require_control_flow.H.DIALOG = require_control_flow.R;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-
|
|
1
|
+
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-DJrZXgdr.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h as dynamicTagScript, xn as withBranches, yt as _resumed } from "../dom-
|
|
1
|
+
import { h as dynamicTagScript, xn as withBranches, yt as _resumed } from "../dom-DJrZXgdr.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed._d = withBranches(dynamicTagScript);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BdJeggv5.js");
|
|
3
3
|
require_control_flow.nn(), require_control_flow.g((scope, branch, scopeKey, renderer) => {
|
|
4
4
|
branch.BR = require_control_flow.tn(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as installDynamicTagVar, nn as installBranchRenders, tn as createBranchRenders } from "../dom-
|
|
1
|
+
import { g as installDynamicTagVar, nn as installBranchRenders, tn as createBranchRenders } from "../dom-DJrZXgdr.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
|
});
|
package/dist/dom/lazy.feat.js
CHANGED
package/dist/dom/lazy.feat.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BdJeggv5.js");
|
|
3
3
|
// src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow.yt._f = (tryBranch) => {
|
|
5
5
|
tryBranch.P &&= (require_control_flow.qt(tryBranch.P), 0);
|
|
@@ -80,9 +80,9 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
80
80
|
let referenceNode = scope[nodeAccessor], oldScopes = toArray(scope[scopesAccessor]), newScopes = [];
|
|
81
81
|
scope[keyedScopesAccessor] = null;
|
|
82
82
|
let oldLen = oldScopes.length, parentNode = referenceNode.nodeType > 1 ? referenceNode.parentNode || oldScopes[0]?.S.parentNode : referenceNode, oldScopesByKey, hasPotentialMoves, start = 0;
|
|
83
|
-
forEach(value, (key,
|
|
83
|
+
forEach(value, (key, a, b) => {
|
|
84
84
|
let i = newScopes.length, oldScope = oldScopes[i], branch = oldLen && (oldScopesByKey || key !== (oldScope?.M ?? i) ? (oldScopesByKey ||= oldScopes.reduce((map, scope, j) => j < i ? map : (scope.I = j, map.set(scope.M ?? j, scope)), /* @__PURE__ */ new Map())).get(key) : oldScope && (start++, oldScope));
|
|
85
|
-
branch ? (hasPotentialMoves = 1, oldScopesByKey?.delete(key), branch.M = key) : ((branch = createBranch(scope.$, renderer, scope, parentNode)).M = key, setupBranch(renderer, branch)), newScopes.push(branch), params?.(branch,
|
|
85
|
+
branch ? (hasPotentialMoves = 1, oldScopesByKey?.delete(key), branch.M = key) : ((branch = createBranch(scope.$, renderer, scope, parentNode)).M = key, setupBranch(renderer, branch)), newScopes.push(branch), params?.(branch, a, b);
|
|
86
86
|
}), scope[scopesAccessor] = newScopes;
|
|
87
87
|
let newLen = newScopes.length, hasSiblings = referenceNode !== parentNode, afterReference = null, oldEnd = oldLen - 1, newEnd = newLen - 1;
|
|
88
88
|
if (hasSiblings && (oldLen ? (afterReference = oldScopes[oldEnd].K.nextSibling, newLen || parentNode.insertBefore(referenceNode, afterReference)) : newLen && (afterReference = referenceNode.nextSibling, referenceNode.remove())), !hasPotentialMoves) {
|
|
@@ -97,14 +97,14 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
}), _for_of = /*@__PURE__*/ loop(([all, by], cb) => {
|
|
100
|
-
by ||= bySecondArg, typeof by == "string" ? forOf(all, (item, i) => cb(item[by],
|
|
100
|
+
by ||= bySecondArg, typeof by == "string" ? forOf(all, (item, i) => cb(item[by], item, i)) : forOf(all, (item, i) => cb(by(item, i), item, i));
|
|
101
101
|
}, reorderKeyed), _for_in = /*@__PURE__*/ loop(([obj, by], cb) => {
|
|
102
|
-
by ||= byFirstArg, forIn(obj, (key, value) => cb(by(key, value),
|
|
102
|
+
by ||= byFirstArg, forIn(obj, (key, value) => cb(by(key, value), key, value));
|
|
103
103
|
}, reorderKeyed), _for_to = /*@__PURE__*/ loop(([to, from, step, by], cb) => {
|
|
104
|
-
by ||= byFirstArg, forTo(to, from, step, (v) => cb(by(v),
|
|
104
|
+
by ||= byFirstArg, forTo(to, from, step, (v) => cb(by(v), v));
|
|
105
105
|
}, reorderKeyed), _for_until = /*@__PURE__*/ loop(([until, from, step, by], cb) => {
|
|
106
|
-
by ||= byFirstArg, forUntil(until, from, step, (v) => cb(by(v),
|
|
107
|
-
}, reorderKeyed), _for_of_unkeyed = /*@__PURE__*/ loop(([all], cb) => forOf(all, (item, i) => cb(i,
|
|
106
|
+
by ||= byFirstArg, forUntil(until, from, step, (v) => cb(by(v), v));
|
|
107
|
+
}, reorderKeyed), _for_of_unkeyed = /*@__PURE__*/ loop(([all], cb) => forOf(all, (item, i) => cb(i, item, i))), _for_to_unkeyed = /*@__PURE__*/ loop(([to, from, step], cb) => forTo(to, from, step, (v) => cb(v, v))), _for_until_unkeyed = /*@__PURE__*/ loop(([until, from, step], cb) => forUntil(until, from, step, (v) => cb(v, v)));
|
|
108
108
|
// src/common/helpers.ts
|
|
109
109
|
function _call(fn, v) {
|
|
110
110
|
return fn(v), v;
|
|
@@ -1027,7 +1027,7 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1027
1027
|
nodeAccessor = decodeAccessor(nodeAccessor);
|
|
1028
1028
|
let promiseAccessor = "L" + nodeAccessor, branchAccessor = "A" + nodeAccessor, tryAccessor = "Q" + nodeAccessor, resolveAwait = (scope, referenceNode, value) => {
|
|
1029
1029
|
let awaitBranch = scope[branchAccessor];
|
|
1030
|
-
return awaitBranch.V && (awaitBranch.Y = awaitBranch.Y?.forEach(syncGen), setupBranch(awaitBranch.V, awaitBranch), awaitBranch.V = 0, insertBranchBefore(awaitBranch, scope[nodeAccessor].parentNode, scope[nodeAccessor]), referenceNode.remove()), params?.(awaitBranch,
|
|
1030
|
+
return awaitBranch.V && (awaitBranch.Y = awaitBranch.Y?.forEach(syncGen), setupBranch(awaitBranch.V, awaitBranch), awaitBranch.V = 0, insertBranchBefore(awaitBranch, scope[nodeAccessor].parentNode, scope[nodeAccessor]), referenceNode.remove()), params?.(awaitBranch, value), awaitBranch;
|
|
1031
1031
|
}, awaitPromise = (scope, promise) => {
|
|
1032
1032
|
isPromise(scope[promiseAccessor]) || (scope[promiseAccessor] = 0);
|
|
1033
1033
|
let awaitBranch = scope[branchAccessor], tryBranch = scope[tryAccessor] || isPromise(promise) && findTryWithPlaceholder(scope) || awaitBranch;
|
|
@@ -1138,7 +1138,7 @@ function renderCatch(scope, error) {
|
|
|
1138
1138
|
placeholderBranch && (tryWithCatch.O && (tryWithCatch.O.i = 0), owner["A" + tryWithCatch.C] = placeholderBranch, destroyBranch(tryWithCatch));
|
|
1139
1139
|
let catchContent = tryWithCatch.E();
|
|
1140
1140
|
setBranch(owner, tryWithCatch.C, catchContent, createBranch), queueRender(owner["A" + tryWithCatch.C], (branch) => {
|
|
1141
|
-
setupBranch(catchContent, branch), catchContent.d?.(branch,
|
|
1141
|
+
setupBranch(catchContent, branch), catchContent.d?.(branch, error);
|
|
1142
1142
|
}, -1);
|
|
1143
1143
|
} else throw error;
|
|
1144
1144
|
}
|