fix: the adoption bodies are no longer declared Lit properties (#520)

#500 gave `_serverCfg` and `_layout` prototype accessors but left them in
`static properties`. Lit marks such a property `wrapped` and, on the FIRST
update, force-writes it into `changedProperties` with an `undefined` old
value even though nobody assigned anything (`reactive-element.js:249-252`
and `:880-886`). `willUpdate` reads that as a config replacement, raises
`_cfgEpoch`, the memoized model key changes, and a 60-room house builds and
paints its model a second time: measured 19 update cycles, 4 builds and 4
epochs against 18 / 3 / 3 before #500, worth ~550 ms of `modelReadyMs` and
the same on `firstStableRenderMs` (3355 against a 3000 ceiling).

The declaration goes; the bodies stay reactive through the owner —
`_adoption` → `onBodyReplaced` → `requestUpdate(field, previous)` — which
needs no declaration: `getPropertyOptions` falls back to the default and
`changed.has('_serverCfg')` works as before. `noAccessor: true` would not
help, `wrapped` is set before that flag is read. The trap is written above
`static properties`, where someone would put the declaration back.

`cache.entries.cleanFloor` returns to 100 in both interaction budgets: the
120 entries were the extra epoch re-keying the per-room cache, not a
property of the design — the reasoning in 914e8402 was wrong.

Witness: test/config-adoption-ownership.test.mjs pins that neither body is
declared; the mutant `adoption-bodies-declared-reactive` puts the
declaration back and reddens it.

The boot diagnostics of the previous three commits touch four private
members, so they are declared in the performance contract: `_buildModel` and
`_cfgEpoch` outright (both exist in every supported comparison base), and the
adoption entry point as a current/legacy pair — #500 turned the private
`_adoptStructuralResponses` into the public `_adoptAuthoritative`, and an
undeclared rename would have the counter report zero adoptions instead of
failing.

The same commits carried a `node_modules` symlink: `.gitignore` had the
pattern with a trailing slash, which does not cover a symbolic link, and
`git add -A` in a sandbox worktree committed it. The link is removed and the
pattern loses the slash; a mutant run on this branch failed with `EEXIST` on
it.

Issue: #520
User-Visible: no
This commit is contained in:
Claude
2026-09-10 18:58:24 +03:00
parent 50fa7f9be2
commit e181b08f2b
53 changed files with 521 additions and 460 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
node_modules/
# Без слэша: с ним шаблон не покрывает СИМВОЛИЧЕСКУЮ ССЫЛКУ с этим именем,
# и `git add -A` в чужом worktree затягивает её в коммит (#520, прежде #429).
node_modules
tsout/
test-build/
*.log
@@ -1,309 +1,309 @@
{
"schema": 1,
"fingerprint": "bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120",
"fingerprint": "c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 299784,
"initialViewGzipBytes": 299772,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 302089,
"initialPanelGzipBytes": 302076,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2305,
"initialPanelOnlyGzipBytes": 2304,
"lazyFiles": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/de-CholbVp-.js",
"houseplan-assets/editor-BdhbbiN0.js",
"houseplan-assets/fr-BrgsisV8.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-DkxCq36i.js",
"houseplan-assets/iso-scene-render-BENY4lDo.js",
"houseplan-assets/live-interaction-runtime-BhKbS_5r.js",
"houseplan-assets/pdf-export-CTkL6B_c.js",
"houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js",
"houseplan-assets/zigbee-topology-runtime-Bm391F84.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/de-DvdscEer.js",
"houseplan-assets/editor-Gxbn7bnW.js",
"houseplan-assets/fr-jiXq6Mrg.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js",
"houseplan-assets/hp-zigbee-topology-overlay-CvYXeB7d.js",
"houseplan-assets/iso-scene-render-DY37-w1-.js",
"houseplan-assets/live-interaction-runtime-rm6xNkUs.js",
"houseplan-assets/pdf-export-C4aEaLXl.js",
"houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js",
"houseplan-assets/zigbee-topology-runtime-BszC8bHw.js"
],
"lazyGzipBytes": 418125,
"lazyGzipBytes": 418117,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/editor-BdhbbiN0.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/editor-Gxbn7bnW.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js"
],
"lazyEditorGzipBytes": 205681,
"lazyEditorGzipBytes": 205675,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js"
],
"lazyOnboardingGzipBytes": 14183,
"lazyOnboardingGzipBytes": 14182,
"lazyLocaleFiles": [
"houseplan-assets/de-CholbVp-.js",
"houseplan-assets/fr-BrgsisV8.js"
"houseplan-assets/de-DvdscEer.js",
"houseplan-assets/fr-jiXq6Mrg.js"
],
"lazyLocaleGzipBytes": 54857,
"lazyLocaleGzipBytes": 54854,
"lazyIsometricFiles": [
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/iso-scene-render-BENY4lDo.js"
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/iso-scene-render-DY37-w1-.js"
],
"lazyIsometricGzipBytes": 13457,
"lazyIsometricGzipBytes": 13456,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js"
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js"
],
"lazyFurnitureArtGzipBytes": 10252,
"lazyFurnitureArtGzipBytes": 10250,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/pdf-export-CTkL6B_c.js"
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/pdf-export-C4aEaLXl.js"
],
"lazyPdfGzipBytes": 120368,
"lazyPdfGzipBytes": 120364,
"files": [
{
"path": "houseplan-assets/backdrop-pick-CO31gaFu.js",
"sha256": "dad8e94b059744e9f94765da4f0f670faf125876e752ad64bd282a9ab7deccd4",
"path": "houseplan-assets/backdrop-pick-qyPNmULR.js",
"sha256": "6fa993afbd4bb34f7c26d281739dc3068e6b3a5a130730da3709ae2804ee18fb",
"rawBytes": 21134,
"gzipBytes": 7146,
"gzipBytes": 7144,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CholbVp-.js",
"sha256": "06ca166681bac0e68c983b4deadbe524d4648a08f17c0f95e4f49bc2fdbf88a1",
"path": "houseplan-assets/de-DvdscEer.js",
"sha256": "550101acdaf740bde5a55bd645556eebca07174fbe12838ca61525deb347bb21",
"rawBytes": 91441,
"gzipBytes": 27712,
"gzipBytes": 27711,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-BdhbbiN0.js",
"sha256": "f53efbaee9c2085fb53e2ddbd88f0a814632e074447910be380101e82dba0514",
"path": "houseplan-assets/editor-Gxbn7bnW.js",
"sha256": "07dae1886ff056c616e2e28d099996dbdc9c80c3a1932056c15c0f8c0f5b643f",
"rawBytes": 3832,
"gzipBytes": 1584,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-BrgsisV8.js",
"sha256": "17b72947fe5d5dd2ae012c1bd95661f634a710d3d501f0ec608cb329231dd4a7",
"path": "houseplan-assets/fr-jiXq6Mrg.js",
"sha256": "5addf773dc8c0fc1104e5569e967cb81a425a86fcfaf963e5aca1859f7830e49",
"rawBytes": 93719,
"gzipBytes": 27145,
"gzipBytes": 27143,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"sha256": "7443bade6f2b9ad00385d4d44d29959f24ae4fa4bce4d390a9af539a9ed1088a",
"path": "houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"sha256": "baa4e70489f70b4b0c32b1aa99349e152a68dfd95672bf8c771fab2396542e1b",
"rawBytes": 33655,
"gzipBytes": 10252,
"gzipBytes": 10250,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-swkq6QPm.js",
"sha256": "14ba0b73a7de4768b23cc5737acbb86373b4bfe43a0b2d72cb82e85940104354",
"path": "houseplan-assets/guard-IppSarFv.js",
"sha256": "5c6c52a5e681366b86bc8abfae74ab82620ba108f5ea7d91482715a708a2ec09",
"rawBytes": 518,
"gzipBytes": 370,
"gzipBytes": 369,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-z7bLbpyM.js",
"sha256": "4a1fdcc8a665d8481a2e5e84fcd73161a8953b4fa6bede5bd464254cf506062d",
"rawBytes": 1078552,
"gzipBytes": 298980,
"path": "houseplan-assets/houseplan-card-DXAxXz4t.js",
"sha256": "4dffdadca288cad87f819c92aa956895804428e5e2816437133b9b3afa479e34",
"rawBytes": 1078511,
"gzipBytes": 298968,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CholbVp-.js",
"houseplan-assets/editor-BdhbbiN0.js",
"houseplan-assets/fr-BrgsisV8.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-DkxCq36i.js",
"houseplan-assets/iso-scene-render-BENY4lDo.js",
"houseplan-assets/live-interaction-runtime-BhKbS_5r.js",
"houseplan-assets/pdf-export-CTkL6B_c.js",
"houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js"
"houseplan-assets/de-DvdscEer.js",
"houseplan-assets/editor-Gxbn7bnW.js",
"houseplan-assets/fr-jiXq6Mrg.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js",
"houseplan-assets/hp-zigbee-topology-overlay-CvYXeB7d.js",
"houseplan-assets/iso-scene-render-DY37-w1-.js",
"houseplan-assets/live-interaction-runtime-rm6xNkUs.js",
"houseplan-assets/pdf-export-C4aEaLXl.js",
"houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"sha256": "6a5478691def496d5ee44b23fb36ec7790974e8f7959073790d435a0d0b0bb51",
"path": "houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"sha256": "bef73f3edf6f6ffe346f8290dd92298faab187c58f6ca2cd848f883caa236db7",
"rawBytes": 672160,
"gzipBytes": 178900,
"gzipBytes": 178899,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-Bm391F84.js"
"houseplan-assets/zigbee-topology-runtime-BszC8bHw.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js",
"sha256": "e3b689893e1c8d5f6eff11fac707a7679cc7272c0eddbe8ca961f69973ac4795",
"path": "houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js",
"sha256": "0d64ddaee8aa9a03b4938d5f15f024ea7d24377bbef4d31984379fcdc491bc34",
"rawBytes": 28287,
"gzipBytes": 7037,
"gzipBytes": 7038,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DkxCq36i.js",
"sha256": "bf89149732f089a364dc5849975048b4f4a3045a2a25070fc45518f02e470775",
"path": "houseplan-assets/hp-zigbee-topology-overlay-CvYXeB7d.js",
"sha256": "dda313f3809b269004733a221a92516dbc80d8631ed477d21ae4349705c26307",
"rawBytes": 11034,
"gzipBytes": 3729,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js",
"houseplan-assets/zigbee-topology-runtime-Bm391F84.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js",
"houseplan-assets/zigbee-topology-runtime-BszC8bHw.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-BENY4lDo.js",
"sha256": "8b71b86b188caba75a8f8125ba1d13a7228d1fdca08a24f2d272dad30e4f2ac7",
"path": "houseplan-assets/iso-scene-render-DY37-w1-.js",
"sha256": "71225860933d88240310700cb08b48720ecb3783211352792a915d8847a9086e",
"rawBytes": 38562,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-BhKbS_5r.js",
"sha256": "e46bb61f7ccfd3f34749c612e9041a1ca5547d9ebdc3b4a6e9afb9c1cff5721b",
"path": "houseplan-assets/live-interaction-runtime-rm6xNkUs.js",
"sha256": "4cf9d57863db37c07db55708d5c0b5a4f693454e40fd88ae21f26b3ad713918c",
"rawBytes": 5196,
"gzipBytes": 2128,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-CTkL6B_c.js",
"sha256": "fd05edffe1d0712f685e3258feaa82e65e269be4340e3c4d5e0b28e05202f904",
"path": "houseplan-assets/pdf-export-C4aEaLXl.js",
"sha256": "4aab60b46cf873993bd90bbccb8ec4d9a92ed2ebce44efff70ae17efef4371b9",
"rawBytes": 237254,
"gzipBytes": 110116,
"gzipBytes": 110114,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-BtpmYf9Z.js",
"sha256": "eab4436ee7e6970d2a19513d69d05c7c1fed0c8207e194d49fd376aff349ba40",
"path": "houseplan-assets/summary-panel-editor-gDgVUDlQ.js",
"sha256": "36f8ebca3736385ee3cddc87bcc3cb755f5dc275540fb23f9a63540b5e482d7f",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3403,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-CmHZ6j0w.js",
"sha256": "579021d38795d17ccd658074a7efb5e64890820c181d704914f8b26f46a17343",
"path": "houseplan-assets/summary-panel-metrics-BhMxYYEx.js",
"sha256": "dd09ca558ac9ab1f5f46cdbbfdeb399ed1fb85b0e6302e0dd193d89bc83cea8a",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1307,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js",
"sha256": "4025d3a2205c42863669be0e17701c62ec99eab2a551ed97b5bab44e708a62f5",
"path": "houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js",
"sha256": "69ef0e4c7b8dfb0c0941f7b9ce92b85c7a9759e2bbb2adbf8148c2ef51c827e8",
"rawBytes": 72272,
"gzipBytes": 19727,
"gzipBytes": 19729,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-BtpmYf9Z.js",
"houseplan-assets/summary-panel-metrics-CmHZ6j0w.js"
"houseplan-assets/summary-panel-editor-gDgVUDlQ.js",
"houseplan-assets/summary-panel-metrics-BhMxYYEx.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-C5jfiqme.js",
"sha256": "57089b65d90b6354ea20151d3559a5df4e9067c77fd027de54a402d73ef86bfb",
"path": "houseplan-assets/zigbee-topology-rqneqkBH.js",
"sha256": "487bff06b76a9fdf2f4a8bb37980f376970971bb1b1997e3fa5b87695862a5b3",
"rawBytes": 18961,
"gzipBytes": 7429,
"gzipBytes": 7430,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-Bm391F84.js",
"sha256": "a34973bdcbbf35c5307a4df70dc4675c35b055a3a640d011f9d5864cde97279d",
"path": "houseplan-assets/zigbee-topology-runtime-BszC8bHw.js",
"sha256": "a1aa75416c80e9a3c1aeaa99bdfd85352406ee86e43e0eb8941d9375fa20397b",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "a9952a52ff7e01b4f17a81a4bfd7a52eb5ae4b37f9f74c258477d324f44fb7f0",
"sha256": "90ee769a169d71da4a8e40a997c56cf2f26769eb2f40d65365ef25ca10bed7ed",
"rawBytes": 1205,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "e161af5d71d1e12e0b9a78ee6732dac66c59900c4371f48068c2af02e512bd91",
"sha256": "b113719c1ae979fd17e52eaca2c8a2db1f4b3022f77c3f542d55b5bc8a3f38ee",
"rawBytes": 6124,
"gzipBytes": 2305,
"gzipBytes": 2304,
"isEntry": true,
"imports": [
"houseplan-card.js"
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-z7bLbpyM.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-DXAxXz4t.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{dS as r,dT as t,dU as e}from"./houseplan-card-z7bLbpyM.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{dS as r,dT as t,dU as e}from"./houseplan-card-DXAxXz4t.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{b as a,A as e}from"./houseplan-card-z7bLbpyM.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-CD5LFq8B.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{b as a,A as e}from"./houseplan-card-DXAxXz4t.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-Cdo93NMV.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-DXAxXz4t.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function S(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function b(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,b as summaryEntityValue,S as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-z7bLbpyM.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{n as t,b as n}from"./zigbee-topology-C5jfiqme.js";import{B as e}from"./houseplan-card-z7bLbpyM.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{n as t,b as n}from"./zigbee-topology-rqneqkBH.js";import{B as e}from"./houseplan-card-DXAxXz4t.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";try{await import("./houseplan-assets/houseplan-card-z7bLbpyM.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";try{await import("./houseplan-assets/houseplan-card-DXAxXz4t.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
File diff suppressed because one or more lines are too long
@@ -96,7 +96,7 @@
"hardMaxGrowthBytes": 67108864
},
"cacheEntries": {
"cleanFloor": 180,
"cleanFloor": 100,
"glowClip": 200,
"wallUnion": 1,
"openingTunnel": 1,
@@ -118,7 +118,7 @@
"noiseAllowanceBytes": 16777216
},
"cacheEntries": {
"cleanFloor": 180,
"cleanFloor": 100,
"glowClip": 200,
"wallUnion": 1,
"openingTunnel": 1,
+9
View File
@@ -18,6 +18,7 @@ export const LARGE_HOUSE_CARD_CONTRACT = Object.freeze({
methods: Object.freeze([
'_baseVb',
'_bindingStatus',
'_buildModel',
'_cancelDecorGesture',
'_checkSpacePhysicalGeometry',
'_decorBoxOf',
@@ -40,6 +41,7 @@ export const LARGE_HOUSE_CARD_CONTRACT = Object.freeze({
'_booting',
'_bootSoft',
'_cameraTransition',
'_cfgEpoch',
...CACHE_FIELDS,
'_continuity',
'_cursorPt',
@@ -72,13 +74,20 @@ export const LARGE_HOUSE_CARD_CONTRACT = Object.freeze({
// bundles moved it into ResizeController. A comparison target must expose
// one of the two explicit shapes; the current member retains its object
// type check and is also verified against current production source.
// #500 replaced the private structural adoption with a gated public entry
// point. The boot diagnostics (#520) count adoptions through whichever of
// the two the measured bundle owns; an undeclared rename would silently
// report zero adoptions instead of failing.
fieldAlternatives: Object.freeze([
Object.freeze({ current: '_resize', legacy: '_rszDrag' }),
Object.freeze({ current: '_adoptAuthoritative', legacy: '_adoptStructuralResponses' }),
]),
fieldTypes: Object.freeze({
_adoptAuthoritative: 'function',
_booting: 'boolean',
_bootSoft: 'boolean',
_cameraTransition: 'object',
_cfgEpoch: 'number',
_cleanFloorCache: 'map',
_devices: 'array',
_continuity: 'object',
+137 -137
View File
@@ -1,309 +1,309 @@
{
"schema": 1,
"fingerprint": "bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120",
"fingerprint": "c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 299784,
"initialViewGzipBytes": 299772,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 302089,
"initialPanelGzipBytes": 302076,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2305,
"initialPanelOnlyGzipBytes": 2304,
"lazyFiles": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/de-CholbVp-.js",
"houseplan-assets/editor-BdhbbiN0.js",
"houseplan-assets/fr-BrgsisV8.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-DkxCq36i.js",
"houseplan-assets/iso-scene-render-BENY4lDo.js",
"houseplan-assets/live-interaction-runtime-BhKbS_5r.js",
"houseplan-assets/pdf-export-CTkL6B_c.js",
"houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js",
"houseplan-assets/zigbee-topology-runtime-Bm391F84.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/de-DvdscEer.js",
"houseplan-assets/editor-Gxbn7bnW.js",
"houseplan-assets/fr-jiXq6Mrg.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js",
"houseplan-assets/hp-zigbee-topology-overlay-CvYXeB7d.js",
"houseplan-assets/iso-scene-render-DY37-w1-.js",
"houseplan-assets/live-interaction-runtime-rm6xNkUs.js",
"houseplan-assets/pdf-export-C4aEaLXl.js",
"houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js",
"houseplan-assets/zigbee-topology-runtime-BszC8bHw.js"
],
"lazyGzipBytes": 418125,
"lazyGzipBytes": 418117,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/editor-BdhbbiN0.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/editor-Gxbn7bnW.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js"
],
"lazyEditorGzipBytes": 205681,
"lazyEditorGzipBytes": 205675,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js"
],
"lazyOnboardingGzipBytes": 14183,
"lazyOnboardingGzipBytes": 14182,
"lazyLocaleFiles": [
"houseplan-assets/de-CholbVp-.js",
"houseplan-assets/fr-BrgsisV8.js"
"houseplan-assets/de-DvdscEer.js",
"houseplan-assets/fr-jiXq6Mrg.js"
],
"lazyLocaleGzipBytes": 54857,
"lazyLocaleGzipBytes": 54854,
"lazyIsometricFiles": [
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/iso-scene-render-BENY4lDo.js"
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/iso-scene-render-DY37-w1-.js"
],
"lazyIsometricGzipBytes": 13457,
"lazyIsometricGzipBytes": 13456,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js"
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js"
],
"lazyFurnitureArtGzipBytes": 10252,
"lazyFurnitureArtGzipBytes": 10250,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/pdf-export-CTkL6B_c.js"
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/pdf-export-C4aEaLXl.js"
],
"lazyPdfGzipBytes": 120368,
"lazyPdfGzipBytes": 120364,
"files": [
{
"path": "houseplan-assets/backdrop-pick-CO31gaFu.js",
"sha256": "dad8e94b059744e9f94765da4f0f670faf125876e752ad64bd282a9ab7deccd4",
"path": "houseplan-assets/backdrop-pick-qyPNmULR.js",
"sha256": "6fa993afbd4bb34f7c26d281739dc3068e6b3a5a130730da3709ae2804ee18fb",
"rawBytes": 21134,
"gzipBytes": 7146,
"gzipBytes": 7144,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CholbVp-.js",
"sha256": "06ca166681bac0e68c983b4deadbe524d4648a08f17c0f95e4f49bc2fdbf88a1",
"path": "houseplan-assets/de-DvdscEer.js",
"sha256": "550101acdaf740bde5a55bd645556eebca07174fbe12838ca61525deb347bb21",
"rawBytes": 91441,
"gzipBytes": 27712,
"gzipBytes": 27711,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-BdhbbiN0.js",
"sha256": "f53efbaee9c2085fb53e2ddbd88f0a814632e074447910be380101e82dba0514",
"path": "houseplan-assets/editor-Gxbn7bnW.js",
"sha256": "07dae1886ff056c616e2e28d099996dbdc9c80c3a1932056c15c0f8c0f5b643f",
"rawBytes": 3832,
"gzipBytes": 1584,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-BrgsisV8.js",
"sha256": "17b72947fe5d5dd2ae012c1bd95661f634a710d3d501f0ec608cb329231dd4a7",
"path": "houseplan-assets/fr-jiXq6Mrg.js",
"sha256": "5addf773dc8c0fc1104e5569e967cb81a425a86fcfaf963e5aca1859f7830e49",
"rawBytes": 93719,
"gzipBytes": 27145,
"gzipBytes": 27143,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"sha256": "7443bade6f2b9ad00385d4d44d29959f24ae4fa4bce4d390a9af539a9ed1088a",
"path": "houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"sha256": "baa4e70489f70b4b0c32b1aa99349e152a68dfd95672bf8c771fab2396542e1b",
"rawBytes": 33655,
"gzipBytes": 10252,
"gzipBytes": 10250,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-swkq6QPm.js",
"sha256": "14ba0b73a7de4768b23cc5737acbb86373b4bfe43a0b2d72cb82e85940104354",
"path": "houseplan-assets/guard-IppSarFv.js",
"sha256": "5c6c52a5e681366b86bc8abfae74ab82620ba108f5ea7d91482715a708a2ec09",
"rawBytes": 518,
"gzipBytes": 370,
"gzipBytes": 369,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-z7bLbpyM.js",
"sha256": "4a1fdcc8a665d8481a2e5e84fcd73161a8953b4fa6bede5bd464254cf506062d",
"rawBytes": 1078552,
"gzipBytes": 298980,
"path": "houseplan-assets/houseplan-card-DXAxXz4t.js",
"sha256": "4dffdadca288cad87f819c92aa956895804428e5e2816437133b9b3afa479e34",
"rawBytes": 1078511,
"gzipBytes": 298968,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CholbVp-.js",
"houseplan-assets/editor-BdhbbiN0.js",
"houseplan-assets/fr-BrgsisV8.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-DkxCq36i.js",
"houseplan-assets/iso-scene-render-BENY4lDo.js",
"houseplan-assets/live-interaction-runtime-BhKbS_5r.js",
"houseplan-assets/pdf-export-CTkL6B_c.js",
"houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js"
"houseplan-assets/de-DvdscEer.js",
"houseplan-assets/editor-Gxbn7bnW.js",
"houseplan-assets/fr-jiXq6Mrg.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js",
"houseplan-assets/hp-zigbee-topology-overlay-CvYXeB7d.js",
"houseplan-assets/iso-scene-render-DY37-w1-.js",
"houseplan-assets/live-interaction-runtime-rm6xNkUs.js",
"houseplan-assets/pdf-export-C4aEaLXl.js",
"houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-C4coamm1.js",
"sha256": "6a5478691def496d5ee44b23fb36ec7790974e8f7959073790d435a0d0b0bb51",
"path": "houseplan-assets/houseplan-editor-runtime-DbApDIhu.js",
"sha256": "bef73f3edf6f6ffe346f8290dd92298faab187c58f6ca2cd848f883caa236db7",
"rawBytes": 672160,
"gzipBytes": 178900,
"gzipBytes": 178899,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-Bm391F84.js"
"houseplan-assets/zigbee-topology-runtime-BszC8bHw.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-O1ZtdFmQ.js",
"sha256": "e3b689893e1c8d5f6eff11fac707a7679cc7272c0eddbe8ca961f69973ac4795",
"path": "houseplan-assets/houseplan-onboarding-runtime-BpONoVw8.js",
"sha256": "0d64ddaee8aa9a03b4938d5f15f024ea7d24377bbef4d31984379fcdc491bc34",
"rawBytes": 28287,
"gzipBytes": 7037,
"gzipBytes": 7038,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CO31gaFu.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/backdrop-pick-qyPNmULR.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DkxCq36i.js",
"sha256": "bf89149732f089a364dc5849975048b4f4a3045a2a25070fc45518f02e470775",
"path": "houseplan-assets/hp-zigbee-topology-overlay-CvYXeB7d.js",
"sha256": "dda313f3809b269004733a221a92516dbc80d8631ed477d21ae4349705c26307",
"rawBytes": 11034,
"gzipBytes": 3729,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js",
"houseplan-assets/zigbee-topology-runtime-Bm391F84.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js",
"houseplan-assets/zigbee-topology-runtime-BszC8bHw.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-BENY4lDo.js",
"sha256": "8b71b86b188caba75a8f8125ba1d13a7228d1fdca08a24f2d272dad30e4f2ac7",
"path": "houseplan-assets/iso-scene-render-DY37-w1-.js",
"sha256": "71225860933d88240310700cb08b48720ecb3783211352792a915d8847a9086e",
"rawBytes": 38562,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-swkq6QPm.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/guard-IppSarFv.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-BhKbS_5r.js",
"sha256": "e46bb61f7ccfd3f34749c612e9041a1ca5547d9ebdc3b4a6e9afb9c1cff5721b",
"path": "houseplan-assets/live-interaction-runtime-rm6xNkUs.js",
"sha256": "4cf9d57863db37c07db55708d5c0b5a4f693454e40fd88ae21f26b3ad713918c",
"rawBytes": 5196,
"gzipBytes": 2128,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-CTkL6B_c.js",
"sha256": "fd05edffe1d0712f685e3258feaa82e65e269be4340e3c4d5e0b28e05202f904",
"path": "houseplan-assets/pdf-export-C4aEaLXl.js",
"sha256": "4aab60b46cf873993bd90bbccb8ec4d9a92ed2ebce44efff70ae17efef4371b9",
"rawBytes": 237254,
"gzipBytes": 110116,
"gzipBytes": 110114,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-DgJNuoY9.js",
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/furniture-plan-art.generated-Dw0IIirB.js",
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-BtpmYf9Z.js",
"sha256": "eab4436ee7e6970d2a19513d69d05c7c1fed0c8207e194d49fd376aff349ba40",
"path": "houseplan-assets/summary-panel-editor-gDgVUDlQ.js",
"sha256": "36f8ebca3736385ee3cddc87bcc3cb755f5dc275540fb23f9a63540b5e482d7f",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3403,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-CmHZ6j0w.js",
"sha256": "579021d38795d17ccd658074a7efb5e64890820c181d704914f8b26f46a17343",
"path": "houseplan-assets/summary-panel-metrics-BhMxYYEx.js",
"sha256": "dd09ca558ac9ab1f5f46cdbbfdeb399ed1fb85b0e6302e0dd193d89bc83cea8a",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1307,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-CD5LFq8B.js",
"sha256": "4025d3a2205c42863669be0e17701c62ec99eab2a551ed97b5bab44e708a62f5",
"path": "houseplan-assets/summary-panel-runtime-loaded-Cdo93NMV.js",
"sha256": "69ef0e4c7b8dfb0c0941f7b9ce92b85c7a9759e2bbb2adbf8148c2ef51c827e8",
"rawBytes": 72272,
"gzipBytes": 19727,
"gzipBytes": 19729,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-BtpmYf9Z.js",
"houseplan-assets/summary-panel-metrics-CmHZ6j0w.js"
"houseplan-assets/summary-panel-editor-gDgVUDlQ.js",
"houseplan-assets/summary-panel-metrics-BhMxYYEx.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-C5jfiqme.js",
"sha256": "57089b65d90b6354ea20151d3559a5df4e9067c77fd027de54a402d73ef86bfb",
"path": "houseplan-assets/zigbee-topology-rqneqkBH.js",
"sha256": "487bff06b76a9fdf2f4a8bb37980f376970971bb1b1997e3fa5b87695862a5b3",
"rawBytes": 18961,
"gzipBytes": 7429,
"gzipBytes": 7430,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-Bm391F84.js",
"sha256": "a34973bdcbbf35c5307a4df70dc4675c35b055a3a640d011f9d5864cde97279d",
"path": "houseplan-assets/zigbee-topology-runtime-BszC8bHw.js",
"sha256": "a1aa75416c80e9a3c1aeaa99bdfd85352406ee86e43e0eb8941d9375fa20397b",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js",
"houseplan-assets/zigbee-topology-C5jfiqme.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js",
"houseplan-assets/zigbee-topology-rqneqkBH.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "a9952a52ff7e01b4f17a81a4bfd7a52eb5ae4b37f9f74c258477d324f44fb7f0",
"sha256": "90ee769a169d71da4a8e40a997c56cf2f26769eb2f40d65365ef25ca10bed7ed",
"rawBytes": 1205,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-z7bLbpyM.js"
"houseplan-assets/houseplan-card-DXAxXz4t.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "e161af5d71d1e12e0b9a78ee6732dac66c59900c4371f48068c2af02e512bd91",
"sha256": "b113719c1ae979fd17e52eaca2c8a2db1f4b3022f77c3f542d55b5bc8a3f38ee",
"rawBytes": 6124,
"gzipBytes": 2305,
"gzipBytes": 2304,
"isEntry": true,
"imports": [
"houseplan-card.js"
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-z7bLbpyM.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-DXAxXz4t.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{dS as r,dT as t,dU as e}from"./houseplan-card-z7bLbpyM.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{dS as r,dT as t,dU as e}from"./houseplan-card-DXAxXz4t.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{b as a,A as e}from"./houseplan-card-z7bLbpyM.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-CD5LFq8B.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{b as a,A as e}from"./houseplan-card-DXAxXz4t.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-Cdo93NMV.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-DXAxXz4t.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function S(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function b(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,b as summaryEntityValue,S as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-z7bLbpyM.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";import{n as t,b as n}from"./zigbee-topology-C5jfiqme.js";import{B as e}from"./houseplan-card-z7bLbpyM.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";import{n as t,b as n}from"./zigbee-topology-rqneqkBH.js";import{B as e}from"./houseplan-card-DXAxXz4t.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bb6d223ea48be9b90c62f020f412590b685e87d6e7491045b21bd98c365fe120";try{await import("./houseplan-assets/houseplan-card-z7bLbpyM.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c8d5c166e30a11241ef32c7e1dc70368632e84c448524a8340494350ec4d5fca";try{await import("./houseplan-assets/houseplan-card-DXAxXz4t.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
+1 -1
View File
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
/tmp/rel/node_modules
+13
View File
@@ -7247,6 +7247,19 @@ const MUTANT_DEFINITIONS = [
replace: " if (doubleFit) this._resetZoom('double-tap');",
}],
},
{
id: 'adoption-bodies-declared-reactive',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
+ '&& node --test --test-name-pattern="#520" test/config-adoption-ownership.test.mjs',
because: 'declaring the adoption bodies as Lit properties marks them `wrapped`, and the '
+ 'forced first-update change raises the config epoch: the model of a 60-room house is '
+ 'built and painted a second time, +550 ms to the first stable frame (#520)',
patches: [{
file: 'src/houseplan-card.ts',
find: " _devices: { state: true },",
replace: " _serverCfg: { state: true },\n _devices: { state: true },",
}],
},
{
id: 'live-editor-view-mode-routes-live',
guard: 'node --test test/live-editor.test.mjs',
+17 -2
View File
@@ -2537,6 +2537,23 @@ export class HouseplanCard extends LitElement {
private _holdTimer?: number;
private _holdFired = false;
/**
* #520: `_serverCfg` и `_layout` здесь НЕ объявляются, хотя они реактивны.
*
* С #500 их тела принадлежат `_adoption`, а карточка видит их через
* собственные аксессоры прототипа. Lit на такое объявление ставит флаг
* `wrapped` (`createProperty`) и на ПЕРВОМ обновлении принудительно кладёт
* свойство в `changedProperties` со старым значением `undefined` — даже
* если никто ничего не присваивал. `willUpdate` читает это как замену
* конфига, поднимает `_cfgEpoch`, ключ памятки модели меняется, и большой
* дом собирает и рисует модель второй раз: +550 мс до первого устойчивого
* кадра (замерено против базы `a44fbd37`, 3 эпохи против 4).
*
* Реактивность даёт `_adoption` через `onBodyReplaced` → `requestUpdate`:
* `requestUpdate` не требует объявления, `getPropertyOptions` возвращает
* умолчание, и `changed.has('_serverCfg')` работает как прежде.
* `noAccessor: true` не помогает — `wrapped` ставится до его проверки.
*/
static properties = {
_tabDrag: { state: true },
_hdrH: { state: true },
@@ -2553,11 +2570,9 @@ export class HouseplanCard extends LitElement {
narrow: { attribute: false },
_config: { state: true },
_space: { state: true },
_layout: { state: true },
_devices: { state: true },
_selId: { state: true },
_toast: { state: true },
_serverCfg: { state: true },
_mode: { state: true },
_tool: { state: true },
_wallDialog: { state: true },
+21
View File
@@ -107,3 +107,24 @@ test('AC2: feature-runtime host contracts expose one adoption method, not its ei
const rollbackCallers = sources.filter(({ text }) => /(?<![_\w])rollbackOptimistic\(/.test(text)).map(({ file }) => file).sort();
assert.deepEqual(rollbackCallers, ['src/houseplan-card.ts'], 'only the host wrapper reaches the owner\'s rollback');
});
test('#520: the adoption bodies are not declared as Lit reactive properties', () => {
// Lit marks a declared property whose prototype already has an accessor as
// `wrapped` and force-writes it into `changedProperties` on the FIRST update
// with an `undefined` old value — even when nobody assigned anything. The
// card reads that as a config replacement, raises `_cfgEpoch`, invalidates
// the memoized model and rebuilds a 60-room house a second time: +550 ms to
// the first stable frame. The bodies stay reactive through
// `_adoption` → `onBodyReplaced` → `requestUpdate`, which needs no declaration.
const card = readFileSync(join(repoRoot, 'src/houseplan-card.ts'), 'utf8');
const block = card.slice(card.indexOf('static properties = {'));
const declarations = block.slice(0, block.indexOf('\n };'));
for (const body of ['_serverCfg', '_layout']) {
assert.ok(!new RegExp(`^\\s*${body}:`, 'm').test(declarations),
`${body} must not be declared in static properties (#520)`);
}
// The delegates and the notification that replace the declaration are here.
assert.match(card, /private get _serverCfg\(\)/);
assert.match(card, /private get _layout\(\)/);
assert.match(card, /\(field, previous\) => this\.requestUpdate\(field, previous\)/);
});
+2
View File
@@ -105,9 +105,11 @@ test('large-house contract accepts only an explicit current or stable resize own
LARGE_HOUSE_CARD_CONTRACT.fields.map((name) => [name, null]),
);
Object.assign(fields, {
_adoptAuthoritative: () => undefined,
_booting: false,
_bootSoft: false,
_cameraTransition: {},
_cfgEpoch: 0,
_cleanFloorCache: new Map(),
_continuity: {},
_decorList: [],