@jucie.io/cli 1.0.20 → 1.0.22
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/interactivity.md +51 -13
- package/dist/jucie.js +534 -241
- package/dist/layout.md +83 -24
- package/dist/prerenderWorker.js +13 -0
- package/dist/stage/library/preact.js +53 -0
- package/dist/stage/library/react.js +53 -0
- package/dist/stage/library/vue.js +53 -0
- package/dist/stage/prod.js +53 -1
- package/dist/stage/sdk/chunks/chunk-6BTG63JN.js +1 -0
- package/dist/stage/sdk/chunks/chunk-7YIGPKNU.js +1 -0
- package/dist/stage/sdk/chunks/chunk-IIZ233AH.js +1 -0
- package/dist/stage/sdk/preact-server.js +1 -0
- package/dist/stage/sdk/preact.js +1 -0
- package/dist/stage/sdk/react-server.js +1 -0
- package/dist/stage/sdk/react.js +1 -0
- package/dist/stage/sdk/vue-server.js +1 -0
- package/dist/stage/sdk/vue.js +1 -0
- package/dist/stage/server.js +53 -0
- package/dist/stage/styles.js +11845 -0
- package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
- package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
- package/dist/stage-bundles/preact/chunks/aiRelay-6QWC3MID.js +1 -0
- package/dist/stage-bundles/preact/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
- package/dist/stage-bundles/preact/chunks/assets-4NXDKJMC.js +1 -0
- package/dist/stage-bundles/preact/chunks/capture-MXL3B5OM.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-3Q3DRUNQ.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-426Z5MME.js +9 -0
- package/dist/stage-bundles/preact/chunks/chunk-4WXMFOGZ.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-5H3EE23B.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-5HNN2HVX.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-6J3NV2ZA.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-BXWISJ2Z.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-CNULBMOT.js +99 -0
- package/dist/stage-bundles/preact/chunks/chunk-DLROTED3.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-DUPQKWW3.js +3 -0
- package/dist/stage-bundles/preact/chunks/chunk-FEFZSXXM.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-FGKRC2QO.js +4 -0
- package/dist/stage-bundles/preact/chunks/chunk-FWEUCYZO.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-GCPKA3IC.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-KUZTBTFR.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-P722OZCF.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-RDRAQE76.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-RQACOEIA.js +1 -0
- package/dist/stage-bundles/preact/chunks/{chunk-RYWOKFM7.js → chunk-S7MEYFKB.js} +1 -1
- package/dist/stage-bundles/preact/chunks/chunk-TKHZCD63.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-UNPHH2YK.js +7 -0
- package/dist/stage-bundles/preact/chunks/{chunk-H5NHEM4C.js → chunk-WN5EDULP.js} +1 -1
- package/dist/stage-bundles/preact/chunks/chunk-YQ22OWEN.js +6 -0
- package/dist/stage-bundles/preact/chunks/{chunk-NRRFAMFA.js → chunk-ZDH2DALT.js} +1 -1
- package/dist/stage-bundles/preact/chunks/contentEditor-KSOW7DQ4.js +1 -0
- package/dist/stage-bundles/preact/chunks/design-5WJ7WCTU.js +70 -0
- package/dist/stage-bundles/preact/chunks/files-2IVIODQO.js +1 -0
- package/dist/stage-bundles/preact/chunks/history-AJWJFNTH.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-3EOYBBCF.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-4GJ7OQPP.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-COYGSKNQ.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-DEGR6IFX.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-QJ4F72CN.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-Y73Z2R2Q.js +1 -0
- package/dist/stage-bundles/preact/chunks/nodeGraph-MIYBM2ME.js +1 -0
- package/dist/stage-bundles/preact/chunks/preview-MRYXCFFB.js +1 -0
- package/dist/stage-bundles/preact/chunks/sync-M5DHAJKK.js +1 -0
- package/dist/stage-bundles/preact/chunks/user-RPWZUUCN.js +1 -0
- package/dist/stage-bundles/preact/chunks/viewport-EE2UKHNS.js +1 -0
- package/dist/stage-bundles/preact/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
- package/dist/stage-bundles/preact/chunks/window-SHWTQPJX.js +1 -0
- package/dist/stage-bundles/preact/chunks/workbench-PI2NQ6WK.js +1 -0
- package/dist/stage-bundles/preact/entry.js +1 -1
- package/dist/stage-bundles/preact/framework-compat.js +1 -1
- package/dist/stage-bundles/preact/framework-hooks.js +1 -1
- package/dist/stage-bundles/preact/framework-jsx-runtime.js +1 -1
- package/dist/stage-bundles/preact/framework.js +1 -1
- package/dist/stage-bundles/preact/reactive.js +1 -0
- package/dist/stage-bundles/preact/sdk.js +1 -1
- package/dist/stage-bundles/react/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
- package/dist/stage-bundles/react/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
- package/dist/stage-bundles/react/chunks/aiRelay-6QWC3MID.js +1 -0
- package/dist/stage-bundles/react/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
- package/dist/stage-bundles/react/chunks/assets-4NXDKJMC.js +1 -0
- package/dist/stage-bundles/react/chunks/capture-SX5LMYTU.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-3Q3DRUNQ.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-426Z5MME.js +9 -0
- package/dist/stage-bundles/react/chunks/chunk-4WXMFOGZ.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-5FKTA2K4.js +45 -0
- package/dist/stage-bundles/react/chunks/chunk-5HNN2HVX.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-6J3NV2ZA.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-COZYLIUS.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-DLROTED3.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-DUPQKWW3.js +3 -0
- package/dist/stage-bundles/react/chunks/chunk-FEFZSXXM.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-FGKRC2QO.js +4 -0
- package/dist/stage-bundles/react/chunks/chunk-FWEUCYZO.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-GCPKA3IC.js +1 -0
- package/dist/stage-bundles/react/chunks/{chunk-G5RN6RXS.js → chunk-HBUZBWXS.js} +1 -1
- package/dist/stage-bundles/react/chunks/chunk-IN7T7JOC.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-KUZTBTFR.js +1 -0
- package/dist/stage-bundles/react/chunks/{chunk-P3ZDKQWG.js → chunk-LGKXPMSS.js} +1 -1
- package/dist/stage-bundles/react/chunks/chunk-P722OZCF.js +1 -0
- package/dist/stage-bundles/react/chunks/{chunk-KLPU3QNW.js → chunk-PWVNILVW.js} +1 -1
- package/dist/stage-bundles/react/chunks/chunk-RDRAQE76.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-TKHZCD63.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-UNPHH2YK.js +7 -0
- package/dist/stage-bundles/react/chunks/chunk-UQWACM5R.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-YQ22OWEN.js +6 -0
- package/dist/stage-bundles/react/chunks/contentEditor-KSOW7DQ4.js +1 -0
- package/dist/stage-bundles/react/chunks/design-PLV3PDV6.js +70 -0
- package/dist/stage-bundles/react/chunks/files-2IVIODQO.js +1 -0
- package/dist/stage-bundles/react/chunks/history-AJWJFNTH.js +1 -0
- package/dist/stage-bundles/react/chunks/main-3EOYBBCF.js +1 -0
- package/dist/stage-bundles/react/chunks/main-4GJ7OQPP.js +1 -0
- package/dist/stage-bundles/react/chunks/main-COYGSKNQ.js +1 -0
- package/dist/stage-bundles/react/chunks/main-DEGR6IFX.js +1 -0
- package/dist/stage-bundles/react/chunks/main-QJ4F72CN.js +1 -0
- package/dist/stage-bundles/react/chunks/main-Y73Z2R2Q.js +1 -0
- package/dist/stage-bundles/react/chunks/nodeGraph-MIYBM2ME.js +1 -0
- package/dist/stage-bundles/react/chunks/preview-GQEX7ZIJ.js +1 -0
- package/dist/stage-bundles/react/chunks/sync-M5DHAJKK.js +1 -0
- package/dist/stage-bundles/react/chunks/user-RPWZUUCN.js +1 -0
- package/dist/stage-bundles/react/chunks/viewport-EE2UKHNS.js +1 -0
- package/dist/stage-bundles/react/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
- package/dist/stage-bundles/react/chunks/window-SHWTQPJX.js +1 -0
- package/dist/stage-bundles/react/chunks/workbench-BXYMXCNQ.js +1 -0
- package/dist/stage-bundles/react/entry.js +1 -1
- package/dist/stage-bundles/react/framework-dom-client.js +1 -1
- package/dist/stage-bundles/react/framework-dom.js +1 -1
- package/dist/stage-bundles/react/framework-jsx-runtime.js +1 -1
- package/dist/stage-bundles/react/framework.js +1 -1
- package/dist/stage-bundles/react/reactive.js +1 -0
- package/dist/stage-bundles/react/sdk.js +1 -1
- package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
- package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
- package/dist/stage-bundles/vue/chunks/aiRelay-6QWC3MID.js +1 -0
- package/dist/stage-bundles/vue/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
- package/dist/stage-bundles/vue/chunks/assets-4NXDKJMC.js +1 -0
- package/dist/stage-bundles/vue/chunks/capture-BNTHDU5P.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-2CVBY2T5.js +99 -0
- package/dist/stage-bundles/vue/chunks/chunk-3Q3DRUNQ.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-4WXMFOGZ.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-5HNN2HVX.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-5Q537YU2.js +9 -0
- package/dist/stage-bundles/vue/chunks/chunk-6J3NV2ZA.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-BAARNJD7.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-DLROTED3.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-DUPQKWW3.js +3 -0
- package/dist/stage-bundles/vue/chunks/chunk-EPZVOVTF.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-FEFZSXXM.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-FGKRC2QO.js +4 -0
- package/dist/stage-bundles/vue/chunks/chunk-FWEUCYZO.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-GCPKA3IC.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-KUZTBTFR.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-P722OZCF.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-QZFBMONF.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-TKHZCD63.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-UNPHH2YK.js +7 -0
- package/dist/stage-bundles/vue/chunks/chunk-XIPQ5BT3.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-YQ22OWEN.js +6 -0
- package/dist/stage-bundles/vue/chunks/{chunk-M3OE4LWW.js → chunk-ZNG3HSBM.js} +1 -1
- package/dist/stage-bundles/vue/chunks/contentEditor-WMYXHKRR.js +1 -0
- package/dist/stage-bundles/vue/chunks/design-N46CCFRQ.js +70 -0
- package/dist/stage-bundles/vue/chunks/files-2IVIODQO.js +1 -0
- package/dist/stage-bundles/vue/chunks/history-AJWJFNTH.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-3EOYBBCF.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-4GJ7OQPP.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-COYGSKNQ.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-DEGR6IFX.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-IDHTCWLF.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-Y73Z2R2Q.js +1 -0
- package/dist/stage-bundles/vue/chunks/nodeGraph-MIYBM2ME.js +1 -0
- package/dist/stage-bundles/vue/chunks/preview-5K5EJBYM.js +1 -0
- package/dist/stage-bundles/vue/chunks/sync-M5DHAJKK.js +1 -0
- package/dist/stage-bundles/vue/chunks/user-RPWZUUCN.js +1 -0
- package/dist/stage-bundles/vue/chunks/viewport-EE2UKHNS.js +1 -0
- package/dist/stage-bundles/vue/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
- package/dist/stage-bundles/vue/chunks/window-SHWTQPJX.js +1 -0
- package/dist/stage-bundles/vue/chunks/workbench-OX4YXOA5.js +1 -0
- package/dist/stage-bundles/vue/entry.js +1 -1
- package/dist/stage-bundles/vue/framework-jsx-runtime.js +1 -1
- package/dist/stage-bundles/vue/framework.js +1 -1
- package/dist/stage-bundles/vue/reactive.js +1 -0
- package/dist/stage-bundles/vue/sdk.js +1 -1
- package/dist/stage-src/{dev/entry.js → dev.js} +1 -1
- package/dist/workflow.md +7 -0
- package/package.json +27 -20
- package/dist/stage/chunks/addAction-3QC2Z4ZR.js +0 -1
- package/dist/stage/chunks/addAnimationBinding-N3UW27JM.js +0 -1
- package/dist/stage/chunks/addAttribute-MEJIGMHV.js +0 -1
- package/dist/stage/chunks/addComponent-AQQI46C3.js +0 -1
- package/dist/stage/chunks/addComputed-2JNIUCEP.js +0 -1
- package/dist/stage/chunks/addEvent-PN6P6KR5.js +0 -1
- package/dist/stage/chunks/addLifecycleHook-D2UKKFVW.js +0 -1
- package/dist/stage/chunks/addNode-UXIXDXSD.js +0 -1
- package/dist/stage/chunks/addOption-AFCUFOT7.js +0 -1
- package/dist/stage/chunks/addParamToRoute-6LOHCID7.js +0 -1
- package/dist/stage/chunks/addState-RSEYKWQO.js +0 -1
- package/dist/stage/chunks/addStore-AK2FTEON.js +0 -1
- package/dist/stage/chunks/addToken-35LUBJPE.js +0 -1
- package/dist/stage/chunks/addTree-CU7MJAKT.js +0 -1
- package/dist/stage/chunks/addValue-LIQSHZFR.js +0 -1
- package/dist/stage/chunks/aiAttachmentContracts-KGD3EHZQ.js +0 -1
- package/dist/stage/chunks/aiMessagesContracts-QWUORKI3.js +0 -1
- package/dist/stage/chunks/aiRelay-LW2UZKRR.js +0 -1
- package/dist/stage/chunks/aiSessionContracts-RQKGQY4N.js +0 -1
- package/dist/stage/chunks/assets-5J5INILR.js +0 -1
- package/dist/stage/chunks/capture-VQE5664P.js +0 -1
- package/dist/stage/chunks/chunk-2JXGTRSC.js +0 -1
- package/dist/stage/chunks/chunk-3GPQ3HYG.js +0 -1
- package/dist/stage/chunks/chunk-3KR3JD5T.js +0 -1
- package/dist/stage/chunks/chunk-457GNGEV.js +0 -1
- package/dist/stage/chunks/chunk-4KXBOJIC.js +0 -1
- package/dist/stage/chunks/chunk-4UJAZNZX.js +0 -1
- package/dist/stage/chunks/chunk-5N7NET6A.js +0 -1
- package/dist/stage/chunks/chunk-5RVLCYPU.js +0 -1
- package/dist/stage/chunks/chunk-6JNM2JPA.js +0 -1
- package/dist/stage/chunks/chunk-7C53OCBB.js +0 -1
- package/dist/stage/chunks/chunk-7DIGILX7.js +0 -1
- package/dist/stage/chunks/chunk-7H7BUWZP.js +0 -1
- package/dist/stage/chunks/chunk-7SM7WG53.js +0 -1
- package/dist/stage/chunks/chunk-A7T3U7OZ.js +0 -1
- package/dist/stage/chunks/chunk-AOLXVYBO.js +0 -1
- package/dist/stage/chunks/chunk-ATDHO5ME.js +0 -1
- package/dist/stage/chunks/chunk-BCDDG7CW.js +0 -1
- package/dist/stage/chunks/chunk-CB4COXKW.js +0 -1
- package/dist/stage/chunks/chunk-CM6UENYI.js +0 -1
- package/dist/stage/chunks/chunk-CVWMERPH.js +0 -1
- package/dist/stage/chunks/chunk-DDCGP5GM.js +0 -1
- package/dist/stage/chunks/chunk-DOGIABU3.js +0 -1
- package/dist/stage/chunks/chunk-DUMMXI6I.js +0 -1
- package/dist/stage/chunks/chunk-E3LBHSMZ.js +0 -1
- package/dist/stage/chunks/chunk-E7JXTPFA.js +0 -1
- package/dist/stage/chunks/chunk-GBE5QYRO.js +0 -1
- package/dist/stage/chunks/chunk-GFV4SJGI.js +0 -1
- package/dist/stage/chunks/chunk-GILBTTLF.js +0 -1
- package/dist/stage/chunks/chunk-GPV2ZFME.js +0 -1
- package/dist/stage/chunks/chunk-HBNF34QX.js +0 -1
- package/dist/stage/chunks/chunk-HREW6EFQ.js +0 -1
- package/dist/stage/chunks/chunk-HZ7KMV42.js +0 -1
- package/dist/stage/chunks/chunk-HZXJUIIX.js +0 -1
- package/dist/stage/chunks/chunk-IE6IKN6P.js +0 -1
- package/dist/stage/chunks/chunk-IWO4MU2F.js +0 -1
- package/dist/stage/chunks/chunk-J7XIIFXF.js +0 -1
- package/dist/stage/chunks/chunk-JG62FTV2.js +0 -1
- package/dist/stage/chunks/chunk-JGELXWD3.js +0 -1
- package/dist/stage/chunks/chunk-JKJRK7ER.js +0 -1
- package/dist/stage/chunks/chunk-JPPPL527.js +0 -1
- package/dist/stage/chunks/chunk-JRCZXEL2.js +0 -1
- package/dist/stage/chunks/chunk-K33QXMAS.js +0 -1
- package/dist/stage/chunks/chunk-K4R2DLAT.js +0 -1
- package/dist/stage/chunks/chunk-MA3WBBC6.js +0 -1
- package/dist/stage/chunks/chunk-MHU6JTZC.js +0 -1
- package/dist/stage/chunks/chunk-MO2MHTOQ.js +0 -1
- package/dist/stage/chunks/chunk-MQKISAKO.js +0 -1
- package/dist/stage/chunks/chunk-ND3BSJOS.js +0 -1
- package/dist/stage/chunks/chunk-NGQ7GQSH.js +0 -1
- package/dist/stage/chunks/chunk-NM4FV6YK.js +0 -1
- package/dist/stage/chunks/chunk-NOHQVE3L.js +0 -1
- package/dist/stage/chunks/chunk-O6ZKHW5L.js +0 -1
- package/dist/stage/chunks/chunk-PBDA5G7U.js +0 -1
- package/dist/stage/chunks/chunk-PBDSKQIQ.js +0 -1
- package/dist/stage/chunks/chunk-PJFVW637.js +0 -1
- package/dist/stage/chunks/chunk-PRXT2NXZ.js +0 -1
- package/dist/stage/chunks/chunk-QAUB5H3S.js +0 -1
- package/dist/stage/chunks/chunk-QDH6OIAL.js +0 -5
- package/dist/stage/chunks/chunk-QM4IVTLC.js +0 -1
- package/dist/stage/chunks/chunk-QUWCLSNF.js +0 -1
- package/dist/stage/chunks/chunk-QVOXRLEG.js +0 -1
- package/dist/stage/chunks/chunk-RAHM76FI.js +0 -1
- package/dist/stage/chunks/chunk-RONEQF2M.js +0 -1
- package/dist/stage/chunks/chunk-RPTOBIKP.js +0 -1
- package/dist/stage/chunks/chunk-RSWDPV5U.js +0 -1
- package/dist/stage/chunks/chunk-SSSTBYOF.js +0 -1
- package/dist/stage/chunks/chunk-SV2PSWLZ.js +0 -1
- package/dist/stage/chunks/chunk-TDXJNI7H.js +0 -1
- package/dist/stage/chunks/chunk-TFGNKPAQ.js +0 -1
- package/dist/stage/chunks/chunk-TYA35RCB.js +0 -1
- package/dist/stage/chunks/chunk-UJZNQZVK.js +0 -1
- package/dist/stage/chunks/chunk-UN7EZPD7.js +0 -1
- package/dist/stage/chunks/chunk-UOBNXO4G.js +0 -1
- package/dist/stage/chunks/chunk-UVV4NANW.js +0 -97
- package/dist/stage/chunks/chunk-V5TNO5LS.js +0 -3
- package/dist/stage/chunks/chunk-VHRU6H4C.js +0 -1
- package/dist/stage/chunks/chunk-VP2XJ5UI.js +0 -1
- package/dist/stage/chunks/chunk-VQDQA3ID.js +0 -1
- package/dist/stage/chunks/chunk-VZJTFJZN.js +0 -1
- package/dist/stage/chunks/chunk-WCL6XNDN.js +0 -1
- package/dist/stage/chunks/chunk-WKUYNMPE.js +0 -1
- package/dist/stage/chunks/chunk-WWWIZ7VG.js +0 -1
- package/dist/stage/chunks/chunk-X2R3VYWI.js +0 -1
- package/dist/stage/chunks/chunk-X5HHNNED.js +0 -1
- package/dist/stage/chunks/chunk-X5INDUEQ.js +0 -1
- package/dist/stage/chunks/chunk-XBUV5F3F.js +0 -1
- package/dist/stage/chunks/chunk-XPWU54SD.js +0 -1
- package/dist/stage/chunks/chunk-YFURTAAV.js +0 -1
- package/dist/stage/chunks/chunk-YRI4I37X.js +0 -1
- package/dist/stage/chunks/chunk-ZCUNR3XN.js +0 -1
- package/dist/stage/chunks/clearDestination-TFFJZYZU.js +0 -1
- package/dist/stage/chunks/clearName-LAT5C4G3.js +0 -1
- package/dist/stage/chunks/clearOptionsExpression-QHE4GD2Y.js +0 -1
- package/dist/stage/chunks/clearRender-XEMKLRCM.js +0 -1
- package/dist/stage/chunks/clearRepeat-OJXLCGGV.js +0 -1
- package/dist/stage/chunks/contentEditor-H4QUMYKV.js +0 -1
- package/dist/stage/chunks/createAction-X7WWJ6BN.js +0 -1
- package/dist/stage/chunks/createAnimation-TYRSVQNL.js +0 -1
- package/dist/stage/chunks/createComputed-NVI2BGGF.js +0 -1
- package/dist/stage/chunks/createTextContent-R4ZOE6SM.js +0 -1
- package/dist/stage/chunks/createValue-GRZQQ5RR.js +0 -1
- package/dist/stage/chunks/design-2S7QAGYM.js +0 -15
- package/dist/stage/chunks/dev-PZI3DDXQ.js +0 -1
- package/dist/stage/chunks/disconnectNode-RRO6QPMX.js +0 -1
- package/dist/stage/chunks/history-5FAKKGJY.js +0 -1
- package/dist/stage/chunks/id-G47WSCWG.js +0 -1
- package/dist/stage/chunks/main-GPY4VWAB.js +0 -1
- package/dist/stage/chunks/main-OLXPOBOM.js +0 -1
- package/dist/stage/chunks/main-QADVRVCC.js +0 -1
- package/dist/stage/chunks/main-RMI3HY2B.js +0 -1
- package/dist/stage/chunks/moveNodeToLastChildOf-SGHEMUMS.js +0 -1
- package/dist/stage/chunks/nodeGraph-UGMYCUUO.js +0 -1
- package/dist/stage/chunks/normalizeEventName-Y34QRO25.js +0 -1
- package/dist/stage/chunks/preview-UBVA3QQU.js +0 -1
- package/dist/stage/chunks/removeAction-UIZVYC4K.js +0 -1
- package/dist/stage/chunks/removeAnimationBinding-PD2IRVQZ.js +0 -1
- package/dist/stage/chunks/removeAttribute-HCDVVDSZ.js +0 -1
- package/dist/stage/chunks/removeComputed-2UWAXEAM.js +0 -1
- package/dist/stage/chunks/removeEvent-GBW7REQV.js +0 -1
- package/dist/stage/chunks/removeLifecycleHook-V4BK7NPV.js +0 -1
- package/dist/stage/chunks/removeNode-H7TWCLTZ.js +0 -1
- package/dist/stage/chunks/removeOption-4SMMGXLO.js +0 -1
- package/dist/stage/chunks/removeParamFromRoute-2Q2PYYP5.js +0 -1
- package/dist/stage/chunks/removeState-X4UQTIPT.js +0 -1
- package/dist/stage/chunks/removeStore-B3WQQP3D.js +0 -1
- package/dist/stage/chunks/removeToken-3QTFHQF6.js +0 -1
- package/dist/stage/chunks/removeValue-QIQBSOHR.js +0 -1
- package/dist/stage/chunks/setDestination-26OTLIOX.js +0 -1
- package/dist/stage/chunks/setHomePage-GBSAVDQC.js +0 -1
- package/dist/stage/chunks/setHtmlId-PZQQWCXU.js +0 -1
- package/dist/stage/chunks/setName-C26SXODP.js +0 -1
- package/dist/stage/chunks/setNodeLayout-PZMYT6M2.js +0 -1
- package/dist/stage/chunks/setOptionsExpression-PQ3JOVEW.js +0 -1
- package/dist/stage/chunks/setRender-MNCOTE35.js +0 -1
- package/dist/stage/chunks/setRepeat-GIOC7YT4.js +0 -1
- package/dist/stage/chunks/setTagName-FA7BMEUS.js +0 -1
- package/dist/stage/chunks/updateAction-TUQLHSJE.js +0 -1
- package/dist/stage/chunks/updateAnimationBinding-I3AQNLO2.js +0 -1
- package/dist/stage/chunks/updateAttribute-TLLDGUPR.js +0 -1
- package/dist/stage/chunks/updateBounds-KL4N7VYO.js +0 -1
- package/dist/stage/chunks/updateComputed-JGJIIC4A.js +0 -1
- package/dist/stage/chunks/updateEvent-YOKH67TX.js +0 -1
- package/dist/stage/chunks/updateHtml-Z4XI7SYU.js +0 -1
- package/dist/stage/chunks/updateLifecycleHook-4555YGGM.js +0 -1
- package/dist/stage/chunks/updateOption-YUFQYF43.js +0 -1
- package/dist/stage/chunks/updateRoute-42OSDVLS.js +0 -1
- package/dist/stage/chunks/updateState-3RQX5YED.js +0 -1
- package/dist/stage/chunks/updateStyle-I5NO4TOV.js +0 -1
- package/dist/stage/chunks/updateToken-AFJYTJ7R.js +0 -1
- package/dist/stage/chunks/updateValue-XGRBUCOT.js +0 -1
- package/dist/stage/chunks/user-CK5IAVFH.js +0 -1
- package/dist/stage/chunks/validateStorePayload-3HAVFGVL.js +0 -3
- package/dist/stage/chunks/viewport-CQRIOXC6.js +0 -1
- package/dist/stage/chunks/window-7JZPBAP7.js +0 -1
- package/dist/stage/design.js +0 -1
- package/dist/stage/dev.js +0 -1
- package/dist/stage/preview.js +0 -1
- package/dist/stage-bundles/preact/chunks/addAction-EGLGEGTS.js +0 -1
- package/dist/stage-bundles/preact/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
- package/dist/stage-bundles/preact/chunks/addAttribute-2MZ3OFUE.js +0 -1
- package/dist/stage-bundles/preact/chunks/addComponent-3JC5NC3Y.js +0 -1
- package/dist/stage-bundles/preact/chunks/addComputed-7JLBFD6I.js +0 -1
- package/dist/stage-bundles/preact/chunks/addEvent-HOBNKM2F.js +0 -1
- package/dist/stage-bundles/preact/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
- package/dist/stage-bundles/preact/chunks/addNode-QXU2P4AE.js +0 -1
- package/dist/stage-bundles/preact/chunks/addOption-PVXGN7AJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/addParamToRoute-VL2VOFZS.js +0 -1
- package/dist/stage-bundles/preact/chunks/addState-U2NWEGWV.js +0 -1
- package/dist/stage-bundles/preact/chunks/addStore-AQMFKH33.js +0 -1
- package/dist/stage-bundles/preact/chunks/addToken-XF2FFA52.js +0 -1
- package/dist/stage-bundles/preact/chunks/addTree-S73GXWZP.js +0 -1
- package/dist/stage-bundles/preact/chunks/addValue-O7YXXMST.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiRelay-C6ZJ3PUF.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/assets-6LM3GVQU.js +0 -1
- package/dist/stage-bundles/preact/chunks/capture-ON3BO6WE.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-2Z2RXHNK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-3WCN6R5H.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-45YNKT2X.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-4Q5R44ZZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-5CWWFBNY.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-5GKIM3R4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-6KW4HPGN.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-6S7QQT47.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-7I5TQOE2.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-7UENQJSC.js +0 -5
- package/dist/stage-bundles/preact/chunks/chunk-7VDUBBVE.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-7YVQSQRP.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-A25WFH3U.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-A52FDU5E.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-AMPHYXGT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-AOGIMUZ2.js +0 -103
- package/dist/stage-bundles/preact/chunks/chunk-AS76ZLXK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-AYZAGKHN.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-BGQJ5B3Q.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-BL6GQ6ID.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-BWJHUHDJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CAAW6MG4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CC3CCH2E.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CGCD6S33.js +0 -6
- package/dist/stage-bundles/preact/chunks/chunk-CNZYL2VV.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CXJ5APZF.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CYURWEXX.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-DHPGPV5T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-DLHF7QB4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-DWW3567Q.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-E6KR5RXO.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-EPVRMHC2.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-EWEPEODY.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-EXXAK3BP.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-F5MJNV7Y.js +0 -3
- package/dist/stage-bundles/preact/chunks/chunk-FAYUYASQ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-G3PYA3EU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GEOQWCYL.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GK5XUHQG.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GM4D3DPT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GUI7FIZD.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-HAN4CMBX.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-HCRWHPFW.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-HE7IQLGK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-I57W7UZN.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IBDKDP7T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-ICWQHFOI.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IG2Y3H6O.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IKKRB6BS.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IV6PINVX.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IW4KEJOF.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IWTWZA3T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-J5QMLA3Z.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-K5BNCYT7.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-KTWXYDG7.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-LHK7LQPZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-LUY5LC7Z.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-LXD22ETU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-M577WNTV.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-MGH62JQ4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-MUZZUB5Y.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-N6I4COF2.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NFKUJQZH.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NHY2XYCH.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NKDO4J6J.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NOTXZB5N.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NXBFOI3Z.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-OQM5TMCK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-PPDOTRNT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-PU62K33G.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-Q3IER3MW.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-Q3ZV7EKU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QD56IMFS.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QFFVADTJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QJ33JO3T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QVVBKZW6.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-RFFN4NF4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-SCJKRPIZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-TPCJQIUG.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-TX5TCU2H.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-UCLSDDOL.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-ULVFWUAU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-XE3A5HPY.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-XFHQ45KR.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-XTAXESM6.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-YB7FA4Y3.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-YCGY2NRE.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-YCMBBPKT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-Z3M6DQKZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-ZUPNPSUB.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearDestination-IGKNL7FN.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearName-HJ7ZTHBU.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearRender-NPVDTNFA.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearRepeat-7YFYZODP.js +0 -1
- package/dist/stage-bundles/preact/chunks/contentEditor-7BYCT3TH.js +0 -1
- package/dist/stage-bundles/preact/chunks/createAction-73YUTK3T.js +0 -1
- package/dist/stage-bundles/preact/chunks/createAnimation-2WQSMYT5.js +0 -1
- package/dist/stage-bundles/preact/chunks/createComputed-DMX7CJA3.js +0 -1
- package/dist/stage-bundles/preact/chunks/createTextContent-4Z4YATBO.js +0 -1
- package/dist/stage-bundles/preact/chunks/createValue-DXQSLOBG.js +0 -1
- package/dist/stage-bundles/preact/chunks/design-3DHGUCPX.js +0 -15
- package/dist/stage-bundles/preact/chunks/disconnectNode-2CLWVIQP.js +0 -1
- package/dist/stage-bundles/preact/chunks/history-CMF3VYTT.js +0 -1
- package/dist/stage-bundles/preact/chunks/id-ZIAZZ5AS.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-3VRCGPRY.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-DH4JOS22.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-FAFZABOS.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-S7RT75O6.js +0 -1
- package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
- package/dist/stage-bundles/preact/chunks/nodeGraph-UNI2HUNX.js +0 -1
- package/dist/stage-bundles/preact/chunks/normalizeEventName-SNBYJDUY.js +0 -1
- package/dist/stage-bundles/preact/chunks/preview-YOYSHYJF.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeAction-T4M5EJN7.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeAnimationBinding-AIISPC33.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeAttribute-DCKZLM55.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeComputed-WSA5GNVZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeEvent-2YZ55HD6.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeNode-5HXQ63V3.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeOption-SYIFB4XW.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeState-SGJVQ66N.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeStore-YVBTGA3I.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeToken-AIDV7DUM.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeValue-UP5ZFN3U.js +0 -1
- package/dist/stage-bundles/preact/chunks/setDestination-NCPAVIIK.js +0 -1
- package/dist/stage-bundles/preact/chunks/setHomePage-O2JYOG6H.js +0 -1
- package/dist/stage-bundles/preact/chunks/setHtmlId-2W7YW47O.js +0 -1
- package/dist/stage-bundles/preact/chunks/setName-NKRZPBGG.js +0 -1
- package/dist/stage-bundles/preact/chunks/setNodeLayout-KQVZJBYW.js +0 -1
- package/dist/stage-bundles/preact/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
- package/dist/stage-bundles/preact/chunks/setRender-7XMGQ7ZK.js +0 -1
- package/dist/stage-bundles/preact/chunks/setRepeat-WN4WZJUN.js +0 -1
- package/dist/stage-bundles/preact/chunks/setTagName-U6UJNJLE.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateAction-3KSR6ZIJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateAttribute-XXZL2P43.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateBounds-5M7YQRO3.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateComputed-7QA6XZIC.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateEvent-R52PL2G4.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateHtml-YBJJSWQW.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateOption-5U23ZUWV.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateRoute-TFQFFFSZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateState-JCUSBQOL.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateStyle-JASLFXVX.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateToken-24P2P2SF.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateValue-TSVJM3PO.js +0 -1
- package/dist/stage-bundles/preact/chunks/user-H5DKMGWA.js +0 -1
- package/dist/stage-bundles/preact/chunks/validateStorePayload-HCBPC7HR.js +0 -3
- package/dist/stage-bundles/preact/chunks/viewport-ZRWTVYC3.js +0 -1
- package/dist/stage-bundles/preact/chunks/window-IMPT5I3D.js +0 -1
- package/dist/stage-bundles/react/chunks/addAction-EGLGEGTS.js +0 -1
- package/dist/stage-bundles/react/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
- package/dist/stage-bundles/react/chunks/addAttribute-2MZ3OFUE.js +0 -1
- package/dist/stage-bundles/react/chunks/addComponent-3JC5NC3Y.js +0 -1
- package/dist/stage-bundles/react/chunks/addComputed-7JLBFD6I.js +0 -1
- package/dist/stage-bundles/react/chunks/addEvent-HOBNKM2F.js +0 -1
- package/dist/stage-bundles/react/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
- package/dist/stage-bundles/react/chunks/addNode-QXU2P4AE.js +0 -1
- package/dist/stage-bundles/react/chunks/addOption-PVXGN7AJ.js +0 -1
- package/dist/stage-bundles/react/chunks/addParamToRoute-VL2VOFZS.js +0 -1
- package/dist/stage-bundles/react/chunks/addState-U2NWEGWV.js +0 -1
- package/dist/stage-bundles/react/chunks/addStore-AQMFKH33.js +0 -1
- package/dist/stage-bundles/react/chunks/addToken-XF2FFA52.js +0 -1
- package/dist/stage-bundles/react/chunks/addTree-S73GXWZP.js +0 -1
- package/dist/stage-bundles/react/chunks/addValue-O7YXXMST.js +0 -1
- package/dist/stage-bundles/react/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
- package/dist/stage-bundles/react/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
- package/dist/stage-bundles/react/chunks/aiRelay-C6ZJ3PUF.js +0 -1
- package/dist/stage-bundles/react/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
- package/dist/stage-bundles/react/chunks/assets-6LM3GVQU.js +0 -1
- package/dist/stage-bundles/react/chunks/capture-6GFKGXIT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-2Z2RXHNK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-3WCN6R5H.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-45YNKT2X.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-4Q5R44ZZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-5CWWFBNY.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-5GKIM3R4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-6KW4HPGN.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-6S7QQT47.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-7I5TQOE2.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-7UENQJSC.js +0 -5
- package/dist/stage-bundles/react/chunks/chunk-7VDUBBVE.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-7YVQSQRP.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-A25WFH3U.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-A52FDU5E.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-AMPHYXGT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-AS76ZLXK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-AYZAGKHN.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-BGQJ5B3Q.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-BL6GQ6ID.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-BWJHUHDJ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CAAW6MG4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CC3CCH2E.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CGCD6S33.js +0 -6
- package/dist/stage-bundles/react/chunks/chunk-CNZYL2VV.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CXJ5APZF.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CYURWEXX.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-DHPGPV5T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-DLHF7QB4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-E6KR5RXO.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-EPVRMHC2.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-EWEPEODY.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-EXXAK3BP.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-F5MJNV7Y.js +0 -3
- package/dist/stage-bundles/react/chunks/chunk-FAYUYASQ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-G3PYA3EU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GEOQWCYL.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GK5XUHQG.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GM4D3DPT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GUI7FIZD.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HAN4CMBX.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HCRWHPFW.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HE7IQLGK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HJOMUN4M.js +0 -49
- package/dist/stage-bundles/react/chunks/chunk-I57W7UZN.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IBDKDP7T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-ICWQHFOI.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IG2Y3H6O.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IKKRB6BS.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IV6PINVX.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IW4KEJOF.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IWTWZA3T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-J5QMLA3Z.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-K5BNCYT7.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-KTWXYDG7.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-LHK7LQPZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-LUY5LC7Z.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-LXD22ETU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-M577WNTV.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-MGH62JQ4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-MUZZUB5Y.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-N6I4COF2.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NFKUJQZH.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NHY2XYCH.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NKDO4J6J.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NOTXZB5N.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NXBFOI3Z.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-OQM5TMCK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-PPDOTRNT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-PU62K33G.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-Q3IER3MW.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-Q3ZV7EKU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QD56IMFS.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QFFVADTJ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QJ33JO3T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QVVBKZW6.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-RFFN4NF4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-SCJKRPIZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-TPCJQIUG.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-TX5TCU2H.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-U66LRTNF.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-UCLSDDOL.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-ULVFWUAU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-XE3A5HPY.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-XFHQ45KR.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-XTAXESM6.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-YB7FA4Y3.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-YCGY2NRE.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-YCMBBPKT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-Z3M6DQKZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-ZUPNPSUB.js +0 -1
- package/dist/stage-bundles/react/chunks/clearDestination-IGKNL7FN.js +0 -1
- package/dist/stage-bundles/react/chunks/clearName-HJ7ZTHBU.js +0 -1
- package/dist/stage-bundles/react/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
- package/dist/stage-bundles/react/chunks/clearRender-NPVDTNFA.js +0 -1
- package/dist/stage-bundles/react/chunks/clearRepeat-7YFYZODP.js +0 -1
- package/dist/stage-bundles/react/chunks/contentEditor-7BYCT3TH.js +0 -1
- package/dist/stage-bundles/react/chunks/createAction-73YUTK3T.js +0 -1
- package/dist/stage-bundles/react/chunks/createAnimation-2WQSMYT5.js +0 -1
- package/dist/stage-bundles/react/chunks/createComputed-DMX7CJA3.js +0 -1
- package/dist/stage-bundles/react/chunks/createTextContent-4Z4YATBO.js +0 -1
- package/dist/stage-bundles/react/chunks/createValue-DXQSLOBG.js +0 -1
- package/dist/stage-bundles/react/chunks/design-6KSNU4OK.js +0 -15
- package/dist/stage-bundles/react/chunks/disconnectNode-2CLWVIQP.js +0 -1
- package/dist/stage-bundles/react/chunks/history-CMF3VYTT.js +0 -1
- package/dist/stage-bundles/react/chunks/id-ZIAZZ5AS.js +0 -1
- package/dist/stage-bundles/react/chunks/main-3VRCGPRY.js +0 -1
- package/dist/stage-bundles/react/chunks/main-DH4JOS22.js +0 -1
- package/dist/stage-bundles/react/chunks/main-FAFZABOS.js +0 -1
- package/dist/stage-bundles/react/chunks/main-S7RT75O6.js +0 -1
- package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
- package/dist/stage-bundles/react/chunks/nodeGraph-UNI2HUNX.js +0 -1
- package/dist/stage-bundles/react/chunks/normalizeEventName-SNBYJDUY.js +0 -1
- package/dist/stage-bundles/react/chunks/preview-KOCHK3AH.js +0 -1
- package/dist/stage-bundles/react/chunks/removeAction-T4M5EJN7.js +0 -1
- package/dist/stage-bundles/react/chunks/removeAnimationBinding-AIISPC33.js +0 -1
- package/dist/stage-bundles/react/chunks/removeAttribute-DCKZLM55.js +0 -1
- package/dist/stage-bundles/react/chunks/removeComputed-WSA5GNVZ.js +0 -1
- package/dist/stage-bundles/react/chunks/removeEvent-2YZ55HD6.js +0 -1
- package/dist/stage-bundles/react/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
- package/dist/stage-bundles/react/chunks/removeNode-5HXQ63V3.js +0 -1
- package/dist/stage-bundles/react/chunks/removeOption-SYIFB4XW.js +0 -1
- package/dist/stage-bundles/react/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
- package/dist/stage-bundles/react/chunks/removeState-SGJVQ66N.js +0 -1
- package/dist/stage-bundles/react/chunks/removeStore-YVBTGA3I.js +0 -1
- package/dist/stage-bundles/react/chunks/removeToken-AIDV7DUM.js +0 -1
- package/dist/stage-bundles/react/chunks/removeValue-UP5ZFN3U.js +0 -1
- package/dist/stage-bundles/react/chunks/setDestination-NCPAVIIK.js +0 -1
- package/dist/stage-bundles/react/chunks/setHomePage-O2JYOG6H.js +0 -1
- package/dist/stage-bundles/react/chunks/setHtmlId-2W7YW47O.js +0 -1
- package/dist/stage-bundles/react/chunks/setName-NKRZPBGG.js +0 -1
- package/dist/stage-bundles/react/chunks/setNodeLayout-KQVZJBYW.js +0 -1
- package/dist/stage-bundles/react/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
- package/dist/stage-bundles/react/chunks/setRender-7XMGQ7ZK.js +0 -1
- package/dist/stage-bundles/react/chunks/setRepeat-WN4WZJUN.js +0 -1
- package/dist/stage-bundles/react/chunks/setTagName-U6UJNJLE.js +0 -1
- package/dist/stage-bundles/react/chunks/updateAction-3KSR6ZIJ.js +0 -1
- package/dist/stage-bundles/react/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
- package/dist/stage-bundles/react/chunks/updateAttribute-XXZL2P43.js +0 -1
- package/dist/stage-bundles/react/chunks/updateBounds-5M7YQRO3.js +0 -1
- package/dist/stage-bundles/react/chunks/updateComputed-7QA6XZIC.js +0 -1
- package/dist/stage-bundles/react/chunks/updateEvent-R52PL2G4.js +0 -1
- package/dist/stage-bundles/react/chunks/updateHtml-YBJJSWQW.js +0 -1
- package/dist/stage-bundles/react/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
- package/dist/stage-bundles/react/chunks/updateOption-5U23ZUWV.js +0 -1
- package/dist/stage-bundles/react/chunks/updateRoute-TFQFFFSZ.js +0 -1
- package/dist/stage-bundles/react/chunks/updateState-JCUSBQOL.js +0 -1
- package/dist/stage-bundles/react/chunks/updateStyle-JASLFXVX.js +0 -1
- package/dist/stage-bundles/react/chunks/updateToken-24P2P2SF.js +0 -1
- package/dist/stage-bundles/react/chunks/updateValue-TSVJM3PO.js +0 -1
- package/dist/stage-bundles/react/chunks/user-H5DKMGWA.js +0 -1
- package/dist/stage-bundles/react/chunks/validateStorePayload-HCBPC7HR.js +0 -3
- package/dist/stage-bundles/react/chunks/viewport-ZRWTVYC3.js +0 -1
- package/dist/stage-bundles/react/chunks/window-IMPT5I3D.js +0 -1
- package/dist/stage-bundles/vue/chunks/addAction-EGLGEGTS.js +0 -1
- package/dist/stage-bundles/vue/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
- package/dist/stage-bundles/vue/chunks/addAttribute-2MZ3OFUE.js +0 -1
- package/dist/stage-bundles/vue/chunks/addComponent-NG2BML2S.js +0 -1
- package/dist/stage-bundles/vue/chunks/addComputed-7JLBFD6I.js +0 -1
- package/dist/stage-bundles/vue/chunks/addEvent-HOBNKM2F.js +0 -1
- package/dist/stage-bundles/vue/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
- package/dist/stage-bundles/vue/chunks/addNode-UNXHE5VL.js +0 -1
- package/dist/stage-bundles/vue/chunks/addOption-PVXGN7AJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/addParamToRoute-VL2VOFZS.js +0 -1
- package/dist/stage-bundles/vue/chunks/addState-U2NWEGWV.js +0 -1
- package/dist/stage-bundles/vue/chunks/addStore-AQMFKH33.js +0 -1
- package/dist/stage-bundles/vue/chunks/addToken-XF2FFA52.js +0 -1
- package/dist/stage-bundles/vue/chunks/addTree-MFMYQTGN.js +0 -1
- package/dist/stage-bundles/vue/chunks/addValue-O7YXXMST.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiRelay-C6ZJ3PUF.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/assets-6LM3GVQU.js +0 -1
- package/dist/stage-bundles/vue/chunks/capture-XURVK5HZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-2Z2RXHNK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-4M7L75C7.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-4Q5R44ZZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-5CWWFBNY.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-5GKIM3R4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-6KW4HPGN.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-6S7QQT47.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-7UENQJSC.js +0 -5
- package/dist/stage-bundles/vue/chunks/chunk-7VDUBBVE.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-7YVQSQRP.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-A25WFH3U.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-A52FDU5E.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-AMPHYXGT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-AS76ZLXK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-AYZAGKHN.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-BJPSGTXJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-BL6GQ6ID.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-BWJHUHDJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CAAW6MG4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CC3CCH2E.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CGCD6S33.js +0 -6
- package/dist/stage-bundles/vue/chunks/chunk-CNZYL2VV.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CXJ5APZF.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CYURWEXX.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-DHPGPV5T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-DLHF7QB4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-E6KR5RXO.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-EPVRMHC2.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-EWEPEODY.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-EXXAK3BP.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-F5MJNV7Y.js +0 -3
- package/dist/stage-bundles/vue/chunks/chunk-F7DSZRND.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-FAYUYASQ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GEOQWCYL.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GK5XUHQG.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GM4D3DPT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GUI7FIZD.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GW7KMMRR.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HAN4CMBX.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HCRWHPFW.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HE7IQLGK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HYSOOJLT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-I57W7UZN.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IBDKDP7T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-ICWQHFOI.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IG2Y3H6O.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IKKRB6BS.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IV6PINVX.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IW4KEJOF.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IWTWZA3T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-J5QMLA3Z.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-K5BNCYT7.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-K5IR3PSI.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-KTWXYDG7.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-LHK7LQPZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-LUY5LC7Z.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-LXD22ETU.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-MGH62JQ4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-MUZZUB5Y.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-N6I4COF2.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NFKUJQZH.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NHY2XYCH.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NKDO4J6J.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NOTXZB5N.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NXBFOI3Z.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-OQM5TMCK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-PPDOTRNT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-PU62K33G.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-Q3IER3MW.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-Q3ZV7EKU.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QD56IMFS.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QFFVADTJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QFJRB6B2.js +0 -103
- package/dist/stage-bundles/vue/chunks/chunk-QJ33JO3T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QVVBKZW6.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-RFFN4NF4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-SCJKRPIZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-TPCJQIUG.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-TX5TCU2H.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-UCLSDDOL.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-ULVFWUAU.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-USKXWFBI.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-XE3A5HPY.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-XFHQ45KR.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-XTAXESM6.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-YB7FA4Y3.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-YCGY2NRE.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-YCMBBPKT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-Z3M6DQKZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-ZUPNPSUB.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearDestination-IGKNL7FN.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearName-HJ7ZTHBU.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearRender-NPVDTNFA.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearRepeat-7YFYZODP.js +0 -1
- package/dist/stage-bundles/vue/chunks/contentEditor-7BYCT3TH.js +0 -1
- package/dist/stage-bundles/vue/chunks/createAction-73YUTK3T.js +0 -1
- package/dist/stage-bundles/vue/chunks/createAnimation-2WQSMYT5.js +0 -1
- package/dist/stage-bundles/vue/chunks/createComputed-DMX7CJA3.js +0 -1
- package/dist/stage-bundles/vue/chunks/createTextContent-4Z4YATBO.js +0 -1
- package/dist/stage-bundles/vue/chunks/createValue-DXQSLOBG.js +0 -1
- package/dist/stage-bundles/vue/chunks/design-4GTDZLD2.js +0 -15
- package/dist/stage-bundles/vue/chunks/disconnectNode-2CLWVIQP.js +0 -1
- package/dist/stage-bundles/vue/chunks/history-CMF3VYTT.js +0 -1
- package/dist/stage-bundles/vue/chunks/id-ZIAZZ5AS.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-4HW35P75.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-BVDJS6IT.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-DH4JOS22.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-PALLSI3C.js +0 -1
- package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-BLKABBSO.js +0 -1
- package/dist/stage-bundles/vue/chunks/nodeGraph-UNI2HUNX.js +0 -1
- package/dist/stage-bundles/vue/chunks/normalizeEventName-SNBYJDUY.js +0 -1
- package/dist/stage-bundles/vue/chunks/preview-QUDMZGVG.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeAction-T4M5EJN7.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeAnimationBinding-AIISPC33.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeAttribute-DCKZLM55.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeComputed-WSA5GNVZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeEvent-2YZ55HD6.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeNode-5HXQ63V3.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeOption-SYIFB4XW.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeState-SGJVQ66N.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeStore-YVBTGA3I.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeToken-AIDV7DUM.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeValue-UP5ZFN3U.js +0 -1
- package/dist/stage-bundles/vue/chunks/setDestination-NCPAVIIK.js +0 -1
- package/dist/stage-bundles/vue/chunks/setHomePage-O2JYOG6H.js +0 -1
- package/dist/stage-bundles/vue/chunks/setHtmlId-2W7YW47O.js +0 -1
- package/dist/stage-bundles/vue/chunks/setName-NKRZPBGG.js +0 -1
- package/dist/stage-bundles/vue/chunks/setNodeLayout-KQVZJBYW.js +0 -1
- package/dist/stage-bundles/vue/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
- package/dist/stage-bundles/vue/chunks/setRender-7XMGQ7ZK.js +0 -1
- package/dist/stage-bundles/vue/chunks/setRepeat-WN4WZJUN.js +0 -1
- package/dist/stage-bundles/vue/chunks/setTagName-U6UJNJLE.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateAction-3KSR6ZIJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateAttribute-XXZL2P43.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateBounds-5M7YQRO3.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateComputed-7QA6XZIC.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateEvent-R52PL2G4.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateHtml-YBJJSWQW.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateOption-5U23ZUWV.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateRoute-TFQFFFSZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateState-JCUSBQOL.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateStyle-JASLFXVX.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateToken-24P2P2SF.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateValue-TSVJM3PO.js +0 -1
- package/dist/stage-bundles/vue/chunks/user-H5DKMGWA.js +0 -1
- package/dist/stage-bundles/vue/chunks/validateStorePayload-HCBPC7HR.js +0 -3
- package/dist/stage-bundles/vue/chunks/viewport-ZRWTVYC3.js +0 -1
- package/dist/stage-bundles/vue/chunks/window-IMPT5I3D.js +0 -1
- package/dist/stage-src/dev/server.js +0 -166
- package/dist/stage-src/preview/bootstrap.js +0 -20
- package/dist/stage-src/preview/entry.js +0 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var Sa=Object.defineProperty;var Rp=(o,s,t)=>s in o?Sa(o,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[s]=t;var a=(o,s)=>Sa(o,"name",{value:s,configurable:!0});var Rt=(o,s)=>{for(var t in s)Sa(o,t,{get:s[t],enumerable:!0})};var k=(o,s,t)=>(Rp(o,typeof s!="symbol"?s+"":s,t),t),wa=(o,s,t)=>{if(!s.has(o))throw TypeError("Cannot "+t)};var c=(o,s,t)=>(wa(o,s,"read from private field"),t?t.call(o):s.get(o)),d=(o,s,t)=>{if(s.has(o))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(o):s.set(o,t)},y=(o,s,t,e)=>(wa(o,s,"write to private field"),e?e.call(o,t):s.set(o,t),t);var et=(o,s,t,e)=>({set _(n){y(o,s,n,t)},get _(){return c(o,s,e)}}),h=(o,s,t)=>(wa(o,s,"access private method"),t);import{createSignal as kp}from"@jucie.io/reactive";import{Engine as Wx}from"@jucie.io/engine";import{ServiceProvider as Tp}from"@jucie.io/engine";var Ze,Qe,tn,en,nn,le,rn,gs,Cu,mr,ka,on,fs,ue,pr,sn,hs,cn,ds,an,ps,ys,Eu,xs,Ru,bs,Tu,vs=class vs extends Tp{constructor(){super(...arguments);d(this,gs);d(this,mr);d(this,on);d(this,ue);d(this,sn);d(this,cn);d(this,an);d(this,ys);d(this,xs);d(this,bs);d(this,Ze,new Set);d(this,Qe,new Set);d(this,tn,new Set);d(this,en,new Map);d(this,nn,!1);d(this,le,new Set);d(this,rn,!1)}actions(t,e){return{registerHook:(n,r,i)=>{h(this,mr,ka).call(this,n,r,i)},registerHooks:(n,r,i)=>{h(this,gs,Cu).call(this,n,r,i)},notifyMount:n=>{e.server||(c(this,Ze).add(n),h(this,an,ps).call(this))},notifyUpdate:n=>{e.server||(c(this,Qe).add(n),h(this,an,ps).call(this))},notifyUnmount:n=>{e.server||(c(this,tn).add(n),h(this,an,ps).call(this))},scheduleTeardown:n=>{e.view==="design"||e.server||(c(this,le).add(n),h(this,ys,Eu).call(this))},cancelTeardown:n=>{c(this,le).delete(n)},invokeBeforeMount:(n,r)=>{if(e.view==="design")return;let i=this.inject("registry").getHooks(r?.rid),l=h(this,sn,hs).call(this,i,"beforeMount");if(l)return h(this,ue,pr).call(this,l,h(this,on,fs).call(this,r),void 0,"beforeMount",r?.rid)},invokeBeforeUnmount:(n,r)=>{if(e.view==="design"||!r)return;let i=this.inject("registry").getHooks(r.rid),l=h(this,sn,hs).call(this,i,"beforeUnmount");l&&h(this,ue,pr).call(this,l,h(this,on,fs).call(this,r),r.$el,"beforeUnmount",r.rid)},invokeAppHook:(n,r,i)=>{if(e.view==="design")return;let f=this.inject("registry").getNode("app")?.lifecycle?.find(m=>m.key===n);if(!f)return;let p=this.inject("resolve").dispatch("descriptor",f);if(p)return h(this,ue,pr).call(this,p,r,i,n)},cleanupApp:()=>{}}}};Ze=new WeakMap,Qe=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,le=new WeakMap,rn=new WeakMap,gs=new WeakSet,Cu=a(function(t,e,n){if(!e?.length)return null;for(let r of e)h(this,mr,ka).call(this,t,r,n);return this.inject("registry").getHooks(t)},"#registerHooks"),mr=new WeakSet,ka=a(function(t,e,n){let r=this.inject("registry"),i=this.inject("resolve").dispatch("descriptor",e);i&&(e.key==="setup"?i(n):r.setHook(t,e.key,i))},"#registerHook"),on=new WeakSet,fs=a(function(t){return t.ctx??t.actor?.runtime?.context?.ctx??null},"#getContext"),ue=new WeakSet,pr=a(function(t,e,n,r,i){if(typeof t=="function")try{let l=t(e);if(typeof l=="function")return l(e,n)}catch(l){console.error(`Error invoking lifecycle hook "${r}"${i?` on rid "${i}"`:""}`,l)}},"#invokeHook"),sn=new WeakSet,hs=a(function(t,e){return t?t[e]??t[e.replace(/^(on|before)/,"").toLowerCase()]??null:null},"#resolveHookKey"),cn=new WeakSet,ds=a(function(t,e){let n=this.inject("registry"),r=n.getPuppet(t);if(!r||r.actor?.app?.config?.view==="design")return;if(e==="onUnmount"){let m=c(this,en).get(t);if(typeof m=="function"){try{m()}catch(g){console.error("Error in mount cleanup",g)}c(this,en).delete(t)}}let i=n.getHooks(t),l=h(this,sn,hs).call(this,i,e);if(!l)return;let u=h(this,on,fs).call(this,r),f=e==="onUnmount"?void 0:r.$el,p=h(this,ue,pr).call(this,l,u,f,e,t);e==="onMount"&&typeof p=="function"&&c(this,en).set(t,p),e==="onUnmount"&&n.deleteHooks(t)},"#resolveAndInvokeHook"),an=new WeakSet,ps=a(function(){c(this,nn)||(y(this,nn,!0),setTimeout(()=>{h(this,bs,Tu).call(this),y(this,nn,!1)},0))},"#scheduleFlush"),ys=new WeakSet,Eu=a(function(){c(this,rn)||(y(this,rn,!0),requestAnimationFrame(()=>{h(this,xs,Ru).call(this),y(this,rn,!1)}))},"#scheduleDestroyFlush"),xs=new WeakSet,Ru=a(function(){let t=this.inject("registry"),e=Array.from(c(this,le));c(this,le).clear();for(let n of e){let r=t.getActor(n);r&&r.destroy()}},"#flushDestroys"),bs=new WeakSet,Tu=a(function(){let t=this.inject("relay"),e=Array.from(c(this,Ze)),n=Array.from(c(this,Qe)),r=Array.from(c(this,tn));c(this,Ze).clear(),c(this,Qe).clear(),c(this,tn).clear();let i=new Set(e),l=n.filter(u=>!i.has(u));t.broadcast("scene:change",e,l,r),t.broadcast("scene:unmount",r),t.broadcast("scene:mount",e),t.broadcast("scene:update",l);for(let u of e)h(this,cn,ds).call(this,u,"onMount");for(let u of l)h(this,cn,ds).call(this,u,"onUpdate");for(let u of r)h(this,cn,ds).call(this,u,"onUnmount")},"#flush"),a(vs,"Lifecycle"),k(vs,"manifest",{name:"Lifecycle",namespace:"lifecycle"});var ms=vs;var Nu=a((o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((s,t)=>(t&=63,t<36?s+=t.toString(36):t<62?s+=(t-26).toString(36).toUpperCase():t>62?s+="-":s+="_",s),""),"nanoid");import{ServiceProvider as Wp}from"@jucie.io/engine";import{addEffect as qp,createSignal as zp}from"@jucie.io/reactive";import{createElement as ju,createHost as Bp,renderSource as _p,hostRootProps as Hp,provideJucie as Up}from"jucie:sdk";import"@jucie.io/reactive";import{contextKey as Op}from"@jucie.io/composed-style";import{contextOf as jp}from"@jucie.io/composed-style";import{baseOf as Np}from"@jucie.io/composed-style";var Pp=new Set(["none","block","flex","grid"]);function ln(o){let s=Np(o?.style),t=s.$layout;if(Pp.has(t))return t;let e=o?.layout;if(e&&e!=="none")return e;let n=s.display;return n==="flex"||n==="grid"?n:"none"}a(ln,"layoutOf");function Tt(o){return o?jp(o.style,{layout:ln(o)}):{}}a(Tt,"getNodeContext");var yt,it,un,gr,$a,yr,Aa,Ca=class Ca{constructor(s,t,{node:e,styleScope:n,parentId:r=null}={}){d(this,gr);d(this,yr);d(this,yt,new Set);d(this,it,new Set);d(this,un,"");k(this,"context",{});k(this,"cleanupFns",new Set);k(this,"ref",null);k(this,"dependants",new Set);k(this,"app",null);k(this,"runtime",null);k(this,"parentId",null);if(this.app=s,this.runtime=s.runtime,this.id=t,this.node=e,this.parentId=r,this.isInstance=e?.type==="instance",this.children=e?.children?.slice()??[],h(this,gr,$a).call(this,e),e?.bounds){let i=s.$el?.ownerDocument??(typeof document<"u"?document:null);this.addStyleScope(s.runtime.styleContext.createScope(this.id,i))}else this.addStyleScope(n??s.styleScope)}static create(s,t,e={}){return new this(s,t,e)}get puppetRids(){return c(this,yt)}get firstPuppetRid(){return c(this,yt).values().next().value??null}get styleScope(){let s=null;for(let t of c(this,it))t.destroyed?c(this,it).delete(t):s=t;return s}addStyleScope(s){if(!s)return;let t=c(this,it).has(s);c(this,it).delete(s),c(this,it).add(s),t||s.register(this)}updateStyles(){for(let s of c(this,it))s.destroyed||s.update(this.id,this.node,this.isInstance,this.parentId)}get puppets(){let s=[];for(let t of c(this,yt))s.push(this.runtime.registry.getPuppet(t));return s}addPuppet(s){c(this,yt).add(s)}removePuppet(s){c(this,yt).delete(s)}render(){throw new Error("render not implemented")}addDependant(s){this.dependants.add(s);let t=a(()=>this.removeDependant(s),"cleanup");return this.addCleanupFn(t),t}removeDependant(s){this.dependants.delete(s)}update(s){this.node=s,this.children=s?.children?.slice()??[];let t=h(this,gr,$a).call(this,s);this.runtime.styleContext.batch(()=>{this.updateStyles(),t&&h(this,yr,Aa).call(this,this.id)});for(let e of c(this,yt))this.runtime.registry.getPuppet(e)?.markAsDirty?.()}destroy(){for(let s of c(this,it))s.unregister(this.id);c(this,it).clear(),this.node?.bounds&&this.runtime.styleContext.destroyScope(this.id);for(let s of[...c(this,yt)]){let t=this.runtime.registry.getPuppet(s);t&&t.destroy()}this.children.forEach(s=>{let t=this.runtime.registry.getActor(s);t?.parentId===this.id&&t.destroy()}),this.runtime.registry.deleteActor(this.id),this.cleanupFns.forEach(s=>s()),this.cleanupFns.clear()}addCleanupFn(s){return this.cleanupFns.add(s),this}removeCleanupFn(s){return this.cleanupFns.delete(s),this}};yt=new WeakMap,it=new WeakMap,un=new WeakMap,gr=new WeakSet,$a=a(function(s){let t=c(this,un);return this.context=Tt(s),y(this,un,Op(this.context)),c(this,un)!==t},"#setContext"),yr=new WeakSet,Aa=a(function(s){let{registry:t,styleContext:e}=this.runtime;for(let n of t.getChildActors(s))n.updateStyles?.(),e.passesThrough(n)&&h(this,yr,Aa).call(this,n.id)},"#restyleChildren"),a(Ca,"Actor");var fn=Ca;var J,fe,X,xr,Nt,hn,Ea=class Ea{constructor(){d(this,J,new Map);d(this,fe,new Map);d(this,X,new Map);d(this,xr,new Map);d(this,Nt,new Map);d(this,hn,!0)}getShouldRender(){return c(this,hn)}reconcileShouldRender(s,t){c(this,hn)!==s&&(y(this,hn,s),t?.())}getChild(s){return c(this,J).get(s)??null}setChild(s,t){c(this,J).set(s,t)}clearChildren(){let s=[...c(this,J).values()];return y(this,J,new Map),s}reconcileChildren(s){let t=new Map,e=new Set(s),n=[];for(let r of s){let i=c(this,J).get(r);i!==void 0&&t.set(r,i)}for(let r of c(this,J).keys())e.has(r)||n.push(r);return y(this,J,t),n}getSlot(s){return c(this,fe).get(s)??null}setSlot(s,t){c(this,fe).set(s,t)}getSlotRids(){return[...c(this,fe).values()]}hasSlots(){return c(this,fe).size>0}getSlotChild(s,t){return c(this,X).get(s)?.get(t)??null}setSlotChild(s,t,e){c(this,X).has(s)||c(this,X).set(s,new Map),c(this,X).get(s).set(t,e)}getSlotChildren(s){return[...c(this,X).get(s)?.values()??[]]}clearSlotContent(){let s=[];for(let t of c(this,X).values())s.push(...t.values());return y(this,X,new Map),s}reconcileSlotChildren(s,t){let e=c(this,X).get(s);if(!e)return[];let n=new Set(t),r=[];for(let i of e.keys())n.has(i)||(r.push(i),e.delete(i));return r}setSlotThunk(s,t){c(this,xr).set(s,t)}getSlotThunks(){return Object.fromEntries(c(this,xr).entries())}getClone(s){return c(this,Nt).get(s)??null}setClone(s,t){c(this,Nt).set(s,t)}reconcileClones(s){let t=[];for(let[e,n]of c(this,Nt).entries())s.has(e)||(t.push(n),c(this,Nt).delete(e));return t}getChildrenRids(){return[...c(this,J).values()]}getChildEntries(){return[...c(this,J).entries()]}getSlotEntries(){return[...c(this,X).entries()]}getCloneEntries(){return[...c(this,Nt).entries()]}tracks(s){for(let t of c(this,J).values())if(t===s)return!0;for(let t of c(this,X).values())for(let e of t.values())if(e===s)return!0;for(let t of c(this,Nt).values())if(t===s)return!0;return!1}};J=new WeakMap,fe=new WeakMap,X=new WeakMap,xr=new WeakMap,Nt=new WeakMap,hn=new WeakMap,a(Ea,"Tracker");var Ss=Ea;import{onDirty as Mp,markAsDirty as Fp,isDirty as Ip}from"@jucie.io/reactive";import{createComputed as Lp,createRef as Pu,renderComputed as Dp}from"jucie:sdk";var ks,br,vr,Ra,Ta=class Ta extends Ss{constructor(t,e,n={}){super();d(this,vr);k(this,"actor",null);k(this,"runtime",null);k(this,"rid",null);k(this,"ref",null);k(this,"mounted",!1);d(this,ks,!0);d(this,br,null);this.actor=t,this.runtime=t.runtime,this.rid=e??this.runtime.registry.createActorRid(t.id),this.ctx=n.ctx??null,this.instanceRid=n.instanceRid??null,this.cloneOf=n.cloneOf??null,this.rootOf=n.rootOf??null,this.ref=h(this,vr,Ra).call(this)??Pu(),this.repeats||t.runtime.lifecycle.registerHooks(this.rid,this.actor.node?.lifecycle,this.ctx),this.view=Lp(()=>{let r=this.ctx??this.actor.runtime.context.ctx;try{return this.repeats?this.runtime.resolve.dispatch("nodeRepeat",this,{ctx:r,instanceRid:this.instanceRid}):(this.runtime.lifecycle.registerHooks(this.rid,this.actor.node?.lifecycle,this.ctx),this.runtime.resolve.dispatch("node",this,{ctx:r,instanceRid:this.instanceRid}))}finally{this.markAsClean()}},{detached:!0}),this.render=()=>Dp(this.view),this.unsubscribe=Mp(this.view,()=>{this.markAsDirty?.()})}static create(t,e,n={}){return new this(t,e,n)}get $el(){return this.actor.node?.type==="root"?typeof document<"u"?document.getElementById(this.actor.id):null:this.ref?.value??this.ref?.current}get repeats(){return!!this.actor?.node?.repeat&&!this.cloneOf&&this.actor.app?.config?.view!=="design"}getSetup(){return c(this,br)}setSetup(t){y(this,br,t)}notifyMount(){this.mounted||this.repeats||(this.runtime.lifecycle.notifyMount(this.rid),this.mounted=!0)}update(t={}){let e=t.ctx??this.ctx,n=t.instanceRid??this.instanceRid,r=t.rootOf??null,i=e!==this.ctx||n!==this.instanceRid||r!==this.rootOf;this.ctx=e,this.instanceRid=n,r!==this.rootOf&&(this.rootOf=r,this.ref=h(this,vr,Ra).call(this)??Pu()),i&&this.markAsDirty()}markAsDirty(){if(this.hasSlots())for(let t of this.getSlotRids()){let e=this.runtime.registry.getPuppet(t);e&&e.markAsDirty()}if(this.actor.node?.type==="instance")for(let t of this.getChildrenRids()){let e=this.runtime.registry.getPuppet(t);e?.rootOf===this.rid&&e.markAsDirty()}Ip(this.view)||Fp(this.view)}markAsClean(){this.repeats||this.runtime.lifecycle.notifyUpdate(this.rid),y(this,ks,!1)}destroyDescendants(){let t=[];for(let e of[...this.clearChildren(),...this.clearSlotContent()]){let n=this.runtime.registry.getPuppet(e);n&&(t.push(...n.destroyDescendants(),e),n.destroy())}return t}destroy(){for(let[,t]of this.getCloneEntries()){let e=this.runtime.registry.getPuppet(t);e&&e.destroy()}this.repeats||(this.runtime.lifecycle.invokeBeforeUnmount(this.actor,this),this.runtime.lifecycle.notifyUnmount(this.rid)),this.actor.removePuppet(this.rid),this.runtime.registry.deletePuppet(this.rid),this.unsubscribe?.(),this.runtime.context?.releaseContexts(this.rid)}};ks=new WeakMap,br=new WeakMap,vr=new WeakSet,Ra=a(function(){return this.rootOf?this.runtime.registry.getPuppet(this.rootOf)?.ref??null:null},"#instanceRef"),a(Ta,"Puppet");var ws=Ta;var he,Na=class Na{constructor(s,t,e){k(this,"config",null);k(this,"runtime",null);k(this,"styleScope",null);k(this,"$el",null);k(this,"host",null);d(this,he,null);this.config=s,this.runtime=t,this.$el=e;let n=e?.ownerDocument??(typeof document<"u"?document:null);this.styleScope=t.styleContext.createScope("app",n),t.registry.setActorClass(fn),t.registry.setPuppetClass(ws),t.registry.setCreateElement(ju),t.registry.setRenderSource(_p)}static create(s,t,e){return new this(s,t,e)}async create(s){try{if(!s)throw new Error("App create error: ID not defined");let t=this.runtime.registry;return this.host=(this.config.createHost??Bp)(this.$el,e=>{c(this,he)&&c(this,he)!==e&&this.runtime.lifecycle.scheduleTeardown(c(this,he));let n=t.resolveActor(this,e),r=this.runtime.context.ctx,i=n&&t.resolvePuppet(n,e,{ctx:r});return y(this,he,e),ju(i?.render,Hp(e))},{hydrate:!!this.config.hydrate}),await Promise.resolve(this.host.mount(s)),Up(this.host.jucie),this}catch(t){return console.error("App create error",t),null}}navigate(s){this.host?.navigate(s)}render(){throw new Error("render not implemented")}jucie(){return null}};he=new WeakMap,a(Na,"App");var dn=Na;var $s=a(o=>`${o}:setup`,"setupContextId");var Ou=5e3,Mu=a(()=>new Promise(o=>setTimeout(o,0)),"nextTask");function Fu(o,s){return!o||typeof o.then!="function"?Promise.resolve():new Promise(t=>{let e=setTimeout(t,s);Promise.resolve(o).catch(()=>{}).finally(()=>{clearTimeout(e),t()})})}a(Fu,"settleWithin");var Dt,de,mn,Bt,$r,pe,B,_t,W,Ht,Ut,q,xt,me,Ar,Ts,gn,yn,xn,Cr,Pa,Er,ja,bn,As,Ns,Iu,Rr,Oa,Ps,Lu,js,Du,Tr,Ma,Wt,pn,ge,Sr,Nr,Fa,Pr,Ia,jr,La,Os,Bu,ye,wr,xe,kr,vn,Cs,Ms,_u,Or,Da,Mr,Ba,Fr,_a,Fs,Hu,Ir,Ha,Sn,Es,Is=class Is extends Wp{constructor(){super(...arguments);d(this,Cr);d(this,Er);d(this,bn);d(this,Ns);d(this,Rr);d(this,Ps);d(this,js);d(this,Tr);d(this,Wt);d(this,ge);d(this,Nr);d(this,Pr);d(this,jr);d(this,Os);d(this,ye);d(this,xe);d(this,vn);d(this,Ms);d(this,Or);d(this,Mr);d(this,Fr);d(this,Fs);d(this,Ir);d(this,Sn);d(this,Dt,null);d(this,de,null);d(this,mn,null);d(this,Bt,new Map);d(this,$r,new Map);d(this,pe,new Map);d(this,B,new Map);d(this,_t,new Map);d(this,W,new Map);d(this,Ht,new Map);d(this,Ut,new Map);d(this,q,new Map);d(this,xt,new Map);d(this,me,new Map);d(this,Ar,new Map);d(this,Ts,0);d(this,gn,[]);d(this,yn,null);d(this,xn,zp(0))}actions(t,e){return{registerLibrary:(n,{source:r=null,manifest:i=null}={})=>{let l=h(this,bn,As).call(this,n);return r!==null&&(l.source=r),i!==null&&(l.manifest=i),l},getLibrary:n=>c(this,q).get(n)??null,hasLibrary:n=>c(this,q).has(n),getLibraries:()=>Array.from(c(this,q).keys()),loadSources:n=>h(this,js,Du).call(this,n),loadPrototypes:n=>{for(let[r,i]of Object.entries(n??{}))c(this,me).set(r,i)},registerComponent:(n,r,i,l)=>{let u=h(this,ge,Sr).call(this,n,r)!=null,f=h(this,Wt,pn).call(this,n,r,i,l);if(u)for(let p of c(this,B).values())p.node?.component===r&&p.update(p.node);return f},registerComponents:(n,r)=>{if(!r)return;let i=r instanceof Map?r.entries():Object.entries(r);for(let[l,u]of i)u&&typeof u=="object"&&"component"in u?h(this,Wt,pn).call(this,n,l,u.component,u.meta??{}):h(this,Wt,pn).call(this,n,l,u)},unregisterComponent:(n,r)=>{let i=c(this,q).get(n);i&&(i.components.delete(r),i.meta?.delete(r),c(this,xn).update(l=>l+1))},getComponentEntry:(n,r)=>h(this,ge,Sr).call(this,n,r),getComponent:(n,r)=>h(this,ge,Sr).call(this,n,r)?.component??null,getComponentMeta:(n,r)=>h(this,Nr,Fa).call(this,n,r),describeComponent:(n,r)=>h(this,Os,Bu).call(this,n,r),definitionIdOf:(n,r)=>h(this,jr,La).call(this,n,r),hasComponent:(n,r)=>c(this,q).get(n)?.components.has(r)??!1,getComponentsByLibrary:n=>{let r=c(this,q).get(n);return r?Array.from(r.components.values()):[]},getAllComponents:()=>{c(this,xn).call(this);let n=[];for(let[r,i]of c(this,q)){let l=new Set([...i.meta?.keys()??[],...i.components?.keys()??[]]);for(let u of l){let f=i.components.get(u),p=i.meta?.get(u)??f?.meta??null;p&&n.push({library:r,name:u,component:f?.component??null,meta:p})}}return n},hasNode:n=>h(this,Fs,Hu).call(this,n),getNode:n=>h(this,Ir,Ha).call(this,n),getNodeType:n=>this.inject("resolve").dispatch("computedNode",n)()?.type??null,getNodeChildren:n=>this.inject("resolve").dispatch("computedNode",n)()?.children??null,addActor:n=>{c(this,B).set(n.id,n),h(this,xe,kr).call(this,n.id,n.parentId)},getChildActors:n=>h(this,Ms,_u).call(this,n),getActor:n=>h(this,ye,wr).call(this,n),hasActor:n=>h(this,Or,Da).call(this,n),deleteActor:n=>{h(this,vn,Cs).call(this,n),c(this,B).delete(n)},getActors:(n=[])=>!n||n.length===0?Array.from(c(this,B).values()):n.map(r=>c(this,B).get(r)),resolveActorRid:n=>{if(h(this,Or,Da).call(this,n)){let i=h(this,ye,wr).call(this,n).firstPuppetRid;if(i!=null)return i}return h(this,Er,ja).call(this,n)},createActorRid:n=>h(this,Er,ja).call(this,n),getActorId:n=>c(this,Bt).get(n),getActorByRid:n=>{let r=c(this,Bt).get(n);return r?c(this,B).get(r):null},syncActorChildren:(n,r=[])=>{if(!n||n.length===0)return r.slice();let i=new Set(r),l=n.filter(u=>!i.has(u));for(let u of l){let f=h(this,ye,wr).call(this,u);f&&f.destroy()}return r.slice()},resolveActor:(n,r,{styleScope:i,parentId:l}={})=>h(this,Mr,Ba).call(this,n,r,{styleScope:i,parentId:l}),addPuppet:n=>{c(this,W).set(n.rid,n)},getPuppet:n=>c(this,W).get(n),hasPuppet:n=>c(this,W).has(n),deletePuppet:n=>{c(this,W).delete(n)},getPuppets:(n=[])=>!n||n.length===0?Array.from(c(this,W).values()):n.map(r=>c(this,W).get(r)),setContext:(n,r)=>{c(this,Ht).set(n,r);let i=c(this,Ut).get(r.owner);i||c(this,Ut).set(r.owner,i=new Set),i.add(n)},getContext:n=>c(this,Ht).get(n)??null,deleteContext:n=>{let r=c(this,Ht).get(n);if(!r)return;c(this,Ht).delete(n);let i=c(this,Ut).get(r.owner);i?.delete(n),i&&!i.size&&c(this,Ut).delete(r.owner)},getContexts:()=>[...c(this,Ht).entries()],getContextIds:n=>[...c(this,Ut).get(n)??[]],resolvePuppet:(n,r,{ctx:i,instanceRid:l,cloneOf:u,rootOf:f})=>h(this,Fr,_a).call(this,n,r,{ctx:i,instanceRid:l,cloneOf:u,rootOf:f}),resolveSlotPuppet:(n,r)=>this.resolveSlotPuppet(n,r),getSlotChildren:(n,r)=>this.getSlotChildren(n,r),setSetup:(n,r)=>h(this,Tr,Ma).call(this,n,r),getSetup:n=>c(this,Ar).get(n)??null,createApp:async(n,r,i={})=>{let l=t(),u=e.server??null,f=i.$el??(typeof document<"u"?document.getElementById(n):null),p={...e,mode:"app",...i};this.inject("modules").initialize(p.view==="design"||p.view==="preview"||p.view==="screen-capture");let m=dn.create(p,l,f),g=h(this,Ir,Ha).call(this,"app"),b=l.context.ctx;if(l.lifecycle.registerHooks("app",g?.lifecycle,b),p.isolated)l.router.setMemoryMode(!0),await l.router.navigate("/",{replace:!0});else if(p.view!=="design"){let S=l.router;S.setCallback(E=>m.navigate(E));let w=!r&&S.getCurrentUrl();w?(await S.navigate(w,{replace:!0}),r=S.getCurrentRoute()?.pageId||p.nodeId):(r=r||p.nodeId,await S.navigate(r,{replace:!0}))}let v=l.lifecycle.invokeAppHook("beforeReady",b,m);u&&await Fu(v,u.timeout??Ou);let x=p.hydrate;return x&&(await Fu(v,Ou),await Mu(),await Mu(),l.context.restore(x.state)),await Promise.resolve(m.create(r)),u||(l.lifecycle.invokeAppHook("onReady",b,m),p.view!=="design"&&!p.isolated&&h(this,Ns,Iu).call(this,g?.events,b)),c(this,pe).set(n,m),m},getApp:n=>c(this,pe).get(n),deleteApp:n=>{let r=c(this,pe).get(n);return r&&(this.inject("lifecycle").cleanupApp(),r.destroy(),c(this,pe).delete(n),this.inject("resolve").reset("descriptor","compiledBinding"),h(this,Rr,Oa).call(this)),r},registerPrototype:(n,r)=>{c(this,me).set(n,r)},getPrototype:n=>c(this,me).get(n)??null,hasPrototype:n=>c(this,me).has(n),createId:()=>h(this,Cr,Pa).call(this),getRids:()=>Array.from(c(this,Bt).keys()),setActorClass:n=>{y(this,Dt,n)},getActorClass:()=>c(this,Dt),setPuppetClass:n=>{y(this,de,n)},getPuppetClass:()=>c(this,de),setCreateElement:n=>{y(this,mn,n)},getCreateElement:()=>c(this,mn),createElement:(...n)=>c(this,mn).call(this,...n),setRenderSource:n=>{y(this,yn,n)},getRenderSource:()=>c(this,yn),renderSource:(...n)=>c(this,yn).call(this,...n),setHook:(n,r,i)=>{let l=c(this,xt).get(n)??{};l[r]=i,c(this,xt).set(n,l)},getHook:(n,r)=>c(this,xt).get(n)?.[r]??null,hasHook:(n,r)=>c(this,xt).get(n)?.[r],deleteHook:(n,r)=>{let i=c(this,xt).get(n);i&&delete i[r]},getHooks:n=>c(this,xt).get(n),deleteHooks:n=>{c(this,xt).delete(n)}}}setSlot(t,e){c(this,$r).set(t,e)}getSlot(t){return c(this,$r).get(t)}resolveSlotPuppet(t,e){let n=c(this,W).get(t);if(!n)return null;try{let r=n.ctx||{},i=n.actor.app,l=n.actor.styleScope,u=n.actor.id,f=h(this,Mr,Ba).call(this,i,e,{styleScope:l,parentId:u});if(!f)return null;let p=n.getSlot(e),m=h(this,Fr,_a).call(this,f,p,{ctx:r,parentId:u,instanceRid:t});return m?(n.setSlot(e,m.rid),m):null}catch(r){return console.warn("Error resolving slot",e,r),null}}getSlotChildren(t,e){let n=c(this,W).get(t);if(!n)return null;let r=n.actor.node.slots?.find(i=>i.id===e);return r?r.children:null}};Dt=new WeakMap,de=new WeakMap,mn=new WeakMap,Bt=new WeakMap,$r=new WeakMap,pe=new WeakMap,B=new WeakMap,_t=new WeakMap,W=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,q=new WeakMap,xt=new WeakMap,me=new WeakMap,Ar=new WeakMap,Ts=new WeakMap,gn=new WeakMap,yn=new WeakMap,xn=new WeakMap,Cr=new WeakSet,Pa=a(function(){let t="a",n,r=0,i=100;do if(n=`${t}${Nu(10)}`,r++,r>i)throw new Error(`Failed to generate unique ID after ${i} attempts`);while(c(this,Bt).has(n));return n},"#createId"),Er=new WeakSet,ja=a(function(t){let e=h(this,Cr,Pa).call(this);return c(this,Bt).set(e,t),e},"#createActorRid"),bn=new WeakSet,As=a(function(t){c(this,q).has(t)||c(this,q).set(t,{source:null,manifest:null,meta:new Map,components:new Map});let e=c(this,q).get(t);return e.meta||(e.meta=new Map),e.components||(e.components=new Map),e},"#ensureLibrary"),Ns=new WeakSet,Iu=a(function(t,e){if(h(this,Rr,Oa).call(this),!!t?.length)for(let n of t){let r=this.inject("resolve").dispatch("descriptor",n)?.(e);if(typeof r!="function")continue;let i=n.name.replace(/^on/,"").toLowerCase(),l=a(u=>{try{r(u)}catch(f){console.error("Global event error",n.name,f)}},"handler");window.addEventListener(i,l),c(this,gn).push(()=>window.removeEventListener(i,l))}},"#bindGlobalEvents"),Rr=new WeakSet,Oa=a(function(){for(let t of c(this,gn))t();y(this,gn,[])},"#cleanupGlobalEvents"),Ps=new WeakSet,Lu=a(function(t,e,n={}){let{displayName:r=e,description:i="",category:l="components",keywords:u=[e,t],props:f=[],slots:p=[],tagName:m=e,...g}=n;return{...g,displayName:r,description:i,category:l,keywords:u,props:f,slots:p,tagName:m,library:t}},"#normalizeMeta"),js=new WeakSet,Du=a(function(t={}){for(let[e,n]of Object.entries(t??{})){let r=h(this,bn,As).call(this,e);n!=null&&(r.source=n),n?.manifest!==void 0&&(r.manifest=n.manifest??null);let i=n?.components??{};for(let[l,u]of Object.entries(i)){let f=n?.manifest?.[l];if(u?.__jux===!0){h(this,Tr,Ma).call(this,l,u),h(this,Wt,pn).call(this,e,l,null,{displayName:f?.displayName??l,description:f?.description??"",category:f?.category??"components",keywords:f?.keywords??[l,"jux","component"],props:f?.props??[],slots:f?.slots??[],tagName:l,origin:"jux"});continue}h(this,Wt,pn).call(this,e,l,u,{displayName:f?.displayName??l,description:f?.description??"",category:f?.category??"components",keywords:f?.keywords??[l,e],props:f?.props??[],slots:f?.slots??[],tagName:l,origin:"source"})}}},"#loadSources"),Tr=new WeakSet,Ma=a(function(t,e){c(this,Ar).set(t,{fn:e,version:++et(this,Ts)._});for(let n of c(this,B).values()){let r=n.node?.component;if(!(!r||r!==t&&r!==e.template)){for(let i of n.puppetRids)c(this,W).get(i)?.destroyDescendants(),this.inject("context").releaseContext($s(i));n.update(n.node)}}},"#setSetup"),Wt=new WeakSet,pn=a(function(t,e,n,r={}){let i=h(this,bn,As).call(this,t),l=h(this,Ps,Lu).call(this,t,e,r);i.meta.set(e,l);let u={library:t,name:e,component:n,meta:l};return i.components.set(e,u),c(this,xn).update(f=>f+1),u},"#registerComponent"),ge=new WeakSet,Sr=a(function(t,e){return c(this,q).get(t)?.components.get(e)??null},"#getComponentEntry"),Nr=new WeakSet,Fa=a(function(t,e){let n=c(this,q).get(t);return n?n.meta?.get(e)??h(this,ge,Sr).call(this,t,e)?.meta??null:null},"#getComponentMeta"),Pr=new WeakSet,Ia=a(function(t){let e=a(n=>n.map(r=>typeof r=="string"?r:r?.name).filter(Boolean),"namesOf");return{...t,propNames:e(t.props),eventNames:e(t.emits)}},"#withDeclaredNames"),jr=new WeakSet,La=a(function(t,e){return e?!t||t==="local"?e:h(this,Sn,Es).call(this,[".libraries",t,"components",e,"definitionId"])??null:null},"#definitionIdOf"),Os=new WeakSet,Bu=a(function(t,e){if(!e)return null;let n=h(this,Nr,Fa).call(this,t||"local",e);if(n&&n.origin!=="local"&&n.origin!=="jucie-library")return h(this,Pr,Ia).call(this,{displayName:n.displayName??e,props:n.props??[],emits:n.emits??[],slots:n.slots??[],origin:n.origin??null,library:n.library??t??null,tagName:n.tagName??e});let r=h(this,jr,La).call(this,t,e);if(!r)return null;let i=h(this,ye,wr).call(this,r)?.node??this.inject("resolve").dispatch("computedNode",r)();if(i?.type==="component"){let l=!!t&&t!=="local";return h(this,Pr,Ia).call(this,{displayName:i.name||e,props:Array.isArray(i.props)?i.props:[],emits:Array.isArray(i.emits)?i.emits:[],slots:[],origin:l?"jucie-library":"scene",library:l?t:null,tagName:e})}return null},"#describeComponent"),ye=new WeakSet,wr=a(function(t){return c(this,B).get(t)},"#getActor"),xe=new WeakSet,kr=a(function(t,e){h(this,vn,Cs).call(this,t),e!=null&&(c(this,_t).has(e)||c(this,_t).set(e,new Set),c(this,_t).get(e).add(t))},"#indexChild"),vn=new WeakSet,Cs=a(function(t){let e=c(this,B).get(t)?.parentId;e!=null&&c(this,_t).get(e)?.delete(t)},"#unindexChild"),Ms=new WeakSet,_u=a(function(t){let e=[];for(let n of c(this,_t).get(t)??[]){let r=c(this,B).get(n);r?.parentId===t&&e.push(r)}return e},"#childActors"),Or=new WeakSet,Da=a(function(t){return c(this,B).has(t)},"#hasActor"),Mr=new WeakSet,Ba=a(function(t,e,{styleScope:n=null,parentId:r=null}={}){let i=this.inject("log");if(!e)throw new Error("Registry.resolveActor: id is required");if(c(this,B).has(e)){let p=c(this,B).get(e);this.inject("lifecycle").cancelTeardown(e);let m=r!=null&&p.parentId!==r;return m&&(h(this,vn,Cs).call(this,e),p.parentId=r,h(this,xe,kr).call(this,e,r)),n&&p.addStyleScope(n),m&&p.updateStyles(),p}if(!c(this,Dt))throw new Error("Registry.resolveActor: no actor class registered (call setActorClass)");if(!this.config?.scene&&(["design","preview","screen-capture"].includes(t.config?.view)||t.config?.embedded)){let p=this.inject("resolve").dispatch("computedNode",e),m=p();if(!m)return i.warn("resolveActor: node not found",{message:"node not found",id:e,parentId:r}),null;let g=c(this,Dt).create(t,e,{node:m,styleScope:n,parentId:r});c(this,B).set(g.id,g),h(this,xe,kr).call(this,g.id,r);let b=qp(p,v=>{if(g&&v){g.update?.(v);return}if(!v){g.destroy?.();return}});return g.addCleanupFn?.(b),g}let u=this.inject("resolve").dispatch("nodeData",e);if(!u)return i.warn("resolveActor: node not found",{message:"node not found",id:e,parentId:r}),null;let f=c(this,Dt).create(t,e,{node:u,styleScope:n,parentId:r});return c(this,B).set(f.id,f),h(this,xe,kr).call(this,f.id,r),f},"#resolveActor"),Fr=new WeakSet,_a=a(function(t,e,n={}){if(e&&c(this,W).has(e)){let i=c(this,W).get(e);return i.update(n),i}if(!c(this,de))throw new Error("Registry.resolvePuppet: no puppet class registered (call setPuppetClass)");let r=c(this,de).create(t,e,n);return t.addPuppet(r.rid),c(this,W).set(r.rid,r),r.repeats||this.inject("lifecycle").invokeBeforeMount(r),r},"#resolvePuppet"),Fs=new WeakSet,Hu=a(function(t){return h(this,Sn,Es).call(this,["nodes",t])!=null},"#hasNode"),Ir=new WeakSet,Ha=a(function(t){return h(this,Sn,Es).call(this,["nodes",t])},"#getNode"),Sn=new WeakSet,Es=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),a(Is,"Registry"),k(Is,"manifest",{name:"Registry",namespace:"registry"});var Rs=Is;import{ServiceProvider as km,definitionType as $m}from"@jucie.io/engine";import{createDefinition as Kp}from"@jucie.io/engine";var Ua="RESOLVER",A=Kp(Ua,[Function]);var Wa=Object.getPrototypeOf(async function(){}).constructor,wn=a(o=>o.split(",").map(s=>s.trim()).filter(Boolean),"parseArgs"),Wu=[[/^async\s+function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,o=>[Wa,wn(o[1]),o[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,o=>[Wa,wn(o[1]),o[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*([\s\S]+)$/,o=>[Wa,wn(o[1]),`return ${o[2]};`]],[/^function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,o=>[Function,wn(o[1]),o[2]]],[/^\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,o=>[Function,wn(o[1]),o[2]]],[/^\(([^)]*)\)\s*=>\s*([\s\S]+)$/,o=>[Function,wn(o[1]),`return ${o[2]};`]],[/^(\w+)\s*=>\s*([\s\S]+)$/,o=>[Function,[o[1].trim()],`return ${o[2]};`]]];function Vp(o){if(typeof o!="string")return!1;let s=o.trim();return Wu.some(([t])=>t.test(s))}a(Vp,"isFunctionString");function qa(o){if(typeof o!="string"||!o.trim())throw new Error("No code");let s=o.trim();for(let[t,e]of Wu){let n=s.match(t);if(!n)continue;let[r,i,l]=e(n);return new r(...i,l)}throw new Error("Must be a function \u2014 function (ctx) { \u2026 } or (ctx) => \u2026")}a(qa,"compileFunctionString");function qu(o){try{return qa(o),null}catch(s){return s.message}}a(qu,"functionStringError");function qt(o,s="computed"){if(typeof o!="string"||!o.trim()||Vp(o))return o;let t=o.trim(),e=s==="code"?"ctx, event":"ctx",n=a(r=>`function (${e}) {
|
|
2
|
+
${r.split(`
|
|
3
|
+
`).map(i=>` ${i}`).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}`,"asFunction");return s==="computed"&&Uu(`return (${t});`)?n(`return ${t}`):Uu(t)?n(t):o}a(qt,"toFunctionString");function Uu(o){try{return new Function("ctx","event",o),!0}catch{return!1}}a(Uu,"parses");var za=new Map;function Ka(o){try{if(!o||typeof o!="string")return null;if(za.has(o))return za.get(o);let s=qa(o);return za.set(o,s),s}catch(s){return console.error("Error creating function from:",o),console.error("Error:",s.message),null}}a(Ka,"convertStringToFunction");var Lr=new Map,Gp=500;function Yp(o,s){let t=`${o}\0${s.join(",")}`,e=Lr.get(t);if(e)return e;let n=new Function(...s,`"use strict"; return (${o});`);if(Lr.size>=Gp){let r=Lr.keys().next().value;Lr.delete(r)}return Lr.set(t,n),n}a(Yp,"compileExpression");function zu(o,s={}){if(!o||!s)return;let t=[],e=[];for(let n in s)t.push(n),e.push(s[n]);try{return Yp(o,t)(...e)}catch(n){console.warn("[Expression Error]",n.message),console.warn("[Expression]",o),console.warn("[Scope]",t);return}}a(zu,"evaluateExpression");function Va(o,s){return t=>{try{return o(t)}catch(e){return console.error("Descriptor error:",e),s}}}a(Va,"safe");var Ku=A("descriptor",(o,s,t)=>{let e=new Map,n=a(r=>{let{mode:i,value:l,binding:u,computed:f,code:p,expression:m}=r;switch(i){case"binding":{let g=t("compiledBinding",u);return Va(b=>g(b),l)}case"computed":{let g=Ka(qt(f,"computed"));return g?Va(b=>g.call(b,b),l):()=>l}case"code":{let g=Ka(qt(p,"code"));return g?b=>g.bind(b,b):()=>l}case"expression":return Va(g=>zu(m,g),l);case"value":default:return()=>l}},"compile");return r=>{if(e.has(r))return e.get(r);let i=n(r);return e.set(r,i),i}});var Jp=/^[A-Za-z_$][\w$]*$/,Ls=a(()=>{},"noop"),Vu=A("compiledBinding",()=>{let o=new Map;return s=>{if(Array.isArray(s)&&!s.every(e=>typeof e=="string"&&Jp.test(e))){let e=JSON.stringify(s);return o.has(e)||(console.warn("Binding refused: not a path of identifiers",s),o.set(e,Ls)),Ls}let t=Array.isArray(s)?s.join("."):s;if(o.has(t))return o.get(t);try{let e=new Function("ctx",`
|
|
6
|
+
try { return ctx.${t} }
|
|
7
|
+
catch (e) { console.error('Error resolving binding:', '${t}', e.message); return undefined; }
|
|
8
|
+
`);return o.set(t,e),e}catch(e){return console.error("Error compiling binding:",t,e.message),o.set(t,Ls),Ls}}}),Gu=A("binding",(o,s,t)=>(e,n)=>{if(!e)return"";try{return t("compiledBinding",e)(n)}catch(r){console.error("Error resolving binding:",e,r.message);return}});var Ga=new Set(["id","type","ex","children","text"]),Yu=a(o=>o!==null&&typeof o=="object"&&!Array.isArray(o),"isPlainObject");function Ya(o=[],s=[]){let t=new Map(o.filter(Boolean).map(e=>[e.name,e]));for(let e of s)e&&t.set(e.name,e);return Array.from(t.values())}a(Ya,"mergeByName");function zt(o,s){if(s===void 0)return o;if(o===void 0)return s;if(Yu(o)&&Yu(s)){let t={...o};for(let e of Object.keys(s)){let n=s[e];n===void 0?delete t[e]:t[e]=zt(o[e],n)}return t}return s}a(zt,"cascadeMerge");function Ju(o){let{ex:s,type:t,...e}=o;return e}a(Ju,"stripChainKeys");function Xu(o){let s={};for(let t of Object.keys(o))!Ga.has(t)&&t!=="ex"&&(s[t]=o[t]);return s}a(Xu,"stripInstanceKeys");function Zu(o,s){let t=[],e=o;for(;e&&s.has(e);)t.push(e),e=s.get(e).ex;return t}a(Zu,"chainOf");var Qu=A("prototype",o=>{let s=o("registry"),t={has:e=>s.hasPrototype(e),get:e=>s.getPrototype(e)};return e=>{let n=Zu(e.ex??e.type,t).reverse(),r={};for(let u of n){let f=t.get(u);f&&(r=zt(r,Ju(f)))}let i=e.attributes,l=e.events;r=zt(r,Xu(e)),i!=null&&(r.attributes=Ya(r.attributes,i)),l!=null&&(r.events=Ya(r.events,l));for(let u of Ga)u in e&&(r[u]=e[u]);return r}});var tf=A("sceneValue",o=>{let s=null;return t=>(s??(s=o("state")),s.get(t))});var ef=A("nodeData",(o,s,t)=>{let e=a(n=>{let r=t("sceneValue",["nodes",n]);return r?r.ex&&t("sceneValue",["nodes",r.ex])!=null?zt(e(r.ex),r):t("prototype",r):null},"nodeData");return e});import{createComputed as Xp,onDirty as Zp,markAsDirty as Qp}from"@jucie.io/reactive";var nf=A("computedNode",(o,s,t)=>{let e=new Map,n=a(r=>{if(e.has(r))return e.get(r);let i=null,l=null,u=Xp(()=>{let f=t("sceneValue",["nodes",r]);if(!f)return null;if(f.ex&&t("sceneValue",["nodes",f.ex])!=null){let m=n(f.ex);return i!==f.ex&&(l?.(),l=Zp(m,()=>Qp(u)),i=f.ex),zt(m(),f)}return t("prototype",f)},{detached:!0});return e.set(r,u),u},"computedNode");return n});var tm=a(o=>/^on[A-Z]/.test(o),"isHandler");function rf(o,s){let t={...o};if(!s)return t;for(let[e,n]of Object.entries(s))if(n!==void 0)if(e==="className")t.className=t.className?`${t.className} ${n}`:n;else if(e==="style"){if(n&&typeof n=="object"){let r=t.style&&typeof t.style=="object"?t.style:null;t.style={...r,...n}}}else if(tm(e)&&typeof n=="function"&&typeof t[e]=="function"){let r=t[e];t[e]=i=>(r(i),n(i))}else t[e]=n;return t}a(rf,"resolveOverrides");var Ds={outline:"2px solid #e6a700",outlineOffset:"-2px",color:"#b45309",backgroundColor:"rgba(230, 167, 0, 0.08)",fontFamily:"ui-sans-serif, system-ui, sans-serif",fontSize:"12px",fontWeight:600,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",padding:"4px 8px"};function of(o,{name:s,...t}={}){let e=s?`Missing: ${s}`:"Missing component",n=[t.className,"jucie-missing"].filter(Boolean).join(" "),r=t.style&&typeof t.style=="object"?t.style:{},i={...Ds,...r,outline:r.outline??Ds.outline,outlineOffset:r.outlineOffset??Ds.outlineOffset,color:r.color??Ds.color};return i.width==null&&i.minWidth==null&&(i.minWidth=80),i.height==null&&i.minHeight==null&&(i.minHeight=32),o("div",{...t,className:n,style:i,"data-missing-name":s??""},e)}a(of,"missing");function Bs(o,s){return o&&typeof o=="object"?{...o,...s}:s}a(Bs,"withRenderStyle");var sf=A("node",(o,s,t)=>{let e=o("registry"),n=s.view==="design",r=a((i,l,u)=>{let f=t("attributes",i,l);return u&&(f.style=Bs(f.style,u)),f},"instanceAttributes");return(i,{ctx:l,instanceRid:u})=>{let f=i.actor?.node;if(!f)return null;let p=t("render",i,l);try{if(p===!1)return null;switch(f.type){case void 0:case"root":return f.children?.length?t("children",i,f.children,{ctx:l}):null;case"element":{let m=t("attributes",i,l),g=i.rootOf&&e.getPuppet(i.rootOf);if(g){let b=g.ctx??g.runtime.context.ctx,v=t("renderStyle",g,b);m=rf(m,r(g,b,v))}return p&&(m.style=Bs(m.style,p)),e.createElement(f.tagName,m,t("elementContent",i,f,{ctx:l,instanceRid:u}))}case"frame":{let m=t("attributes",i,l);return p&&(m.style=Bs(m.style,p)),e.createElement(f.tagName,m,t("children",i,f.children,{ctx:l}))}case"instance":{let m=t("component",f);if(!m)return n?of(e.createElement,{name:f.component,...r(i,l,p)}):null;let g=e.getComponentMeta(f.library||"local",f.component),b=g?.origin==="jucie-library"||(!f.library||f.library==="local")&&g?.origin!=="source",v=t("slots",i,f.slots,{ctx:l,instanceRid:u});if(b)return e.createElement(m,{puppet:i,ctx:l});let x=r(i,l,p),S={};for(let[w,E]of Object.entries(v))S[w]=E(null);return!f.library||f.library==="local"?e.renderSource(m,{...x,...S},g):e.createElement(m,{...x,...S})}case"component":{if(i.actor.app.config?.mode==="components"){let{ctx:m}=o("context").componentContext(i,{name:i.actor.id});return e.createElement("div",t("attributes",i,l),t("children",i,f.children,{ctx:m}))}return null}case"slot":{let m=t("attributes",i,l);if(p&&(m.style=Bs(m.style,p)),!u)return e.createElement("div",m,null);let g=e.getPuppet(u),b=g.actor.node?.slots?.find(S=>S.id===i.actor.id),v=b?t("slotChildren",g,i,b,{ctx:g.ctx??o("context").ctx,instanceRid:g.instanceRid}):null,x=v?.length>0;return!x&&!n?null:e.createElement("div",m,x?v:t("children",i,f.children,{ctx:l}))}default:return console.warn("Unknown node type",f),null}}catch(m){return console.warn("Error resolving node",m),null}finally{i.notifyMount()}}});var cf=A("nodeRepeat",(o,s,t)=>{let e=o("registry"),n=s.view==="design";return(r,{ctx:i,instanceRid:l})=>{try{let u=t("repeatData",r.actor.node.repeat,i);if(u.length===0)return n?t("node",r,{ctx:i,instanceRid:l}):null;let f=o("context"),p=a(v=>`${r.rid}:clone:${v}`,"cloneContextId"),m=new Set(u.map(([v])=>v)),g=r.getCloneEntries().map(([v])=>v),b=r.reconcileClones(m);for(let v of b)e.getPuppet(v)?.destroy();for(let v of g)m.has(v)||f.releaseContext(p(v));return u.map(([v,x])=>{let S=f.childContext(p(v),r.rid,i,x),w=r.getClone(v),E=e.resolvePuppet(r.actor,w,{ctx:S,instanceRid:l,cloneOf:r.rid});return r.setClone(v,E.rid),e.createElement(E.render,{key:E.rid})})}catch(u){return console.error("Error resolving node repeat",u),null}}});var af=A("repeatData",(o,s,t)=>(e,n)=>{let{as:r,key:i,index:l,keyOn:u,descriptor:f}=e,p=t("descriptor",f)?.(n);return p?(Array.isArray(p)?p.map((b,v)=>[u&&b[u]!==void 0?String(b[u]):String(v),b,v]):Object.entries(p).map(([b,v])=>[u&&v[u]!==void 0?String(v[u]):b,v,b])).map(([b,v,x],S)=>[b,{[r]:v,[l]:S,[i]:x}]):[]});var lf=A("render",(o,s,t)=>{let e=o("lifecycle");return(n,r)=>{let i=t("renderStyle",n,r);return n.reconcileShouldRender(i===null,()=>e.notifyUpdate(n.rid)),i}});var em={opacity:.2},uf=A("renderStyle",(o,s,t)=>{let e=s.view==="design"?em:!1,n=a((r,i)=>{if(!r)return!0;try{return!!t("descriptor",r)(i)}catch(l){return console.error("Error resolving render condition:",l),!!r.value}},"isVisible");return(r,i)=>n(r.actor.node.render,i)?null:e});var nm=new Set(["disabled","readonly","hidden","aria-disabled"]);function ff(o){return nm.has(o)}a(ff,"isBehavioralAttribute");function hf(o,s){return o?t=>{o(t),s(t)}:s}a(hf,"composeHandler");var df=A("attributes",(o,s,t)=>{let e=o("registry"),n=s.view==="design",r=s.view!=="production",i=s.framework,l=a(f=>t("descriptor",f),"resolve"),u=a(f=>{if(f.type!=="instance")return null;let p=!f.library||f.library==="local",m=e.getComponentMeta(f.library||"local",f.component)?.origin;if(p&&m==="source"||!p&&m!=="jucie-library")return null;let v=e.describeComponent(f.library,f.component);return v?new Set([...v.propNames,...v.eventNames]):null},"declaredBy");return(f,p)=>{let m={},g=u(f.actor.node);try{if(f.actor.node.events&&!n)for(let x of f.actor.node.events){if(!x.name||g?.has(x.name))continue;let S=l(x)(p);if(S){let w=x.name;i==="react"&&w==="onInput"&&(w="onChange"),m[w]=E=>{try{return S(E)}catch(j){console.error("Error in event handler",w,j)}}}}}catch(x){console.error("Error resolving events",x)}let b=null;try{if(f.actor.node.attributes){for(let x of f.actor.node.attributes)if(x.name&&!(n&&ff(x.name))){if(x.name==="model"){b=x;continue}m[x.name]=l(x)(p)}}}catch(x){console.error("Error resolving attributes",x)}try{let x=f.actor.node.tagName?.toLowerCase();if(x==="input"||x==="textarea"||x==="select"){let w=b?.binding??f.actor.node.model?.binding;if(w){let E=(m.type??"").toLowerCase(),j=`${x}:${E}`,N,$,C,T;switch(j){case"input:checkbox":N="checked",$="onChange",C=!!t("binding",w,p),T=a(L=>{try{p.$set(w,L.target.checked)}catch(O){console.error("Error in model binding (checkbox)",O)}},"writeHandler");break;case"input:radio":N="checked",$="onChange",C=t("binding",w,p)===m.value,T=a(L=>{try{p.$set(w,L.target.value)}catch(O){console.error("Error in model binding (radio)",O)}},"writeHandler");break;default:N="value",$=i==="react"?"onChange":"onInput",C=t("binding",w,p)??"",T=a(L=>{try{p.$set(w,L.target.value)}catch(O){console.error("Error in model binding",O)}},"writeHandler")}m[N]=C,m[$]=hf(m[$],T)}else i==="react"&&("value"in m||"checked"in m)&&("value"in m&&m.value==null&&(m.value=""),m.onChange||(m.onChange=()=>{}))}}catch(x){console.error("Error resolving form controls",x)}try{if(f.actor.node.props&&f.actor.node.props.length>0)for(let x of f.actor.node.props){if(!x.name||g)continue;let S=l(x)(p);S!=null&&(m[x.name]=S)}}catch(x){console.error("Error resolving props",x)}try{let x=[f.actor.id];if(f.actor.node.className&&f.actor.node.className.length>0)for(let S of f.actor.node.className){let w=l(S)(p);w&&x.push(w)}m.className=x.join(" ")}catch(x){console.error("Error resolving className",x)}try{if(f.actor.node.destination){let x=f.actor.node.destination;switch(x.type){case"url":{let S=x.path;m.href=S&&typeof S=="object"&&"mode"in S?l(S)(p):S,x.target&&(m.target=x.target),x.target==="_blank"&&(m.rel="noopener noreferrer");break}case"page":{let S={};for(let[E,j]of Object.entries(x.params??{}))S[E]=j&&typeof j=="object"&&"mode"in j?l(j)(p):j;let w=o("router")?.hrefFor(x.id,{params:S,query:x.query})??null;m.href=w??x.id,n||(m.onClick=hf(m.onClick,E=>{E.preventDefault(),p?.$router?.navigate(w??x.id,{replace:x.replace})}));break}}}}catch(x){console.error("Error resolving destination",x)}let v=f.actor.node[".interactionState"];if(n&&v&&v.length>0){let x=v[v.length-1];if(x.startsWith("&.")){let S=x.slice(2);m.className=m.className?`${m.className} ${S}`:S}else if(x.startsWith(".")){let S=x.slice(1);m.className=m.className?`${m.className} ${S}`:S}else if(x.startsWith(":")){let S=`force-${x.slice(1)}`;m.className=m.className?`${m.className} ${S}`:S}}try{if(f.actor.node.states&&!n)for(let x of f.actor.node.states){if(!x.name)continue;!!l(x)(p)&&(m.className=m.className?`${m.className} ${x.name}`:x.name)}}catch(x){console.error("Error resolving states",x)}return f.ref&&(m.ref=f.ref),f.rid&&(r&&(m["data-rid"]=f.rid),m["data-node-id"]=f.actor.id,m.key=f.rid,f.actor.node.name&&(m["data-name"]=f.actor.node.name),f.actor.node.id&&(m.id=f.actor.node.id)),n&&f.actor.node.childrenType==="text"&&(m.contentEditable="true",m.suppressContentEditableWarning=!0),".editingTextContent"in f.actor.node&&f.actor.node[".editingTextContent"]&&(m.contentEditable="true",m.suppressContentEditableWarning=!0,m.onClick=x=>{x.preventDefault(),x.stopPropagation()},m["data-editing-text"]="true"),m["data-type"]=f.actor.node.type,m}});function pf({context:o,registry:s,puppet:t,name:e,ctx:n,props:r}){let i=s.getSetup(e);if(!i)return n;let l=t.getSetup();return(!l||l.version!==i.version)&&(l={result:i.fn(r??{},n),version:i.version},t.setSetup(l)),o.childContext($s(t.rid),t.rid,n,l.result.locals??{})}a(pf,"runSetup");var mf=A("component",(o,s,t)=>{let e=o("registry");return n=>{let r=n.library||"local",i=n.component,l=e.getComponent(r,i);if(l)return l;let u=!n.library||n.library==="local",f,p;if(u?(f=e.getSetup(i)?.fn.template??i,p=e.getNode(f)?.component??i):(f=e.definitionIdOf(r,i),p=null),f&&e.hasNode(f)){let m=a(({puppet:g,ctx:b})=>{let v=e.getNodeChildren(f),x=o("context"),{ctx:S,props:w}=x.componentContext(g,{library:n.library,name:i,instanceId:g.actor.id,ctx:b}),E=pf({context:x,registry:e,puppet:g,name:p,ctx:S,props:w});return v?.length?v.length===1?t("child",g,v[0],{ctx:E,instanceRid:g.rid,rootOf:g.rid}):t("children",g,v,{ctx:E,instanceRid:g.rid}):null},"Host");return e.registerComponent(r,i,m,{origin:u?"local":"jucie-library",tagName:i,library:r,displayName:i}),m}return null}});var gf=A("child",o=>{let s=o("registry");return(t,e,{ctx:n,instanceRid:r,rootOf:i}={})=>{let l=t.actor.id,u=t.getChild(e),f=s.resolveActor(t.actor.app,e,{styleScope:t.actor.styleScope,parentId:l}),p=f&&s.resolvePuppet(f,u,{ctx:n,instanceRid:r,rootOf:i});return p?.render?(s.getNodeType(e)==="slot"&&r&&s.getPuppet(r)?.setSlot(e,p.rid),t.setChild(e,p.rid),s.createElement(p.render,{key:p.rid})):null}});var yf=A("children",(o,s,t)=>{let e=o("lifecycle");return(n,r=null,{ctx:i,instanceRid:l}={})=>{if(r=r??n.actor.node.children,typeof r=="string")return r;let u=Array.isArray(r)?r:[],f=n.reconcileChildren(u);if(f.length)for(let m of f)e.scheduleTeardown(m);if(!u.length)return[];let p=[];for(let m of u){let g=t("child",n,m,{ctx:i,instanceRid:l});g&&p.push(g)}return p}});var xf=A("elementContent",(o,s,t)=>(e,n,{ctx:r,instanceRid:i})=>{let{childrenType:l,options:u,children:f}=n;switch(l){case null:case"none":return null;case"text":return t("textContent",e,n,{ctx:r});case"options":return t("selectOptions",e,u,{ctx:r});case"*":case"children":default:return t("children",e,f,{ctx:r,instanceRid:i})}});function Kt(o){return Array.isArray(o?.textContent)?o.textContent:null}a(Kt,"textSegmentsOf");var Dr="\uFFFC";function Br(o){return!!(o.descriptor||o.block)}a(Br,"isAtomicSegment");function _s(o,s){if(o===s)return!0;if(!o||!s||typeof o!="object"||typeof s!="object")return!1;let t=Object.keys(o);if(t.length!==Object.keys(s).length)return!1;for(let e of t)if(o[e]!==s[e])return!1;return!0}a(_s,"valueEqual");function Ja(o,s){let t=Object.keys(o);if(t.length!==Object.keys(s).length)return!1;for(let e of t)if(!_s(o[e],s[e]))return!1;return!0}a(Ja,"formatsEqual");var rm=a((o,s)=>!Br(o)&&!Br(s)&&Ja(o.formats,s.formats),"canMerge");function Hs(o){if(!o||o.length===0)return[];let s=[{...o[0],formats:{...o[0].formats}}];for(let t=1;t<o.length;t++){let e=s[s.length-1],n=o[t];rm(e,n)?e.text+=n.text:s.push({...n,formats:{...n.formats}})}return s}a(Hs,"mergeAdjacentSegments");function R(o){return[{text:o??"",formats:{}}]}a(R,"plainTextToSegments");function Vt(o,s={}){return{text:Dr,descriptor:o,formats:{...s}}}a(Vt,"createDescriptorSegment");var om=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/;function _r(o){let s=typeof o=="string"?o.trim():"";return om.test(s)?s.split("."):null}a(_r,"toBindingPath");function sm(o){return{name:null,mode:"binding",value:null,binding:o,computed:null,code:null,error:null,removable:!0}}a(sm,"boundTo");function im(o){return{name:null,mode:"computed",value:null,binding:null,computed:`function (ctx) {
|
|
9
|
+
return ctx.${o}
|
|
10
|
+
}`,code:null,error:null,removable:!0}}a(im,"computing");function Xa(o){let s=_r(o);return Vt(s?sm(s):im(o.trim()))}a(Xa,"expressionToSegment");var cm=/\{\{([^}]+)\}\}/g;function kn(o){let s=o??"",t=[],e=0;for(let n of s.matchAll(cm))n.index>e&&t.push(...R(s.slice(e,n.index))),t.push(Xa(n[1])),e=n.index+n[0].length;return(e<s.length||t.length===0)&&t.push(...R(s.slice(e))),t}a(kn,"templateToSegments");var bf=Object.freeze({type:"paragraph"}),am=new Set(["div","section","article","aside","header","footer","main","li","td","th"]);function vf(o){return am.has(String(o??"").toLowerCase())}a(vf,"canHoldBlocks");function Za(o){return!!o?.block}a(Za,"isTerminator");function Us(o){return!!o?.some(Za)}a(Us,"hasBlocks");function Sf(o){switch(o?.type){case"heading":return`h${Math.min(6,Math.max(1,Number(o.level)||2))}`;case"quote":return"blockquote";case"code":return"pre";default:return"p"}}a(Sf,"tagForBlock");var lm=/^function \(ctx\) \{\n {2}return ctx\.([\s\S]+)\n\}$/;function um(o){if(o?.mode==="binding"&&o.binding?.length)return`{{${Array.isArray(o.binding)?o.binding.join("."):o.binding}}}`;if(o?.mode==="computed"){let s=typeof o.computed=="string"&&o.computed.match(lm)?.[1];return s?`{{${s}}}`:"{fn}"}return o?.mode==="value"?o.value==null?"":String(o.value):""}a(um,"pillText");function Qa(o){let s="";for(let t of o??[])s+=t.descriptor?um(t.descriptor):t.text;return Us(o)&&s.endsWith(`
|
|
11
|
+
`)?s.slice(0,-1):s}a(Qa,"segmentsToTemplate");var fm=Object.freeze({mode:"value",value:null,binding:null,computed:null,code:null,error:null});var wf=a((o,s=10)=>o.length>s?o.slice(0,s)+"\u2026":o,"truncate");function el(o){if(!o)return"?";if(o.mode==="binding"&&o.binding?.length){let s=Array.isArray(o.binding)?o.binding.join("."):String(o.binding);return wf(s,24)}return o.mode==="computed"&&o.computed||o.mode==="code"?"\u0192n\u2026":o.mode==="value"&&o.value!=null?wf(String(o.value)):"\xA0"}a(el,"descriptorLabel");function nl(o){return o?o.mode==="binding"&&o.binding?.length?Array.isArray(o.binding)?o.binding.join("."):String(o.binding):o.mode==="computed"?o.computed??"":o.mode==="code"?o.code??"":o.mode==="value"&&o.value!=null?String(o.value):"":""}a(nl,"descriptorTitle");function Hr(o){return!o||typeof o!="string"||!o.includes("@")?o:o.split(",").map(s=>{let t=s.trim().replace(/^['"]|['"]$/g,""),e=t.indexOf("@"),n=e===-1?t:t.slice(0,e).trim();return n.includes(" ")?`"${n}"`:n}).join(", ")}a(Hr,"stripFontSource");function kf(o,s,t){if(!o.includes(`
|
|
12
|
+
`))return o;let e=[];return o.split(`
|
|
13
|
+
`).forEach((n,r)=>{r>0&&e.push(s("br",{key:`${t}-br${r}`})),n&&e.push(n)}),e}a(kf,"withBreaks");var gm=/^(https?:|mailto:|tel:|[/#?.]|[^:]*$)/i;function ym(o){if(typeof o!="string")return null;let s=o.trim();return gm.test(s)?s:null}a(ym,"safeHref");var xm={fontFamily:"fontFamily",fontSize:"fontSize",fontWeight:"fontWeight",color:"color",letterSpacing:"letterSpacing"};function $f(o,s,t,e){let n=[];s.code&&n.push(["code",null]),s.sup?n.push(["sup",null]):s.sub&&n.push(["sub",null]),s.strike&&n.push(["s",null]),s.underline&&n.push(["u",null]),s.italic&&n.push(["em",null]),s.bold&&n.push(["strong",null]),s.backgroundColor&&n.push(["mark",{style:{backgroundColor:s.backgroundColor,color:"inherit"}}]);let r={};for(let[l,u]of Object.entries(xm))s[l]==null||s[l]===""||(r[u]=l==="fontFamily"?Hr(s[l]):s[l]);if(Object.keys(r).length&&n.push(["span",{style:r}]),s.link){let u={href:ym(s.link.href)??void 0};s.link.target&&(u.target=s.link.target,s.link.target==="_blank"&&(u.rel="noopener noreferrer")),n.push(["a",u])}if(n.length===0)return o;let i=o;return n.forEach(([l,u],f)=>{let p=f===n.length-1;i=t(l,p?{...u,key:e}:u,i)}),i}a($f,"wrapFormats");function bm(o){return o==null||typeof o=="function"?"":typeof o=="object"?JSON.stringify(o):String(o)}a(bm,"descriptorText");function Cf(o,s,{design:t=!0,evaluate:e,statusOf:n,pillProps:r,editingIndex:i}={}){let l=o.flatMap(([f,p])=>{if(f.block)return[s("br",{key:`seg-${p}`})];if(f.descriptor&&!t){let b=bm(e?.(f.descriptor));if(!b)return[];let v=kf(b,s,`seg-${p}`),x=f.formats;return x&&Object.keys(x).length?$f(v,x,s,`seg-${p}`):v}if(f.descriptor){let b=el(f.descriptor),v=n?.(f.descriptor),x=[nl(f.descriptor),v?.reason].filter(Boolean).join(" \u2014 ");return s("span",{...r,key:`seg-${p}`,contentEditable:"false",class:"descriptor-pill","data-seg-index":p,"data-label":b,"data-state":v?.state,"data-editing":p===i?"true":void 0,title:x||void 0},Dr)}let m=kf(f.text,s,`seg-${p}`),g=f.formats;return!g||Object.keys(g).length===0?m:$f(m,g,s,`seg-${p}`)}),u=o[o.length-1]?.[0];return u&&!u.descriptor&&!u.block&&u.text.endsWith(`
|
|
14
|
+
`)&&l.push(s("br",{key:"filler","data-filler":"true"})),l}a(Cf,"renderRuns");function Af(o,s,t,e,n){let r={key:`b${t}`};n.design&&(r["data-block"]="true");let i={};o.align&&(i.textAlign=o.align),o.lineHeight&&(i.lineHeight=o.lineHeight),Object.keys(i).length&&(r.style=i);let l=Cf(s,e,n);return l.length===0&&l.push(e("br",{key:"filler","data-filler":"true"})),e(Sf(o),r,l)}a(Af,"renderBlock");function vm(o,s,t){let e=[],n=[];return o.forEach((r,i)=>{if(!Za(r)){n.push([r,i]);return}e.push(Af(r.block,n,e.length,s,t)),n=[]}),n.length&&e.push(Af(bf,n,e.length,s,t)),e}a(vm,"renderBlocks");function rl(o,s,{blocks:t=!1,...e}={}){return t&&Us(o)?vm(o,s,e):Cf(o.map((n,r)=>[n,r]),s,e)}a(rl,"renderSegments");var Sm={suppressContentEditableWarning:!0};function wm(o,s){for(let t of s){let e=t.formats,n=e?.fontFamily;!n||n.includes("var(")||o.resolve(n,String(e.fontWeight??(e.bold?"700":"400")),e.italic?"italic":"normal")}}a(wm,"requestSegmentFonts");var Ef=A("textContent",(o,s,t)=>{let e=o("registry"),n=s?.view==="design",r,i=a(()=>(r===void 0&&(r=o("fontResolver")??null),r),"getFontResolver"),l,u=a(()=>(l===void 0&&(l=o("nodeGraph")??null),l),"getNodeGraph"),f=a(p=>m=>{if(m?.mode!=="binding")return null;let g=m.binding,b=Array.isArray(g)?g:_r(g);return b?u()?.bindingStatus(p,b)??null:null},"statusFor");return(p,m,{ctx:g}={})=>{try{let b=Kt(m);if(!b)return null;let v=e.getCreateElement();if(!v)return b.map(w=>w.descriptor?"":w.text).join("");let x=i();x&&wm(x,b);let S=rl(b,v,{blocks:vf(p.actor.node?.tagName),design:n,evaluate:w=>t("descriptor",w)(g),statusOf:n?f(p):void 0,editingIndex:n?m?.[".editingDescriptor"]:void 0,pillProps:Sm});return S.length===1&&typeof S[0]=="string"?S[0]:S}catch(b){console.error("Error resolving textContent",b)}}});var Rf=A("selectOptions",(o,s,t)=>{let e=o("registry");return(n,r=null,{ctx:i}={})=>{let l=r?t("descriptor",r)?.(i):null;return Array.isArray(l)?l.map((u,f)=>e.createElement("option",{value:u?.value,key:f},u?.label??u?.value)):[]}});var Tf=A("slots",(o,s,t)=>(e,n,{ctx:r,instanceRid:i})=>{if(!n||n.length===0)return{};for(let l of n)e.setSlotThunk(l.id,u=>t("slotChildren",e,u,l,{ctx:r,instanceRid:i}));return e.getSlotThunks()});var Nf=A("slotChildren",(o,s,t)=>{let e=o("lifecycle");return(n,r,i,{ctx:l,instanceRid:u}={})=>{let{id:f,children:p,childrenType:m}=i;if(!f)return[];if(m==="text")return t("textContent",n,i,{ctx:l});if(typeof p=="string")return p;let g=Array.isArray(p)?p:[],b=n.reconcileSlotChildren(f,g);if(b.length)for(let x of b)e.scheduleTeardown(x);if(g.length===0)return[];let v=[];for(let x of g){let S=t("slotChild",n,r,f,x,{ctx:l,instanceRid:u});S&&v.push(S)}return v}});var Pf=A("slotChild",o=>{let s=o("registry");return(t,e,n,r,{ctx:i,instanceRid:l}={})=>{let u=e?.actor?.id??t.actor.id,f=t.getSlotChild(n,r),p=s.resolveActor(t.actor.app,r,{styleScope:t.actor.styleScope,parentId:u}),m=p&&s.resolvePuppet(p,f,{ctx:i,instanceRid:l});return m?.render?(t.setSlotChild(n,r,m.rid),s.createElement(m.render,{key:m.rid})):null}});var jf=[Ku,Vu,Gu,Qu,tf,ef,nf,sf,cf,af,lf,uf,df,mf,gf,yf,xf,Ef,Rf,Tf,Nf,Pf];var Of=A("sceneValue",(o,s)=>{let t=s.scene,e=s.sceneOverlay??null,n=a((r,i)=>i.reduce((l,u)=>l?.[u],r),"walk");return r=>e&&r[0]==="nodes"&&r.length>1&&e.has(r[1])?n(e.get(r[1]),r.slice(2)):n(t,r)});var $n,be,Wr,ve,Ur,qr,ol,qs=class qs extends km{constructor(){super(...arguments);d(this,ve);d(this,qr);d(this,$n,new Map);d(this,be,new Map);d(this,Wr,a((t,...e)=>{let n=c(this,be).get(t);if(!n){let r=Array.from(c(this,be).keys()).join(", ");throw new Error(`Resolve.dispatch: no resolver "${t}" (registered: ${r})`)}return n(...e)},"#dispatch"))}actions(t,e){return h(this,ve,Ur).call(this,jf),e.scene&&h(this,ve,Ur).call(this,[Of]),h(this,ve,Ur).call(this,e.resolvers??[]),{use:(...n)=>{h(this,ve,Ur).call(this,n.flat())},has:n=>c(this,be).has(n),dispatch:(n,...r)=>c(this,Wr).call(this,n,...r),reset:(...n)=>{let r=n.length?n:Array.from(c(this,$n).keys());for(let i of r){let l=c(this,$n).get(i);l&&h(this,qr,ol).call(this,l)}}}}};$n=new WeakMap,be=new WeakMap,Wr=new WeakMap,ve=new WeakSet,Ur=a(function(t){for(let e of t){if($m(e)!==Ua)throw new Error("Resolve.use: expected a defineResolver() definition");c(this,$n).set(e._name,e),h(this,qr,ol).call(this,e)}},"#use"),qr=new WeakSet,ol=a(function(t){c(this,be).set(t._name,t(this.inject,this.config,c(this,Wr)))},"#build"),a(qs,"Resolve"),k(qs,"manifest",{name:"Resolve",namespace:"resolve"});var Ws=qs;import{ServiceProvider as Cm}from"@jucie.io/engine";import{defineStore as Em,rebuildStore as Rm,destroyStore as Tm}from"@jucie.io/reactive";import{setProjectMain as Nm}from"jucie:sdk";function Mf(o){return Array.isArray(o)?`List of ${Mf(o[0])}`:o&&typeof o=="object"?"Map":String(o)}a(Mf,"describe");function zs(o,s,t,e,n="state"){let r=[],i=a((l,u,f)=>{if(r.push({path:l,type:n,dot:l.join("."),hint:Mf(u)}),l.length-1>=4||Array.isArray(u))return;if(u&&typeof u=="object"&&u["*"]!==void 0){for(let m of Object.keys(f??{}))i([...l,m],u["*"],f[m]);return}let p=t.types?.[u];if(p)for(let[m,g]of Object.entries(p))i([...l,m],g,f?.[m])},"visit");return i(o,s,e),r}a(zs,"typeSchemaPaths");function Ff(o,s,t={}){return Object.entries(s.fields??{}).flatMap(([e,n])=>zs([`$${o}`,e],n,s,t?.[e]))}a(Ff,"storeSchemaPaths");var If=new Set(["string","number","boolean","enum"]);function Am(o,s={},t={}){for(let n of Object.keys(t))if(!Object.hasOwn(s,n))throw new Error(`${o} has no option "${n}" (it has: ${Object.keys(s).join(", ")||"none"})`);let e={};for(let[n,r]of Object.entries(s)){if(!If.has(r?.type))throw new Error(`${o}'s option "${n}" has type ${JSON.stringify(r?.type)} (one of ${[...If].join(", ")})`);let i=t[n]===void 0?r.default:t[n];if(r.type==="enum"&&!r.options?.includes(i))throw new Error(`${o}'s option "${n}" is ${JSON.stringify(i)} (one of ${(r.options??[]).map(l=>JSON.stringify(l)).join(", ")})`);if(r.type!=="enum"&&i!==void 0&&(typeof i!==r.type||Number.isNaN(i)))throw new Error(`${o}'s option "${n}" must be a ${r.type} (got ${JSON.stringify(i)})`);e[n]=i}return e}a(Am,"resolveOptionValues");function Ks({name:o,options:s,setup:t=null},e,n=globalThis.document){let r=Am(o,s??{},e??{}),i=[];t?.(r,{stylesheet:u=>i.push(String(u))});let l=i.join(`
|
|
15
|
+
`);if(n){let u=[...n.head.querySelectorAll("style[data-jucie-library]")].find(f=>f.dataset.jucieLibrary===o);u||(u=n.createElement("style"),u.dataset.jucieLibrary=o,n.head.appendChild(u)),u.textContent=l}return{values:r,css:l}}a(Ks,"runLibrarySetup");var _,An,zr,Kr,Vr,sl,Gs,Lf,Gr,il,Ys,Df,Yr,cl,Js,Bf,Xs,_f,Zs,Hf,Qs,Uf,ti=class ti extends Cm{constructor(){super(...arguments);d(this,Vr);d(this,Gs);d(this,Gr);d(this,Ys);d(this,Yr);d(this,Js);d(this,Xs);d(this,Zs);d(this,Qs);d(this,_,new Map);d(this,An,new Set);d(this,zr,!1);d(this,Kr,new Map)}getters(){return{libraryStylesheets:()=>Object.fromEntries(c(this,Kr))}}actions(t,e){return{addStore:(n,r)=>{c(this,_).set(n,{store:r,paths:[]})},getStore:n=>c(this,_).get(n)?.store,getSchema:n=>c(this,_).get(n)?.schema??null,hasStore:n=>c(this,_).has(n),removeStore:n=>{c(this,_).delete(n)},getCurrentStoreNames:()=>Array.from(c(this,_).keys()),onStoresChange:n=>(c(this,An).add(n),()=>c(this,An).delete(n)),swapCompiledModule:(n,r,i)=>h(this,Xs,_f).call(this,n,r,i),getContextPaths:()=>{let n=[];for(let{paths:r}of c(this,_).values())r&&n.push(...r);return n.push(...t("router")?.contextPaths??[]),n.push(...t("animator")?.contextPaths??[]),n},initialize:n=>h(this,Gs,Lf).call(this,n)}}};_=new WeakMap,An=new WeakMap,zr=new WeakMap,Kr=new WeakMap,Vr=new WeakSet,sl=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),Gs=new WeakSet,Lf=a(function(t=!0){if(c(this,zr))return;y(this,zr,!0),h(this,Gr,il).call(this,h(this,Vr,sl).call(this,[".stores"])??{});let e=this.config?.scene?null:this.inject("state")?.matcher;t&&e&&e.createMatcher([".stores"],n=>{h(this,Gr,il).call(this,n??{})})},"#initializeStores"),Gr=new WeakSet,il=a(function(t){for(let[e,n]of Object.entries(t)){let r=h(this,Js,Bf).call(this,e,n),i=c(this,_).get(e);i?i.paths=r:c(this,_).set(e,{store:null,paths:r})}for(let[e,{store:n}]of c(this,_))!t[e]&&!n&&h(this,Ys,Df).call(this,e)},"#syncStoreContextPaths"),Ys=new WeakSet,Df=a(function(t){let e=c(this,_).get(t)?.store;e&&Tm(e),c(this,_).delete(t),e&&h(this,Yr,cl).call(this)},"#teardownStore"),Yr=new WeakSet,cl=a(function(){for(let t of c(this,An))t()},"#notifyStoresChange"),Js=new WeakSet,Bf=a(function(t,e){let n=[];if(e?.state)for(let{key:r}of e.state)n.push({path:[`$${t}`,r],type:"state",dot:`$${t}.${r}`,hint:"Reactive state value"});if(e?.computed)for(let{name:r}of e.computed)n.push({path:[`$${t}`,r],type:"computed",dot:`$${t}.${r}`,hint:"Computed value"});if(e?.actions)for(let{name:r}of e.actions)n.push({path:[`$${t}`,r],type:"action",dot:`$${t}.${r}`,hint:"Store action"});return n},"#buildStorePaths"),Xs=new WeakSet,_f=a(function(t,e,n){let r=this.inject("log");if(e==="store"){let i=h(this,Zs,Hf).call(this,t,n??{}),l=h(this,Qs,Uf).call(this,t,n??{}),u=n?.schema??null,f=c(this,_).get(t),p=u!==(f?.schema??null);if(f?.store)Rm(f.store,i),f.paths=l,f.schema=u;else{let m=Em(t,i);m(),c(this,_).set(t,{store:m,paths:l,schema:u}),h(this,Yr,cl).call(this)}p&&this.inject("relay").broadcast("schema:change",t),r.debug(`[ModuleManager] hot-swapped store module: ${t}`)}else if(e==="component"){let i=typeof n=="function"?n:n?.default;if(!i)return;let l=this.inject("registry");i.__jux===!0?l.setSetup(t,i):this.inject("components").register(t,i),r.debug(`[ModuleManager] hot-swapped component module: ${t}`)}else if(e==="library"){if(!n?.components)return;this.inject("registry").loadSources({[t]:n}),r.debug(`[ModuleManager] registered component library: ${t}`)}else if(e==="main"){if(typeof n!="function"){r.warn("[ModuleManager] src/main.js must default-export setup(...), e.g. export default setup((app) => { ... })");return}Nm(n),r.debug("[ModuleManager] registered project main")}else if(e==="librarySetup"||e==="usedLibrarySetup"){let i=n?.name,l={};if(e==="usedLibrarySetup"){let u=h(this,Vr,sl).call(this,[".libraries",i]);if(!u){r.debug(`[ModuleManager] ${i} isn't loaded, so its setup doesn't run`);return}l=u.values}try{let{css:u}=Ks(n,l);c(this,Kr).set(i,u),r.debug(`[ModuleManager] ran ${i}'s setup`)}catch(u){r.error(`[ModuleManager] ${i}'s setup failed: ${u.message}`)}}},"#swapCompiledModule"),Zs=new WeakSet,Hf=a(function(t,e){let n=this.inject("log"),r={state:e.state??{},computed:{},actions:{}};for(let[i,l]of Object.entries(e.computed??{}))typeof l=="function"&&(r.computed[i]=a(function(f,p){try{return l.call(f,f,p)}catch(m){n.warn(`[Store:${t}] computed "${i}" threw: ${m.message}`);return}},"safeComputed"));for(let[i,l]of Object.entries(e.actions??{}))typeof l=="function"&&(r.actions[i]=a(function(...f){try{return l.apply(this,f)}catch(p){n.warn(`[Store:${t}] action "${i}" threw: ${p.message}`)}},"safeAction"));return r},"#toStoreConfig"),Qs=new WeakSet,Uf=a(function(t,e){let n=[];if(e.schema){let r=Object.fromEntries(Object.entries(e.state??{}).map(([i,l])=>[i,l?.default]));n.push(...Ff(t,e.schema,r))}else if(e.state)for(let r of Object.keys(e.state))n.push({path:[`$${t}`,r],type:"state",dot:`$${t}.${r}`,hint:"Reactive state value"});if(e.computed)for(let r of Object.keys(e.computed))n.push({path:[`$${t}`,r],type:"computed",dot:`$${t}.${r}`,hint:"Computed value"});if(e.actions)for(let r of Object.keys(e.actions))n.push({path:[`$${t}`,r],type:"action",dot:`$${t}.${r}`,hint:"Store action"});return n},"#buildStorePathsFromModule"),a(ti,"ModuleManager"),k(ti,"manifest",{name:"ModuleManager",namespace:"modules"});var Vs=ti;import{ServiceProvider as Pm}from"@jucie.io/engine";import{createComputed as jm,createSubscriber as Om}from"@jucie.io/reactive";function Mm(o){return{displayName:o.name,category:"components",keywords:[o.name,"jux","component"],library:"local",tagName:o.component,origin:"jux"}}a(Mm,"juxEntry");var Cn,Jr,al,ni,Wf,ri,qf,oi=class oi extends Pm{constructor(){super(...arguments);d(this,Jr);d(this,ni);d(this,ri);d(this,Cn,null)}actions(t){return{list:()=>h(this,Jr,al).call(this)(),onChange:e=>Om(h(this,Jr,al).call(this),e),register:(e,n,r={})=>t("registry").registerComponent("local",e,n,{displayName:e.replace(/([A-Z])/g," $1").trim()||e,category:"components",keywords:[e,"component"],tagName:e,origin:"source",...r}),unregister:(e,n)=>t("registry").unregisterComponent(e,n)}}};Cn=new WeakMap,Jr=new WeakSet,al=a(function(){return c(this,Cn)||y(this,Cn,jm(()=>[...h(this,ni,Wf).call(this),...h(this,ri,qf).call(this)])),c(this,Cn)},"#getCatalog"),ni=new WeakSet,Wf=a(function(){return this.inject("registry").getAllComponents().filter(t=>t.library!=="local"||t.meta?.origin==="source").map(t=>t.meta)},"#codedComponents"),ri=new WeakSet,qf=a(function(){let t=this.inject("resolve").dispatch("sceneValue",["nodes"])??{},e=[];for(let[n,r]of Object.entries(t))r?.type==="component"&&(n.startsWith(".")&&!r.component||e.push(r.component?Mm(r):{displayName:r.name||n,category:"local",keywords:[r.name,"component"],library:null,tagName:n}));return e},"#sceneGraphComponents"),a(oi,"ComponentManager"),k(oi,"manifest",{name:"ComponentManager",namespace:"components"});var ei=oi;import{createComputed as ll,addEffect as ul}from"@jucie.io/reactive";import{ServiceProvider as Fm}from"@jucie.io/engine";function si(o){return o==null?null:typeof o=="string"?{mode:"value",value:o,binding:null,computed:null}:o}a(si,"normalizeActionDescriptor");var z,En,Rn,Xr,H,Gt,Zr,fl,fi,zf,Qr,hl,hi,Kf,di,Vf,to,dl,eo,pl,pi,Gf,Tn,ii,mi,Yf,Nn,ci,gi,Jf,no,ml,Pn,ai,yi,Xf,jn,li,xi=class xi extends Fm{constructor(){super(...arguments);d(this,Zr);d(this,fi);d(this,Qr);d(this,hi);d(this,di);d(this,to);d(this,eo);d(this,pi);d(this,Tn);d(this,mi);d(this,Nn);d(this,gi);d(this,no);d(this,Pn);d(this,yi);d(this,jn);d(this,z,new Map);d(this,En,new Map);d(this,Rn,null);d(this,Xr,[]);d(this,H,new Map);d(this,Gt,new Map)}initialize(){let t=this.config,e=this.inject("relay");h(this,fi,zf).call(this),e.on("scene:unmount",n=>{for(let r of n)this.unbindPuppet(r)}),t?.view!=="design"&&(e.on("scene:mount",n=>{for(let r of n)this.bindPuppet(r)}),e.on("scene:update",n=>{for(let r of n)this.rebindPuppet(r)}))}getters(){return{contextPaths:()=>[{path:["$animator","play"],type:"action",dot:"$animator.play",hint:"Play an animation on a target"},{path:["$animator","cancel"],type:"action",dot:"$animator.cancel",hint:"Cancel an animation on a target"}]}}actions(){return{play:(t,e,n)=>this.play(t,e,n),cancel:(t,e)=>this.cancel(t,e),pauseAll:t=>this.pauseAll(t),resumeAll:t=>this.resumeAll(t),getAnimationAsset:t=>this.getAnimationAsset(t),bindPuppet:t=>this.bindPuppet(t),rebindPuppet:t=>this.rebindPuppet(t),unbindPuppet:t=>this.unbindPuppet(t),getLoadedAnimations:()=>{let t=new Set,e={};for(let[n,r]of c(this,z))t.has(r)||(t.add(r),e[n]=r);return e},getActiveAnimation:t=>{for(let e of c(this,H).values()){let n=e.get(t);if(n?.size)return[...n][0]}return null},seekAnimation:(t,e)=>{let n=!1;for(let l of c(this,H).values()){let u=l.get(t);if(u?.size){n=!0;for(let f of u)f.pause(),f.currentTime=e}}if(n)return;let r=c(this,z).get(t);if(!r)return;let i=this.inject("registry");for(let l of i.getPuppets()){if(!l)continue;let u=l.rid;if(!(l?.actor?.node?.animations??[]).some(m=>m.id===t))continue;let p=l.$el;if(p)try{let m=(r.keyframes??[]).map(v=>{let{offset:x,...S}=v;return{offset:x,...S}}),g=new KeyframeEffect(p,m,{duration:r.duration??300,fill:"both"}),b=new Animation(g,document.timeline);b.pause(),b.currentTime=e,h(this,Pn,ai).call(this,u,t,b)}catch{}}}}}getAnimationAsset(t){return c(this,z).get(t)??null}resolveTargets(t){if(t instanceof HTMLElement)return[t];if(t instanceof NodeList||Array.isArray(t))return Array.from(t);if(typeof t!="string")return[];let e=typeof document<"u"?document:null;if(!e)return[];let n=e.getElementById(t);if(n)return[n];let r=e.querySelectorAll(`[data-name="${t}"]`);if(r.length)return Array.from(r);let i=e.querySelector(`[data-node-id="${t}"]`);if(i)return[i];try{let l=e.querySelectorAll(t);return Array.from(l)}catch{return[]}}play(t,e,n={}){let r=c(this,z).get(e);if(!r)return console.warn(`Animator: animation "${e}" not found`),null;let i=this.resolveTargets(t);if(i.length===0)return null;let l=n.stagger??0,u=[];for(let f=0;f<i.length;f++){let p=i[f],m=r.keyframes.map(S=>({offset:S.offset,...S.properties})),g={duration:n.duration??r.duration??300,easing:n.easing??r.easing??"ease",fill:n.fill??r.fill??"none",direction:n.direction??r.direction??"normal",iterations:n.iterations??r.iterations??1,delay:(n.delay??r.delay??0)+l*f,endDelay:n.endDelay??r.endDelay??0},b=new KeyframeEffect(p,m,g),v=new Animation(b,p.ownerDocument.timeline);v.play();let x=p.dataset?.rid;x&&h(this,Pn,ai).call(this,x,e,v),u.push(v)}return u.length===1?u[0]:u}cancel(t,e){let n=this.resolveTargets(t);for(let r of n){let i=r.dataset?.rid;if(!i)continue;let l=c(this,H).get(i);if(l)if(e){let u=l.get(e);if(u){for(let f of u)f.cancel();l.delete(e)}}else{for(let u of l.values())for(let f of u)f.cancel();l.clear()}}}pauseAll(t){let e=this.resolveTargets(t);for(let n of e){let r=n.dataset?.rid;if(!r)continue;let i=c(this,H).get(r);if(i)for(let l of i.values())for(let u of l)u.pause()}}resumeAll(t){let e=this.resolveTargets(t);for(let n of e){let r=n.dataset?.rid;if(!r)continue;let i=c(this,H).get(r);if(i)for(let l of i.values())for(let u of l)u.play()}}bindPuppet(t){let n=this.inject("registry").getPuppet(t),r=n?.actor;if(r?.node?.animations?.length)for(let i of r.node.animations)h(this,pi,Gf).call(this,n,i)}rebindPuppet(t){this.unbindPuppet(t),this.bindPuppet(t)}unbindPuppet(t){let e=c(this,Gt).get(t);if(e){for(let n of e)n();c(this,Gt).delete(t)}h(this,yi,Xf).call(this,t)}};z=new WeakMap,En=new WeakMap,Rn=new WeakMap,Xr=new WeakMap,H=new WeakMap,Gt=new WeakMap,Zr=new WeakSet,fl=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),fi=new WeakSet,zf=a(function(){y(this,Rn,ll(()=>h(this,Zr,fl).call(this,["animations"]))),ul(c(this,Rn),t=>h(this,Qr,hl).call(this,t)),h(this,Qr,hl).call(this,c(this,Rn).call(this))},"#initReactiveAnimations"),Qr=new WeakSet,hl=a(function(t){let e=t?Object.keys(t):[],n=c(this,Xr),r=new Set(e),i=new Set(n);for(let l of e)i.has(l)||h(this,hi,Kf).call(this,l);for(let l of n)r.has(l)||h(this,di,Vf).call(this,l);y(this,Xr,e.slice())},"#processAnimations"),hi=new WeakSet,Kf=a(function(t){if(c(this,En).has(t))return;let e=ll(()=>h(this,Zr,fl).call(this,["animations",t]));c(this,En).set(t,e);let n=ul(e,i=>{if(!i){h(this,eo,pl).call(this,t),n();return}h(this,to,dl).call(this,t,i)}),r=e();r&&h(this,to,dl).call(this,t,r)},"#watchAnimation"),di=new WeakSet,Vf=a(function(t){c(this,En).delete(t),h(this,eo,pl).call(this,t)},"#unwatchAnimation"),to=new WeakSet,dl=a(function(t,e){let n=c(this,z).get(t);n?.name&&n.name!==e.name&&c(this,z).delete(n.name),c(this,z).set(t,e),e.name&&c(this,z).set(e.name,e)},"#indexAnimation"),eo=new WeakSet,pl=a(function(t){let e=c(this,z).get(t);e?.name&&c(this,z).delete(e.name),c(this,z).delete(t)},"#removeAnimationFromIndex"),pi=new WeakSet,Gf=a(function(t,e){let n=t.rid,r=si(e.play??e.trigger),i=si(e.reverse??null),l=si(e.reset??null);r&&h(this,Tn,ii).call(this,t,n,r,e,"play"),i&&h(this,Tn,ii).call(this,t,n,i,e,"reverse"),l&&h(this,Tn,ii).call(this,t,n,l,e,"reset")},"#bindActions"),Tn=new WeakSet,ii=a(function(t,e,n,r,i){if(n.mode==="value"||!n.mode){h(this,mi,Yf).call(this,t,e,n.value,r,i);return}if(n.mode==="binding"||n.mode==="computed"){let l=this.inject("context").ctx;if(!l)return;let u=this.inject("resolve").dispatch("descriptor",n),f=ll(()=>u(l)),p=f(),m=ul(f,g=>{let b=g;b&&!p&&h(this,Nn,ci).call(this,t,r,i),p=b});h(this,jn,li).call(this,e,m);return}},"#bindActionDescriptor"),mi=new WeakSet,Yf=a(function(t,e,n,r,i){if(n==="mount"){i==="play"&&h(this,no,ml).call(this,t,r);return}if(n==="manual")return;if(n==="visible"){let p=t.$el;if(!p)return;let m=!1,g=new IntersectionObserver(b=>{for(let v of b)v.isIntersecting&&!m&&(m=!0,h(this,Nn,ci).call(this,t,r,i),g.disconnect())},{threshold:.1});g.observe(p),h(this,jn,li).call(this,e,()=>g.disconnect());return}let l=t.$el;if(!l)return;let u=n==="focus"?"focusin":n==="focusout"?"focusout":n,f=a(()=>h(this,Nn,ci).call(this,t,r,i),"handler");l.addEventListener(u,f),h(this,jn,li).call(this,e,()=>l.removeEventListener(u,f))},"#bindEvent"),Nn=new WeakSet,ci=a(function(t,e,n){let r=t.rid;if(n==="play"){h(this,no,ml).call(this,t,e);return}if(n==="reverse"){let i=c(this,H).get(r);if(!i)return;let l=i.get(e.id);if(!l)return;for(let u of l)(u.playState==="running"||u.playState==="paused")&&u.reverse();return}if(n==="reset"){let i=c(this,H).get(r);if(!i)return;let l=i.get(e.id);if(!l)return;for(let u of l)try{u.cancel()}catch{}l.clear();return}},"#executeAction"),gi=new WeakSet,Jf=a(function(t,e){let n=c(this,H).get(t);if(!n)return!1;let r=n.get(e);if(!r||r.size===0)return!1;for(let i of r)if(i.playState==="running"||i.playState==="pending")return!0;return!1},"#isPlayingBinding"),no=new WeakSet,ml=a(function(t,e){if(h(this,gi,Jf).call(this,t.rid,e.id))return;let n=e.target?this.resolveTargets(e.target):[t.$el];if(!n.length)return;let r=c(this,z).get(e.id);if(!r)return;let i=e.stagger??0;for(let l=0;l<n.length;l++){let u=n[l];if(!u)continue;let f=r.keyframes.map(v=>({offset:v.offset,...v.properties})),p={duration:e.duration??r.duration??300,easing:e.easing??r.easing??"ease",fill:e.fill??r.fill??"none",direction:e.direction??r.direction??"normal",iterations:e.iterations??r.iterations??1,delay:(e.delay??r.delay??0)+i*l,endDelay:e.endDelay??r.endDelay??0},m=new KeyframeEffect(u,f,p),g=new Animation(m,u.ownerDocument.timeline);g.play();let b=u.dataset?.rid??t.rid;h(this,Pn,ai).call(this,b,e.id,g)}},"#playOnPuppet"),Pn=new WeakSet,ai=a(function(t,e,n){c(this,H).has(t)||c(this,H).set(t,new Map);let r=c(this,H).get(t);r.has(e)||r.set(e,new Set),r.get(e).add(n),n.addEventListener("finish",()=>{r.get(e)?.delete(n)},{once:!0}),n.addEventListener("cancel",()=>{r.get(e)?.delete(n)},{once:!0})},"#trackAnimation"),yi=new WeakSet,Xf=a(function(t){let e=c(this,H).get(t);if(e){for(let n of e.values())for(let r of n)try{r.cancel()}catch{}c(this,H).delete(t)}},"#cancelAllForRid"),jn=new WeakSet,li=a(function(t,e){c(this,Gt).has(t)||c(this,Gt).set(t,new Set),c(this,Gt).get(t).add(e)},"#addCleanup"),a(xi,"Animator"),k(xi,"manifest",{name:"Animator",namespace:"animator"});var ui=xi;import{ServiceProvider as Dm}from"@jucie.io/engine";import{createSignal as Bm,createComputed as Zf,createSubscriber as _m,defineStore as Hm}from"@jucie.io/reactive";function bi(o){return(o("app")?.children??[]).map(t=>{let e=o(t),n=e?.route;if(!n?.path)return null;let r=n.path.startsWith("/")?n.path:`/${n.path}`;return{id:t,name:e.name||null,path:r,dynamic:/(^|\/):[^/]/.test(r),home:n.home===!0,notFound:n.notFound===!0,title:n.title||null,seo:Array.isArray(n.seo)?n.seo:[],staticParams:n.staticParams||[]}}).filter(Boolean)}a(bi,"listRoutes");function vi(o,s={}){return o.replace(/:([^/]+)/g,(t,e)=>s[e]!=null?encodeURIComponent(s[e]):t)}a(vi,"buildRoutePath");var Im=/^[a-z][a-z0-9+.-]*:\/\//i;function Si(o,s){return o?Im.test(o)||!s?o:s+(o.startsWith("/")?o:`/${o}`):null}a(Si,"absoluteUrl");var Lm=a(o=>o.siteUrl?o.siteUrl.replace(/\/+$/,""):null,"siteBase");function gl(o,s,t={}){let e=o.seo??{},n=Lm(t),r=e.title||o.title||null,i=e.noindex===!0||o.notFound===!0;return{title:r&&t.titleTemplate?t.titleTemplate.replace("%s",r):r,siteTitle:t.title||null,description:e.description||t.description||null,canonical:o.notFound?null:e.canonical?Si(e.canonical,n):n&&n+s,image:Si(e.image||t.image,n),robots:i?"noindex":null}}a(gl,"resolvePageMeta");var yl=a(o=>o.mode==="value"?o.value:void 0,"staticDescriptorValue");function wi(o,s){let t={};for(let e of Array.isArray(o)?o:[]){if(!e?.name)continue;let n=s(e);n!=null&&n!==""&&(t[e.name]=n)}return t}a(wi,"readSeo");var Um=[["meta","name","description","content",o=>o.description],["link","rel","canonical","href",o=>o.canonical],["meta","name","robots","content",o=>o.robots],["meta","property","og:title","content",o=>o.title],["meta","property","og:description","content",o=>o.description],["meta","property","og:url","content",o=>o.canonical],["meta","property","og:image","content",o=>o.image],["meta","name","twitter:card","content",o=>o.image?"summary_large_image":"summary"]],ct,Se,On,we,Yt,Mn,ke,$e,Fn,Jt,Ae,Ce,Ei,In,co,Pt,Ln,Ri,Qf,Ee,ro,Re,oo,Dn,ki,Te,so,Ti,th,Ni,eh,Pi,nh,ji,rh,Oi,oh,Mi,sh,Fi,ih,ao,xl,Ne,io,Ii,ch,Bn,$i,lo,bl,uo,vl,_n,Ai,Li=class Li extends Dm{constructor(){super(...arguments);d(this,Ri);d(this,Ee);d(this,Re);d(this,Dn);d(this,Te);d(this,Ti);d(this,Ni);d(this,Pi);d(this,ji);d(this,Oi);d(this,Mi);d(this,Fi);d(this,ao);d(this,Ne);d(this,Ii);d(this,Bn);d(this,lo);d(this,uo);d(this,_n);k(this,"routes",[]);d(this,ct,Bm(null));d(this,Se,null);d(this,On,{});d(this,we,!1);d(this,Yt,!1);d(this,Mn,new Map);d(this,ke,[]);d(this,$e,[]);d(this,Fn,new Map);d(this,Jt,!1);d(this,Ae,[]);d(this,Ce,[]);d(this,Ei,null);d(this,In,null);d(this,co,null);d(this,Pt,null);d(this,Ln,null)}initialize(t,e){if(h(this,Ri,Qf).call(this),e.view!=="design"){if(e.embedded){y(this,Yt,!0);return}y(this,On,{basePath:e.basePath||""}),y(this,Pt,e.server??null),y(this,In,e.site??null),y(this,we,!0),h(this,Dn,ki).call(this),c(this,Pt)||h(this,Mi,sh).call(this)}}getters(){return{currentRoute:()=>this.getCurrentRoute(),pageHead:()=>c(this,Ln),contextPaths:()=>[{path:["$router","currentRoute"],type:"getter",dot:"$router.currentRoute",hint:"Current route (path, params, query, meta)"},{path:["$router","currentRoute","path"],type:"getter",dot:"$router.currentRoute.path",hint:"Current URL path"},{path:["$router","currentRoute","name"],type:"getter",dot:"$router.currentRoute.name",hint:"Current page name"},{path:["$router","currentRoute","params"],type:"getter",dot:"$router.currentRoute.params",hint:"Route parameters object"},{path:["$router","push"],type:"action",dot:"$router.push",hint:"Navigate to a path or location object (adds history entry)"},{path:["$router","replace"],type:"action",dot:"$router.replace",hint:"Navigate replacing the current history entry"},{path:["$router","go"],type:"action",dot:"$router.go",hint:"Move through history by delta (-1 = back, 1 = forward)"},{path:["$router","back"],type:"action",dot:"$router.back",hint:"Go back one history entry"},{path:["$router","forward"],type:"action",dot:"$router.forward",hint:"Go forward one history entry"},{path:["$router","navigate"],type:"action",dot:"$router.navigate",hint:"Navigate to a path or page id (legacy)"}]}}actions(){return{push:t=>this.push(t),replace:t=>this.replace(t),go:t=>this.go(t),back:()=>this.back(),forward:()=>this.forward(),navigate:(t,e)=>this.navigate(t,e),getCurrentUrl:()=>this.getCurrentUrl(),hrefFor:(t,e)=>this.hrefFor(t,e),setCallback:t=>this.setCallback(t),setMemoryMode:t=>this.setMemoryMode(t),getCurrentRoute:()=>this.getCurrentRoute()??null,beforeEach:t=>this.beforeEach(t),afterEach:t=>this.afterEach(t)}}beforeEach(t){return c(this,Ae).push(t),()=>{y(this,Ae,c(this,Ae).filter(e=>e!==t))}}afterEach(t){return c(this,Ce).push(t),()=>{y(this,Ce,c(this,Ce).filter(e=>e!==t))}}async push(t){let e=h(this,Ee,ro).call(this,t);return this.navigate(e.path,{query:e.query})}async replace(t){let e=h(this,Ee,ro).call(this,t);return this.navigate(e.path,{replace:!0,query:e.query})}async go(t){if(t===0)return!1;if(t<0)for(let e=0;e<Math.abs(t);e++){if(c(this,ke).length===0)return!1;let n=c(this,ct).call(this),r=c(this,ke).pop();if(n&&c(this,$e).push(n),e===Math.abs(t)-1){y(this,Jt,!0);let i=await this.navigate(r.path,{replace:!0});return y(this,Jt,!1),i}c(this,ct).call(this,r)}else for(let e=0;e<t;e++){if(c(this,$e).length===0)return!1;let n=c(this,ct).call(this),r=c(this,$e).pop();if(n&&c(this,ke).push(n),e===t-1){y(this,Jt,!0);let i=await this.navigate(r.path,{replace:!0});return y(this,Jt,!1),i}c(this,ct).call(this,r)}return!1}setCallback(t){return y(this,Se,t),()=>{y(this,Se,null)}}setMemoryMode(t=!0){y(this,Yt,!!t)}async navigate(t,e={}){let n=this.inject("log");typeof t=="string"&&(t=t.replace(/\/{2,}/g,"/")),this.routes.length===0&&h(this,Dn,ki).call(this),n.debug(`[Router] navigate("${t}") routes=${this.routes.length}`);let r=c(this,ct).call(this),i=h(this,ao,xl).call(this,t);if(n.debug(`[Router] from=${r?.path??"null"} \u2192 to=${i?.path??"null"}`),!i&&(n?.warn(`Router: No route found for: ${t}`),i=h(this,Oi,oh).call(this,t),!i))return!1;let l=r?h(this,Ne,io).call(this,r.pageId):null,u=h(this,Ne,io).call(this,i.pageId);for(let f of c(this,Ae))try{let p=await f(i,r);if(p===!1)return!1;if(typeof p=="string")return this.navigate(p,e);if(p!=null&&typeof p=="object"){let m=h(this,Ee,ro).call(this,p);return this.navigate(m.path,e)}}catch(p){return n?.error("Router: global guard error:",p),!1}if(l?.beforeLeave)try{if(await l.beforeLeave(i,r)===!1)return!1}catch(f){return n?.error("Router: beforeLeave guard error:",f),!1}if(u?.beforeEnter)try{let f=await u.beforeEnter(i,r);if(f===!1)return!1;if(typeof f=="string")return this.navigate(f,e);if(f!=null&&typeof f=="object"){let p=h(this,Ee,ro).call(this,f);return this.navigate(p.path,e)}}catch(f){return n?.error("Router: beforeEnter guard error:",f),!1}if(!c(this,Jt)&&!e.replace&&r&&(c(this,ke).push(r),c(this,$e).length=0),c(this,we)&&!c(this,Pt)&&!c(this,Yt)){let f=h(this,uo,vl).call(this,i.path)+h(this,Re,oo).call(this,i.query);e.replace?window.history.replaceState({},"",f):window.history.pushState({},"",f)}c(this,ct).call(this,i),c(this,we)&&!c(this,Yt)&&c(this,In)&&u&&h(this,Ni,eh).call(this,i,u),n?.log("[Router] signal set \u2192",i.path,i),c(this,Se)&&c(this,Se).call(this,i.pageId),l?.afterLeave&&Promise.resolve().then(()=>l.afterLeave(i,r)),u?.afterEnter&&Promise.resolve().then(()=>u.afterEnter(i,r));for(let f of c(this,Ce))try{f(i,r)}catch(p){n?.error("Router: afterEach error:",p)}return!0}getCurrentRoute(){return c(this,ct).call(this)}async back(){return this.go(-1)}async forward(){return this.go(1)}getCurrentUrl(){return c(this,we)?c(this,Pt)?c(this,Pt).url??"/":window.location.pathname+window.location.search:null}hrefFor(t,{params:e,query:n}={}){if(!t)return null;let r=h(this,Te,so).call(this,["nodes",t,"route","path"]);return r?h(this,uo,vl).call(this,vi(r,e||{}))+h(this,Re,oo).call(this,n):null}};ct=new WeakMap,Se=new WeakMap,On=new WeakMap,we=new WeakMap,Yt=new WeakMap,Mn=new WeakMap,ke=new WeakMap,$e=new WeakMap,Fn=new WeakMap,Jt=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,Ei=new WeakMap,In=new WeakMap,co=new WeakMap,Pt=new WeakMap,Ln=new WeakMap,Ri=new WeakSet,Qf=a(function(){y(this,Ei,Hm(()=>({currentRoute:Zf(()=>c(this,ct).call(this)),push:t=>this.push(t),replace:t=>this.replace(t),go:t=>this.go(t),back:()=>this.back(),forward:()=>this.forward(),navigate:(t,e)=>this.navigate(t,e)}),{id:"$router"}))},"#createStoreFacade"),Ee=new WeakSet,ro=a(function(t){if(typeof t=="string")return{path:t,query:{}};if(t.path){let e=t.query||{},n=h(this,Re,oo).call(this,e);return{path:t.path+n,query:e}}if(t.name){this.routes.length===0&&h(this,Dn,ki).call(this);let e=c(this,Fn).get(t.name);if(!e)return this.inject("log")?.warn(`Router: No route with name "${t.name}"`),{path:"/",query:{}};let n=vi(e.path,t.params||{}),r=t.query||{},i=h(this,Re,oo).call(this,r);return{path:n+i,query:r}}return{path:"/",query:{}}},"#resolveLocation"),Re=new WeakSet,oo=a(function(t){if(!t||Object.keys(t).length===0)return"";let e=new URLSearchParams;for(let[n,r]of Object.entries(t))r!=null&&e.set(n,r);return"?"+e.toString()},"#buildQueryString"),Dn=new WeakSet,ki=a(function(){this.routes=h(this,Ti,th).call(this),y(this,Mn,new Map),y(this,Fn,new Map);for(let t of this.routes)c(this,Mn).set(t.id,t),t.name&&c(this,Fn).set(t.name,t)},"#loadRoutes"),Te=new WeakSet,so=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),Ti=new WeakSet,th=a(function(){return bi(t=>h(this,Te,so).call(this,["nodes",t])).map(t=>({...t,displayTitle:t.title||t.name||t.id}))},"#parseRoutes"),Ni=new WeakSet,eh=a(function(t,e){var u;(u=c(this,co))==null||u.call(this);let n=e.notFound||t.notFound===!0,r=a(f=>h(this,ji,rh).call(this,f),"read"),i=Zf(()=>{let f={...c(this,In),...wi(h(this,Te,so).call(this,["nodes","app","seo"]),r)},p=wi(h(this,Te,so).call(this,["nodes",e.id,"route","seo"]),r);return gl({...e,notFound:n,seo:p},t.path,f)});if(c(this,Pt)){y(this,Ln,i());return}let l=a(f=>{y(this,Ln,f),h(this,Pi,nh).call(this,document,f)},"apply");l(i()),y(this,co,_m(i,l))},"#applyHead"),Pi=new WeakSet,nh=a(function(t,e){let n=e.title||e.siteTitle||null;n&&(t.title=n);let r={...e,title:n};for(let[i,l,u,f,p]of Um){let m=t.head.querySelector(`${i}[${l}="${u}"]`),g=p(r);if(!g){m?.remove();continue}m||(m=t.createElement(i),m.setAttribute(l,u),t.head.appendChild(m)),m.setAttribute(f,g)}},"#writeHead"),ji=new WeakSet,rh=a(function(t){let e=this.inject("resolve"),n=this.inject("context")?.ctx;return!e||!n?yl(t):e.dispatch("descriptor",t)(n)},"#readDescriptor"),Oi=new WeakSet,oh=a(function(t){let e=this.routes.find(l=>l.notFound)??this.routes.find(l=>l.home||l.path==="/")??null;if(!e||typeof t!="string")return null;let[n,r=""]=t.split("?"),i=h(this,_n,Ai).call(this,n.startsWith("/")?n:"/"+n);return{pageId:e.id,name:e.name,path:i,params:{},query:h(this,lo,bl).call(this,r),meta:e.meta||{},title:e.displayTitle,notFound:!0}},"#notFoundRoute"),Mi=new WeakSet,sh=a(function(){document.addEventListener("click",t=>{if(t.defaultPrevented)return;let e=t.target.closest("a");if(e&&h(this,Fi,ih).call(this,e,t)){t.preventDefault();let n=new URL(e.href);this.navigate(n.pathname+n.search)}}),window.addEventListener("popstate",()=>{c(this,Yt)||this.navigate(window.location.pathname+window.location.search)})},"#setupBrowserIntegration"),Fi=new WeakSet,ih=a(function(t,e){if(e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||t.target&&t.target!=="_self"||t.hasAttribute("download")||t.origin!==window.location.origin||t.hasAttribute("data-external")||t.pathname===window.location.pathname&&t.hash)return!1;let n=h(this,_n,Ai).call(this,t.pathname);return h(this,ao,xl).call(this,n)!==null},"#shouldHandleLink"),ao=new WeakSet,xl=a(function(t){if(!t)return null;let e=h(this,Ne,io).call(this,t);if(e)return{pageId:e.id,name:e.name,path:e.path,params:{},query:h(this,Bn,$i).call(this,t),meta:e.meta||{},title:e.displayTitle};let n=h(this,_n,Ai).call(this,t.split("?")[0]),r=n.startsWith("/")?n.slice(1):n,i=h(this,Ne,io).call(this,r);if(i)return{pageId:i.id,name:i.name,path:i.path,params:{},query:h(this,Bn,$i).call(this,t),meta:i.meta||{},title:i.displayTitle};for(let l of this.routes){let u=h(this,Ii,ch).call(this,l.path,n);if(u)return{pageId:l.id,name:l.name,path:n,params:u.params,query:h(this,Bn,$i).call(this,t),meta:l.meta||{},title:l.displayTitle}}return null},"#matchRoute"),Ne=new WeakSet,io=a(function(t){return c(this,Mn).get(t)??null},"#findRouteById"),Ii=new WeakSet,ch=a(function(t,e){let n=a(f=>(f.startsWith("/")?f.slice(1):f).split("/").filter(m=>m),"normalizePath"),r=n(t),i=n(e);if(r.length!==i.length)return null;let l={};return r.every((f,p)=>{let m=i[p];return f.startsWith(":")?(l[f.slice(1)]=decodeURIComponent(m),!0):f===m})?{params:l}:null},"#matchPath"),Bn=new WeakSet,$i=a(function(t){let e=t.indexOf("?");return e===-1?{}:h(this,lo,bl).call(this,t.slice(e+1))},"#queryOf"),lo=new WeakSet,bl=a(function(t){if(!t||t==="?")return{};let e={},n=new URLSearchParams(t.startsWith("?")?t.slice(1):t);for(let[r,i]of n.entries())e[r]=i;return e},"#parseQuery"),uo=new WeakSet,vl=a(function(t){let e=c(this,On).basePath||"",n=t.startsWith("/")?t:"/"+t;return e?e+n:n},"#buildURL"),_n=new WeakSet,Ai=a(function(t){let e=c(this,On).basePath||"";return e&&t.startsWith(e)?t.slice(e.length)||"/":t},"#stripBasePath"),a(Li,"Router"),k(Li,"manifest",{name:"Router",namespace:"router"});var Ci=Li;import{ServiceProvider as Wm}from"@jucie.io/engine";import{injectStore as Sl,createScope as fh,createChildScope as qm,destroyScope as hh,createComputed as zm,destroy as Km,onDirty as Vm,Surface as Gm}from"@jucie.io/reactive";var ah=new Set;function lh(o,s,{component:t="A component"}={}){return s??uh(a(()=>{let n=`${t}\0${o}`;ah.has(n)||(ah.add(n),console.warn(`[jucie] ${t} uses ${o}, which isn't available here \u2014 pass what it needs in as a prop.`))},"warn"),{})}a(lh,"guardRuntime");function uh(o,s=function(){}){let t=null,e=new Proxy(s,{get(n,r){if(r===Symbol.toPrimitive)return i=>i==="number"?NaN:"";if(r==="toString"||r==="valueOf")return()=>"";if(typeof r!="symbol")return o(),typeof s=="function"?e:t??(t=uh(o))},apply(){o()},has:()=>!1,set:()=>!0});return e}a(uh,"hollow");var dh=new Set(["$env","$isolated"]),jt,ho,Pe,Bi,yh,_i,xh,je,fo,Xt,Hn,Hi,bh,po,kl,Ui=class Ui extends Wm{constructor(){super(...arguments);d(this,Bi);d(this,_i);d(this,je);d(this,Xt);d(this,Hi);d(this,po);d(this,jt,null);d(this,ho,null);d(this,Pe,new Map)}getters(t){return{ctx:()=>h(this,je,fo).call(this,t),snapshot:()=>({stores:h(this,Bi,yh).call(this,t),provided:h(this,_i,xh).call(this)}),contexts:()=>t("registry").getContexts().map(([e,{kind:n,owner:r}])=>({id:e,kind:n,owner:r}))}}actions(t){return{componentContext:(e,{library:n=null,name:r,instanceId:i=null,ctx:l=null})=>{let u=t("registry"),f=`${n??""}:${r}`,p=u.getContext(e.rid);if(p&&p.parent===l&&p.component===f)return p;p&&h(this,Xt,Hn).call(this,u,e.rid);let m=h(this,Hi,bh).call(this,t,e,{library:n,name:r,instanceId:i,ctx:l,component:f});return u.setContext(e.rid,m),m},childContext:(e,n,r,i)=>{let l=t("registry"),u=l.getContext(e);if(u&&u.parent===r)return u.bind(i),u.ctx;u&&h(this,Xt,Hn).call(this,l,e);let[f,p]=qm(r,i);return l.setContext(e,{kind:"child",ctx:f,owner:n,parent:r,bind:p,dispose:()=>hh(f)}),f},onIsolatedEmit:(e,n)=>{let r=h(this,je,fo).call(this,t);return"$isolated"in r||r.$provide("$isolated",{emit:(i,l,u)=>c(this,Pe).get(u)?.(i,l)}),c(this,Pe).set(e,n),()=>{c(this,Pe).get(e)===n&&c(this,Pe).delete(e)}},releaseContext:e=>h(this,Xt,Hn).call(this,t("registry"),e),releaseContexts:e=>{let n=t("registry");for(let r of n.getContextIds(e))h(this,Xt,Hn).call(this,n,r)},restore:e=>{for(let[r,i]of Object.entries(e?.stores??{})){let l=Sl(r);if(l)for(let[u,f]of Object.entries(i))mh(l,u)&&(l[u]=f)}let n=h(this,je,fo).call(this,t);for(let[r,i]of Object.entries(e?.provided??{}))r in n||n.$provide(r,i)}}}};jt=new WeakMap,ho=new WeakMap,Pe=new WeakMap,Bi=new WeakSet,yh=a(function(t){let e={};for(let n of t("modules")?.getCurrentStoreNames?.()??[]){let r=Sl(n);if(!r)continue;let i={};for(let l of Object.keys(r)){if(!mh(r,l))continue;let u=gh(r[l]);u!==void 0&&(i[l]=u)}e[n]=i}return e},"#snapshotStores"),_i=new WeakSet,xh=a(function(){let t={};for(let e of Gm.from(c(this,jt))?.provided??[]){if(dh.has(e))continue;let n=gh(c(this,jt)[e]);n!==void 0&&(t[e]=n)}return t},"#snapshotProvided"),je=new WeakSet,fo=a(function(t){return c(this,jt)||([et(this,jt)._,et(this,ho)._]=fh(h(this,po,kl).call(this,t)),c(this,jt).$provide("$env",{isServer:!!this.config?.server}),t("modules")?.onStoresChange?.(()=>c(this,ho).call(this,h(this,po,kl).call(this,t)))),c(this,jt)},"#ensureCtx"),Xt=new WeakSet,Hn=a(function(t,e){let n=t.getContext(e);if(n){t.deleteContext(e);for(let[r,i]of t.getContexts())i.parent===n.ctx&&h(this,Xt,Hn).call(this,t,r);n.dispose()}},"#release"),Hi=new WeakSet,bh=a(function(t,e,{library:n,name:r,instanceId:i,ctx:l,component:u}){let f=t("registry"),p=a((...F)=>t("resolve").dispatch(...F),"dispatch"),m=a((F,ie)=>this.config?.trace?.(F,ie),"trace"),g=a(()=>f.describeComponent(n,r),"contract"),b=a(()=>i?p("computedNode",i)():null,"instanceNode"),v=g()?.displayName??r,x=h(this,je,fo).call(this,t),S={};for(let F of Jm)S[F]=lh(F,x[F],{component:v});let w=new Map,E=a(()=>{let F=g(),ie=b(),Ct={...S},ce=new Map;for(let st of F?.propNames??[]){let Et=wl(ie?.props,st),ae=wl(F?.props,st)?.default??null,hr=JSON.stringify([Et,ae]),dr=w.get(st);if(!dr||dr.signature!==hr){let $u=Et?p("descriptor",Et):null;dr={signature:hr,computed:zm(()=>{let Au=$u?$u(l):void 0;return Au!==void 0?Au:ae})}}ce.set(st,dr),Ct[st]=dr.computed}for(let st of F?.eventNames??[])Ct[st]=(...Et)=>{let ae=wl(b()?.events,st);if(!ae)return;let hr=p("descriptor",ae)(l);return typeof hr=="function"?hr(...Et):void 0};return{values:Ct,next:ce}},"valuesFor"),j=a((F,ie)=>{for(let[Ct,ce]of F)ie.get(Ct)!==ce&&Km(ce.computed)},"retire"),N=E();w=N.next;let[$,C]=fh(N.values);m("scope:build",{instance:i??r});let T=a(()=>{let F=Object.keys($).join("|"),{values:ie,next:Ct}=E(),ce=[...Ct].filter(([Et,ae])=>w.get(Et)!==ae).map(([Et])=>Et);C(ie),j(w,Ct),w=Ct;let st=Object.keys($).join("|")!==F;m("scope:rebind",{instance:i??r,changed:ce,reshaped:st}),st&&e.markAsDirty()},"rebind"),L=f.definitionIdOf(n,r),O=[i,L].filter(Boolean).map(F=>Vm(p("computedNode",F),T)),us={};for(let F of g()?.propNames??[])Object.defineProperty(us,F,{get:()=>$[F],enumerable:!0});let Ep=a(()=>{O.forEach(F=>F()),j(w,new Map),w=new Map,hh($)},"dispose");return{kind:"component",ctx:$,props:us,owner:e.rid,parent:l,component:u,dispose:Ep}},"#buildComponent"),po=new WeakSet,kl=a(function(t){let e=t("modules"),n={$router:Sl("$router"),$animator:t("animator")};for(let r of e?.getCurrentStoreNames?.()??[]){let i=`$${r}`;if(i in n||dh.has(i)){Ym(r,i);continue}let l=e.getStore(r);l&&(n[i]=l())}return n},"#rootValues"),a(Ui,"Context"),k(Ui,"manifest",{name:"Context",namespace:"context"});var Di=Ui,ph=new Set;function Ym(o,s){ph.has(o)||(ph.add(o),console.warn(`[Context] Store "${o}" is skipped: ${s} is reserved on the root ctx. Rename the store.`))}a(Ym,"warnStoreName");var Jm=["$router","$animator"];function wl(o,s){return Array.isArray(o)?o.find(t=>t?.name===s)??null:null}a(wl,"findNamed");function mh(o,s){return typeof Object.getOwnPropertyDescriptor(o,s)?.set=="function"}a(mh,"isWritable");function gh(o){if(!(o===void 0||typeof o=="function"))try{return JSON.parse(JSON.stringify(o))}catch{return}}a(gh,"jsonValue");import{isStateKey as Xm,isCssKey as Zm,isIntentKey as Qm,normalizeStyle as tg}from"@jucie.io/composed-style";function vh(o,s,t,e){let n={};for(let{min:r,block:i}of tg(o.style).entries){if(r>0&&!(r<=s))break;for(let l in i)e(l)&&(n[l]=i[l]);for(let l of t){let u=Xm(l)?l:`:${l}`;for(let[f,p]of Object.entries(i[u]??{}))e(f)&&(n[f]=p)}}return n}a(vh,"cascade");function Sh(o,s,t=[]){return vh(o,s,t,Zm)}a(Sh,"resolveAuthoredStyles");function wh(o,s,t=[]){return vh(o,s,t,Qm)}a(wh,"resolveAuthoredIntents");import{isStateKey as eg,isCssKey as ng,isIntentKey as rg,baseOf as og}from"@jucie.io/composed-style";var kh="default";function $h(o){if(o===kh||o==null)return kh;let s=String(o);return s.startsWith("@")?s:`@${s}`}a($h,"toBpKey");function sg(o){return typeof o!="string"||eg(o)?o:`:${o}`}a(sg,"normalizeStateKey");function Ah(o,s,t){let e=$h(s),n=e==="default"?og(o?.style):o?.style?.[e];if(!n||typeof n!="object")return null;for(let r of t??[])if(n=n?.[sg(r)]??n?.[r],!n||typeof n!="object")return null;return n}a(Ah,"exactBucket");function Ch(o,s="default",t=[]){let e=Ah(o,s,t),n={};for(let r in e??{})rg(r)&&(n[r]=e[r]);return n}a(Ch,"resolveExactAuthoredIntents");function Eh(o,s="default",t=[]){let e=Ah(o,s,t),n={};for(let r in e??{})ng(r)&&(n[r]=e[r]);return n}a(Eh,"resolveExactAuthoredStyles");import{contextAt as Oh,contextKey as Mh,sourceOf as ug,anchorOf as Fh,placementOf as fg}from"@jucie.io/composed-style";function $l(o=[]){let s=a((t,e)=>o.includes(t)&&o.includes(e)?"both":o.includes(e)?"end":"start","axis");return{$anchorX:s("left","right"),$anchorY:s("top","bottom")}}a($l,"anchorIntents");function Rh(o){if(typeof Element>"u")return null;let s=o?.$el;if(s instanceof Element)return s;let t=s?.$el;return t instanceof Element?t:null}a(Rh,"resolvePuppetEl");function Al(o){let s=2166136261;for(let t=0;t<o.length;t++)s^=o.charCodeAt(t),s=Math.imul(s,16777619);return s>>>0}a(Al,"hashRid");var ig=new Set(["rect","offset","parentRid","nextRid","children"]),Th=a((o,s)=>o.length?o[Math.min(o.length-1,Math.floor(o.length*s))]:0,"percentile"),at=a((o,s=2)=>Number(o.toFixed(s)),"fixed");function Nh(o){let s,t,e=!1,n=a(()=>{t=new Float32Array(512),s={since:o(),wakes:0,heartbeats:0,fullPasses:0,fastPasses:0,slices:0,sliceTotalMs:0,sliceMaxMs:0,slicesOverBudget:0,visited:0,dataBuilds:0,dataMs:0,noopRebuilds:0,geometryPatches:0,dataPatches:0,wholePatches:0,removed:0,messages:0,bytes:0,bytesMax:0,listenerMs:0}},"reset");return n(),{reset:n,count:(r,i=1)=>{s[r]+=i},get profiling(){return e},set profiling(r){e=!!r},slice(r,i){t[s.slices%512]=r,s.slices++,s.sliceTotalMs+=r,r>s.sliceMaxMs&&(s.sliceMaxMs=r),i&&s.slicesOverBudget++},message(r,i,l){s.messages++,s.removed+=i.length,s.listenerMs+=l;for(let u in r){let f=r[u];if(f.id!==void 0){s.wholePatches++;continue}let p=!1;for(let m in f)if(!ig.has(m)){p=!0;break}p?s.dataPatches++:s.geometryPatches++}if(e){let u=JSON.stringify(r).length;s.bytes+=u,u>s.bytesMax&&(s.bytesMax=u)}},snapshot(r){let i=o()-s.since,l=Array.from(t.subarray(0,Math.min(s.slices,512))).sort((p,m)=>p-m),u=s.fullPasses+s.fastPasses,f=i/1e3||1;return{"window (s)":at(f,1),"nodes in graph":r,"passes (full / fast)":`${s.fullPasses} / ${s.fastPasses}`,"passes per second":at(u/f,1),"wakes / heartbeats":`${s.wakes} / ${s.heartbeats}`,"slices (frames worked)":s.slices,"slice ms avg":at(s.slices?s.sliceTotalMs/s.slices:0),"slice ms p50":at(Th(l,.5)),"slice ms p95":at(Th(l,.95)),"slice ms max":at(s.sliceMaxMs),"slices that hit the budget":s.slicesOverBudget,"main-thread share (%)":at(s.sliceTotalMs/(i||1)*100,3),"nodes measured":s.visited,"\xB5s per node measured":at(s.visited?(s.sliceTotalMs-s.dataMs-s.listenerMs)/s.visited*1e3:0,1),"data rebuilds":s.dataBuilds,"ms per data rebuild":at(s.dataBuilds?s.dataMs/s.dataBuilds:0,3),"rebuilds that changed nothing":s.noopRebuilds,"messages sent":s.messages,"messages per second":at(s.messages/f,2),"patches (geometry / data / whole)":`${s.geometryPatches} / ${s.dataPatches} / ${s.wholePatches}`,"rids removed":s.removed,"listener ms total (postMessage)":at(s.listenerMs),"bytes total":e?s.bytes:"profiling off","bytes per message avg":e?Math.round(s.messages?s.bytes/s.messages:0):"profiling off","bytes largest message":e?s.bytesMax:"profiling off"}}}}a(Nh,"createNodeGraphStats");import{ServiceProvider as hg}from"@jucie.io/engine";import{Scope as Ih}from"@jucie.io/reactive";var Cl=["flex-direction","flex-wrap","justify-content","align-items","align-content","gap","top","right","bottom","left","inset","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-radius","position","display","width","height","max-width","max-height","min-width","min-height","border-style","border-width","border-color","border-top-style","border-top-width","border-top-color","border-right-style","border-right-width","border-right-color","border-bottom-style","border-bottom-width","border-bottom-color","border-left-style","border-left-width","border-left-color","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","background-color","background-image","background-repeat","background-size","background-attachment","color","font-family","font-size","font-weight","font-style","font-variant","line-height","text-align","text-decoration","text-transform","text-overflow","letter-spacing","white-space","overflow","overflow-x","overflow-y","scroll-behavior","cursor","pointer-events","z-index","opacity","transform","transition","filter","box-shadow","grid","object-fit","align-self","flex-grow","flex-shrink","flex-basis","order","grid-column","grid-row"],M0=new Set(Cl);function Un(o,s,t){let e=s;for(let n of t)if(Array.isArray(e)?e=/^\d+$/.test(n)?e[0]:void 0:typeof e=="string"?e=o.types?.[e]?.[n]:e&&typeof e=="object"?e=e["*"]??e[n]:e=void 0,e===void 0)return;return e}a(Un,"schemaTypeAt");function cg(o,s){let t=Array.from({length:o.length+1},(e,n)=>[n,...Array(s.length).fill(0)]);for(let e=1;e<=s.length;e++)t[0][e]=e;for(let e=1;e<=o.length;e++)for(let n=1;n<=s.length;n++){let r=o[e-1]===s[n-1]?0:1;t[e][n]=Math.min(t[e-1][n]+1,t[e][n-1]+1,t[e-1][n-1]+r),e>1&&n>1&&o[e-1]===s[n-2]&&o[e-2]===s[n-1]&&(t[e][n]=Math.min(t[e][n],t[e-2][n-2]+1))}return t[o.length][s.length]}a(cg,"editDistance");function ag(o,s){let t=Math.max(1,Math.floor(o.length/3)),e=null,n=1/0;for(let r of s){if(r===o)continue;let i=cg(o.toLowerCase(),r.toLowerCase());i<=t&&i<n&&(e=r,n=i)}return e}a(ag,"closestName");var Ph=a((o,s)=>s.every((t,e)=>o[e]===t),"startsWith");function lg(o,s){return typeof s=="string"?Object.keys(o.types?.[s]??{}):s&&typeof s=="object"&&!Array.isArray(s)&&s["*"]===void 0?Object.keys(s):[]}a(lg,"fieldNames");function jh(o,{rootTypes:s,listed:t}){if(!o?.length)return{state:"unverified",reason:"No path chosen"};let[e,...n]=o,r=a(g=>{let b=s.get(g[0]);if(b&&Un(b.schema,b.type,g.slice(1))!==void 0)return!0;let v=g.join(".");return t.some(x=>x.dot===v)},"isKnown");if(r(o))return{state:"known"};let i=a((g,b)=>{if(g>=o.length)return;let v=ag(o[g],b);if(!v)return;let x=[...o.slice(0,g),v,...o.slice(g+1)];return r(x)?x:void 0},"suggest"),l=s.get(e);if(l)for(let g=0;g<n.length;g++){if(Un(l.schema,l.type,n.slice(0,g+1))!==void 0)continue;let b=Un(l.schema,l.type,n.slice(0,g));return{state:"unverified",reason:`The data shape of ${[e,...n.slice(0,g)].join(".")} doesn\u2019t list \u201C${n[g]}\u201D`,suggestion:i(g+1,lg(l.schema,b))}}let u=new Set([...s.keys(),...t.map(g=>g.path[0])]);if(!u.has(e))return{state:"unverified",reason:`${e} isn\u2019t defined here; it may come from where this is used`,suggestion:i(0,[...u])};let f=a(g=>t.some(b=>Ph(b.path,o.slice(0,g))),"reaches"),p=1;for(;p<o.length&&f(p+1);)p+=1;let m=t.filter(g=>g.path.length===p+1&&Ph(g.path,o.slice(0,p))).map(g=>g.path[p]);return{state:"unverified",reason:"Nothing describes this path",suggestion:i(p,m)}}a(jh,"checkBindingPath");function dg(o){let s=o.descriptor,t=s?s.mode==="binding"?s.binding:null:o.binding;return t?.length?Array.isArray(t)?t:String(t).split("."):null}a(dg,"repeatBinding");function pg(o){if(Array.isArray(o))return o[0];if(o&&typeof o=="object"&&o["*"]!==void 0)return o["*"]}a(pg,"itemType");var mg=1,Lh=1,gg=2,El=3,Dh=500,yg=4,xg=2,bg=3,vg=Object.freeze({x:0,y:0,left:0,top:0,right:0,bottom:0,width:0,height:0}),Sg=["width","height","left","top","right","bottom"],wg=["node","name","tagName","containerRid","instanceRid","targetable","readOnly","editable","root","temp"],kg=["styles","authoredStyles","inheritedStyles","authoredIntents","inheritedIntents","layoutIntent","parentLayoutIntent","sources","placement"],lt=a(()=>typeof performance<"u"?performance.now():Date.now(),"now"),Wn=a(o=>Math.round(o*100)/100,"round"),D,Oe,Me,Fe,Ie,Kn,bt,Ot,Vn,Zt,I,V,vt,Le,M,go,Mt,ft,ht,De,Qt,yo,U,xo,Gn,te,Ji,Bh,Xi,_h,Zi,Hh,Z,ut,ee,qn,bo,Rl,Qi,Uh,tc,Wh,ec,qh,vo,Tl,So,Nl,wo,Pl,nc,zh,rc,Kh,oc,Vh,sc,Gh,ic,Yh,Be,mo,cc,Jh,ac,Xh,lc,Zh,uc,Qh,fc,td,ko,jl,hc,ed,dc,nd,Yn,Wi,Jn,qi,pc,rd,Xn,zi,$o,Ol,mc,od,gc,sd,yc,id,xc,cd,Zn,Ki,Qn,Vi,bc,ad,vc,ld,Sc,ud,wc,fd,Ao,Ml,kc,hd,$c,dd,tr,Gi,ne,zn,Ac,pd,Cc,md,Ec,gd,Rc,yd,Co,Fl,Tc,xd,Eo,Il,Ro,Ll,To,Dl,Nc,bd,Pc,vd,No,Bl,jc=class jc extends hg{constructor(){super(...arguments);d(this,Ji);d(this,Xi);d(this,Zi);d(this,Z);d(this,ee);d(this,bo);d(this,Qi);d(this,tc);d(this,ec);d(this,vo);d(this,So);d(this,wo);d(this,nc);d(this,rc);d(this,oc);d(this,sc);d(this,ic);d(this,Be);d(this,cc);d(this,ac);d(this,lc);d(this,uc);d(this,fc);d(this,ko);d(this,hc);d(this,dc);d(this,Yn);d(this,Jn);d(this,pc);d(this,Xn);d(this,$o);d(this,mc);d(this,gc);d(this,yc);d(this,xc);d(this,Zn);d(this,Qn);d(this,bc);d(this,vc);d(this,Sc);d(this,wc);d(this,Ao);d(this,kc);d(this,$c);d(this,tr);d(this,ne);d(this,Ac);d(this,Cc);d(this,Ec);d(this,Rc);d(this,Co);d(this,Tc);d(this,Eo);d(this,Ro);d(this,To);d(this,Nc);d(this,Pc);d(this,No);d(this,D,{});d(this,Oe,!1);d(this,Me,!1);d(this,Fe,!1);d(this,Ie,new Set);d(this,Kn,new Set);d(this,bt,new Set);d(this,Ot,null);d(this,Vn,null);d(this,Zt,null);d(this,I,new Set);d(this,V,new Map);d(this,vt,new Map);d(this,Le,!1);d(this,M,null);d(this,go,null);d(this,Mt,new Set);d(this,ft,null);d(this,ht,null);d(this,De,0);d(this,Qt,!0);d(this,yo,0);d(this,U,Nh(lt));d(this,xo,0);d(this,Gn,0);d(this,te,0)}initialize(){let t=this.inject("relay");t.on("scene:change",(e,n,r)=>h(this,Zi,Hh).call(this,e,n,r)),t.on("schema:change",()=>h(this,Ji,Bh).call(this))}actions(t){let e=t("registry");return{addListener:n=>(c(this,Ie).add(n),()=>c(this,Ie).delete(n)),removeListener:n=>{c(this,Ie).delete(n)},addRenderListener:n=>(c(this,Kn).add(n),()=>c(this,Kn).delete(n)),bindingStatus:(n,r)=>h(this,Tc,xd).call(this,n,r),pauseNodeGraph:()=>{y(this,Me,!0),h(this,bo,Rl).call(this),y(this,M,null)},resumeNodeGraph:()=>{y(this,Me,!1),h(this,Z,ut).call(this)},pauseMeasuring:()=>{y(this,Fe,!0),y(this,M,null),h(this,Z,ut).call(this)},resumeMeasuring:()=>{y(this,Fe,!1),y(this,M,null),h(this,Z,ut).call(this)},startNodeGraph:()=>{y(this,Oe,!0),y(this,Qt,!0),h(this,Z,ut).call(this)},disableNodeGraph:()=>{y(this,Oe,!1),h(this,bo,Rl).call(this),y(this,M,null)},forceNodeGraph:()=>{y(this,Le,!0),y(this,M,null),h(this,Z,ut).call(this)},requestRids:(n=[],{geometryOnly:r=!1}={})=>{for(let i of n)r&&c(this,V).get(i)==="whole"||c(this,V).set(i,r?"geometry":"whole");h(this,Z,ut).call(this)},isBusy:()=>c(this,ft)!==null||c(this,M)!==null,getManifest:()=>({rids:Object.keys(c(this,D)),digest:h(this,Jn,qi).call(this)}),getDigest:()=>h(this,Jn,qi).call(this),getStats:()=>c(this,U).snapshot(Object.keys(c(this,D)).length),resetStats:()=>c(this,U).reset(),setProfiling:n=>{c(this,U).profiling=n},setSelectedRids:n=>{if(c(this,bt).forEach(r=>c(this,I).add(r)),y(this,bt,new Set(n)),n.forEach(r=>c(this,I).add(r)),n.length>0){let r=e.getPuppet(n[0]);y(this,Zt,r?h(this,Qn,Vi).call(this,r.actor):null)}else y(this,Zt,null);h(this,Z,ut).call(this)},getSelectedRids:()=>[...c(this,bt)],setFocalRid:n=>{let r=c(this,Ot);if(y(this,Ot,n??null),r&&c(this,I).add(r),n){c(this,I).add(n);let i=e.getPuppet(n);i&&y(this,Zt,h(this,Qn,Vi).call(this,i.actor))}h(this,Z,ut).call(this)},getFocalRid:()=>c(this,Ot),setEditingRid:n=>{let r=c(this,Vn);y(this,Vn,n??null),r&&c(this,I).add(r),n&&c(this,I).add(n),h(this,Z,ut).call(this)},getEditTarget:n=>{let r=h(this,Zn,Ki).call(this,e.getActor(n));return{tier:r?.node[".activeBreakpoint"]??null,width:r?.node.bounds.width??0}},getNodeGraph:()=>c(this,D),measureContentHeights:(n={})=>{let r={};for(let[i,l]of Object.entries(n)){let u=h(this,ne,zn).call(this,e.getPuppet(i));u&&(r[i]=h(this,Xi,_h).call(this,u,l))}return r}}}};D=new WeakMap,Oe=new WeakMap,Me=new WeakMap,Fe=new WeakMap,Ie=new WeakMap,Kn=new WeakMap,bt=new WeakMap,Ot=new WeakMap,Vn=new WeakMap,Zt=new WeakMap,I=new WeakMap,V=new WeakMap,vt=new WeakMap,Le=new WeakMap,M=new WeakMap,go=new WeakMap,Mt=new WeakMap,ft=new WeakMap,ht=new WeakMap,De=new WeakMap,Qt=new WeakMap,yo=new WeakMap,U=new WeakMap,xo=new WeakMap,Gn=new WeakMap,te=new WeakMap,Ji=new WeakSet,Bh=a(function(){let t=a(e=>e?.some(n=>n.descriptor?.mode==="binding"),"hasBindingPill");for(let e of this.inject("registry").getPuppets()){let n=e.actor?.node,r=Array.isArray(n?.slots)?n.slots:[];(t(Kt(n))||r.some(i=>t(Kt(i))))&&e.markAsDirty?.()}},"#rerenderPills"),Xi=new WeakSet,_h=a(function(t,e){let{style:n}=t,r=["width","height"].map(u=>[u,n.getPropertyValue(u),n.getPropertyPriority(u)]);e>0&&n.setProperty("width",`${e}px`,"important"),n.setProperty("height","auto","important");let i=h(this,Xn,zi).call(this,t).top,l=i+t.offsetHeight;for(let u of t.querySelectorAll("*")){let f=h(this,Xn,zi).call(this,u);(f.width>0||f.height>0)&&(l=Math.max(l,f.bottom))}for(let[u,f,p]of r)f?n.setProperty(u,f,p):n.removeProperty(u);return Math.ceil(l-i)},"#contentHeight"),Zi=new WeakSet,Hh=a(function(t,e,n){t.forEach(r=>c(this,I).add(r)),e.forEach(r=>c(this,I).add(r)),n.forEach(r=>c(this,vt).set(r,bg)),n.length>0&&y(this,Qt,!0),c(this,Kn).forEach(r=>{try{r(t,e,n)}catch(i){console.error("Error in node graph render listener:",i)}}),h(this,Z,ut).call(this)},"#onChange"),Z=new WeakSet,ut=a(function(){!c(this,Oe)||c(this,Me)||(c(this,ft)===null&&c(this,U).count("wakes"),y(this,De,0),c(this,ht)!==null&&(clearTimeout(c(this,ht)),y(this,ht,null)),h(this,ee,qn).call(this))},"#wake"),ee=new WeakSet,qn=a(function(){c(this,ft)!==null||typeof requestAnimationFrame>"u"||y(this,ft,requestAnimationFrame(()=>{y(this,ft,null),h(this,Qi,Uh).call(this)}))},"#schedule"),bo=new WeakSet,Rl=a(function(){c(this,ft)!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(c(this,ft)),y(this,ft,null),c(this,ht)!==null&&clearTimeout(c(this,ht)),y(this,ht,null)},"#cancelLoop"),Qi=new WeakSet,Uh=a(function(){if(!c(this,Oe)||c(this,Me)||typeof document>"u")return;let t={},e=[],n=!0,r=lt();try{n=c(this,Fe)?h(this,ec,qh).call(this,t,e):h(this,tc,Wh).call(this,t,e)}catch(u){console.error("Error measuring node graph:",u)}if(h(this,dc,nd).call(this,t,e),c(this,U).slice(lt()-r,!n),c(this,Fe)){y(this,M,null),c(this,vt).size>0&&h(this,ee,qn).call(this);return}if(!n){h(this,ee,qn).call(this);return}let i=c(this,M)?.changed??!1;if(y(this,M,null),y(this,De,i||c(this,vt).size>0?0:c(this,De)+1),c(this,De)<xg){h(this,ee,qn).call(this);return}let l=this.config?.nodeGraph?.heartbeatMs??Dh;y(this,ht,setTimeout(()=>{y(this,ht,null),y(this,Qt,!0),c(this,U).count("heartbeats"),h(this,ee,qn).call(this)},l))},"#tick"),tc=new WeakSet,Wh=a(function(t,e){let n=this.inject("registry"),r=this.config?.nodeGraph?.budgetMs??yg,i=this.config?.nodeGraph?.maxNodesPerSlice??1/0,l=lt();c(this,M)||h(this,nc,zh).call(this);let u=c(this,M);h(this,vo,Tl).call(this,n,e),h(this,So,Nl).call(this,n,e);for(let p of h(this,ic,Yh).call(this)){if(!(p in c(this,D))||t[p])continue;let m=n.getPuppet(p),g=m?h(this,ne,zn).call(this,m):null;g?.isConnected&&h(this,Be,mo).call(this,m,g,t)}let f=0;for(;;){let p=c(this,go).nextNode();if(!p)break;let m=n.getPuppet(p.dataset.rid);if(c(this,Mt).has(m.rid)||(c(this,Mt).add(m.rid),t[m.rid]))continue;let g=h(this,ne,zn).call(this,m);if(h(this,Be,mo).call(this,m,g?.isConnected?g:p,t),f++,f>=i||lt()-l>=r)return c(this,U).count("visited",f),!1}return c(this,U).count("visited",f),c(this,U).count(u.full?"fullPasses":"fastPasses"),u.full&&h(this,rc,Kh).call(this,t,e),!0},"#runSlice"),ec=new WeakSet,qh=a(function(t,e){let n=this.inject("registry");y(this,M,{full:!1,forceAll:!1,keep:new Set,changed:!1,tolerance:h(this,wo,Pl).call(this)}),h(this,vo,Tl).call(this,n,e),h(this,So,Nl).call(this,n,e);let r=[...c(this,V).keys()];for(let i of c(this,I))i in c(this,D)||r.push(i);for(let i of r){if(t[i])continue;let l=n.getPuppet(i);if(!l||h(this,tr,Gi).call(this,l))continue;let u=h(this,ne,zn).call(this,l);u?.isConnected&&h(this,Be,mo).call(this,l,u,t)}return!0},"#runStructureSlice"),vo=new WeakSet,Tl=a(function(t,e){for(let[n,r]of c(this,vt))t.getPuppet(n)?r<=1?(c(this,I).add(n),c(this,vt).delete(n)):c(this,vt).set(n,r-1):(h(this,Yn,Wi).call(this,n,e),c(this,vt).delete(n))},"#sweepUnmounted"),So=new WeakSet,Nl=a(function(t,e){for(let n of c(this,V).keys())t.getPuppet(n)||(c(this,V).delete(n),e.includes(n)||(n in c(this,D)?h(this,Yn,Wi).call(this,n,e):e.push(n)))},"#answerRequestsForGoneRids"),wo=new WeakSet,Pl=a(function(){let t=this.inject("viewport")?.get?.();return Math.max(.02,.1/(t?.scale||1))},"#measureTolerance"),nc=new WeakSet,zh=a(function(){let t=this.inject("registry"),e=c(this,Qt)||c(this,Le)||lt()-c(this,yo)>=(this.config?.nodeGraph?.heartbeatMs??Dh),n=new Set;if(!e){c(this,Zt)&&n.add(c(this,Zt));for(let u of[c(this,I),c(this,V).keys()])for(let f of u){let p=t.getPuppet(f),m=p?h(this,Qn,Vi).call(this,p.actor):null;m&&n.add(m)}}let r=this.inject("viewport")?.get?.(),i=h(this,wo,Pl).call(this);y(this,M,{full:e,forceAll:c(this,Le),keep:n,changed:!1,tolerance:i}),y(this,Qt,!1),y(this,Le,!1),c(this,Mt).clear();let l=e?null:h(this,oc,Vh).call(this,r);y(this,go,document.createTreeWalker(document.body,mg,{acceptNode:u=>{let f=u.dataset?.rid;if(!f)return El;let p=t.getPuppet(f);if(!p)return El;let m=p.actor?.node;return m?.type==="root"?Lh:h(this,tr,Gi).call(this,p)?El:l&&m?.bounds&&!n.has(f)&&!h(this,sc,Gh).call(this,m.bounds,l)?gg:Lh}}))},"#beginPass"),rc=new WeakSet,Kh=a(function(t,e){let n=this.inject("registry");for(let r of n.getPuppets()){if(c(this,Mt).has(r.rid))continue;let i=r.actor?.node?.type==="root";if(!i&&h(this,tr,Gi).call(this,r))continue;let l=h(this,ne,zn).call(this,r);!l?.isConnected&&!i||(c(this,Mt).add(r.rid),h(this,Be,mo).call(this,r,l?.isConnected?l:null,t))}for(let r of Object.keys(c(this,D)))c(this,Mt).has(r)||h(this,Yn,Wi).call(this,r,e);c(this,I).clear();for(let r of c(this,V).keys())e.includes(r)||e.push(r);c(this,V).clear(),y(this,yo,lt())},"#finishFullPass"),oc=new WeakSet,Vh=a(function(t){if(typeof window>"u"||!window.innerWidth||!window.innerHeight)return null;let e=t?.scale||1,n=t?.scroll?.x??0,r=t?.scroll?.y??0,i=window.innerWidth/e,l=window.innerHeight/e,u=-n/e-i/2,f=-r/e-l/2;return{left:u,top:f,right:u+i*2,bottom:f+l*2}},"#visibleDocumentRect"),sc=new WeakSet,Gh=a(function(t,e){return t.x+t.width>e.left&&t.x<e.right&&t.y+t.height>e.top&&t.y<e.bottom},"#intersects"),ic=new WeakSet,Yh=a(function(){return!c(this,Ot)||c(this,bt).has(c(this,Ot))?c(this,bt):[...c(this,bt),c(this,Ot)]},"#priorityRids"),Be=new WeakSet,mo=a(function(t,e,n){let{rid:r,actor:i}=t,l=c(this,D)[r],u=h(this,pc,rd).call(this,t,e,l),f=c(this,V).get(r);c(this,V).delete(r);let p=!l||c(this,M).forceAll||c(this,I).has(r)||f==="whole"||l.node!==i.node,m=f?u:l?h(this,mc,od).call(this,l,u):u;if(!p){m&&(n[r]={...n[r],...m});return}let g=lt(),b=h(this,Cc,md).call(this,t,e,u.parentRid);if(c(this,U).count("dataBuilds"),c(this,U).count("dataMs",lt()-g),l&&h(this,hc,ed).call(this,l,b),c(this,I).delete(r),!l||f==="whole"){n[r]={...b,...u};return}let v=h(this,cc,Jh).call(this,l,b);v||m?n[r]={...n[r],...v,...m}:c(this,U).count("noopRebuilds")},"#process"),cc=new WeakSet,Jh=a(function(t,e){let n=null;for(let r of wg)t[r]!==e[r]&&((n??(n={}))[r]=e[r]);for(let r of kg)h(this,ac,Xh).call(this,t[r],e[r])||((n??(n={}))[r]=e[r]);return h(this,lc,Zh).call(this,t.contextPaths,e.contextPaths)||((n??(n={})).contextPaths=e.contextPaths),h(this,uc,Qh).call(this,t.componentMeta,e.componentMeta)||((n??(n={})).componentMeta=e.componentMeta),n},"#dataPatch"),ac=new WeakSet,Xh=a(function(t,e){if(t===e)return!0;if(!t||!e)return!1;let n=0;for(let r in t){if(t[r]!==e[r])return!1;n++}for(let r in e)n--;return n===0},"#sameMap"),lc=new WeakSet,Zh=a(function(t,e){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n]&&(t[n]?.dot!==e[n]?.dot||t[n]?.hint!==e[n]?.hint))return!1;return!0},"#samePaths"),uc=new WeakSet,Qh=a(function(t,e){return t===e?!0:!t||!e?!1:t.displayName===e.displayName&&t.library===e.library&&t.tagName===e.tagName&&h(this,fc,td).call(this,t.props,e.props)&&h(this,ko,jl).call(this,t.emits,e.emits)&&h(this,ko,jl).call(this,t.slots,e.slots)},"#sameMeta"),fc=new WeakSet,td=a(function(t=[],e=[]){if(t===e)return!0;if(t.length!==e.length)return!1;let n=a(r=>JSON.stringify([r?.name,r?.type,r?.default,r?.options]),"shape");return t.every((r,i)=>n(r)===n(e[i]))},"#sameProps"),ko=new WeakSet,jl=a(function(t=[],e=[]){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n]&&(t[n]?.name??t[n])!==(e[n]?.name??e[n]))return!1;return!0},"#sameNamed"),hc=new WeakSet,ed=a(function(t,e){let n=t.node??{},r=e.node??{};if(Mh(Tt(n))!==Mh(Tt(r))){let i=[...t.children??[]];for(;i.length>0;){let l=i.pop();c(this,I).add(l),c(this,D)[l]?.node?.type==="slot"&&i.push(...c(this,D)[l].children??[])}}if(r.bounds&&(n[".activeBreakpoint"]!==r[".activeBreakpoint"]||n.bounds?.width!==r.bounds.width)){let i=[...t.children??[]];for(;i.length>0;){let l=i.pop();c(this,I).add(l);let u=c(this,D)[l]?.children;u&&i.push(...u)}}},"#invalidateDependants"),dc=new WeakSet,nd=a(function(t,e){let n=Object.keys(t);if(n.length===0&&e.length===0)return;for(let l of n)l in c(this,D)||(et(this,Gn)._++,y(this,te,(c(this,te)^Al(l))>>>0)),c(this,D)[l]={...c(this,D)[l],...t[l]};c(this,M)&&(c(this,M).changed=!0),et(this,xo)._++;let r=h(this,Jn,qi).call(this),i=lt();c(this,Ie).forEach(l=>{try{l(t,e,!1,r)}catch(u){console.error("Error in node graph listener:",u)}}),c(this,U).message(t,e,lt()-i)},"#emit"),Yn=new WeakSet,Wi=a(function(t,e){t in c(this,D)&&(delete c(this,D)[t],et(this,Gn)._--,y(this,te,(c(this,te)^Al(t))>>>0),c(this,I).delete(t),e.push(t),c(this,M)&&(c(this,M).changed=!0))},"#remove"),Jn=new WeakSet,qi=a(function(){return{seq:c(this,xo),count:c(this,Gn),hash:c(this,te)}},"#digest"),pc=new WeakSet,rd=a(function(t,e,n){let r=t.actor.node,i=r?.type==="root",l=i?vg:h(this,Xn,zi).call(this,e),u=!n?.offset||!h(this,$o,Ol).call(this,n.rect,l)||c(this,I).has(t.rid)||c(this,V).has(t.rid)||c(this,M).forceAll,f=i?null:r.type==="slot"&&t.instanceRid?t.instanceRid:e?.parentElement?.dataset?.rid;return{rect:l,offset:!e||i?null:u?h(this,xc,cd).call(this,e):n.offset,parentRid:f,nextRid:e?.nextElementSibling?.dataset?.rid??null,children:h(this,Ac,pd).call(this,t)}},"#measure"),Xn=new WeakSet,zi=a(function(t){let e=t.getBoundingClientRect(),n=this.inject("viewport")?.get?.(),r=n?.scale||1,i=n?.scroll?.x??0,l=n?.scroll?.y??0,u=Wn((e.left-i)/r),f=Wn((e.top-l)/r),p=Wn(e.width/r),m=Wn(e.height/r);return{x:u,y:f,left:u,top:f,right:Wn(u+p),bottom:Wn(f+m),width:p,height:m}},"#documentRect"),$o=new WeakSet,Ol=a(function(t,e){if(t===e)return!0;if(!t||!e)return!1;let n=c(this,M).tolerance;return Math.abs(t.left-e.left)<=n&&Math.abs(t.top-e.top)<=n&&Math.abs(t.width-e.width)<=n&&Math.abs(t.height-e.height)<=n},"#sameRect"),mc=new WeakSet,od=a(function(t,e){let n=null;return h(this,$o,Ol).call(this,t.rect,e.rect)?h(this,gc,sd).call(this,t.offset,e.offset)||(n={offset:e.offset}):n={rect:e.rect,offset:e.offset},t.parentRid!==e.parentRid&&((n??(n={})).parentRid=e.parentRid),t.nextRid!==e.nextRid&&((n??(n={})).nextRid=e.nextRid),h(this,yc,id).call(this,t.children,e.children)||((n??(n={})).children=e.children),n},"#geometryPatch"),gc=new WeakSet,sd=a(function(t,e){if(t===e)return!0;if(!t||!e)return!1;for(let n of Sg)if(t[n]!==e[n])return!1;return!0},"#sameOffset"),yc=new WeakSet,id=a(function(t=[],e=[]){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},"#sameList"),xc=new WeakSet,cd=a(function(t){let e={};e.width=t.offsetWidth,e.height=t.offsetHeight,e.left=t.offsetLeft,e.top=t.offsetTop;let n=t.parentElement;return n?(e.right=n.offsetWidth-(e.left+e.width),e.bottom=n.offsetHeight-(e.top+e.height)):(e.right=0,e.bottom=0),e},"#parseOffset"),Zn=new WeakSet,Ki=a(function(t){let e=this.inject("registry"),n=t;for(;n;){if(n.node?.bounds)return n;if(n.parentId==null)return null;n=e.getActor(n.parentId)}return null},"#findBoundsAncestor"),Qn=new WeakSet,Vi=a(function(t){return h(this,Zn,Ki).call(this,t)?.firstPuppetRid??null},"#findContainerRid"),bc=new WeakSet,ad=a(function(t,e,n,r){let i={},u=r&&n&&typeof window<"u"?window.getComputedStyle(n):null;for(let f of Cl)f in t||(f in e?i[f]=e[f]:u&&(i[f]=u.getPropertyValue(f)));return i},"#resolveInherited"),vc=new WeakSet,ld=a(function(t,e,n){let r={};for(let i in e){let l=ug(t.style,i,n);l&&(r[i]=l)}return r},"#sourcesOf"),Sc=new WeakSet,ud=a(function(t,e,n,r){let i=Array.isArray(t.anchor)&&t.anchor.length?$l(t.anchor):{},l=e.$anchorX??i.$anchorX??Fh({},n,"x"),u=e.$anchorY??i.$anchorY??Fh({},n,"y"),f=e.$flow??(t.sticky?"sticky":"auto"),p=fg(r,{$flow:f},{rawPosition:n.position??null,sticky:t.sticky??null});return{flow:f,mode:p,anchorX:l,anchorY:u}},"#placementOf"),wc=new WeakSet,fd=a(function(t,e){let n={};for(let r in t)r in e||(n[r]=t[r]);return n},"#withoutKeys"),Ao=new WeakSet,Ml=a(function(t){return t?.type!=="instance"||!t.component?null:this.inject("registry").describeComponent(t.library,t.component)},"#resolveComponentMeta"),kc=new WeakSet,hd=a(function(t,e){let n=t.node;if(n.type==="instance"){let r=this.inject("registry"),i=n?.component;if(!i)return null;let u=r.getActor(r.definitionIdOf(n.library,i))?.node?.name;return u||h(this,Ao,Ml).call(this,n)?.displayName||i}return n.type==="frame"||n.type==="component"?n.name||null:n.name||n.tagName||e?.tagName?.toLowerCase()||null},"#resolveName"),$c=new WeakSet,dd=a(function(t){return c(this,bt).has(t)},"#isSelected"),tr=new WeakSet,Gi=a(function(t){return!!t.instanceRid&&t.actor?.node?.type!=="slot"},"#isInstanceInternal"),ne=new WeakSet,zn=a(function(t){return Rh(t)},"#resolveEl"),Ac=new WeakSet,pd=a(function(t){return t.actor?.node?.type==="instance"?t.getSlotRids():t.actor?.node?.type==="slot"?t.instanceRid?t.runtime.registry.getPuppet(t.instanceRid).getSlotChildren(t.actor.id):[]:[...t.getChildrenRids()]},"#childRids"),Cc=new WeakSet,md=a(function(t,e,n){let r=this.inject("registry"),{rid:i,actor:l}=t,{id:u,node:f}=l,p=e?h(this,Zn,Ki).call(this,l):null,m=p?.node.bounds.width??1/0,g=p?.node[".activeBreakpoint"]??null,b=f[".interactionState"]??[],v=e?Sh(f,m,b):{},x=e?g==null?v:Eh(f,g,b):{},S=h(this,$c,dd).call(this,i),w=e?h(this,bc,ad).call(this,x,v,e,S):{},E={...w,...x},j=n?r.getActorId(n):null,N=e?wh(f,m,b):{},$=e?g==null?N:Ch(f,g,b):{},C=Number.isFinite(m)?`@${Math.floor(m)}`:"default",T=this.inject("styleContext"),L=j?Oh(T.childContextOf(j),C):{},O={id:u,node:f,styles:E,authoredStyles:x,inheritedStyles:w,authoredIntents:$,inheritedIntents:h(this,wc,fd).call(this,N,$),sources:e?h(this,vc,ld).call(this,f,{...v,...N},m):{},layoutIntent:Oh(l.context??Tt(f),C),parentLayoutIntent:L,placement:e?h(this,Sc,ud).call(this,f,N,v,L):{},name:h(this,kc,hd).call(this,l,e),containerRid:p?.firstPuppetRid??null,tagName:f.type==="slot"?"slot":f.tagName||e?.tagName?.toLowerCase(),instanceRid:t.instanceRid,targetable:h(this,Ec,gd).call(this,f,t),readOnly:h(this,Rc,yd).call(this,f,t),editable:f.childrenType==="text",root:n==="app",temp:n==="temp",contextPaths:void 0,componentMeta:void 0};return(S||i===c(this,Vn)||f.type==="root")&&(O.contextPaths=h(this,Co,Fl).call(this,t),f.type==="instance"&&(O.componentMeta=h(this,Ao,Ml).call(this,f))),O},"#buildData"),Ec=new WeakSet,gd=a(function(t,e){let n=t.type;if(n==="slot"&&e.instanceRid)return!0;if(n==="instance"||n==="slot"||e.instanceRid)return!1;let r=t.childrenType;return r==="*"||r==="children"||Array.isArray(r)},"#resolveTargetable"),Rc=new WeakSet,yd=a(function(t,e){return t.type==="slot"&&!!e.instanceRid},"#resolveReadOnly"),Co=new WeakSet,Fl=a(function(t){let e=this.inject("modules")?.getContextPaths?.()??[],n=h(this,Eo,Il).call(this,t.rid),r=h(this,To,Dl).call(this,n),i=h(this,Pc,vd).call(this,t?.ctx);if(i){let u=new Set(i.paths.map(({dot:m})=>m)),f=h(this,No,Bl).call(this,n).filter(({dot:m})=>!u.has(m)),p=h(this,Ro,Ll).call(this,[...i.paths,...f],r);return i.reachesRoot?[...e,...p]:p}let l=h(this,Ro,Ll).call(this,h(this,No,Bl).call(this,n),r);return l.length>0?[...e,...l]:e},"#resolveContextPaths"),Tc=new WeakSet,xd=a(function(t,e){let n=this.inject("modules"),r=new Map;for(let i of n?.getCurrentStoreNames?.()??[]){let l=n.getSchema(i);l&&r.set(`$${i}`,{schema:l,type:l.fields})}for(let[i,l]of h(this,To,Dl).call(this,h(this,Eo,Il).call(this,t.rid)))r.set(i,l);return jh(e,{rootTypes:r,listed:h(this,Co,Fl).call(this,t)})},"#bindingStatus"),Eo=new WeakSet,Il=a(function(t){let e=this.inject("registry"),n=[],r=new Set,i=e.getActor(e.getActorId(t));for(;i&&!r.has(i.id);)r.add(i.id),i.node?.repeat&&n.push(i.node.repeat),i=i.parentId!=null?e.getActor(i.parentId):null;return n},"#enclosingRepeats"),Ro=new WeakSet,Ll=a(function(t,e){return t.flatMap(n=>{let r=n.path.length===1?e.get(n.dot):null;return r?zs(n.path,r.type,r.schema,void 0,"local"):[n]})},"#typedLocals"),To=new WeakSet,Dl=a(function(t){let e=new Map;for(let n of[...t].reverse()){if(!n.as)continue;e.delete(n.as);let r=dg(n);if(!r)continue;let[i,...l]=r,u=e.get(i)??h(this,Nc,bd).call(this,i);if(!u)continue;let f=pg(Un(u.schema,u.type,l));f!==void 0&&e.set(n.as,{schema:u.schema,type:f})}return e},"#repeatLocalTypes"),Nc=new WeakSet,bd=a(function(t){if(!t?.startsWith("$"))return null;let e=this.inject("modules")?.getSchema?.(t.slice(1));return e?{schema:e,type:e.fields}:null},"#storeRootType"),Pc=new WeakSet,vd=a(function(t){let e=t?Ih.from(t):null,n=Ih.from(this.inject("context")?.ctx);if(!e||e===n)return null;let r=[],i=new Set,l=!1;for(;e;e=e.parent){if(e===n){l=!0;break}for(let u of Object.keys(e.surface))i.has(u)||(i.add(u),r.push({path:[u],type:"local",dot:u}))}return{paths:r.reverse(),reachesRoot:l}},"#scopePaths"),No=new WeakSet,Bl=a(function(t){let e=[],n=new Set;for(let r of t)for(let i of[r.as,r.index,r.key])!i||n.has(i)||(n.add(i),e.push({path:[i],type:"local",dot:i}));return e},"#repeatLocalPaths"),a(jc,"NodeGraph"),k(jc,"manifest",{name:"NodeGraph",namespace:"nodeGraph"});var Yi=jc;import{ServiceProvider as $g}from"@jucie.io/engine";var nt,rt,_e,He,St,jo,Oo,_l,Ue,Po,Mc=class Mc extends $g{constructor(){super(...arguments);d(this,Oo);d(this,Ue);d(this,nt,1);d(this,rt,{x:0,y:0});d(this,_e,0);d(this,He,0);d(this,St,{size:12,color:"rgba(139, 139, 139, 0.15)",dotSize:1,visible:!0});d(this,jo,"#1E1E25")}initialize(){h(this,Oo,_l).call(this),h(this,Ue,Po).call(this)}actions(t,e){return{set:({scale:n,scroll:r,width:i,height:l})=>{y(this,nt,n??c(this,nt)),y(this,rt,r??c(this,rt)),y(this,_e,i??c(this,_e)),y(this,He,l??c(this,He)),h(this,Oo,_l).call(this),h(this,Ue,Po).call(this)},get:()=>({scale:c(this,nt),scroll:c(this,rt),width:c(this,_e),height:c(this,He)}),setGrid:n=>{Object.assign(c(this,St),n),h(this,Ue,Po).call(this)},setBackground:n=>{y(this,jo,n),h(this,Ue,Po).call(this)},isFrameVisible:n=>{if(!n)return!0;let r=c(this,_e)/c(this,nt),i=c(this,He)/c(this,nt),l=-c(this,rt).x/c(this,nt)-r/2,u=-c(this,rt).y/c(this,nt)-i/2,f=l+r*2,p=u+i*2;return n.x+n.width>l&&n.x<f&&n.y+n.height>u&&n.y<p}}}};nt=new WeakMap,rt=new WeakMap,_e=new WeakMap,He=new WeakMap,St=new WeakMap,jo=new WeakMap,Oo=new WeakSet,_l=a(function(){typeof document>"u"||(document.body.style.transform=`translate(${c(this,rt).x}px, ${c(this,rt).y}px) scale(${c(this,nt)})`)},"#applyTransform"),Ue=new WeakSet,Po=a(function(){if(typeof document>"u")return;let t=document.documentElement,e=c(this,St).size*c(this,nt);for(;e<c(this,St).size;)e*=2;t.style.backgroundColor=c(this,jo),c(this,St).visible?(t.style.backgroundImage=`radial-gradient(circle, ${c(this,St).color} ${c(this,St).dotSize}px, transparent ${c(this,St).dotSize}px)`,t.style.backgroundSize=`${e}px ${e}px`,t.style.backgroundPosition=`${c(this,rt).x}px ${c(this,rt).y}px`):t.style.backgroundImage="none"},"#applyGrid"),a(Mc,"Viewport"),k(Mc,"manifest",{name:"Viewport",namespace:"viewport"});var Oc=Mc;import{ServiceProvider as Ag}from"@jucie.io/engine";function Sd(o,s=()=>{}){let t=[];for(let e of o){if(typeof e!="function"||!e._name)throw new Error("Conversions must be made with defineConversions");for(let[n,{summary:r,convert:i}]of Object.entries(e(s))){let l=`${e._name}:${n}`;if(typeof i!="function")throw new Error(`Conversion ${l} has no convert function`);t.push({name:l,summary:r??l,convert:i})}}return t}a(Sd,"listConversions");function wd(o,s,t){let e=[],n=s;for(let r of o){let i=r.convert(n,t);if(!i)continue;e.push({conversion:r,changes:i});let l={...n};for(let[u,f]of Object.entries(i))f===void 0?delete l[u]:l[u]=f;n=l}return{node:n,steps:e}}a(wd,"convertNode");var Mo,er,Fo,Io,Hl,nr,Fc,Lc=class Lc extends Ag{constructor(){super(...arguments);d(this,Io);d(this,nr);d(this,Mo,[]);d(this,er,null);d(this,Fo,!1)}actions(t,e){let n=t("state");for(let r of e.conversions)h(this,Io,Hl).call(this,t,r);return{use:(...r)=>r.flatMap(i=>h(this,Io,Hl).call(this,t,i)),convert:()=>(y(this,Fo,!0),h(this,nr,Fc).call(this,n,Object.keys(n.get(["nodes"])??{})))}}initialize(t){let e=t("state");y(this,er,e.onChange?.addListener(n=>{if(!c(this,Fo))return;let r=new Set,i=!1;for(let{path:l}of n)l?.[0]==="nodes"&&(l.length===1?i=!0:r.add(l[1]));i?h(this,nr,Fc).call(this,e,Object.keys(e.get(["nodes"])??{})):r.size&&h(this,nr,Fc).call(this,e,[...r])})??null)}uninstall(){var t;(t=c(this,er))==null||t.call(this),y(this,er,null)}};Mo=new WeakMap,er=new WeakMap,Fo=new WeakMap,Io=new WeakSet,Hl=a(function(t,e){let n=Sd([e],t);return c(this,Mo).push(...n),n.map(({name:r})=>r)},"#use"),nr=new WeakSet,Fc=a(function(t,e){let n=[];for(let l of e){if(l.startsWith("."))continue;let u=t.get(["nodes",l]);if(u)for(let{conversion:f,changes:p}of wd(c(this,Mo),u,l).steps)n.push({id:l,conversion:f,changes:p})}if(!n.length)return[];let r=a(()=>{for(let{id:l,changes:u}of n)for(let[f,p]of Object.entries(u))p===void 0?t.remove(["nodes",l,f]):t.set(["nodes",l,f],p)},"write");t.history?t.history.untracked(r):r();let i=new Map;for(let{id:l,conversion:u}of n)i.has(u.name)||i.set(u.name,{name:u.name,summary:u.summary,ids:[]}),i.get(u.name).ids.push(l);return[...i.values()]},"#apply"),a(Lc,"Converter"),k(Lc,"manifest",{name:"Converter",namespace:"converter",defaults:{conversions:[]}});var Ic=Lc;import{createDefinition as Cg}from"@jucie.io/engine";var kd=Cg("nodeConversions",[Object]);var Ul=a(o=>o.replace(/\\([\\`*_[\]])/g,"$1"),"unescape"),Eg=[[/^\{\{[^}]+\}\}/,o=>[o[0],{}]],[/^\\([\\`*_[\]])/,o=>[o[1],{}]],[/^\[((?:\\.|[^\]\n])*)\]\(([^)\s]*)\)/,o=>[Ul(o[1]),{link:{href:o[2]}}]],[/^\*\*((?:\\.|[^*\n])+)\*\*/,o=>[Ul(o[1]),{bold:!0}]],[/^_((?:\\.|[^_\n])+)_/,o=>[Ul(o[1]),{italic:!0}]],[/^`([^`\n]+)`/,o=>[o[1],{code:!0}]]];function Rg(o){let s=[],t=0;for(;t<o.length;){let e=o.slice(t),n=null,r=1;for(let[u,f]of Eg){let p=e.match(u);if(p){n=f(p),r=p[0].length;break}}let[i,l]=n??[o[t],{}];s.push({text:i,formats:l}),t+=r}return Hs(s)}a(Rg,"markdownRuns");function Tg(o){let s=Rg(o).flatMap(({text:t,formats:e})=>kn(t).map(n=>({...n,formats:{...e}})));return s.length?s:R("")}a(Tg,"markdownToSegments");function Ng(o){return o.flatMap(s=>s.descriptor||s.block||!s.text?.includes("{{")?[s]:kn(s.text).map(t=>({...t,formats:{...s.formats}})))}a(Ng,"pillsInRuns");function $d(o){if(typeof o=="string")return kn(o);switch(o.mode??"value"){case"value":{let s=o.value==null?"":String(o.value);return o.specificPatterns?.includes("markdown")?Tg(s):kn(s)}case"binding":{let{binding:s}=o;if(!s?.length)return R("");let t=typeof s=="string"?s.split("."):s;return[Vt({...o,binding:t})]}case"computed":return[Vt({...o})];case"code":{let s=qt(o.code,"code");return s?[Vt({...o,mode:"computed",computed:s,code:null})]:R("")}default:return null}}a($d,"segmentsFor");var Ad=kd("text",()=>({textContentToSegments:{summary:"text \u2192 rich text",convert(o,s){if(s.startsWith("."))return null;if(Array.isArray(o.textSegments))return{textContent:Ng(o.textSegments),textSegments:void 0};let{textContent:t}=o;if(t==null||Array.isArray(t))return null;let e=$d(t);return e?{textContent:e}:null}},slotFillsToSegments:{summary:"slot text \u2192 rich text",convert(o,s){if(s.startsWith(".")||!Array.isArray(o.slots))return null;let t=!1,e=o.slots.map(n=>{let r=n?.textContent;if(r==null||Array.isArray(r))return n;let i=$d(r);return i?(t=!0,{...n,textContent:i}):n});return t?{slots:e}:null}}}));var Cd=[Ad];import{ServiceProvider as Pg}from"@jucie.io/engine";function Ed(o){return o.replace(/[/.]/g,"-").replace(/[^a-zA-Z0-9_-]/g,"")}a(Ed,"pathToSlug");var jg=/^\{(.+)\}$/,dt,We,Lo,rr,Dc,Do,Wl,Bo,ql,_c,Rd,_o,zl,Hc=class Hc extends Pg{constructor(){super(...arguments);d(this,We);d(this,rr);d(this,Do);d(this,Bo);d(this,_c);d(this,_o);d(this,dt,null)}initialize(){if(this.config?.staticStyles?.tokens)return;let t=this.config?.scene?null:this.inject("state")?.matcher;t?(t.createMatcher(["tokens"],()=>h(this,rr,Dc).call(this)),t.createMatcher([".libraries"],()=>h(this,rr,Dc).call(this))):h(this,rr,Dc).call(this)}actions(){return{toCssVar:t=>`var(--${t})`,resolveToken:t=>h(this,We,Lo).call(this,["tokens",t])??null,resolveByPath:t=>{let e=h(this,We,Lo).call(this,["tokens"])??{};for(let[n,r]of Object.entries(e))if(r?.$path===t)return{id:n,token:r,cssValue:h(this,_o,zl).call(this,r.$value,r.$type)};return null}}}getters(){return{contextPaths:()=>[],cssText:()=>h(this,Do,Wl).call(this)}}};dt=new WeakMap,We=new WeakSet,Lo=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),rr=new WeakSet,Dc=a(function(){if(typeof document>"u")return;let t=h(this,Do,Wl).call(this);!t&&!c(this,dt)&&!document.getElementById("jucie-tokens")||(c(this,dt)||(y(this,dt,document.getElementById("jucie-tokens")),c(this,dt)||(y(this,dt,document.createElement("style")),c(this,dt).id="jucie-tokens",document.head.appendChild(c(this,dt)))),c(this,dt).textContent=t,t&&this.inject("sceneCompiler")?.forceNodeGraph?.())},"#injectCSS"),Do=new WeakSet,Wl=a(function(){let t=h(this,We,Lo).call(this,["tokens"])??{},e=[],n=new Set(Object.keys(t));for(let r of Object.values(h(this,We,Lo).call(this,[".libraries"])??{})){let i=r?.tokens??{},l=Object.fromEntries(Object.entries(i).filter(([u])=>!n.has(u)));for(let u of Object.keys(l))n.add(u);e.push(...h(this,Bo,ql).call(this,l,i))}return e.push(...h(this,Bo,ql).call(this,t,t)),e.length?(this.config?.embedded||e.push(...h(this,_c,Rd).call(this,t)),`:root {
|
|
16
|
+
${e.join(`
|
|
17
|
+
`)}
|
|
18
|
+
}`):""},"#buildCss"),Bo=new WeakSet,ql=a(function(t,e){let n=new Map;for(let[r,i]of Object.entries(e))i?.$path&&n.set(i.$path,r);return Object.entries(t).filter(([,r])=>r!=null).map(([r,i])=>{let l=typeof i.$value=="string"&&i.$value.match(jg);if(l){let f=l[1].replace(/\./g,"/"),p=n.get(f),m=p?`var(--${p})`:"";return` --${r}: ${m};`}let u=h(this,_o,zl).call(this,i.$value,i.$type);return` --${r}: ${u};`})},"#idDeclarations"),_c=new WeakSet,Rd=a(function(t){let e=new Set,n=[];for(let[r,i]of Object.entries(t)){if(!i?.$path)continue;let l=Ed(i.$path);!l||e.has(l)||(e.add(l),n.push(` --${l}: var(--${r});`))}return n},"#readableNames"),_o=new WeakSet,zl=a(function(t,e){return t==null?"":typeof t=="string"?t:typeof t=="number"?String(t):typeof t=="object"?Array.isArray(t)?e==="cubicBezier"?`cubic-bezier(${t.join(", ")})`:t.join(", "):"value"in t&&"unit"in t?`${t.value}${t.unit}`:"hex"in t?t.hex:"":String(t)},"#toCSSValue"),a(Hc,"TokenResolver"),k(Hc,"manifest",{name:"TokenResolver",namespace:"tokenResolver"});var Bc=Hc;import{ServiceProvider as Ug}from"@jucie.io/engine";function P(o){return String(o).replace(/"/g,""")}a(P,"escapeAttribute");import{baseOf as Og,classifyKey as Mg}from"@jucie.io/composed-style";function Td(o){let s=a(e=>Object.entries(e??{}).map(([n,r])=>{if(r&&typeof r=="object"){let i=s(r);return i?`${n}: { ${i} }`:null}return`${n}: ${r}`}).filter(Boolean).join("; "),"decls"),t=[s(Og(o))];for(let e of Object.keys(o)){if(e==="default"||Mg(e)!=="condition")continue;let n=s(o[e]);n&&t.push(`${e}: { ${n} }`)}return t.filter(Boolean).join(" | ")}a(Td,"formatStyle");function Kl(o){let s=String(o??"").trim(),t=s.match(/^function\s*\([^)]*\)\s*\{\s*return\s+([\s\S]*?);?\s*\}$/),e=(t&&!t[1].includes(`
|
|
19
|
+
`)?t[1]:s).replace(/\s+/g," ");return e.length>120?`${e.slice(0,119)}\u2026`:e}a(Kl,"previewCode");function Fg(o){let s=a(t=>Math.round(t??0),"round");return`${s(o.x)},${s(o.y)},${s(o.width)}x${s(o.height)}`}a(Fg,"formatBounds");function Vl(o){return Array.isArray(o)?o.join("."):o??""}a(Vl,"formatBinding");function Uc(o){return!o||typeof o!="object"?null:o.mode==="binding"&&o.binding?`{{${Vl(o.binding)}}}`:o.mode==="computed"&&o.computed?`{fn: ${Kl(o.computed)}}`:o.mode==="code"&&o.code?`{fn: ${Kl(o.code)}}`:o.expression?`{{${o.expression}}}`:null}a(Uc,"formatDescriptor");function Ig(o){return o.map(s=>{let t=s.key??s.name??s.event;if(!t)return null;if(s.mode==="binding"||s.binding){let n=Vl(s.binding);return n?`${t}=${n}`:t}let e=s.code??s.expression??s.value??s.handler??"";return e?`${t}=${e}`:t}).filter(Boolean).join(", ")}a(Ig,"formatEvents");function Lg(o){return o.map(s=>{let t=s.key??s.name;if(!t)return null;if(s.mode==="binding"||s.binding){let r=Vl(s.binding);return r?`${t}=${r}`:t}let e=Uc(s);if(e)return`${t}=${e}`;let n=s.value??"";return n!==""?`${t}=${n}`:t}).filter(Boolean).join(", ")}a(Lg,"formatAttrs");function Dg(o){return o.map(s=>{if(!s?.name)return null;let t=Uc(s);return t?`${s.name}=${t}`:s.name}).filter(Boolean).join(", ")}a(Dg,"formatStates");function Bg(o){let s=Uc(o);if(s)return s;let t=Array.isArray(o?.value)?o.value:[];return t.length===0?null:t.map(e=>e.label===e.value||e.label==null?`${e.value}`:`${e.label}=${e.value}`).join(", ")}a(Bg,"formatOptions");function _g(o,s){let t=[],e=o.id??s;return e&&t.push(`id="${P(e)}"`),o.name&&t.push(`name="${P(o.name)}"`),o.component&&t.push(`component="${P(o.component)}"`),o.library&&t.push(`library="${P(o.library)}"`),o.route?.path&&t.push(`route="${P(o.route.path)}"`),o.repeat&&t.push("repeat"),o.destination?.path&&t.push(`dest="${P(o.destination.path)}"`),t.length?" "+t.join(" "):""}a(_g,"buildOutlineAttrString");function Gl(o,s,t=null,{outline:e=!1}={}){if(e)return _g(o,s);let n=[],r=o.id??s;if(r&&n.push(`id="${P(r)}"`),t&&n.push(`rid="${P(t)}"`),o.name&&n.push(`name="${P(o.name)}"`),o.bounds&&n.push(`bounds="${Fg(o.bounds)}"`),o.style&&Object.keys(o.style).length){let l=Td(o.style);l&&n.push(`style="${P(l)}"`)}if(o.events?.length&&n.push(`events="${P(Ig(o.events))}"`),o.attributes?.length&&n.push(`attrs="${P(Lg(o.attributes))}"`),o.states?.length){let l=Dg(o.states);l&&n.push(`states="${P(l)}"`)}if(o.options){let l=Bg(o.options);l&&n.push(`options="${P(l)}"`)}o.className?.length&&n.push(`class="${o.className.join(" ")}"`),o.repeat&&n.push(`repeat="${P(JSON.stringify(o.repeat))}"`),o.component&&n.push(`component="${P(o.component)}"`),o.library&&n.push(`library="${P(o.library)}"`),o.props&&Object.keys(o.props).length&&n.push(`props="${P(JSON.stringify(o.props))}"`),o.route?.path&&n.push(`route="${P(o.route.path)}"`);let i=Uc(o.render)??(o.render?.value!=null&&o.render.value!==!0?`{{${o.render.value}}}`:null);return i&&n.push(`render="${P(i)}"`),o.destination?.path&&n.push(`dest="${P(o.destination.path)}"`),n.length?" "+n.join(" "):""}a(Gl,"buildAttrString");var Hg=" ";function or(o,s){let t=Hg.repeat(s);return o.split(`
|
|
20
|
+
`).map(e=>t+e).join(`
|
|
21
|
+
`)}a(or,"indent");function Wc(o){return String(o).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}a(Wc,"escapeText");function Nd(o){let s=String(o).replace(/\s+/g," ").trim();return s.length>60?`${s.slice(0,59)}\u2026`:s}a(Nd,"outlineText");function Yl(o){let s=Kt(o);return s&&Qa(s)||null}a(Yl,"nodeText");var Uo,Jl,zc,Pd,Wo,Xl,Kc,jd,Vc,Od,qe,Ho,Gc=class Gc extends Ug{constructor(){super(...arguments);d(this,Uo);d(this,zc);d(this,Wo);d(this,Kc);d(this,Vc);d(this,qe)}actions(){return{projectJsx:(t,e)=>h(this,zc,Pd).call(this,t,e),projectPuppetJsx:(t,e)=>h(this,Kc,jd).call(this,t,e)}}};Uo=new WeakSet,Jl=a(function(t,e){let n=this.inject("registry"),r,i;return t.type==="element"&&t.tagName?(r=t.tagName,i=n.getPrototype(t.tagName)?.ex??null):t.type?(r=t.type,i=n.getPrototype(t.ex??t.type)?.ex??null):(r=e,i=null),i?`${r}:${i}`:r},"#resolveTag"),zc=new WeakSet,Pd=a(function(t,{maxDepth:e=1/0}={}){return h(this,Wo,Xl).call(this,t,0,e)},"#projectJsx"),Wo=new WeakSet,Xl=a(function(t,e,n){let r=this.inject("resolve").dispatch("computedNode",t)();if(!r)return`<!-- missing: ${t} -->`;let i=h(this,Uo,Jl).call(this,r,t),l=Gl(r,t),u=Yl(r),f=Array.isArray(r.children)?r.children:[];if(!(f.length>0||u!=null&&u!==""))return`<${i}${l} />`;if(e>=n){let g=f.length?`<\u22EF${f.length} children>`:"<\u22EFtext>";return`<${i}${l}>${g}</${i}>`}if(u!=null&&u!==""&&f.length===0)return`<${i}${l}>${Wc(u)}</${i}>`;let m=f.map(g=>or(h(this,Wo,Xl).call(this,g,e+1,n),1)).join(`
|
|
22
|
+
`);return`<${i}${l}>
|
|
23
|
+
${m}
|
|
24
|
+
</${i}>`},"#renderNode"),Kc=new WeakSet,jd=a(function(t,{maxDepth:e=1/0,outline:n=!1}={}){return Array.isArray(t)||(t=[t]),t.map(r=>{let i=h(this,Vc,Od).call(this,r);return typeof i=="string"&&i.startsWith("<!--")?i:h(this,qe,Ho).call(this,i,0,e,n)}).join(`
|
|
25
|
+
`)},"#projectPuppetJsx"),Vc=new WeakSet,Od=a(function(t){let e=this.inject("registry");if(e.hasPuppet(t))return t;let n=e.getActor(t)??e.getActor(e.getActorId(t));if(!n)return`<!-- no actor for: ${t} -->`;let r=n.firstPuppetRid;return r||`<!-- no puppet for: ${t} -->`},"#resolvePuppetRid"),qe=new WeakSet,Ho=a(function(t,e,n,r=!1){let l=this.inject("registry").getPuppet(t);if(!l)return`<!-- missing puppet: ${t} -->`;let u=l.actor,f=u.node;if(!f)return`<!-- missing node for puppet: ${t} -->`;let p=u.id,m=h(this,Uo,Jl).call(this,f,p),g=Gl(f,p,t,{outline:r}),b=Yl(f),v=b!=null&&r?Nd(b):b,x=l.getChildEntries(),S=l.getCloneEntries(),w=l.getSlotEntries(),E=x.length>0||S.length>0||w.length>0;if(!(E||v!=null&&v!==""))return`<${m}${g} />`;if(e>=n){let $=x.length+S.length,C=$>0?`<\u22EF${$} children>`:"<\u22EFtext>";return`<${m}${g}>${C}</${m}>`}if(v!=null&&v!==""&&!E)return`<${m}${g}>${Wc(v)}</${m}>`;let N=[];for(let[,$]of x)N.push(or(h(this,qe,Ho).call(this,$,e+1,n,r),1));for(let[,$]of S)N.push(or(h(this,qe,Ho).call(this,$,e+1,n,r),1));for(let[$,C]of w){let T=[];for(let[,L]of C.entries())T.push(or(h(this,qe,Ho).call(this,L,e+2,n,r),1));T.length&&N.push(or(`<slot name="${P($)}">
|
|
26
|
+
${T.join(`
|
|
27
|
+
`)}
|
|
28
|
+
</slot>`,1))}return N.length===0&&v!=null&&v!==""?`<${m}${g}>${Wc(v)}</${m}>`:`<${m}${g}>
|
|
29
|
+
${N.join(`
|
|
30
|
+
`)}
|
|
31
|
+
</${m}>`},"#renderPuppet"),a(Gc,"JSX"),k(Gc,"manifest",{name:"JSX",namespace:"jsx",version:"1.0.0"});var qc=Gc;import{ServiceProvider as Wg}from"@jucie.io/engine";var pt,wt,ze,Ke,re,oe,Ve,Ft,Jc,Md,zo,Zl,Ko,Ql,Ge,qo,Vo,tu,eu=class eu{constructor(s=null,t){d(this,Jc);d(this,zo);d(this,Ko);d(this,Ge);d(this,Vo);d(this,pt,null);d(this,wt,null);d(this,ze,null);d(this,Ke,!1);d(this,re,new Map);d(this,oe,new Map);d(this,Ve,new Set);d(this,Ft,null);k(this,"destroyed",!1);y(this,pt,s??(typeof document<"u"?document:null)),y(this,wt,t)}register(s){let t=c(this,pt)??s.app?.$el?.ownerDocument??(typeof document<"u"?document:null);y(this,pt,t),this.update(s.id,s.node,s.isInstance,s.parentId)}unregister(s){c(this,Ve).delete(s);let t=c(this,re).delete(s),e=c(this,oe).delete(s);(t||e)&&h(this,Ko,Ql).call(this)}update(s,t,e=!1,n=null){if(!t||c(this,wt).isStatic(s,n))return;let r=c(this,wt).resolvePosition(t,n),i=c(this,wt).resolveInheritedFont(t,n),l=c(this,wt).buildStyles(s,t,e,r,i,n);(e?c(this,oe):c(this,re)).set(s,l),c(this,Ve).add(s),h(this,Ko,Ql).call(this)}cssText(){return[...c(this,re).values(),...c(this,oe).values()].some(s=>s.length)?h(this,Vo,tu).call(this):""}destroy(){this.destroyed=!0,h(this,zo,Zl).call(this),c(this,pt)&&c(this,Ke)&&(c(this,pt).adoptedStyleSheets=c(this,pt).adoptedStyleSheets.filter(s=>s!==c(this,ze))),y(this,Ke,!1),c(this,re).clear(),c(this,oe).clear(),c(this,Ve).clear()}flush(){this.destroyed||h(this,Ge,qo).call(this)}};pt=new WeakMap,wt=new WeakMap,ze=new WeakMap,Ke=new WeakMap,re=new WeakMap,oe=new WeakMap,Ve=new WeakMap,Ft=new WeakMap,Jc=new WeakSet,Md=a(function(){if(c(this,Ke))return;let s=c(this,pt);s&&(c(this,ze)??y(this,ze,new CSSStyleSheet),s.adoptedStyleSheets=[...s.adoptedStyleSheets,c(this,ze)],y(this,Ke,!0))},"#ensureAttached"),zo=new WeakSet,Zl=a(function(){c(this,Ft)&&(cancelAnimationFrame(c(this,Ft)),y(this,Ft,null))},"#cancelScheduledFlush"),Ko=new WeakSet,Ql=a(function(){if(c(this,wt).view==="design"){if(h(this,zo,Zl).call(this),c(this,wt).defer(this))return;h(this,Ge,qo).call(this);return}if(!c(this,Ft)){if(typeof requestAnimationFrame>"u"){h(this,Ge,qo).call(this);return}y(this,Ft,requestAnimationFrame(()=>{y(this,Ft,null),h(this,Ge,qo).call(this)}))}},"#scheduleFlush"),Ge=new WeakSet,qo=a(function(){h(this,Jc,Md).call(this);let s=c(this,ze);if(!s)return;let t=h(this,Vo,tu).call(this);if(s.replaceSync)s.replaceSync(t);else{for(;s.cssRules.length>0;)s.deleteRule(0);let e=t.split(`
|
|
32
|
+
`);for(let n of e)if(n)try{s.insertRule(n,s.cssRules.length)}catch{}}c(this,Ve).clear(),c(this,pt)?.getElementById?.("jucie-ssr-css")?.remove()},"#flush"),Vo=new WeakSet,tu=a(function(){let s=`@layer base, instances;
|
|
33
|
+
`;s+=`@layer base {
|
|
34
|
+
`;for(let t of c(this,re).values())for(let e of t)s+=e,s+=`
|
|
35
|
+
`;s+=`}
|
|
36
|
+
`,s+=`@layer instances {
|
|
37
|
+
`;for(let t of c(this,oe).values())for(let e of t)s+=e,s+=`
|
|
38
|
+
`;return s+=`}
|
|
39
|
+
`,s},"#buildCss"),a(eu,"StyleScope");var Yc=eu;function Fd(o,s,t){return`${t?`${t} `:""}translate(${o}px, ${s}px)`}a(Fd,"resolveTransform");function nu(o){return`.${String(o).replace(/[^a-zA-Z0-9_-]/g,s=>`\\${s}`)}`}a(nu,"classSelector");import{compileNode as qg,stateSelector as zg,breakpointOf as Kg,baseOf as Go}from"@jucie.io/composed-style";var sr=[{name:"Mobile",key:"default",min:0,width:375},{name:"Tablet",key:"@768",min:768},{name:"Desktop",key:"@1280",min:1280}];var ru=a(o=>Array.isArray(o?.breakpoints)&&o.breakpoints.length?o.breakpoints:sr,"appBreakpoints");var Id=a(o=>String(o).trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),"slug");function ou(o=sr){return Object.fromEntries(o.filter(s=>s.name&&s.min>0&&Id(s.name)).map(s=>[Id(s.name),s.min]))}a(ou,"breakpointNames");var Vg=a(o=>{if(o.$flow!=="sticky")return null;let s=o.$anchorY==="end"?"bottom":"top";return{edge:s,offset:o[s]&&o[s]!=="auto"?o[s]:"0px"}},"stickyOf"),Gg=new Set(["position","top","left","right","bottom"]),Yg={default:{$layout:"none"}},Jg={default:{$layout:"block"}};function Xg(o,s){let t=new Map(o);for(let[e,n]of s)t.set(e,n);return[...t]}a(Xg,"mergeDeclarations");var kt,Je,ir,cr,ar,lr,Yo,Jo,Xo,Zo,Qo,ts,ur,es,su,Qc,Dd,It,Ye,fr,Xc,ta,Bd,ea,_d,ns,iu,rs,cu,na,Hd,ra,Ud,oa,Wd,sa=class sa extends Wg{constructor(){super(...arguments);d(this,es);d(this,Qc);d(this,It);d(this,fr);d(this,ta);d(this,ea);d(this,ns);d(this,rs);d(this,na);d(this,ra);d(this,oa);d(this,kt,new Map);d(this,Je,"design");d(this,ir,void 0);d(this,cr,void 0);d(this,ar,0);d(this,lr,new Set);d(this,Yo,void 0);d(this,Jo,void 0);d(this,Xo,{tokens:{}});d(this,Zo,void 0);d(this,Qo,{});d(this,ts,null);d(this,ur,!1)}initialize(){y(this,Je,this.config?.view??"design"),y(this,ts,this.config?.staticStyles?.actors??null),y(this,ur,!!this.config?.embedded)}isStatic(t,e=null){let n=c(this,ts);return!!n&&Object.hasOwn(n,t)&&n[t]===(e??null)}get view(){return c(this,Je)}batch(t){et(this,ar)._++;try{return t()}finally{if(--et(this,ar)._===0){let e=[...c(this,lr)];c(this,lr).clear();for(let n of e)n.flush()}}}defer(t){return c(this,ar)===0?!1:(c(this,lr).add(t),!0)}getters(){return{cssText:()=>h(this,rs,cu).call(this)}}actions(){return{createScope:(t,e=null)=>h(this,ns,iu).call(this,t,e),getScope:t=>c(this,kt).get(t)??null,destroyScope:t=>{let e=c(this,kt).get(t);e&&(e.destroy(),c(this,kt).delete(t))},buildStyles:(t,e,n,r,i,l)=>this.buildStyles(t,e,n,r,i,l),batch:t=>this.batch(t),compileAll:()=>this.compileAll(),childContextOf:t=>this.childContextOf(t),passesThrough:t=>this.passesThrough(t)}}compileAll(){let t=c(this,It,Ye),e=this.inject("resolve"),n=a(u=>e.dispatch("nodeData",u),"nodeData");t.setActorClass(fn);let r={config:{view:c(this,Je)},runtime:this.inject(),$el:null,styleScope:h(this,ns,iu).call(this,"app")},i={},l=a((u,f,p)=>{if(u in i)return;let m=t.resolveActor(r,u,{styleScope:p,parentId:f});if(!m)return;i[u]=f;let{node:g}=m,b=a((v,x)=>{if(Array.isArray(v))for(let S of v)l(S,x,m.styleScope)},"each");if(g.type==="instance"){let v=t.definitionIdOf(g.library,g.component),x=v?n(v):null;x?.type==="component"&&b(x.children,u);for(let S of g.slots??[])b(S.children,S.id);return}b(g.children,u)},"visit");for(let u of n("app")?.children??[])n(u)?.type!=="component"&&l(u,null,void 0);return{css:h(this,rs,cu).call(this),tokensCss:this.inject("tokenResolver")?.cssText??"",actors:i}}resolvePosition(t,e){if(t?.bounds)return null;if(e==null)return c(this,ur)?null:"absolute";let n=c(this,It,Ye)?.getActor(e);return n&&ln(n.node)!=="none"?"relative":"absolute"}resolveInheritedFont(t,e){let n=c(this,It,Ye),r=t,i=e;for(;r;){let l=Go(r.style),u=l?.["font-family"]||l?.fontFamily;if(u){let p=l?.["font-style"]||l?.fontStyle||"normal";return{family:u,style:p}}let f=i!=null?n?.getActor(i):null;r=f?.node??null,i=f?.parentId}return null}actorContext(t){return t?.context??Tt(t?.node)}passesThrough(t){return t?.node?.type!=="slot"?!1:!Object.values(this.actorContext(t)).some(e=>e.$layout&&e.$layout!=="none")}childContextOf(t){let e=t!=null?c(this,It,Ye)?.getActor(t):null;for(;e&&this.passesThrough(e);)e=e.parentId!=null?c(this,It,Ye).getActor(e.parentId):null;return e?this.actorContext(e):{}}buildStyles(t,e,n=!1,r=null,i=null,l=null){let u=[],f=nu(t),p=l!=null?c(this,It,Ye)?.getActor(l):null,m=c(this,Je),g=h(this,es,su).call(this,n,l),b=!!p&&h(this,es,su).call(this,p.isInstance,p.parentId),v=Yg;b?v=Jg:p&&(v=this.childContextOf(l));let x=e.bounds?"frame":n?"instance":"perBreakpoint",S=x==="perBreakpoint",w=x==="instance"&&p?ln(p.node):null,E=x==="instance"&&!!w&&w!=="none";E&&r&&u.push(`${f} { position: ${r}; }`);let j=qg(e.style,{values:c(this,ta,Bd),breakpoints:c(this,ea,_d),parent:v,position:S&&!b,sticky:S&&!b?e.sticky??null:null,scopeToParent:p?.node?.type==="slot"}).rules;if(x==="instance"&&r&&!E&&!Go(e.style).position){let $=e.style?[["position",r],["top","auto"],["left","auto"],["right","auto"],["bottom","auto"]]:[["position",r]],C=j.find(T=>T.condition==="default"&&!T.state&&!T.parentScoped);C||(C={condition:"default",state:null,declarations:[]},j.unshift(C)),C.declarations=Xg($,C.declarations)}for(let $ of j){let C=E?$.declarations.filter(([O])=>!Gg.has(O)):$.declarations,T=h(this,oa,Wd).call(this,C,i);if(!T)continue;let L=$.parentScoped?`${nu(l)} > ${f}`:f;for(let O of h(this,na,Hd).call(this,L,$.state))u.push(h(this,ra,Ud).call(this,O,Kg($.condition),T))}if(x==="instance"&&!g){let $=r??"relative";u.push(`${f} { position: ${$}; top: auto; left: auto; right: auto; bottom: auto; }`)}let N=x==="instance"?e.sticky??Vg(Go(e.style)):null;if(N&&w==="block"){let $=N.edge==="bottom"?"bottom":"top",C=N.offset||"0px";u.push(`${f} { position: sticky; ${$}: ${C}; }`)}if(m==="design"&&!e.bounds){let $=e[".position"];if($){let C=Go(e.style).transform,T=Fd($.x,$.y,C);u.push(`${f} { transform: ${T}; }`)}}if(e.bounds){let $=e.bounds;if(m==="design"){let C=e[".position"],T=($.x||0)+(C?.x||0),L=($.y||0)+(C?.y||0),O=Go(e.style).transform,us=`translate(${T}px, ${L}px)${O?` ${O}`:""}`;u.push(`${f} { container-type: inline-size; position: absolute; top: 0 !important; left: 0 !important; transform: ${us} !important; width: ${$.width||0}px !important; height: ${$.height||0}px !important; }`)}else u.push(`${f} { container-type: inline-size; position: relative; width: 100vw; height: 100vh; }`)}return u}};kt=new WeakMap,Je=new WeakMap,ir=new WeakMap,cr=new WeakMap,ar=new WeakMap,lr=new WeakMap,Yo=new WeakMap,Jo=new WeakMap,Xo=new WeakMap,Zo=new WeakMap,Qo=new WeakMap,ts=new WeakMap,ur=new WeakMap,es=new WeakSet,su=a(function(t,e){return c(this,ur)&&t&&e==null},"#isPlacedByHost"),Qc=new WeakSet,Dd=a(function(){return c(this,ir)===void 0&&y(this,ir,this.inject("fontResolver")??null),c(this,ir)},"#resolver"),It=new WeakSet,Ye=a(function(){return c(this,cr)===void 0&&y(this,cr,this.inject("registry")??null),c(this,cr)},"#registry"),fr=new WeakSet,Xc=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),ta=new WeakSet,Bd=a(function(){let t=h(this,fr,Xc).call(this,["tokens"])??null,e=h(this,fr,Xc).call(this,[".libraries"])??null;if(t!==c(this,Yo)||e!==c(this,Jo)){y(this,Yo,t),y(this,Jo,e);let n=[...Object.values(e??{}).flatMap(r=>Object.keys(r?.tokens??{})),...Object.keys(t??{})];y(this,Xo,{tokens:Object.fromEntries(n.map(r=>[r,`var(--${r})`]))})}return c(this,Xo)},"#holeValues"),ea=new WeakSet,_d=a(function(){let t=ru(h(this,fr,Xc).call(this,["nodes","app"]));return t!==c(this,Zo)&&(y(this,Zo,t),y(this,Qo,ou(t))),c(this,Qo)},"#breakpointConfig"),ns=new WeakSet,iu=a(function(t,e=null){return c(this,kt).has(t)||c(this,kt).set(t,new Yc(e,this)),c(this,kt).get(t)},"#createScope"),rs=new WeakSet,cu=a(function(){return[...c(this,kt).values()].map(t=>t.cssText()).filter(Boolean).join(`
|
|
40
|
+
`)},"#cssText"),na=new WeakSet,Hd=a(function(t,e){return e?e[0]==="&"?[zg(t,e)]:[`${t}${e}`,`${t}.force-${e.slice(1)}`]:[t]},"#stateSelectors"),ra=new WeakSet,Ud=a(function(t,e,n){return e?`@container (min-width: ${e}px) { ${t} { ${n} } }`:`${t} { ${n} }`},"#wrap"),oa=new WeakSet,Wd=a(function(t,e=null){let n=c(this,Qc,Dd);if(n){let r=a(f=>t.find(([p])=>p===f)?.[1],"get"),i=r("font-family"),l=r("font-weight")||"400",u=r("font-style")||"normal";i?n.resolve(i,l,u):e&&(r("font-weight")||r("font-style"))&&n.resolve(e.family,l,r("font-style")?u:e.style)}return t.map(([r,i])=>`${r}: ${r==="font-family"?Hr(i):i}`).join("; ")},"#toCSS"),a(sa,"StyleContext"),k(sa,"manifest",{name:"StyleContext",namespace:"styleContext"});var Zc=sa;import{ServiceProvider as Zg}from"@jucie.io/engine";var Qg=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong","Helvetica","Arial","Arial Black","Verdana","Tahoma","Trebuchet MS","Impact","Gill Sans","Times New Roman","Georgia","Palatino","Baskerville","Andal\xE9 Mono","Courier","Courier New","Lucida","Lucida Console","Lucida Sans","Monaco","Bradley Hand","Brush Script MT","Luminari","Comic Sans MS","Segoe UI","Roboto","Helvetica Neue","-apple-system","BlinkMacSystemFont","SF Pro","SF Mono","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"]),ty=new Set([...Qg].map(o=>o.toLowerCase()));function Lt(o){return ty.has(o.toLowerCase().trim())}a(Lt,"isSystemFont");function Xe(o){return!o||typeof o!="string"?[]:o.includes("var(")?[]:o.split(",").map(s=>s.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean).map(ey)}a(Xe,"parseFontFamily");function ey(o){let s=o.indexOf("@");if(s===-1){let n=o.trim();return{name:n,source:Lt(n)?"system":null}}let t=o.slice(0,s).trim(),e=o.slice(s+1).trim();return e==="google"?{name:t,source:"google"}:e==="local"?{name:t,source:"local"}:e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?{name:t,source:"url",url:e}:{name:t,source:e}}a(ey,"parseSourceDescriptor");function ny(o){return!o||typeof o!="string"||o.includes("var(")?o:o.split(",").map(s=>{let t=s.trim().replace(/^['"]|['"]$/g,""),e=t.indexOf("@"),n=e===-1?t:t.slice(0,e).trim();return n.includes(" ")?`"${n}"`:n}).join(", ")}a(ny,"cleanFontFamily");var ry={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",normal:"400",regular:"400",medium:"500","semi-bold":"600","demi-bold":"600",bold:"700","extra-bold":"800","ultra-bold":"800",black:"900",heavy:"900"};function oy(o){if(!o)return"400";let s=String(o).toLowerCase().trim();return ry[s]??s}a(oy,"normalizeWeight");function sy(o){if(!o)return"0";let s=String(o).toLowerCase().trim();return s==="italic"||s==="oblique"?"1":"0"}a(sy,"normalizeStyle");function ia(o,s){return`${sy(s)},${oy(o)}`}a(ia,"toVariant");function iy(o){if(!o||o.size===0)return"";let s=[],t=qd(o);t&&s.push('<link rel="preconnect" href="https://fonts.googleapis.com">','<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>',`<link href="${t}" rel="stylesheet">`);let e=zd(o);return e&&s.push(`<style>
|
|
41
|
+
${e}</style>`),s.join(`
|
|
42
|
+
`)}a(iy,"buildFontLinks");function qd(o){let s=[];for(let[t,e]of o){if(e.source!=="google")continue;let n=[...e.variants].sort();if(n.some(i=>i.startsWith("1,")))s.push(`family=${t.replace(/ /g,"+")}:ital,wght@${n.join(";")}`);else{let i=n.map(l=>l.split(",")[1]).sort((l,u)=>Number(l)-Number(u));s.push(`family=${t.replace(/ /g,"+")}:wght@${i.join(";")}`)}}return s.length===0?null:`https://fonts.googleapis.com/css2?${s.join("&")}&display=swap`}a(qd,"buildGoogleUrl");function zd(o){let s=[];for(let[t,e]of o){if(e.source==="google"||!e.url)continue;let n=e.url.split(".").pop()?.toLowerCase(),r={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"}[n]||"woff2";for(let i of e.variants){let[l,u]=i.split(","),f=l==="1"?"italic":"normal";s.push(` @font-face {
|
|
43
|
+
font-family: "${t}";
|
|
44
|
+
src: url("${e.url}") format("${r}");
|
|
45
|
+
font-weight: ${u};
|
|
46
|
+
font-style: ${f};
|
|
47
|
+
font-display: swap;
|
|
48
|
+
}`)}}return s.length>0?s.join(`
|
|
49
|
+
`):""}a(zd,"buildFontFaceBlock");function au(o){return o["font-family"]||o.fontFamily||null}a(au,"getFamily");function ca(o){return o["font-weight"]||o.fontWeight||null}a(ca,"getWeight");function aa(o){return o["font-style"]||o.fontStyle||null}a(aa,"getStyle");function lu(o){if(!o||typeof o!="object")return[];let{default:s,...t}=o,e=[{...t,...s&&typeof s=="object"?s:null}];for(let[n,r]of Object.entries(t))n.startsWith("@")&&r&&typeof r=="object"&&e.push(r);return e}a(lu,"styleBlocks");var K,G,mt,gt,ot,la,Kd,ua,Vd,fa,Gd,ha,Yd,ss,uu,da,Jd,pa,Xd,ma,Zd,ga,Qd,$t,se,ya,tp,xa,ep,is,fu,cs,hu,ba=class ba extends Zg{constructor(){super(...arguments);d(this,la);d(this,ua);d(this,fa);d(this,ha);d(this,ss);d(this,da);d(this,pa);d(this,ma);d(this,ga);d(this,$t);d(this,ya);d(this,xa);d(this,is);d(this,cs);d(this,K,new Map);d(this,G,null);d(this,mt,null);d(this,gt,null);d(this,ot,null)}initialize(){y(this,K,new Map),h(this,is,fu).call(this)}actions(){return{resolve:(t,e,n)=>h(this,la,Kd).call(this,t,e,n),requestFont:(t,e,n)=>h(this,ya,tp).call(this,t,e,n),hasFont:t=>h(this,xa,ep).call(this,t),getFonts:()=>c(this,K),buildLinks:()=>h(this,ua,Vd).call(this)}}getters(){return{contextPaths:()=>[]}}};K=new WeakMap,G=new WeakMap,mt=new WeakMap,gt=new WeakMap,ot=new WeakMap,la=new WeakSet,Kd=a(function(t,e="400",n="normal"){if(!t||typeof t!="string")return t;let r=Xe(t),i=!1;for(let{name:l,source:u,url:f}of r)u==="system"||Lt(l)||h(this,$t,se).call(this,l,e,n,u||"google",f)&&(i=!0);return i&&h(this,cs,hu).call(this),ny(t)},"#resolve"),ua=new WeakSet,Vd=a(function(){return iy(h(this,fa,Gd).call(this))},"#buildLinks"),fa=new WeakSet,Gd=a(function(){y(this,K,new Map);let t=this.inject("state");h(this,ha,Yd).call(this,t);let e=t.get(["nodes"]);return e?.app&&h(this,ss,uu).call(this,"app",e,null),c(this,K)},"#scanFonts"),ha=new WeakSet,Yd=a(function(t){let e=t.get(["tokens"]);if(e){for(let[,n]of Object.entries(e))if(!(!n||n.$type!=="fontFamily"))for(let{name:r,source:i,url:l}of Xe(n.$value))i==="system"||Lt(r)||h(this,$t,se).call(this,r,"400","normal",i||"google",l)}},"#scanTokens"),ss=new WeakSet,uu=a(function(t,e,n){let r=e[t];if(!r)return;let{families:i}=h(this,ga,Qd).call(this,r),l=n;if(h(this,ma,Zd).call(this,r),i.size>0){for(let[f,p]of i)if(p.variants.size>0)for(let m of p.variants){let[,g]=m.split(","),b=m.startsWith("1,")?"italic":"normal";h(this,$t,se).call(this,f,g,b,p.source,p.url)}else h(this,$t,se).call(this,f,"400","normal",p.source,p.url);l=h(this,da,Jd).call(this,r)||[...i.keys()][0]}else if(l)for(let u of h(this,pa,Xd).call(this,r)){let f=c(this,K).get(l),[,p]=u.split(","),m=u.startsWith("1,")?"italic":"normal";h(this,$t,se).call(this,l,p,m,f?.source||"google",f?.url)}if(Array.isArray(r.children))for(let u of r.children)h(this,ss,uu).call(this,u,e,l)},"#walkNode"),da=new WeakSet,Jd=a(function(t){let e=lu(t?.style)[0];if(!e)return null;let n=au(e);return n&&Xe(n).find(i=>i.source!=="system"&&!Lt(i.name))?.name||null},"#getDefaultFamily"),pa=new WeakSet,Xd=a(function(t){if(!t?.style)return[];let e=new Set;for(let n of lu(t.style)){let r=ca(n),i=aa(n);(r||i)&&e.add(ia(r||"400",i||"normal"));for(let[l,u]of Object.entries(n))if((l.startsWith(":")||l.startsWith("&"))&&u&&typeof u=="object"){let f=ca(u),p=aa(u);(f||p)&&e.add(ia(f||"400",p||"normal"))}}return[...e]},"#extractVariantsOnly"),ma=new WeakSet,Zd=a(function(t){if(Array.isArray(t?.textContent))for(let e of t.textContent){let n=e?.formats;if(!n?.fontFamily)continue;let r=Xe(n.fontFamily).find(l=>l.source!=="system"&&!Lt(l.name));if(!r)continue;let i=String(n.fontWeight??(n.bold?"700":"400"));h(this,$t,se).call(this,r.name,i,n.italic?"italic":"normal",r.source||"google",r.url)}},"#registerSegmentFonts"),ga=new WeakSet,Qd=a(function(t){let e=new Map;if(!t?.style)return{families:e};function n(r,i,l){if(!r)return;let u=Xe(r).find(f=>f.source!=="system"&&!Lt(f.name));u&&(e.has(u.name)||e.set(u.name,{source:u.source||"google",url:u.url,variants:new Set}),(i||l)&&e.get(u.name).variants.add(ia(i||"400",l||"normal")))}a(n,"record");for(let r of lu(t.style)){n(au(r),ca(r),aa(r));for(let[i,l]of Object.entries(r))(i.startsWith(":")||i.startsWith("&"))&&l&&typeof l=="object"&&n(au(l),ca(l),aa(l))}return{families:e}},"#extractNodeFonts"),$t=new WeakSet,se=a(function(t,e="400",n="normal",r="google",i){if(!t||Lt(t))return!1;let l=ia(e,n),u=!1;c(this,K).has(t)||(c(this,K).set(t,{source:r||"google",url:i,variants:new Set}),u=!0,console.log("[FontResolver] registered new font:",t,"@"+r));let f=c(this,K).get(t);return f.variants.has(l)||(f.variants.add(l),u=!0),u},"#registerFont"),ya=new WeakSet,tp=a(function(t,e="400",n="normal"){if(!t||typeof t!="string")return;let r=!1;for(let{name:i,source:l,url:u}of Xe(t))l==="system"||Lt(i)||h(this,$t,se).call(this,i,e,n,l||"google",u)&&(r=!0);r&&h(this,cs,hu).call(this)},"#requestFont"),xa=new WeakSet,ep=a(function(t){if(!t||typeof t!="string")return!1;let e=Xe(t);return e.length===0?c(this,K).has(t):e.some(({name:n,source:r})=>r!=="system"&&!Lt(n)&&c(this,K).has(n))},"#hasFont"),is=new WeakSet,fu=a(function(){typeof document>"u"||(c(this,gt)||(y(this,gt,document.getElementById("jucie-fonts-preconnect-googleapis")),c(this,gt)||(y(this,gt,document.createElement("link")),c(this,gt).id="jucie-fonts-preconnect-googleapis",c(this,gt).rel="preconnect",c(this,gt).href="https://fonts.googleapis.com",document.head.appendChild(c(this,gt)))),c(this,ot)||(y(this,ot,document.getElementById("jucie-fonts-preconnect-gstatic")),c(this,ot)||(y(this,ot,document.createElement("link")),c(this,ot).id="jucie-fonts-preconnect-gstatic",c(this,ot).rel="preconnect",c(this,ot).href="https://fonts.gstatic.com",c(this,ot).crossOrigin="",document.head.appendChild(c(this,ot)))),c(this,G)||(y(this,G,document.getElementById("jucie-fonts")),c(this,G)||(y(this,G,document.createElement("link")),c(this,G).id="jucie-fonts",c(this,G).rel="stylesheet",document.head.appendChild(c(this,G)))),c(this,mt)||(y(this,mt,document.getElementById("jucie-fonts-custom")),c(this,mt)||(y(this,mt,document.createElement("style")),c(this,mt).id="jucie-fonts-custom",document.head.appendChild(c(this,mt)))))},"#ensureLinkElements"),cs=new WeakSet,hu=a(function(){if(typeof document>"u")return;h(this,is,fu).call(this);let t=qd(c(this,K));t?c(this,G).href!==t&&(c(this,G).href=t):c(this,G)&&c(this,G).removeAttribute("href");let e=zd(c(this,K));c(this,mt)&&(c(this,mt).textContent=e)},"#updateFontLinks"),a(ba,"FontResolver"),k(ba,"manifest",{name:"FontResolver",namespace:"fontResolver"});var os=ba;var np=a((o,s={})=>{try{let t=[Rs.configure(s),Vs.configure(s),ei.configure(s),ms.configure(s),Zc.configure(s),ui.configure(s),Di.configure(s),Bc.configure(s),qc.configure(s),Ws.configure(s),Ci.configure(s)];return s.embedded||t.push(os.configure(s)),s.view==="design"&&(t.push(Oc.configure(s)),t.push(Yi.configure(s)),t.push(Ic.configure({...s,conversions:Cd}))),o.install(...t)}catch(t){return console.error("createRuntime error",t),null}},"createRuntime");var cy=new Set(["true","false","null","undefined","this","return","if","else","for","while","function","var","let","const","new","typeof","instanceof","Array","Object","String","Number","Boolean","Date","Math","JSON","console","window","document"]);function rp(o){if(!o)return[];let s=o.matchAll(/(?<![.\w])([a-zA-Z_$][\w]*)/g);return[...new Set([...s].map(e=>e[1]))].filter(e=>!cy.has(e))}a(rp,"parseDependencies");var op=`function (ctx) {
|
|
50
|
+
return true
|
|
51
|
+
}`;var as=`function (ctx, event) {
|
|
52
|
+
|
|
53
|
+
}`;function sp(o){return o==null||o===""?null:qu(o)}a(sp,"validateCode");function ay(o){return o==null?null:!Array.isArray(o)||o.length===0?"binding must be a non-empty array of strings":o.every(s=>typeof s=="string"&&s.length>0)?null:"every segment in binding must be a non-empty string"}a(ay,"validateBinding");function ip(o){let s={...o,error:null};switch(s.mode){case"code":s.error=sp(s.code);break;case"computed":s.error=sp(s.computed);break;case"binding":s.error=ay(s.binding);break;case"value":default:break}return s}a(ip,"validateDescriptor");var ly=new Set(["value","binding","computed","code"]),uy=a(()=>({name:null,mode:"value",value:null,binding:null,computed:null,code:null,error:null,removable:!0}),"DEFAULTS");function Y(o={}){let s=uy();return o.name!=null&&(s.name=o.name),o.value!==void 0&&(s.value=o.value),o.binding!=null&&(s.binding=o.binding),o.computed!=null&&(s.computed=qt(o.computed,"computed")),o.code!=null&&(s.code=qt(o.code,"code")),o.mode&&ly.has(o.mode)&&(s.mode=o.mode),s.mode==="computed"&&!s.computed&&(s.computed=op),s.mode==="code"&&!s.code&&(s.code=as),s.mode==="computed"&&s.computed&&(s.dependencies=rp(s.computed)),o.removable===!1&&(s.removable=!1),ip(s)}a(Y,"createDescriptor");function du({name:o,mode:s,...t}={}){return Y({name:o,mode:s??"value",...t})}a(du,"createProp");function cp({name:o,mode:s,...t}={}){return Y({name:o,mode:s??"binding",...t})}a(cp,"createEvent");var ap="nd_isolated";function lp({library:o=null,name:s},t={},e=[],{id:n=ap,classBinding:r,bindings:i={}}={}){let l=[...Object.entries(t).filter(([p,m])=>m!==void 0&&!(p in i)).map(([p,m])=>du({name:p,mode:"value",value:m})),...Object.entries(i).map(([p,m])=>du({name:p,mode:"binding",binding:m}))],u=e.map(p=>cp({name:p,mode:"code",code:`function (ctx, ...args) { return ctx.$isolated?.emit(${JSON.stringify(p)}, args, ${JSON.stringify(n)}) }`})),f={type:"instance",component:s,library:o,id:n,props:l,events:u};return r&&(f.className=[{mode:"binding",binding:r}]),f}a(lp,"isolatedInstance");var up={__version:1,type:"node",render:{name:null,mode:"value",value:!0,binding:null,computed:null,code:null,error:null},name:null,draggable:!0,resizable:!0,selectable:!0,locked:[],dimensions:[],expandedStyles:[],childrenType:null,repeat:null,contextName:null,attributes:[],events:[],className:[],states:[],lifecycle:[],animations:[],style:{}};var fp={type:"element",ex:"node",style:{}};var hp={type:"container",ex:"node",childrenType:"*",bounds:{width:0,height:0,x:0,y:0}};var pu={};Rt(pu,{article:()=>gy,aside:()=>xy,div:()=>hy,footer:()=>my,form:()=>vy,header:()=>py,layout:()=>fy,main:()=>yy,nav:()=>by,section:()=>dy,template:()=>Sy});var fy={ex:"element",dimensions:["width","height"],childrenType:"*",children:[]},hy={ex:"layout",tagName:"div"},dy={ex:"layout",tagName:"section"},py={ex:"layout",tagName:"header"},my={ex:"layout",tagName:"footer"},gy={ex:"layout",tagName:"article"},yy={ex:"layout",tagName:"main"},xy={ex:"layout",tagName:"aside"},by={ex:"layout",tagName:"nav"},vy={ex:"layout",tagName:"form"},Sy={ex:"layout",tagName:"template",html:"<div>HTML template</div>",style:{width:"250px",height:"100px"}};var mu={};Rt(mu,{blockquote:()=>Fy,br:()=>Wy,codeElement:()=>Ly,em:()=>By,h1:()=>$y,h2:()=>Ay,h3:()=>Cy,h4:()=>Ey,h5:()=>Ry,h6:()=>Ty,heading:()=>ky,hr:()=>Uy,label:()=>Oy,mark:()=>Hy,p:()=>Py,paragraph:()=>Ny,pre:()=>Iy,richText:()=>My,small:()=>_y,span:()=>jy,strong:()=>Dy,text:()=>wy});var wy={ex:"element",dimensions:["width"],childrenType:"text",textContent:R("")},ky={ex:"text",textContent:R(""),style:{margin:"0"}},$y={ex:"heading",tagName:"h1",textContent:R("Heading 1")},Ay={ex:"heading",tagName:"h2",textContent:R("Heading 2")},Cy={ex:"heading",tagName:"h3",textContent:R("Heading 3")},Ey={ex:"heading",tagName:"h4",textContent:R("Heading 4")},Ry={ex:"heading",tagName:"h5",textContent:R("Heading 5")},Ty={ex:"heading",tagName:"h6",textContent:R("Heading 6")},Ny={ex:"text",textContent:R("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),style:{margin:"0"}},Py={ex:"paragraph",tagName:"p"},jy={ex:"text",tagName:"span",textContent:R("Lorem ipsum")},Oy={ex:"text",tagName:"label",textContent:R("Label text")},My={ex:"text",tagName:"div",textContent:R("Rich text. Press Enter for a new paragraph.")},Fy={ex:"text",tagName:"blockquote",textContent:R("Blockquote text")},Iy={ex:"text",tagName:"pre",textContent:R("Preformatted text")},Ly={ex:"text",tagName:"code",textContent:R("code")},Dy={ex:"text",tagName:"strong",textContent:R("Bold text")},By={ex:"text",tagName:"em",textContent:R("Emphasized text")},_y={ex:"text",tagName:"small",textContent:R("Small text")},Hy={ex:"text",tagName:"mark",textContent:R("Highlighted text")},Uy={ex:"element",tagName:"hr",dimensions:["width"],childrenType:"none"},Wy={ex:"element",tagName:"br",dimensions:["width"],childrenType:"none"};var gu={};Rt(gu,{a:()=>Ky,button:()=>zy,details:()=>Vy,dialog:()=>Yy,interactive:()=>qy,summary:()=>Gy});var qy={ex:"element",interactive:!0,childrenType:"text",style:{width:"auto",height:"auto",cursor:"pointer"}},zy={ex:"interactive",tagName:"button",dimensions:["width","height"],textContent:R("Button text"),style:{"background-color":"#e9e9e9",border:"1px solid #d5d5d5","border-radius":"4px",padding:"6px 12px",width:"120px",height:"auto"}},Ky={ex:"interactive",tagName:"a",textContent:R("Link text"),destination:{type:"page",id:null,path:null,target:null,replace:!1,params:null,query:null}},Vy={ex:"interactive",tagName:"details",childrenType:"*",dimensions:["width","height"],style:{cursor:"default"}},Gy={ex:"interactive",tagName:"summary",textContent:R("Summary text")},Yy={ex:"interactive",tagName:"dialog",childrenType:"*",dimensions:["width","height"],style:{cursor:"default",width:"300px",height:"200px"}};var xu={};Rt(xu,{checkbox:()=>cx,color:()=>sx,date:()=>ix,email:()=>Qy,file:()=>lx,hidden:()=>ux,input:()=>Xy,number:()=>ex,password:()=>tx,phone:()=>rx,radio:()=>ax,range:()=>ox,search:()=>nx,select:()=>fx,textInput:()=>Zy,textarea:()=>hx});function dp({mode:o,value:s,...t}={}){return Y({mode:o??"value",value:Array.isArray(s)?s:[],...t})}a(dp,"createOptions");var Q=a(o=>Y({name:"type",mode:"value",value:o,removable:!1}),"type"),Jy=a(()=>Y({name:"value",mode:"value",value:"",removable:!1}),"value"),tt=a(()=>Y({name:"model",mode:"binding",binding:null,removable:!0}),"model"),At=a(()=>Y({name:"onInput",mode:"code",code:as,removable:!1}),"onInput"),yu=a(()=>Y({name:"onChange",mode:"code",code:as,removable:!1}),"onChange"),Xy={ex:"element",tagName:"input",dimensions:["width"],childrenType:"none",style:{width:"auto",height:"auto"}},Zy={ex:"input",attributes:[Q("text"),tt()],events:[At()]},Qy={ex:"input",attributes:[Q("email"),tt()],events:[At()]},tx={ex:"input",attributes:[Q("password"),tt()],events:[At()]},ex={ex:"input",attributes:[Q("number"),tt()],events:[At()]},nx={ex:"input",attributes:[Q("search"),tt()],events:[At()]},rx={ex:"input",attributes:[Q("tel"),tt()],events:[At()]},ox={ex:"input",attributes:[Q("range"),tt()],events:[At()]},sx={ex:"input",attributes:[Q("color"),tt()],events:[At()]},ix={ex:"input",attributes:[Q("date"),tt()],events:[At()]},cx={ex:"input",attributes:[Q("checkbox"),tt()],events:[yu()]},ax={ex:"input",attributes:[Q("radio"),tt()],events:[yu()]},lx={ex:"input",attributes:[Q("file")]},ux={ex:"input",attributes:[Q("hidden"),Jy()]},fx={ex:"input",tagName:"select",childrenType:"options",options:dp(),attributes:[tt()],events:[yu()]},hx={ex:"input",tagName:"textarea",childrenType:"text",dimensions:["width","height"],attributes:[tt()],events:[At()]};var bu={};Rt(bu,{audio:()=>mx,figcaption:()=>xx,figure:()=>yx,iframe:()=>bx,img:()=>px,media:()=>dx,video:()=>gx});var pp=Y({name:"controls",mode:"value",value:!0,removable:!1}),dx={ex:"element",dimensions:["width","height"],style:{display:"block",width:"auto",height:"auto","object-fit":"contain"}},px={ex:"media",tagName:"img",childrenType:"none"},mx={ex:"media",tagName:"audio",childrenType:"none",dimensions:["width"],attributes:[pp],style:{width:"320px"}},gx={ex:"media",tagName:"video",childrenType:"*",attributes:[pp],style:{width:"320px",height:"240px"}},yx={ex:"media",tagName:"figure",childrenType:"*",dimensions:["width","height"],style:{width:"auto",height:"auto",margin:"0"}},xx={ex:"media",tagName:"figcaption",childrenType:"text"},bx={ex:"media",tagName:"iframe",childrenType:"none",dimensions:["width","height"]};var vu={};Rt(vu,{dd:()=>Ax,dl:()=>kx,dt:()=>$x,li:()=>wx,ol:()=>vx,ul:()=>Sx});var vx={ex:"element",tagName:"ol",dimensions:["width"],childrenType:["li"],children:[]},Sx={ex:"element",tagName:"ul",dimensions:["width"],childrenType:["li"],children:[]},wx={ex:"element",tagName:"li",dimensions:["width"],childrenType:"text"},kx={ex:"element",tagName:"dl",dimensions:["width"],childrenType:["dt","dd"],children:[]},$x={ex:"element",tagName:"dt",dimensions:["width"],childrenType:"text"},Ax={ex:"element",tagName:"dd",dimensions:["width"],childrenType:"text"};var Su={};Rt(Su,{table:()=>Cx,tbody:()=>Rx,td:()=>jx,tfoot:()=>Tx,th:()=>Px,thead:()=>Ex,tr:()=>Nx});var Cx={ex:"element",tagName:"table",dimensions:["width"],childrenType:["thead","tbody","tfoot","tr"],children:[]},Ex={ex:"element",tagName:"thead",childrenType:["tr"],children:[]},Rx={ex:"element",tagName:"tbody",childrenType:["tr"],children:[]},Tx={ex:"element",tagName:"tfoot",childrenType:["tr"],children:[]},Nx={ex:"element",tagName:"tr",childrenType:["td","th"],children:[]},Px={ex:"element",tagName:"th",childrenType:"*"},jx={ex:"element",tagName:"td",childrenType:"*"};var wu={};Rt(wu,{fieldset:()=>Ox,legend:()=>Mx,meter:()=>Fx,progress:()=>Ix});var Ox={ex:"element",tagName:"fieldset",dimensions:["width","height"],childrenType:"children",style:{border:"1px solid #cccccc",padding:"16px"}},Mx={ex:"element",tagName:"legend",childrenType:"text"},Fx={ex:"element",tagName:"meter",childrenType:"none"},Ix={ex:"element",tagName:"progress",childrenType:"none"};var ku={};Rt(ku,{slot:()=>Lx});var Lx={type:"slot",ex:"element",tagName:"slot",dimensions:["width","height"],childrenType:"*"};var mp={type:"frame",ex:"container",tagName:"div",bounds:{top:0,left:0,width:360,height:740,x:void 0,y:void 0},style:{background:"white"},children:[],route:{path:null}};var gp={type:"instance",ex:"node",component:null,library:null,props:[],childrenType:"component"};var yp={type:"code",ex:"node",body:"",language:"js",params:[],returns:null};var xp={type:"animation",ex:"node",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]};var bp={type:"component",ex:"container",name:"",library:"local",props:[],emits:[],data:[],children:[]};var vp={type:"graphic",ex:"node",tagName:"div",props:{},template:[],style:{margin:"0",width:"100px",height:"100px"}};var va=globalThis,Sp=Symbol.for("\u26D4\uFE0Funique-id-counter"),wp=Symbol.for("\u26D4\uFE0Funique-id-session");va[Sp]||(va[Sp]=0);va[wp]||(va[wp]=Math.random().toString(36).slice(2,6));var ls={node:up,element:fp,container:hp,...pu,...mu,...gu,...xu,...bu,...vu,...Su,...wu,...ku,frame:mp,instance:gp,code:yp,animation:xp,component:bp,graphic:vp};var qx=0;function $p({scene:o,config:s={}}){let t=new Map,e={view:"production",...s,embedded:!0,scene:o,sceneOverlay:t},n=np(Wx.create(),e);if(!n)throw new Error("createLibrary: runtime construction failed");n.registry.loadPrototypes(ls);let r=dn.create(e,n,null),i=n.registry,l={};n.context.ctx.$provide("$copies",l);function u(p){return i.describeComponent(p.library??null,p.name)}a(u,"describe");function f(p){let m=`nd_lib${++qx}`,g=u(p),b=g?.propNames??[],v=g?.eventNames??[],x={},S={},w={};for(let C of b)x[C]=kp(void 0),Object.defineProperty(S,C,{get:()=>x[C](),enumerable:!0}),w[C]=["$copies",m,C];let E=kp(void 0);Object.defineProperty(S,"$class",{get:()=>E()});let j={},N=n.context.onIsolatedEmit(m,(C,T)=>j[C]?.(...T)),$=lp(p,{},v,{id:m,bindings:w,classBinding:["$copies",m,"$class"]});return{id:m,get written(){return t.has(m)},update(C={},T={},{className:L}={}){j=T;for(let O of b)Object.is(x[O](),C[O])||x[O](C[O]);Object.is(E(),L)||E(L),t.has(m)||(l[m]=S,t.set(m,$))},render(){let C=i.resolveActor(r,m);return(C&&i.resolvePuppet(C,m,{ctx:n.context.ctx}))?.render??null},destroy(){N(),delete l[m],i.getActor(m)?.destroy(),t.delete(m)}}}return a(f,"copy"),{runtime:n,describe:u,copy:f}}a($p,"createLibrary");function zx({scene:o,config:s={},library:t}){if(o.format!==1)throw new Error(`This library's scene is format ${o.format}; this runtime reads format ${1}. Build the library again.`);let{nodes:e,tokens:n,animations:r}=o,i=$p({scene:{nodes:e,tokens:n,animations:r},config:s}),l=null,u=a((f={})=>(l=Ks(t,f),l.values),"configure");return{...i,configure:u,copy:f=>(l||u(),i.copy(f))}}a(zx,"createSceneLibrary");import{createElement as Kx,useState as Cp,useLayoutEffect as Vx,useEffect as Gx}from"react";var Yx=a(o=>`on${o[0].toUpperCase()}${o.slice(1)}`,"handlerProp");function Jx(o,s){let t=o.describe(s);if(!t)throw new Error(`createJucieComponent: no component "${s.name}" in the library`);let{propNames:e,eventNames:n}=t;function r(i){let[l]=Cp(()=>o.copy(s)),[,u]=Cp(0),f={};for(let b of e)i[b]!==void 0&&(f[b]=i[b]);let p={};for(let b of n){let v=i[Yx(b)];typeof v=="function"&&(p[b]=v)}let m={className:i.className};l.written||l.update(f,p,m),Vx(()=>l.update(f,p,m)),Gx(()=>(l.written||u(b=>b+1),()=>l.destroy()),[l]);let g=l.render();return g?Kx(g):null}return a(r,"JucieComponent"),r.displayName=t.displayName??s.name,r}a(Jx,"createJucieComponent");export{Jx as createJucieComponent,zx as createSceneLibrary};
|