marko 6.4.14 → 6.4.16
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-sfzdCRAg.js → dom-BLoTKI2r.js} +3 -3
- package/dist/debug/{dom-BORByF2b.mjs → dom-DlBA4dCe.mjs} +2 -2
- package/dist/debug/dom.js +3 -2
- package/dist/debug/dom.mjs +2 -2
- package/dist/debug/html/compat.feat.js +1 -1
- package/dist/debug/html/compat.feat.mjs +1 -1
- package/dist/debug/{html-DMo6pc_h.mjs → html-DM7X2D_b.mjs} +37 -29
- package/dist/debug/{html-DfZjMkhx.js → html-Du0z056z.js} +37 -29
- package/dist/debug/html.js +1 -1
- package/dist/debug/html.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/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/renderer.d.ts +1 -1
- package/dist/{dom-DRiewpRL.js → dom-BRtFOIF-.js} +2 -2
- package/dist/{dom-DKn1bCPC.mjs → dom-Cqajrs_w.mjs} +2 -2
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +2 -2
- package/dist/dom.mjs +2 -2
- package/dist/html/assets.d.ts +1 -1
- package/dist/html/compat.feat.js +1 -1
- package/dist/html/compat.feat.mjs +1 -1
- package/dist/html/control-flow.d.ts +9 -9
- package/dist/html/for.d.ts +3 -3
- package/dist/html/inlined-runtimes.d.ts +1 -1
- package/dist/html/inlined-runtimes.debug.d.ts +1 -1
- package/dist/html/serializer.d.ts +2 -0
- package/dist/html/writer.d.ts +3 -2
- package/dist/{html-DrHsybFm.js → html-4A3vJpIT.js} +32 -32
- package/dist/{html-DMDc0zKs.mjs → html-C3dQGQ2x.mjs} +32 -32
- package/dist/html.js +1 -1
- package/dist/html.mjs +1 -1
- package/dist/translator/index.js +251 -160
- package/dist/translator/interop/build-aggregate-error.d.ts +1 -1
- package/dist/translator/util/cyclic-memo.d.ts +2 -0
- package/dist/translator/util/sections.d.ts +1 -0
- package/dist/translator/util/solve-reasons.d.ts +6 -4
- package/dist/translator/util/write-guard.d.ts +2 -0
- package/dist/translator/util/writer.d.ts +1 -2
- package/package.json +4 -4
|
@@ -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 renderCatch, an as installCatch, cn as queueEffect, jn as Pending, sn as queueAsyncRender, v as runPendingEffects } from "../dom-
|
|
1
|
+
import { Bn as ParentBranch, Fn as ClosestBranch, Hn as PendingEffects, Mn as Scope, Un as PendingRenders, Vn as PendingEffectScopes, _ as renderCatch, an as installCatch, cn as queueEffect, jn as Pending, sn as queueAsyncRender, v as runPendingEffects } from "../dom-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.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-BLoTKI2r.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-DlBA4dCe.mjs";
|
|
2
2
|
// src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
4
4
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -1211,7 +1211,7 @@ function _content(id, template, walks, setup, params, dynamicScopesAccessor) {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function _content_closures_resume(renderer, hasLocalValues = 0) {
|
|
1215
1215
|
return _resumed[renderer()["id"]] = (owner, ...values) => {
|
|
1216
1216
|
for (let i = values.length, scope = owner; i > hasLocalValues;) {
|
|
1217
1217
|
if (!scope) throw new Error("Unable to resume registered content: its payload does not link the owner of every closure level.");
|
|
@@ -2642,10 +2642,10 @@ Object.defineProperty(exports, "_content_closures", {
|
|
|
2642
2642
|
return _content_closures;
|
|
2643
2643
|
}
|
|
2644
2644
|
});
|
|
2645
|
-
Object.defineProperty(exports, "
|
|
2645
|
+
Object.defineProperty(exports, "_content_closures_resume", {
|
|
2646
2646
|
enumerable: true,
|
|
2647
2647
|
get: function() {
|
|
2648
|
-
return
|
|
2648
|
+
return _content_closures_resume;
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
Object.defineProperty(exports, "_controllable_input", {
|
|
@@ -1210,7 +1210,7 @@ function _content(id, template, walks, setup, params, dynamicScopesAccessor) {
|
|
|
1210
1210
|
};
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function _content_closures_resume(renderer, hasLocalValues = 0) {
|
|
1214
1214
|
return _resumed[renderer()["id"]] = (owner, ...values) => {
|
|
1215
1215
|
for (let i = values.length, scope = owner; i > hasLocalValues;) {
|
|
1216
1216
|
if (!scope) throw new Error("Unable to resume registered content: its payload does not link the owner of every closure level.");
|
|
@@ -2221,4 +2221,4 @@ function bySecondArg(_item, index) {
|
|
|
2221
2221
|
function byFirstArg(name) {
|
|
2222
2222
|
return name;
|
|
2223
2223
|
}
|
|
2224
|
-
export { _attrs as $, _on as $t, _attr_input_value_attribute_default as A, Setup as An, _el_read as At, _controllable_textarea as B, ParentBranch as Bn, _or as Bt, _attr_input_checked as C, withBranches as Cn, initEmbedded as Ct, _attr_input_checked_default as D, Owner as Dn, _closure as Dt, _attr_input_checkedValue_script as E, LocalClosures as En, withLazy as Et, _attr_select_value_default as F, ClosestBranch as Fn, _hoist_resume as Ft, _attr_class_item as G, StartNode as Gn, _var_change as Gt, controllableSpreadHelpers as H, PendingEffects as Hn, _return_change as Ht, _attr_select_value_script as I, EndNode as In, _id as It, _attr_content as J, attrTags as Jn, insertBranchBefore as Jt, _attr_class_items as K, TagVariable as Kn, _assert_init as Kt, _controllable_input as L, Gen$1 as Ln, _if_closure as Lt, _attr_input_value_dynamic_default as M, Scope as Mn, _for_selector as Mt, _attr_input_value_script as N, AwaitCounter as Nn, _global_read as Nt, _attr_input_checked_script as O, Params as On, _closure_get as Ot, _attr_select_value as P, BranchRenders as Pn, _hoist as Pt, _attr_style_items as Q, PLACEHOLDER_DISMISS_REGISTER_ID as Qt, _controllable_open as R, Global as Rn, _let as Rt, _attr_details_or_dialog_open_script as S, setClassAPIRenderer as Sn, init as St, _attr_input_checkedValue_default as T, Lazy as Tn, readyFailed as Tt, _attr as U, PendingRenders as Un, _script as Ut, controllableScripts as V, PendingEffectScopes as Vn, _return as Vt, _attr_class as W, PlaceholderBranch as Wn, _var as Wt, _attr_style as X, syncGen as Xt, _attr_nonce as Y, removeAndDestroyBranch as Yt, _attr_style_item as Z, DYNAMIC_TAG_SCRIPT_REGISTER_ID as Zt, renderCatch as _, forUntil as _n, _dynamic_tag_var_resume as _t, _for_in as a, installCatch as an, _lifecycle as at, _attr_details_or_dialog_open as b, _hoist_read_error as bn, _var_resume as bt, _for_to as c, queueEffect as cn, _text as ct, _for_until_unkeyed as d, run as dn, _content as dt, $signal as en, _attrs_content as et, _if as f, runEffects as fn, _content_closures as ft, installDynamicTagVar as g, forTo as gn, setupBranch as gt, dynamicTagScript as h, forOf as hn, createBranch as ht, _dynamic_tag_content as i, installBranchRenders as in, _html as it, _attr_input_value_default as j, Pending as jn, _for_closure as jt, _attr_input_value as k, Returns as kn, _const as kt, _for_to_unkeyed as l, queueRender as ln, _text_content as lt, _try as m, forIn as mn, _return_setup as mt, _await_promise as n, onAbort as nn, _attrs_partial_content as nt, _for_of as o, prepareEffects as on, _style_rule_item as ot, _show as p, runId as pn,
|
|
2224
|
+
export { _attrs as $, _on as $t, _attr_input_value_attribute_default as A, Setup as An, _el_read as At, _controllable_textarea as B, ParentBranch as Bn, _or as Bt, _attr_input_checked as C, withBranches as Cn, initEmbedded as Ct, _attr_input_checked_default as D, Owner as Dn, _closure as Dt, _attr_input_checkedValue_script as E, LocalClosures as En, withLazy as Et, _attr_select_value_default as F, ClosestBranch as Fn, _hoist_resume as Ft, _attr_class_item as G, StartNode as Gn, _var_change as Gt, controllableSpreadHelpers as H, PendingEffects as Hn, _return_change as Ht, _attr_select_value_script as I, EndNode as In, _id as It, _attr_content as J, attrTags as Jn, insertBranchBefore as Jt, _attr_class_items as K, TagVariable as Kn, _assert_init as Kt, _controllable_input as L, Gen$1 as Ln, _if_closure as Lt, _attr_input_value_dynamic_default as M, Scope as Mn, _for_selector as Mt, _attr_input_value_script as N, AwaitCounter as Nn, _global_read as Nt, _attr_input_checked_script as O, Params as On, _closure_get as Ot, _attr_select_value as P, BranchRenders as Pn, _hoist as Pt, _attr_style_items as Q, PLACEHOLDER_DISMISS_REGISTER_ID as Qt, _controllable_open as R, Global as Rn, _let as Rt, _attr_details_or_dialog_open_script as S, setClassAPIRenderer as Sn, init as St, _attr_input_checkedValue_default as T, Lazy as Tn, readyFailed as Tt, _attr as U, PendingRenders as Un, _script as Ut, controllableScripts as V, PendingEffectScopes as Vn, _return as Vt, _attr_class as W, PlaceholderBranch as Wn, _var as Wt, _attr_style as X, syncGen as Xt, _attr_nonce as Y, removeAndDestroyBranch as Yt, _attr_style_item as Z, DYNAMIC_TAG_SCRIPT_REGISTER_ID as Zt, renderCatch as _, forUntil as _n, _dynamic_tag_var_resume as _t, _for_in as a, installCatch as an, _lifecycle as at, _attr_details_or_dialog_open as b, _hoist_read_error as bn, _var_resume as bt, _for_to as c, queueEffect as cn, _text as ct, _for_until_unkeyed as d, run as dn, _content as dt, $signal as en, _attrs_content as et, _if as f, runEffects as fn, _content_closures as ft, installDynamicTagVar as g, forTo as gn, setupBranch as gt, dynamicTagScript as h, forOf as hn, createBranch as ht, _dynamic_tag_content as i, installBranchRenders as in, _html as it, _attr_input_value_default as j, Pending as jn, _for_closure as jt, _attr_input_value as k, Returns as kn, _const as kt, _for_to_unkeyed as l, queueRender as ln, _text_content as lt, _try as m, forIn as mn, _return_setup as mt, _await_promise as n, onAbort as nn, _attrs_partial_content as nt, _for_of as o, prepareEffects as on, _style_rule_item as ot, _show as p, runId as pn, _content_closures_resume as pt, _attr_class_names as q, attrTag as qn, destroyBranch as qt, _dynamic_tag as r, createBranchRenders as rn, _attrs_script as rt, _for_of_unkeyed as s, queueAsyncRender as sn, _style_shell as st, _await_content as t, $signalReset as tn, _attrs_partial as tt, _for_until as u, rendering as un, _to_text as ut, runPendingEffects as v, _assert_class_toggles as vn, _el as vt, _attr_input_checkedValue as w, Clone as wn, ready as wt, _attr_details_or_dialog_open_default as x, _call as xn, getRegisteredWithScope as xt, startAwait as y, _assert_hoist as yn, _resumed as yt, _controllable_select as z, Load as zn, _let_change as zt };
|
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-BLoTKI2r.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)();
|
|
@@ -220,7 +220,8 @@ exports._closure_get = require_control_flow._closure_get;
|
|
|
220
220
|
exports._const = require_control_flow._const;
|
|
221
221
|
exports._content = require_control_flow._content;
|
|
222
222
|
exports._content_closures = require_control_flow._content_closures;
|
|
223
|
-
exports.
|
|
223
|
+
exports._content_closures_resume = require_control_flow._content_closures_resume;
|
|
224
|
+
exports._content_resume = require_control_flow._content;
|
|
224
225
|
exports._controllable_input = require_control_flow._controllable_input;
|
|
225
226
|
exports._controllable_open = require_control_flow._controllable_open;
|
|
226
227
|
exports._controllable_select = require_control_flow._controllable_select;
|
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, _ as renderCatch, _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
|
|
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, _ as renderCatch, _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, 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-DlBA4dCe.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)();
|
|
@@ -167,4 +167,4 @@ function _load_race_trigger(...triggers) {
|
|
|
167
167
|
function getSelectorOrResolve(selector, resolve) {
|
|
168
168
|
return document.querySelector(selector) || (console.warn(`A lazy load trigger could not find an element matching "${selector}". The module was loaded immediately.`), resolve());
|
|
169
169
|
}
|
|
170
|
-
export { $signal, $signalReset, _assert_class_toggles, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_class_names, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _closure, _closure_get, _const, _content, _content_closures,
|
|
170
|
+
export { $signal, $signalReset, _assert_class_toggles, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_class_names, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _closure, _closure_get, _const, _content, _content as _content_resume, _content_closures, _content_closures_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _dynamic_tag_var_resume, _el, _el_read, _for_closure, _for_in, _for_of, _for_of_unkeyed, _for_selector, _for_to, _for_to_unkeyed, _for_until, _for_until_unkeyed, _global_read, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resumed, _return, _return_change, _return_setup, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, forIn, forOf, forTo, forUntil, init, initEmbedded, onAbort, ready, readyFailed, run };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_control_flow = require("../html-
|
|
3
|
+
const require_control_flow = require("../html-Du0z056z.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 { A as $global, F as State, Ft as register, J as _scope_id, M as Boundary, N as Chunk, P as NOOP, Pt as REGISTRY, Q as _set_scope_reason, V as _html, Vt as setClassAPIRenderer, W as _peek_scope_id, Z as _script, _ as writeLoadAsset, at as getChunk, ct as joinHeldEffects, dt as writeScript, j as ALL_GROUPS, k as $chunk, lt as withChunk, ot as getScopeId, st as isInResumedBranch, t as _await, ut as writeScope } from "../html-
|
|
1
|
+
import { A as $global, F as State, Ft as register, J as _scope_id, M as Boundary, N as Chunk, P as NOOP, Pt as REGISTRY, Q as _set_scope_reason, V as _html, Vt as setClassAPIRenderer, W as _peek_scope_id, Z as _script, _ as writeLoadAsset, at as getChunk, ct as joinHeldEffects, dt as writeScript, j as ALL_GROUPS, k as $chunk, lt as withChunk, ot as getScopeId, st as isInResumedBranch, t as _await, ut as writeScope } from "../html-DM7X2D_b.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";
|
|
@@ -605,14 +605,17 @@ var State$1 = class {
|
|
|
605
605
|
const locals = registered.locals?.(this.boundary.state.scope);
|
|
606
606
|
if (locals) {
|
|
607
607
|
this.buf.push(registered.access + "(_(" + scopeId + ")");
|
|
608
|
-
|
|
609
|
-
this.buf.push(",");
|
|
610
|
-
writePlainObject(this, local, newArgReference(this, ref, local));
|
|
611
|
-
}
|
|
608
|
+
writeLocalArgs(this, ref, locals);
|
|
612
609
|
} else this.buf.push("_(" + scopeId + "," + quoteRegistryId(registered.id));
|
|
613
610
|
this.buf.push(")");
|
|
614
611
|
}
|
|
615
612
|
};
|
|
613
|
+
function writeLocalArgs(state, ref, locals) {
|
|
614
|
+
for (const local of locals) {
|
|
615
|
+
state.buf.push(",");
|
|
616
|
+
writePlainObject(state, local, newArgReference(state, ref, local));
|
|
617
|
+
}
|
|
618
|
+
}
|
|
616
619
|
var Reference = class {
|
|
617
620
|
assignments = null;
|
|
618
621
|
deferredMembers = null;
|
|
@@ -2112,6 +2115,10 @@ const WALKER_RUNTIME_CODE = `((runtimeId) => (self[runtimeId] ||= (
|
|
|
2112
2115
|
visits.push(node);
|
|
2113
2116
|
}
|
|
2114
2117
|
}
|
|
2118
|
+
|
|
2119
|
+
// Back to the script calling it, which is where the parser is: a node
|
|
2120
|
+
// another script appended lies past it, ahead of what streams in later.
|
|
2121
|
+
walker.currentNode = document.currentScript;
|
|
2115
2122
|
},
|
|
2116
2123
|
})
|
|
2117
2124
|
, self[runtimeId]))`;
|
|
@@ -2226,12 +2233,6 @@ function withContext(key, value, cb, cbValue, cbValue2) {
|
|
|
2226
2233
|
ctx[key] = prev;
|
|
2227
2234
|
}
|
|
2228
2235
|
}
|
|
2229
|
-
function captureContext(chunk) {
|
|
2230
|
-
if (chunk.context?.[kPendingContexts]) chunk.context = {
|
|
2231
|
-
...chunk.context,
|
|
2232
|
-
[kPendingContexts]: 0
|
|
2233
|
-
};
|
|
2234
|
-
}
|
|
2235
2236
|
const kBranchId = Symbol("Branch Id");
|
|
2236
2237
|
const kAsyncContent = Symbol("Async Content");
|
|
2237
2238
|
function isInResumedBranch() {
|
|
@@ -2510,9 +2511,30 @@ var State = class {
|
|
|
2510
2511
|
serializeFlush(boundary) {
|
|
2511
2512
|
flushSerializer(boundary, this);
|
|
2512
2513
|
}
|
|
2514
|
+
getSerializedGlobals() {
|
|
2515
|
+
const { $global } = this;
|
|
2516
|
+
const serializedGlobals = $global.serializedGlobals;
|
|
2517
|
+
if (!serializedGlobals) return 0;
|
|
2518
|
+
let filtered = 0;
|
|
2519
|
+
if (Array.isArray(serializedGlobals)) for (const key of serializedGlobals) {
|
|
2520
|
+
const value = $global[key];
|
|
2521
|
+
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
2522
|
+
}
|
|
2523
|
+
else for (const key in serializedGlobals) if (serializedGlobals[key]) {
|
|
2524
|
+
const value = $global[key];
|
|
2525
|
+
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
2526
|
+
}
|
|
2527
|
+
return filtered;
|
|
2528
|
+
}
|
|
2513
2529
|
runtimeScript() {
|
|
2514
2530
|
return WALKER_RUNTIME_CODE + "(\"" + this.$global.runtimeId + "\")(\"" + this.$global.renderId + "\")";
|
|
2515
2531
|
}
|
|
2532
|
+
captureContext(chunk) {
|
|
2533
|
+
if (chunk.context?.[kPendingContexts]) chunk.context = {
|
|
2534
|
+
...chunk.context,
|
|
2535
|
+
[kPendingContexts]: 0
|
|
2536
|
+
};
|
|
2537
|
+
}
|
|
2516
2538
|
keepsTryMarks(chunk, resumeWrites) {
|
|
2517
2539
|
return chunk !== $chunk || chunk.boundary.resumeWrites !== resumeWrites;
|
|
2518
2540
|
}
|
|
@@ -3013,7 +3035,7 @@ function flushSerializer(boundary, channel) {
|
|
|
3013
3035
|
}
|
|
3014
3036
|
if (!channel.readyId && !state.hasWrittenGlobals) {
|
|
3015
3037
|
state.hasWrittenGlobals = true;
|
|
3016
|
-
const globals =
|
|
3038
|
+
const globals = state.getSerializedGlobals();
|
|
3017
3039
|
if (globals) flushes.push([
|
|
3018
3040
|
0,
|
|
3019
3041
|
globals,
|
|
@@ -3042,7 +3064,7 @@ function flushSerializerGlobals(boundary) {
|
|
|
3042
3064
|
const { state } = boundary;
|
|
3043
3065
|
if (state.hasWrittenGlobals) return;
|
|
3044
3066
|
state.hasWrittenGlobals = true;
|
|
3045
|
-
const globals =
|
|
3067
|
+
const globals = state.getSerializedGlobals();
|
|
3046
3068
|
if (globals) {
|
|
3047
3069
|
state.needsWalkerRuntime = true;
|
|
3048
3070
|
state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
|
|
@@ -3068,20 +3090,6 @@ function readyBatch(state, channel, deps, resumes) {
|
|
|
3068
3090
|
if (resumes) own[readyId]++;
|
|
3069
3091
|
return concatSequence(wait && wait + "}", resumes);
|
|
3070
3092
|
}
|
|
3071
|
-
function getFilteredGlobals($global) {
|
|
3072
|
-
const serializedGlobals = $global.serializedGlobals;
|
|
3073
|
-
if (!serializedGlobals) return 0;
|
|
3074
|
-
let filtered = 0;
|
|
3075
|
-
if (Array.isArray(serializedGlobals)) for (const key of serializedGlobals) {
|
|
3076
|
-
const value = $global[key];
|
|
3077
|
-
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
3078
|
-
}
|
|
3079
|
-
else for (const key in serializedGlobals) if (serializedGlobals[key]) {
|
|
3080
|
-
const value = $global[key];
|
|
3081
|
-
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
3082
|
-
}
|
|
3083
|
-
return filtered;
|
|
3084
|
-
}
|
|
3085
3093
|
function concatEffects(a, b) {
|
|
3086
3094
|
return a ? b ? a + " " + b : a : b;
|
|
3087
3095
|
}
|
|
@@ -3780,7 +3788,7 @@ function _await(scopeId, accessor, promise, content, markerGuard) {
|
|
|
3780
3788
|
const startId = _peek_scope_id();
|
|
3781
3789
|
const after = chunk.next = chunk.forkRest(boundary);
|
|
3782
3790
|
chunk.async = true;
|
|
3783
|
-
captureContext(chunk);
|
|
3791
|
+
boundary.state.captureContext(chunk);
|
|
3784
3792
|
boundary.startAsync();
|
|
3785
3793
|
promise.then((value) => {
|
|
3786
3794
|
if (chunk.async) {
|
|
@@ -3836,7 +3844,7 @@ function tryPlaceholder(content, placeholder, branchId, scopeId, placeholderBran
|
|
|
3836
3844
|
return;
|
|
3837
3845
|
}
|
|
3838
3846
|
chunk.next = chunk.forkRest(boundary);
|
|
3839
|
-
captureContext(chunk);
|
|
3847
|
+
boundary.state.captureContext(chunk);
|
|
3840
3848
|
chunk.placeholder = {
|
|
3841
3849
|
body,
|
|
3842
3850
|
render: placeholder,
|
|
@@ -3872,7 +3880,7 @@ function tryBoundary(content, catchContent, branchId, renderers) {
|
|
|
3872
3880
|
id: reorderId,
|
|
3873
3881
|
end: bodyEnd
|
|
3874
3882
|
};
|
|
3875
|
-
captureContext(chunk);
|
|
3883
|
+
state.captureContext(chunk);
|
|
3876
3884
|
}
|
|
3877
3885
|
bodyBoundary.onNext = () => {
|
|
3878
3886
|
if (boundary.aborted) return;
|
|
@@ -606,14 +606,17 @@ var State$1 = class {
|
|
|
606
606
|
const locals = registered.locals?.(this.boundary.state.scope);
|
|
607
607
|
if (locals) {
|
|
608
608
|
this.buf.push(registered.access + "(_(" + scopeId + ")");
|
|
609
|
-
|
|
610
|
-
this.buf.push(",");
|
|
611
|
-
writePlainObject(this, local, newArgReference(this, ref, local));
|
|
612
|
-
}
|
|
609
|
+
writeLocalArgs(this, ref, locals);
|
|
613
610
|
} else this.buf.push("_(" + scopeId + "," + quoteRegistryId(registered.id));
|
|
614
611
|
this.buf.push(")");
|
|
615
612
|
}
|
|
616
613
|
};
|
|
614
|
+
function writeLocalArgs(state, ref, locals) {
|
|
615
|
+
for (const local of locals) {
|
|
616
|
+
state.buf.push(",");
|
|
617
|
+
writePlainObject(state, local, newArgReference(state, ref, local));
|
|
618
|
+
}
|
|
619
|
+
}
|
|
617
620
|
var Reference = class {
|
|
618
621
|
assignments = null;
|
|
619
622
|
deferredMembers = null;
|
|
@@ -2113,6 +2116,10 @@ const WALKER_RUNTIME_CODE = `((runtimeId) => (self[runtimeId] ||= (
|
|
|
2113
2116
|
visits.push(node);
|
|
2114
2117
|
}
|
|
2115
2118
|
}
|
|
2119
|
+
|
|
2120
|
+
// Back to the script calling it, which is where the parser is: a node
|
|
2121
|
+
// another script appended lies past it, ahead of what streams in later.
|
|
2122
|
+
walker.currentNode = document.currentScript;
|
|
2116
2123
|
},
|
|
2117
2124
|
})
|
|
2118
2125
|
, self[runtimeId]))`;
|
|
@@ -2227,12 +2234,6 @@ function withContext(key, value, cb, cbValue, cbValue2) {
|
|
|
2227
2234
|
ctx[key] = prev;
|
|
2228
2235
|
}
|
|
2229
2236
|
}
|
|
2230
|
-
function captureContext(chunk) {
|
|
2231
|
-
if (chunk.context?.[kPendingContexts]) chunk.context = {
|
|
2232
|
-
...chunk.context,
|
|
2233
|
-
[kPendingContexts]: 0
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
2237
|
const kBranchId = Symbol("Branch Id");
|
|
2237
2238
|
const kAsyncContent = Symbol("Async Content");
|
|
2238
2239
|
function isInResumedBranch() {
|
|
@@ -2511,9 +2512,30 @@ var State = class {
|
|
|
2511
2512
|
serializeFlush(boundary) {
|
|
2512
2513
|
flushSerializer(boundary, this);
|
|
2513
2514
|
}
|
|
2515
|
+
getSerializedGlobals() {
|
|
2516
|
+
const { $global } = this;
|
|
2517
|
+
const serializedGlobals = $global.serializedGlobals;
|
|
2518
|
+
if (!serializedGlobals) return 0;
|
|
2519
|
+
let filtered = 0;
|
|
2520
|
+
if (Array.isArray(serializedGlobals)) for (const key of serializedGlobals) {
|
|
2521
|
+
const value = $global[key];
|
|
2522
|
+
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
2523
|
+
}
|
|
2524
|
+
else for (const key in serializedGlobals) if (serializedGlobals[key]) {
|
|
2525
|
+
const value = $global[key];
|
|
2526
|
+
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
2527
|
+
}
|
|
2528
|
+
return filtered;
|
|
2529
|
+
}
|
|
2514
2530
|
runtimeScript() {
|
|
2515
2531
|
return WALKER_RUNTIME_CODE + "(\"" + this.$global.runtimeId + "\")(\"" + this.$global.renderId + "\")";
|
|
2516
2532
|
}
|
|
2533
|
+
captureContext(chunk) {
|
|
2534
|
+
if (chunk.context?.[kPendingContexts]) chunk.context = {
|
|
2535
|
+
...chunk.context,
|
|
2536
|
+
[kPendingContexts]: 0
|
|
2537
|
+
};
|
|
2538
|
+
}
|
|
2517
2539
|
keepsTryMarks(chunk, resumeWrites) {
|
|
2518
2540
|
return chunk !== $chunk || chunk.boundary.resumeWrites !== resumeWrites;
|
|
2519
2541
|
}
|
|
@@ -3014,7 +3036,7 @@ function flushSerializer(boundary, channel) {
|
|
|
3014
3036
|
}
|
|
3015
3037
|
if (!channel.readyId && !state.hasWrittenGlobals) {
|
|
3016
3038
|
state.hasWrittenGlobals = true;
|
|
3017
|
-
const globals =
|
|
3039
|
+
const globals = state.getSerializedGlobals();
|
|
3018
3040
|
if (globals) flushes.push([
|
|
3019
3041
|
0,
|
|
3020
3042
|
globals,
|
|
@@ -3043,7 +3065,7 @@ function flushSerializerGlobals(boundary) {
|
|
|
3043
3065
|
const { state } = boundary;
|
|
3044
3066
|
if (state.hasWrittenGlobals) return;
|
|
3045
3067
|
state.hasWrittenGlobals = true;
|
|
3046
|
-
const globals =
|
|
3068
|
+
const globals = state.getSerializedGlobals();
|
|
3047
3069
|
if (globals) {
|
|
3048
3070
|
state.needsWalkerRuntime = true;
|
|
3049
3071
|
state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
|
|
@@ -3069,20 +3091,6 @@ function readyBatch(state, channel, deps, resumes) {
|
|
|
3069
3091
|
if (resumes) own[readyId]++;
|
|
3070
3092
|
return concatSequence(wait && wait + "}", resumes);
|
|
3071
3093
|
}
|
|
3072
|
-
function getFilteredGlobals($global) {
|
|
3073
|
-
const serializedGlobals = $global.serializedGlobals;
|
|
3074
|
-
if (!serializedGlobals) return 0;
|
|
3075
|
-
let filtered = 0;
|
|
3076
|
-
if (Array.isArray(serializedGlobals)) for (const key of serializedGlobals) {
|
|
3077
|
-
const value = $global[key];
|
|
3078
|
-
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
3079
|
-
}
|
|
3080
|
-
else for (const key in serializedGlobals) if (serializedGlobals[key]) {
|
|
3081
|
-
const value = $global[key];
|
|
3082
|
-
if (value !== void 0) (filtered ||= {})[key] = value;
|
|
3083
|
-
}
|
|
3084
|
-
return filtered;
|
|
3085
|
-
}
|
|
3086
3094
|
function concatEffects(a, b) {
|
|
3087
3095
|
return a ? b ? a + " " + b : a : b;
|
|
3088
3096
|
}
|
|
@@ -3781,7 +3789,7 @@ function _await(scopeId, accessor, promise, content, markerGuard) {
|
|
|
3781
3789
|
const startId = _peek_scope_id();
|
|
3782
3790
|
const after = chunk.next = chunk.forkRest(boundary);
|
|
3783
3791
|
chunk.async = true;
|
|
3784
|
-
captureContext(chunk);
|
|
3792
|
+
boundary.state.captureContext(chunk);
|
|
3785
3793
|
boundary.startAsync();
|
|
3786
3794
|
promise.then((value) => {
|
|
3787
3795
|
if (chunk.async) {
|
|
@@ -3837,7 +3845,7 @@ function tryPlaceholder(content, placeholder, branchId, scopeId, placeholderBran
|
|
|
3837
3845
|
return;
|
|
3838
3846
|
}
|
|
3839
3847
|
chunk.next = chunk.forkRest(boundary);
|
|
3840
|
-
captureContext(chunk);
|
|
3848
|
+
boundary.state.captureContext(chunk);
|
|
3841
3849
|
chunk.placeholder = {
|
|
3842
3850
|
body,
|
|
3843
3851
|
render: placeholder,
|
|
@@ -3873,7 +3881,7 @@ function tryBoundary(content, catchContent, branchId, renderers) {
|
|
|
3873
3881
|
id: reorderId,
|
|
3874
3882
|
end: bodyEnd
|
|
3875
3883
|
};
|
|
3876
|
-
captureContext(chunk);
|
|
3884
|
+
state.captureContext(chunk);
|
|
3877
3885
|
}
|
|
3878
3886
|
bodyBoundary.onNext = () => {
|
|
3879
3887
|
if (boundary.aborted) return;
|
package/dist/debug/html.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("./html-
|
|
3
|
+
const require_control_flow = require("./html-Du0z056z.js");
|
|
4
4
|
exports.$global = require_control_flow.$global;
|
|
5
5
|
exports._assert_class_toggles = require_control_flow._assert_class_toggles;
|
|
6
6
|
exports._assert_hoist = require_control_flow._assert_hoist;
|
package/dist/debug/html.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as $global, It as _assert_class_toggles, Lt as _assert_hoist, ft as _attr, pt as _attr_and, mt as _attr_class, I as _attr_content, ht as _attr_details_open, ht as _attr_dialog_open, gt as _attr_input_checked, _t as _attr_input_checkedValue, vt as _attr_input_value, yt as _attr_nonce, bt as _attr_nullish, xt as _attr_option_value, St as _attr_or, Ct as _attr_select_value, wt as _attr_style, Tt as _attr_textarea_value, Et as _attrs, Dt as _attrs_content, Ot as _attrs_partial, kt as _attrs_partial_content, At as _attrs_select_value, jt as _attrs_textarea_value, t as _await, y as _content, b as _content_resume, x as _dynamic_tag, L as _el, R as _el_mark, Rt as _el_read_error, S as _escape, C as _escape_comment, w as _escape_script, T as _escape_style, E as _escape_style_value, z as _existing_scope, m as _flush_head, n as _for_in, r as _for_of, i as _for_to, a as _for_until, B as _hoist, zt as _hoist_read_error, V as _html, H as _html_mark, U as _id, o as _if, W as _peek_scope_id, G as _resume, K as _resume_branch, q as _resume_locals, ut as _scope, J as _scope_id, Y as _scope_reason, X as _scope_with_id, Z as _script, Q as _set_scope_reason, s as _show_end, c as _show_start, Bt as _signal_read_error, Mt as _style_html, $ as _subscribe, v as _template, et as _text_mark, Nt as _textarea_value, D as _to_text, tt as _trailers, l as _try, O as _unescaped, nt as _var, rt as _write_guard, it as _write_if, Ht as attrTag, Ut as attrTags, u as forIn, d as forOf, f as forTo, p as forUntil, h as withLoadAssets, g as withPageAssets } from "./html-
|
|
1
|
+
export { A as $global, It as _assert_class_toggles, Lt as _assert_hoist, ft as _attr, pt as _attr_and, mt as _attr_class, I as _attr_content, ht as _attr_details_open, ht as _attr_dialog_open, gt as _attr_input_checked, _t as _attr_input_checkedValue, vt as _attr_input_value, yt as _attr_nonce, bt as _attr_nullish, xt as _attr_option_value, St as _attr_or, Ct as _attr_select_value, wt as _attr_style, Tt as _attr_textarea_value, Et as _attrs, Dt as _attrs_content, Ot as _attrs_partial, kt as _attrs_partial_content, At as _attrs_select_value, jt as _attrs_textarea_value, t as _await, y as _content, b as _content_resume, x as _dynamic_tag, L as _el, R as _el_mark, Rt as _el_read_error, S as _escape, C as _escape_comment, w as _escape_script, T as _escape_style, E as _escape_style_value, z as _existing_scope, m as _flush_head, n as _for_in, r as _for_of, i as _for_to, a as _for_until, B as _hoist, zt as _hoist_read_error, V as _html, H as _html_mark, U as _id, o as _if, W as _peek_scope_id, G as _resume, K as _resume_branch, q as _resume_locals, ut as _scope, J as _scope_id, Y as _scope_reason, X as _scope_with_id, Z as _script, Q as _set_scope_reason, s as _show_end, c as _show_start, Bt as _signal_read_error, Mt as _style_html, $ as _subscribe, v as _template, et as _text_mark, Nt as _textarea_value, D as _to_text, tt as _trailers, l as _try, O as _unescaped, nt as _var, rt as _write_guard, it as _write_if, Ht as attrTag, Ut as attrTags, u as forIn, d as forOf, f as forTo, p as forUntil, h as withLoadAssets, g as withPageAssets } from "./html-DM7X2D_b.mjs";
|
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-BRtFOIF-.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.on, require_control_flow.v))(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 renderCatch, an as queueAsyncRender, on as queueEffect, rn as installCatch, v as runPendingEffects } from "../dom-
|
|
7
|
+
import { _ as renderCatch, an as queueAsyncRender, on as queueEffect, rn as installCatch, v as runPendingEffects } from "../dom-Cqajrs_w.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-BRtFOIF-.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-Cqajrs_w.mjs";
|
|
81
81
|
// src/common/compat-meta.ts
|
|
82
82
|
// src/dom/compat.feat.ts
|
|
83
83
|
function createClassRenderer(render, clone) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-BRtFOIF-.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-Cqajrs_w.mjs";
|
|
2
2
|
controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
|