@dylanpiercey/work 0.0.140 → 0.0.142
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/{_BXzfMZ_J.js → _CgMVRC4h.js} +179 -46
- package/dist/_CwAYWKgO.js +2 -0
- package/dist/index.mjs +17166 -11037
- package/dist/public/assets/{_C7fBne76.js → _0gdzfuwb.js} +1 -1
- package/dist/public/assets/_0gdzfuwb.js.br +0 -0
- package/dist/public/assets/_5AJ_AKid.js +1 -0
- package/dist/public/assets/_5AJ_AKid.js.br +0 -0
- package/dist/public/assets/_5cJqJSYA.js +1 -0
- package/dist/public/assets/_5cJqJSYA.js.br +0 -0
- package/dist/public/assets/_8hG8C_PZ.js +1 -0
- package/dist/public/assets/_B-zFviqb.js +1 -0
- package/dist/public/assets/_B2LkwyUu.js +1 -0
- package/dist/public/assets/_B2LkwyUu.js.br +0 -0
- package/dist/public/assets/{_BC1i3jO8.js → _B7sBnSVB.js} +1 -1
- package/dist/public/assets/_B7sBnSVB.js.br +0 -0
- package/dist/public/assets/_B7sulDMZ.js +1 -0
- package/dist/public/assets/_B7sulDMZ.js.br +0 -0
- package/dist/public/assets/_BAfg1_wL.js +1 -0
- package/dist/public/assets/_BAfg1_wL.js.br +0 -0
- package/dist/public/assets/{_DMmYo41H.js → _BCq3eWBs.js} +1 -1
- package/dist/public/assets/_BCq3eWBs.js.br +0 -0
- package/dist/public/assets/_BDvd4EZB.js +1 -0
- package/dist/public/assets/_BE-5_Vob.js +1 -0
- package/dist/public/assets/_BE-5_Vob.js.br +0 -0
- package/dist/public/assets/_BE-cBzrM.js +1 -0
- package/dist/public/assets/_BE-cBzrM.js.br +0 -0
- package/dist/public/assets/{_NBVVn24L2.js → _BI6nDtQe.js} +1 -1
- package/dist/public/assets/_BI6nDtQe.js.br +0 -0
- package/dist/public/assets/_BI8c6j8A.js +1 -0
- package/dist/public/assets/{_BCaOQTDy.js → _BIPSG49u.js} +1 -1
- package/dist/public/assets/_BJdnnx2G.js +1 -0
- package/dist/public/assets/_BKISLRf4.js +83 -0
- package/dist/public/assets/_BKISLRf4.js.br +0 -0
- package/dist/public/assets/{_BKuREDTF.js → _BKkKlZgz.js} +1 -1
- package/dist/public/assets/_BKkKlZgz.js.br +0 -0
- package/dist/public/assets/{_bjzjp9qV.js → _BLsa44WM.js} +1 -1
- package/dist/public/assets/_BLsa44WM.js.br +0 -0
- package/dist/public/assets/_BMLL4cWB.js +1 -0
- package/dist/public/assets/_BMLL4cWB.js.br +0 -0
- package/dist/public/assets/{_CJ9NIpKB2.js → _BNeDY6c6.js} +1 -1
- package/dist/public/assets/_BOllftHQ.js +1 -0
- package/dist/public/assets/_BOllftHQ.js.br +0 -0
- package/dist/public/assets/_BPanIK56.js +1 -0
- package/dist/public/assets/_BPanIK56.js.br +0 -0
- package/dist/public/assets/_BV5QcD1t.js +1 -0
- package/dist/public/assets/_BV5QcD1t.js.br +0 -0
- package/dist/public/assets/_BWxWv3Q4.js +1 -0
- package/dist/public/assets/_BWxWv3Q4.js.br +0 -0
- package/dist/public/assets/_BY9Zpo-y.js +1 -0
- package/dist/public/assets/_BY9Zpo-y.js.br +0 -0
- package/dist/public/assets/{_DJ2tTUOp.js → _BZiRiFuW.js} +1 -1
- package/dist/public/assets/_BZiRiFuW.js.br +0 -0
- package/dist/public/assets/_BfqywnWV.js +1 -0
- package/dist/public/assets/_BfqywnWV.js.br +0 -0
- package/dist/public/assets/_BhpLuC-Z.js +1 -0
- package/dist/public/assets/_BhpLuC-Z.js.br +0 -0
- package/dist/public/assets/_BkmuJnv4.js +1 -0
- package/dist/public/assets/_BkmuJnv4.js.br +0 -0
- package/dist/public/assets/_BmhN3Nyl.js +1 -0
- package/dist/public/assets/_BmhN3Nyl.js.br +0 -0
- package/dist/public/assets/_BpvmtZ-d.js +1 -0
- package/dist/public/assets/{_BAC2OLTW.js → _C2c05-aV.js} +1 -1
- package/dist/public/assets/_C2c05-aV.js.br +0 -0
- package/dist/public/assets/_C3EMIoXk.js +1 -0
- package/dist/public/assets/_C3EMIoXk.js.br +0 -0
- package/dist/public/assets/_C3vzIjs1.js +1 -0
- package/dist/public/assets/_C3vzIjs1.js.br +0 -0
- package/dist/public/assets/_C4a3hSl8.js +1 -0
- package/dist/public/assets/_C4z7ZpSn.js +1 -0
- package/dist/public/assets/_C6F_DycA.js +1 -0
- package/dist/public/assets/_C6F_DycA.js.br +0 -0
- package/dist/public/assets/_C7Qx5vsK.js +1 -0
- package/dist/public/assets/_C7Qx5vsK.js.br +0 -0
- package/dist/public/assets/_C8OhMxob.js +1 -0
- package/dist/public/assets/_C8OhMxob.js.br +0 -0
- package/dist/public/assets/_C9MkQEgN.js +1 -0
- package/dist/public/assets/_C9xSVjMf.js +1 -0
- package/dist/public/assets/{_BhFgAjkS.js → _CAjFT4sV.js} +1 -1
- package/dist/public/assets/_CAjFT4sV.js.br +0 -0
- package/dist/public/assets/_CENbzEJT.js +1 -0
- package/dist/public/assets/_CENbzEJT.js.br +0 -0
- package/dist/public/assets/_CMC6b9HF.js +1 -0
- package/dist/public/assets/_CMC6b9HF.js.br +0 -0
- package/dist/public/assets/{_B-G2jcQS.js → _CNTJHRw3.js} +1 -1
- package/dist/public/assets/_CNTJHRw3.js.br +0 -0
- package/dist/public/assets/_COoyuGi7.js +1 -0
- package/dist/public/assets/_COoyuGi7.js.br +0 -0
- package/dist/public/assets/_CQJs3lWb.js +1 -0
- package/dist/public/assets/_CQJs3lWb.js.br +0 -0
- package/dist/public/assets/_CQTDE9K4.js +1 -0
- package/dist/public/assets/_CQTDE9K4.js.br +0 -0
- package/dist/public/assets/_CQtYx0Hw.js +1 -0
- package/dist/public/assets/_CQtYx0Hw.js.br +0 -0
- package/dist/public/assets/_CRzKmxW8.js +1 -0
- package/dist/public/assets/_CRzKmxW8.js.br +0 -0
- package/dist/public/assets/{_CmHQ_mnt2.js → _CVzjJEu4.js} +1 -1
- package/dist/public/assets/_CWH6qxYM.js +1 -0
- package/dist/public/assets/_CWH6qxYM.js.br +0 -0
- package/dist/public/assets/{_DPI9uiRH.js → _CZEx699l.js} +1 -1
- package/dist/public/assets/_CZEx699l.js.br +0 -0
- package/dist/public/assets/_CZQPAwyq.js +1 -0
- package/dist/public/assets/{_DsmPrDz6.js → _CaR0Cm4R.js} +1 -1
- package/dist/public/assets/_CaR0Cm4R.js.br +0 -0
- package/dist/public/assets/{_DnGbQ0u92.js → _Ceg68iFQ.js} +1 -1
- package/dist/public/assets/_Ceg68iFQ.js.br +0 -0
- package/dist/public/assets/_CfwcpHky.js +1 -0
- package/dist/public/assets/_CfwcpHky.js.br +0 -0
- package/dist/public/assets/_ChnoRUJ0.js +1 -0
- package/dist/public/assets/_ClmBPtsj.js +1 -0
- package/dist/public/assets/_ClmBPtsj.js.br +0 -0
- package/dist/public/assets/{_xrYLiFvZ.js → _CmFrqHJw.js} +1 -1
- package/dist/public/assets/_CmFrqHJw.js.br +0 -0
- package/dist/public/assets/_CnuE-eGh.js +1 -0
- package/dist/public/assets/{_YjXp8Fa7.js → _CptijnhY.js} +1 -1
- package/dist/public/assets/_CptijnhY.js.br +0 -0
- package/dist/public/assets/_Cs7p4yDS.js +1 -0
- package/dist/public/assets/_Cs7p4yDS.js.br +0 -0
- package/dist/public/assets/{_DB76xuHC.js → _CwSTGRiH.js} +1 -1
- package/dist/public/assets/_CwSTGRiH.js.br +0 -0
- package/dist/public/assets/_D0ODP8pF.js +1 -0
- package/dist/public/assets/_D0ODP8pF.js.br +0 -0
- package/dist/public/assets/_D0OygaZT.js +1 -0
- package/dist/public/assets/_D0OygaZT.js.br +0 -0
- package/dist/public/assets/_D0TvPGyZ.js +1 -0
- package/dist/public/assets/_D0TvPGyZ.js.br +0 -0
- package/dist/public/assets/_D6XehGQQ.js +1 -0
- package/dist/public/assets/_D9Uq_kAm.js +1 -0
- package/dist/public/assets/_D9Uq_kAm.js.br +0 -0
- package/dist/public/assets/_DB-OQ-9y.js +1 -0
- package/dist/public/assets/_DB-OQ-9y.js.br +0 -0
- package/dist/public/assets/_DCj2SQDi.js +1 -0
- package/dist/public/assets/{_wtrNcQUN.js → _DK7gU5UW.js} +1 -1
- package/dist/public/assets/_DK7gU5UW.js.br +0 -0
- package/dist/public/assets/_DPs98hXw.js +1 -0
- package/dist/public/assets/_DPs98hXw.js.br +0 -0
- package/dist/public/assets/_DSC0z2WY.js +1 -0
- package/dist/public/assets/_DSC0z2WY.js.br +0 -0
- package/dist/public/assets/_DW3nSckX.js +1 -0
- package/dist/public/assets/_DW3nSckX.js.br +0 -0
- package/dist/public/assets/_DWQbgPoS.js +1 -0
- package/dist/public/assets/_DWQbgPoS.js.br +0 -0
- package/dist/public/assets/_DWc1bOg5.js +1 -0
- package/dist/public/assets/_DWc1bOg5.js.br +0 -0
- package/dist/public/assets/_DWyAxr1i.js +1 -0
- package/dist/public/assets/_D_uw8N56.js +1 -0
- package/dist/public/assets/_DbYA3moe.js +1 -0
- package/dist/public/assets/_DbYA3moe.js.br +0 -0
- package/dist/public/assets/_DekxQCZG.js +1 -0
- package/dist/public/assets/_DekxQCZG.js.br +0 -0
- package/dist/public/assets/_DendWUyw.js +1 -0
- package/dist/public/assets/_DendWUyw.js.br +0 -0
- package/dist/public/assets/_DinKA_hx.js +1 -0
- package/dist/public/assets/_DinKA_hx.js.br +0 -0
- package/dist/public/assets/_Dtdv7oY4.js +1 -0
- package/dist/public/assets/_Dtdv7oY4.js.br +0 -0
- package/dist/public/assets/_DxPa6R8r.js +1 -0
- package/dist/public/assets/_DxPa6R8r.js.br +0 -0
- package/dist/public/assets/{_DFMDH4tV2.js → _EnzWFNCd.js} +1 -1
- package/dist/public/assets/_EnzWFNCd.js.br +0 -0
- package/dist/public/assets/_I6bkQ0U8.js +1 -0
- package/dist/public/assets/_I6bkQ0U8.js.br +0 -0
- package/dist/public/assets/_IvbGWrWX.js +1 -0
- package/dist/public/assets/_IvbGWrWX.js.br +0 -0
- package/dist/public/assets/_K81ipFoO.js +1 -0
- package/dist/public/assets/_K81ipFoO.js.br +0 -0
- package/dist/public/assets/_KxAphaRA.js +1536 -0
- package/dist/public/assets/_KxAphaRA.js.br +0 -0
- package/dist/public/assets/_NJCyKDdt.js +1 -0
- package/dist/public/assets/{_C3Zk3OTU2.js → _Un2ZJKHi.js} +1 -1
- package/dist/public/assets/_Un2ZJKHi.js.br +0 -0
- package/dist/public/assets/_YkIvmgMd.js +1 -0
- package/dist/public/assets/_YkIvmgMd.js.br +0 -0
- package/dist/public/assets/_cXHJ5Aqj.js +1 -0
- package/dist/public/assets/_cXHJ5Aqj.js.br +0 -0
- package/dist/public/assets/{_IHwiKLGt.js → _eEx3xZw1.js} +1 -1
- package/dist/public/assets/_eEx3xZw1.js.br +0 -0
- package/dist/public/assets/_fT1Q2AHj.js +1 -0
- package/dist/public/assets/_fT1Q2AHj.js.br +0 -0
- package/dist/public/assets/{_CFuIV2fl.js → _fg40_ntQ.js} +1 -1
- package/dist/public/assets/_fg40_ntQ.js.br +0 -0
- package/dist/public/assets/_hePW80VL.js +1 -0
- package/dist/public/assets/_hfRJcieK.js +1 -0
- package/dist/public/assets/_hfRJcieK.js.br +0 -0
- package/dist/public/assets/_mQm0jPVv.js +1 -0
- package/dist/public/assets/_mQm0jPVv.js.br +0 -0
- package/dist/public/assets/{_YCkwa36v.js → _owCQ3_5m.js} +1 -1
- package/dist/public/assets/_owCQ3_5m.js.br +0 -0
- package/dist/public/assets/_rMYAdrnY.js +1 -0
- package/dist/public/assets/_rMYAdrnY.js.br +0 -0
- package/dist/public/assets/_rXH_a0uy.js +1 -0
- package/dist/public/assets/_uvCtJ6zz.js +1 -0
- package/dist/public/assets/_uvCtJ6zz.js.br +0 -0
- package/dist/public/assets/{_aNDhwIJ9.js → _zy6yt2JI.js} +1 -1
- package/dist/public/assets/_zy6yt2JI.js.br +0 -0
- package/dist/public/assets/app-page-ykWloqi5.css +1 -0
- package/dist/public/assets/app-page-ykWloqi5.css.br +0 -0
- package/dist/public/assets/{diff-view-CigyjzyU.css → diff-view-CNup0zAN.css} +1 -1
- package/dist/public/assets/diff-view-CNup0zAN.css.br +0 -0
- package/dist/public/assets/diff-view-CWrMPKfC.js +2 -0
- package/dist/public/assets/icon-arrow-down-BNBeL8Ga.css +1 -0
- package/dist/public/assets/icon-arrow-down-BNBeL8Ga.css.br +0 -0
- package/dist/public/assets/new-Cm1HuQpH.js +1 -0
- package/dist/public/assets/settings-Cm1HuQpH.js +1 -0
- package/dist/public/assets/w-Cm1HuQpH.js +1 -0
- package/dist/public/assets/w._-BR_j-SQU.js +1 -0
- package/dist/public/assets/w._-Cm1HuQpH.js +1 -0
- package/package.json +6 -6
- package/dist/_BVHQZ1Ks.js +0 -2352
- package/dist/_CZd0I4nH.js +0 -3824
- package/dist/_D2thrkJX.js +0 -2
- package/dist/public/assets/_8J7bPMB9.js +0 -1
- package/dist/public/assets/_8J7bPMB9.js.br +0 -0
- package/dist/public/assets/_AXvUJPqu2.js +0 -1
- package/dist/public/assets/_AXvUJPqu2.js.br +0 -0
- package/dist/public/assets/_B-G2jcQS.js.br +0 -0
- package/dist/public/assets/_B3yGzEa9.js +0 -1
- package/dist/public/assets/_B3yGzEa9.js.br +0 -0
- package/dist/public/assets/_B9ZAbzhF.js +0 -1
- package/dist/public/assets/_B9ZAbzhF.js.br +0 -0
- package/dist/public/assets/_BAC2OLTW.js.br +0 -0
- package/dist/public/assets/_BAQCbH2P2.js +0 -1
- package/dist/public/assets/_BAQCbH2P2.js.br +0 -0
- package/dist/public/assets/_BC1i3jO8.js.br +0 -0
- package/dist/public/assets/_BEIP10I4.js +0 -1536
- package/dist/public/assets/_BEIP10I4.js.br +0 -0
- package/dist/public/assets/_BKuREDTF.js.br +0 -0
- package/dist/public/assets/_BM315xPC.js +0 -1
- package/dist/public/assets/_BM315xPC.js.br +0 -0
- package/dist/public/assets/_BMpT9JnR.js +0 -1
- package/dist/public/assets/_BMpT9JnR.js.br +0 -0
- package/dist/public/assets/_BbYPTPnv.js +0 -1
- package/dist/public/assets/_BbYPTPnv.js.br +0 -0
- package/dist/public/assets/_BcNyP4hq.js +0 -1
- package/dist/public/assets/_BcNyP4hq.js.br +0 -0
- package/dist/public/assets/_BfitEsfk2.js +0 -1
- package/dist/public/assets/_BfitEsfk2.js.br +0 -0
- package/dist/public/assets/_Bg6nm0G42.js +0 -1
- package/dist/public/assets/_Bg6nm0G42.js.br +0 -0
- package/dist/public/assets/_BgRQhjCQ2.js +0 -1
- package/dist/public/assets/_BgRQhjCQ2.js.br +0 -0
- package/dist/public/assets/_Bg_QV64o.js +0 -1
- package/dist/public/assets/_Bg_QV64o.js.br +0 -0
- package/dist/public/assets/_BhFgAjkS.js.br +0 -0
- package/dist/public/assets/_Bhm39j0U.js +0 -1
- package/dist/public/assets/_Bhm39j0U.js.br +0 -0
- package/dist/public/assets/_Bmj60xc8.js +0 -1
- package/dist/public/assets/_Bmj60xc8.js.br +0 -0
- package/dist/public/assets/_BoPD9t5q.js +0 -1
- package/dist/public/assets/_BoPD9t5q.js.br +0 -0
- package/dist/public/assets/_BufLBhD52.js +0 -1
- package/dist/public/assets/_BufLBhD52.js.br +0 -0
- package/dist/public/assets/_BuwtIM5I.js +0 -1
- package/dist/public/assets/_BuwtIM5I.js.br +0 -0
- package/dist/public/assets/_C3Zk3OTU2.js.br +0 -0
- package/dist/public/assets/_C4Z5tewe.js +0 -1
- package/dist/public/assets/_C4Z5tewe.js.br +0 -0
- package/dist/public/assets/_C7fBne76.js.br +0 -0
- package/dist/public/assets/_CFuIV2fl.js.br +0 -0
- package/dist/public/assets/_CHRR_tdf2.js +0 -1
- package/dist/public/assets/_CHRR_tdf2.js.br +0 -0
- package/dist/public/assets/_CHkTCCZL.js +0 -1
- package/dist/public/assets/_CHkTCCZL.js.br +0 -0
- package/dist/public/assets/_CQ3jYFa7.js +0 -1
- package/dist/public/assets/_CQ3jYFa7.js.br +0 -0
- package/dist/public/assets/_CQtiXk-1.js +0 -1
- package/dist/public/assets/_CQtiXk-1.js.br +0 -0
- package/dist/public/assets/_CTE7ghx3.js +0 -1
- package/dist/public/assets/_CTE7ghx3.js.br +0 -0
- package/dist/public/assets/_CTM65Tgs2.js +0 -1
- package/dist/public/assets/_CTM65Tgs2.js.br +0 -0
- package/dist/public/assets/_CWfLljks2.js +0 -1
- package/dist/public/assets/_CWfLljks2.js.br +0 -0
- package/dist/public/assets/_CXkMfc5M2.js +0 -1
- package/dist/public/assets/_CXkMfc5M2.js.br +0 -0
- package/dist/public/assets/_CY8IvGdO2.js +0 -1
- package/dist/public/assets/_CY8IvGdO2.js.br +0 -0
- package/dist/public/assets/_CZQJ7BmY2.js +0 -1
- package/dist/public/assets/_CZQJ7BmY2.js.br +0 -0
- package/dist/public/assets/_CcOLUAUB.js +0 -1
- package/dist/public/assets/_CcOLUAUB.js.br +0 -0
- package/dist/public/assets/_CgAhtyGH.js +0 -1
- package/dist/public/assets/_CgAhtyGH.js.br +0 -0
- package/dist/public/assets/_CmFZdEqe2.js +0 -1
- package/dist/public/assets/_CmFZdEqe2.js.br +0 -0
- package/dist/public/assets/_Cp2jGFuU.js +0 -1
- package/dist/public/assets/_Cp2jGFuU.js.br +0 -0
- package/dist/public/assets/_CpSY65dR.js +0 -1
- package/dist/public/assets/_CpSY65dR.js.br +0 -0
- package/dist/public/assets/_CpYNKFv52.js +0 -1
- package/dist/public/assets/_CpYNKFv52.js.br +0 -0
- package/dist/public/assets/_D2D61dAJ2.js +0 -1
- package/dist/public/assets/_D2D61dAJ2.js.br +0 -0
- package/dist/public/assets/_D4OqQzgl.js +0 -1
- package/dist/public/assets/_D4OqQzgl.js.br +0 -0
- package/dist/public/assets/_D6-73p3r.js +0 -1
- package/dist/public/assets/_D6-73p3r.js.br +0 -0
- package/dist/public/assets/_DB76xuHC.js.br +0 -0
- package/dist/public/assets/_DFMDH4tV2.js.br +0 -0
- package/dist/public/assets/_DI99ib-x2.js +0 -1
- package/dist/public/assets/_DI99ib-x2.js.br +0 -0
- package/dist/public/assets/_DJ2tTUOp.js.br +0 -0
- package/dist/public/assets/_DKY8j24h.js +0 -1
- package/dist/public/assets/_DKY8j24h.js.br +0 -0
- package/dist/public/assets/_DLbMbJfH.js +0 -1
- package/dist/public/assets/_DLbMbJfH.js.br +0 -0
- package/dist/public/assets/_DMmYo41H.js.br +0 -0
- package/dist/public/assets/_DPI9uiRH.js.br +0 -0
- package/dist/public/assets/_DTBjw9eZ2.js +0 -1
- package/dist/public/assets/_DTBjw9eZ2.js.br +0 -0
- package/dist/public/assets/_DUP19um8.js +0 -1
- package/dist/public/assets/_DUP19um8.js.br +0 -0
- package/dist/public/assets/_DY5hwH4S2.js +0 -1
- package/dist/public/assets/_DY5hwH4S2.js.br +0 -0
- package/dist/public/assets/_Dbx8VtKF.js +0 -1
- package/dist/public/assets/_Dbx8VtKF.js.br +0 -0
- package/dist/public/assets/_DmqG9yJU.js +0 -1
- package/dist/public/assets/_DmqG9yJU.js.br +0 -0
- package/dist/public/assets/_DnGbQ0u92.js.br +0 -0
- package/dist/public/assets/_DsKRHcpP2.js +0 -1
- package/dist/public/assets/_DsKRHcpP2.js.br +0 -0
- package/dist/public/assets/_DsmPrDz6.js.br +0 -0
- package/dist/public/assets/_DxmtmcQJ.js +0 -1
- package/dist/public/assets/_DxmtmcQJ.js.br +0 -0
- package/dist/public/assets/_IHwiKLGt.js.br +0 -0
- package/dist/public/assets/_NBVVn24L2.js.br +0 -0
- package/dist/public/assets/_Vg-VYt882.js +0 -1
- package/dist/public/assets/_Vg-VYt882.js.br +0 -0
- package/dist/public/assets/_VnhmzZ9q.js +0 -89
- package/dist/public/assets/_VnhmzZ9q.js.br +0 -0
- package/dist/public/assets/_W3k8p4Ek.js +0 -1
- package/dist/public/assets/_W3k8p4Ek.js.br +0 -0
- package/dist/public/assets/_YCkwa36v.js.br +0 -0
- package/dist/public/assets/_YjXp8Fa7.js.br +0 -0
- package/dist/public/assets/_a2HWPwTI2.js +0 -1
- package/dist/public/assets/_a2HWPwTI2.js.br +0 -0
- package/dist/public/assets/_aNDhwIJ9.js.br +0 -0
- package/dist/public/assets/_bjzjp9qV.js.br +0 -0
- package/dist/public/assets/_cJ8FGCbf.js +0 -1
- package/dist/public/assets/_cJ8FGCbf.js.br +0 -0
- package/dist/public/assets/_gGP1uofp.js +0 -1
- package/dist/public/assets/_gGP1uofp.js.br +0 -0
- package/dist/public/assets/_jDIdu88k2.js +0 -1
- package/dist/public/assets/_jDIdu88k2.js.br +0 -0
- package/dist/public/assets/_kIpfj7zU2.js +0 -1
- package/dist/public/assets/_kIpfj7zU2.js.br +0 -0
- package/dist/public/assets/_pTrFhub3.js +0 -1
- package/dist/public/assets/_pTrFhub3.js.br +0 -0
- package/dist/public/assets/_wtrNcQUN.js.br +0 -0
- package/dist/public/assets/_xrYLiFvZ.js.br +0 -0
- package/dist/public/assets/_yDHOPHcI2.js +0 -1
- package/dist/public/assets/_yDHOPHcI2.js.br +0 -0
- package/dist/public/assets/app-page-DD8AAZI2.css +0 -1
- package/dist/public/assets/app-page-DD8AAZI2.css.br +0 -0
- package/dist/public/assets/diff-view-CigyjzyU.css.br +0 -0
- package/dist/public/assets/new-CeNxYCDk.js +0 -1
- package/dist/public/assets/settings-CeNxYCDk.js +0 -1
- package/dist/public/assets/w-CeNxYCDk.js +0 -1
- package/dist/public/assets/w._-CY06s2qp.js +0 -1
- package/dist/public/assets/w._-CeNxYCDk.js +0 -1
- /package/dist/public/assets/{_2IIEA8gg2.js → _2IIEA8gg.js} +0 -0
- /package/dist/public/assets/{_2IIEA8gg2.js.br → _2IIEA8gg.js.br} +0 -0
- /package/dist/public/assets/{_4G7pJPwS2.js → _4G7pJPwS.js} +0 -0
- /package/dist/public/assets/{_4G7pJPwS2.js.br → _4G7pJPwS.js.br} +0 -0
- /package/dist/public/assets/{_4ZHwLPI52.js → _4ZHwLPI5.js} +0 -0
- /package/dist/public/assets/{_4ZHwLPI52.js.br → _4ZHwLPI5.js.br} +0 -0
- /package/dist/public/assets/{_7GGW24-e2.js → _7GGW24-e.js} +0 -0
- /package/dist/public/assets/{_7GGW24-e2.js.br → _7GGW24-e.js.br} +0 -0
- /package/dist/public/assets/{_8PwUyIlP2.js → _8PwUyIlP.js} +0 -0
- /package/dist/public/assets/{_8PwUyIlP2.js.br → _8PwUyIlP.js.br} +0 -0
- /package/dist/public/assets/{_B1RWQWA52.js → _B1RWQWA5.js} +0 -0
- /package/dist/public/assets/{_B1RWQWA52.js.br → _B1RWQWA5.js.br} +0 -0
- /package/dist/public/assets/{_B2OO5cIa2.js → _B2OO5cIa.js} +0 -0
- /package/dist/public/assets/{_B2OO5cIa2.js.br → _B2OO5cIa.js.br} +0 -0
- /package/dist/public/assets/{_B2gwz-sJ2.js → _B2gwz-sJ.js} +0 -0
- /package/dist/public/assets/{_B2gwz-sJ2.js.br → _B2gwz-sJ.js.br} +0 -0
- /package/dist/public/assets/{_B3gFvitq2.js → _B3gFvitq.js} +0 -0
- /package/dist/public/assets/{_B3gFvitq2.js.br → _B3gFvitq.js.br} +0 -0
- /package/dist/public/assets/{_B5W6OYN72.js → _B5W6OYN7.js} +0 -0
- /package/dist/public/assets/{_B5W6OYN72.js.br → _B5W6OYN7.js.br} +0 -0
- /package/dist/public/assets/{_B7ZEbQpA2.js → _B7ZEbQpA.js} +0 -0
- /package/dist/public/assets/{_B7ZEbQpA2.js.br → _B7ZEbQpA.js.br} +0 -0
- /package/dist/public/assets/{_BJitypiv2.js → _BJitypiv.js} +0 -0
- /package/dist/public/assets/{_BJitypiv2.js.br → _BJitypiv.js.br} +0 -0
- /package/dist/public/assets/{_BRdr0IET2.js → _BRdr0IET.js} +0 -0
- /package/dist/public/assets/{_BRdr0IET2.js.br → _BRdr0IET.js.br} +0 -0
- /package/dist/public/assets/{_BSWPekZh2.js → _BSWPekZh.js} +0 -0
- /package/dist/public/assets/{_BSWPekZh2.js.br → _BSWPekZh.js.br} +0 -0
- /package/dist/public/assets/{_BUDT5pXO2.js → _BUDT5pXO.js} +0 -0
- /package/dist/public/assets/{_BUDT5pXO2.js.br → _BUDT5pXO.js.br} +0 -0
- /package/dist/public/assets/{_BWXHIvNe2.js → _BWXHIvNe.js} +0 -0
- /package/dist/public/assets/{_BWXHIvNe2.js.br → _BWXHIvNe.js.br} +0 -0
- /package/dist/public/assets/{_BXeXVLqQ2.js → _BXeXVLqQ.js} +0 -0
- /package/dist/public/assets/{_BXeXVLqQ2.js.br → _BXeXVLqQ.js.br} +0 -0
- /package/dist/public/assets/{_BYnGhZoM2.js → _BYnGhZoM.js} +0 -0
- /package/dist/public/assets/{_BYnGhZoM2.js.br → _BYnGhZoM.js.br} +0 -0
- /package/dist/public/assets/{_B_bV9PQ92.js → _B_bV9PQ9.js} +0 -0
- /package/dist/public/assets/{_B_bV9PQ92.js.br → _B_bV9PQ9.js.br} +0 -0
- /package/dist/public/assets/{_BiFt_7mu2.js → _BiFt_7mu.js} +0 -0
- /package/dist/public/assets/{_BiFt_7mu2.js.br → _BiFt_7mu.js.br} +0 -0
- /package/dist/public/assets/{_BiJDBrnU2.js → _BiJDBrnU.js} +0 -0
- /package/dist/public/assets/{_BiJDBrnU2.js.br → _BiJDBrnU.js.br} +0 -0
- /package/dist/public/assets/{_Bm3Qr25_2.js → _Bm3Qr25_.js} +0 -0
- /package/dist/public/assets/{_Bm3Qr25_2.js.br → _Bm3Qr25_.js.br} +0 -0
- /package/dist/public/assets/{_BroJfC0k2.js → _BroJfC0k.js} +0 -0
- /package/dist/public/assets/{_BroJfC0k2.js.br → _BroJfC0k.js.br} +0 -0
- /package/dist/public/assets/{_BsKzXJz42.js → _BsKzXJz4.js} +0 -0
- /package/dist/public/assets/{_BsKzXJz42.js.br → _BsKzXJz4.js.br} +0 -0
- /package/dist/public/assets/{_BsSzOQcm2.js → _BsSzOQcm.js} +0 -0
- /package/dist/public/assets/{_BsSzOQcm2.js.br → _BsSzOQcm.js.br} +0 -0
- /package/dist/public/assets/{_BxMlprV52.js → _BxMlprV5.js} +0 -0
- /package/dist/public/assets/{_BxMlprV52.js.br → _BxMlprV5.js.br} +0 -0
- /package/dist/public/assets/{_ByWQv1Qj2.js → _ByWQv1Qj.js} +0 -0
- /package/dist/public/assets/{_ByWQv1Qj2.js.br → _ByWQv1Qj.js.br} +0 -0
- /package/dist/public/assets/{_C03EYrpw2.js → _C03EYrpw.js} +0 -0
- /package/dist/public/assets/{_C03EYrpw2.js.br → _C03EYrpw.js.br} +0 -0
- /package/dist/public/assets/{_C1IUL_tW2.js → _C1IUL_tW.js} +0 -0
- /package/dist/public/assets/{_C1IUL_tW2.js.br → _C1IUL_tW.js.br} +0 -0
- /package/dist/public/assets/{_C8oCnwJJ2.js → _C8oCnwJJ.js} +0 -0
- /package/dist/public/assets/{_C8oCnwJJ2.js.br → _C8oCnwJJ.js.br} +0 -0
- /package/dist/public/assets/{_C8pVoKbM2.js → _C8pVoKbM.js} +0 -0
- /package/dist/public/assets/{_C8pVoKbM2.js.br → _C8pVoKbM.js.br} +0 -0
- /package/dist/public/assets/{_CBce3t8t2.js → _CBce3t8t.js} +0 -0
- /package/dist/public/assets/{_CBce3t8t2.js.br → _CBce3t8t.js.br} +0 -0
- /package/dist/public/assets/{_CHQ94UKr2.js → _CHQ94UKr.js} +0 -0
- /package/dist/public/assets/{_CHQ94UKr2.js.br → _CHQ94UKr.js.br} +0 -0
- /package/dist/public/assets/{_CLwyXe_n2.js → _CLwyXe_n.js} +0 -0
- /package/dist/public/assets/{_CLwyXe_n2.js.br → _CLwyXe_n.js.br} +0 -0
- /package/dist/public/assets/{_CMLA9XwU2.js → _CMLA9XwU.js} +0 -0
- /package/dist/public/assets/{_CMLA9XwU2.js.br → _CMLA9XwU.js.br} +0 -0
- /package/dist/public/assets/{_CQ2zXKGN2.js → _CQ2zXKGN.js} +0 -0
- /package/dist/public/assets/{_CQ2zXKGN2.js.br → _CQ2zXKGN.js.br} +0 -0
- /package/dist/public/assets/{_CSRkHgEL2.js → _CSRkHgEL.js} +0 -0
- /package/dist/public/assets/{_CSRkHgEL2.js.br → _CSRkHgEL.js.br} +0 -0
- /package/dist/public/assets/{_CUHmPFLl2.js → _CUHmPFLl.js} +0 -0
- /package/dist/public/assets/{_CUHmPFLl2.js.br → _CUHmPFLl.js.br} +0 -0
- /package/dist/public/assets/{_CV2tkWYe2.js → _CV2tkWYe.js} +0 -0
- /package/dist/public/assets/{_CV2tkWYe2.js.br → _CV2tkWYe.js.br} +0 -0
- /package/dist/public/assets/{_CYIUgYqB2.js → _CYIUgYqB.js} +0 -0
- /package/dist/public/assets/{_CYIUgYqB2.js.br → _CYIUgYqB.js.br} +0 -0
- /package/dist/public/assets/{_CYNrtFtB2.js → _CYNrtFtB.js} +0 -0
- /package/dist/public/assets/{_CYNrtFtB2.js.br → _CYNrtFtB.js.br} +0 -0
- /package/dist/public/assets/{_CZd0xW_V2.js → _CZd0xW_V.js} +0 -0
- /package/dist/public/assets/{_CZd0xW_V2.js.br → _CZd0xW_V.js.br} +0 -0
- /package/dist/public/assets/{_CacY0gHj2.js → _CacY0gHj.js} +0 -0
- /package/dist/public/assets/{_CacY0gHj2.js.br → _CacY0gHj.js.br} +0 -0
- /package/dist/public/assets/{_Cb4Vim4T2.js → _Cb4Vim4T.js} +0 -0
- /package/dist/public/assets/{_Cb4Vim4T2.js.br → _Cb4Vim4T.js.br} +0 -0
- /package/dist/public/assets/{_CcmNWLt02.js → _CcmNWLt0.js} +0 -0
- /package/dist/public/assets/{_CcmNWLt02.js.br → _CcmNWLt0.js.br} +0 -0
- /package/dist/public/assets/{_Cfkwpbl82.js → _Cfkwpbl8.js} +0 -0
- /package/dist/public/assets/{_Cfkwpbl82.js.br → _Cfkwpbl8.js.br} +0 -0
- /package/dist/public/assets/{_CgoNMtux2.js → _CgoNMtux.js} +0 -0
- /package/dist/public/assets/{_CgoNMtux2.js.br → _CgoNMtux.js.br} +0 -0
- /package/dist/public/assets/{_Ci_nEsc72.js → _Ci_nEsc7.js} +0 -0
- /package/dist/public/assets/{_Ci_nEsc72.js.br → _Ci_nEsc7.js.br} +0 -0
- /package/dist/public/assets/{_CjNLYCLg2.js → _CjNLYCLg.js} +0 -0
- /package/dist/public/assets/{_CjNLYCLg2.js.br → _CjNLYCLg.js.br} +0 -0
- /package/dist/public/assets/{_Cmm7eHzH2.js → _Cmm7eHzH.js} +0 -0
- /package/dist/public/assets/{_Cmm7eHzH2.js.br → _Cmm7eHzH.js.br} +0 -0
- /package/dist/public/assets/{_CohzipZa2.js → _CohzipZa.js} +0 -0
- /package/dist/public/assets/{_CohzipZa2.js.br → _CohzipZa.js.br} +0 -0
- /package/dist/public/assets/{_CtfBBspg2.js → _CtfBBspg.js} +0 -0
- /package/dist/public/assets/{_CtfBBspg2.js.br → _CtfBBspg.js.br} +0 -0
- /package/dist/public/assets/{_Cvrh5tZx2.js → _Cvrh5tZx.js} +0 -0
- /package/dist/public/assets/{_Cvrh5tZx2.js.br → _Cvrh5tZx.js.br} +0 -0
- /package/dist/public/assets/{_CxZEssPk2.js → _CxZEssPk.js} +0 -0
- /package/dist/public/assets/{_CxZEssPk2.js.br → _CxZEssPk.js.br} +0 -0
- /package/dist/public/assets/{_CyEgAFGc2.js → _CyEgAFGc.js} +0 -0
- /package/dist/public/assets/{_CyEgAFGc2.js.br → _CyEgAFGc.js.br} +0 -0
- /package/dist/public/assets/{_D-usSTwE2.js → _D-usSTwE.js} +0 -0
- /package/dist/public/assets/{_D-usSTwE2.js.br → _D-usSTwE.js.br} +0 -0
- /package/dist/public/assets/{_D0apG41V2.js → _D0apG41V.js} +0 -0
- /package/dist/public/assets/{_D0apG41V2.js.br → _D0apG41V.js.br} +0 -0
- /package/dist/public/assets/{_D1A_Heim2.js → _D1A_Heim.js} +0 -0
- /package/dist/public/assets/{_D1A_Heim2.js.br → _D1A_Heim.js.br} +0 -0
- /package/dist/public/assets/{_D7Lr4KcI2.js → _D7Lr4KcI.js} +0 -0
- /package/dist/public/assets/{_D7Lr4KcI2.js.br → _D7Lr4KcI.js.br} +0 -0
- /package/dist/public/assets/{_D8IpX4py2.js → _D8IpX4py.js} +0 -0
- /package/dist/public/assets/{_D8IpX4py2.js.br → _D8IpX4py.js.br} +0 -0
- /package/dist/public/assets/{_DBj4K9d_2.js → _DBj4K9d_.js} +0 -0
- /package/dist/public/assets/{_DBj4K9d_2.js.br → _DBj4K9d_.js.br} +0 -0
- /package/dist/public/assets/{_DDpmG2fV2.js → _DDpmG2fV.js} +0 -0
- /package/dist/public/assets/{_DDpmG2fV2.js.br → _DDpmG2fV.js.br} +0 -0
- /package/dist/public/assets/{_DExj1W_82.js → _DExj1W_8.js} +0 -0
- /package/dist/public/assets/{_DExj1W_82.js.br → _DExj1W_8.js.br} +0 -0
- /package/dist/public/assets/{_DGHpHOYJ2.js → _DGHpHOYJ.js} +0 -0
- /package/dist/public/assets/{_DGHpHOYJ2.js.br → _DGHpHOYJ.js.br} +0 -0
- /package/dist/public/assets/{_DHYfO66s2.js → _DHYfO66s.js} +0 -0
- /package/dist/public/assets/{_DHYfO66s2.js.br → _DHYfO66s.js.br} +0 -0
- /package/dist/public/assets/{_DJMQeKeT2.js → _DJMQeKeT.js} +0 -0
- /package/dist/public/assets/{_DJMQeKeT2.js.br → _DJMQeKeT.js.br} +0 -0
- /package/dist/public/assets/{_DKpUyyne2.js → _DKpUyyne.js} +0 -0
- /package/dist/public/assets/{_DKpUyyne2.js.br → _DKpUyyne.js.br} +0 -0
- /package/dist/public/assets/{_DMoTqEGO2.js → _DMoTqEGO.js} +0 -0
- /package/dist/public/assets/{_DMoTqEGO2.js.br → _DMoTqEGO.js.br} +0 -0
- /package/dist/public/assets/{_DO-qXg-I2.js → _DO-qXg-I.js} +0 -0
- /package/dist/public/assets/{_DO-qXg-I2.js.br → _DO-qXg-I.js.br} +0 -0
- /package/dist/public/assets/{_DOwzaHZ02.js → _DOwzaHZ0.js} +0 -0
- /package/dist/public/assets/{_DOwzaHZ02.js.br → _DOwzaHZ0.js.br} +0 -0
- /package/dist/public/assets/{_DQwYfKfQ2.js → _DQwYfKfQ.js} +0 -0
- /package/dist/public/assets/{_DQwYfKfQ2.js.br → _DQwYfKfQ.js.br} +0 -0
- /package/dist/public/assets/{_DRFjx7u42.js → _DRFjx7u4.js} +0 -0
- /package/dist/public/assets/{_DRFjx7u42.js.br → _DRFjx7u4.js.br} +0 -0
- /package/dist/public/assets/{_DVQuIRkW2.js → _DVQuIRkW.js} +0 -0
- /package/dist/public/assets/{_DVQuIRkW2.js.br → _DVQuIRkW.js.br} +0 -0
- /package/dist/public/assets/{_DX1BQOs82.js → _DX1BQOs8.js} +0 -0
- /package/dist/public/assets/{_DX1BQOs82.js.br → _DX1BQOs8.js.br} +0 -0
- /package/dist/public/assets/{_DYvRD3hg2.js → _DYvRD3hg.js} +0 -0
- /package/dist/public/assets/{_DYvRD3hg2.js.br → _DYvRD3hg.js.br} +0 -0
- /package/dist/public/assets/{_Dh228itO2.js → _Dh228itO.js} +0 -0
- /package/dist/public/assets/{_Dh228itO2.js.br → _Dh228itO.js.br} +0 -0
- /package/dist/public/assets/{_Dh5ihWbf2.js → _Dh5ihWbf.js} +0 -0
- /package/dist/public/assets/{_Dh5ihWbf2.js.br → _Dh5ihWbf.js.br} +0 -0
- /package/dist/public/assets/{_DhmEMT882.js → _DhmEMT88.js} +0 -0
- /package/dist/public/assets/{_DhmEMT882.js.br → _DhmEMT88.js.br} +0 -0
- /package/dist/public/assets/{_Dl-2e7rI2.js → _Dl-2e7rI.js} +0 -0
- /package/dist/public/assets/{_Dl-2e7rI2.js.br → _Dl-2e7rI.js.br} +0 -0
- /package/dist/public/assets/{_DmIc4jLQ2.js → _DmIc4jLQ.js} +0 -0
- /package/dist/public/assets/{_DmIc4jLQ2.js.br → _DmIc4jLQ.js.br} +0 -0
- /package/dist/public/assets/{_DnToyrRv2.js → _DnToyrRv.js} +0 -0
- /package/dist/public/assets/{_DnToyrRv2.js.br → _DnToyrRv.js.br} +0 -0
- /package/dist/public/assets/{_DqKBuwfJ2.js → _DqKBuwfJ.js} +0 -0
- /package/dist/public/assets/{_DqKBuwfJ2.js.br → _DqKBuwfJ.js.br} +0 -0
- /package/dist/public/assets/{_DswuEJGm2.js → _DswuEJGm.js} +0 -0
- /package/dist/public/assets/{_DswuEJGm2.js.br → _DswuEJGm.js.br} +0 -0
- /package/dist/public/assets/{_DvXPmvsu2.js → _DvXPmvsu.js} +0 -0
- /package/dist/public/assets/{_DvXPmvsu2.js.br → _DvXPmvsu.js.br} +0 -0
- /package/dist/public/assets/{_IvuFDN5E2.js → _IvuFDN5E.js} +0 -0
- /package/dist/public/assets/{_IvuFDN5E2.js.br → _IvuFDN5E.js.br} +0 -0
- /package/dist/public/assets/{_O90oeIOV2.js → _O90oeIOV.js} +0 -0
- /package/dist/public/assets/{_O90oeIOV2.js.br → _O90oeIOV.js.br} +0 -0
- /package/dist/public/assets/{_UdsmMDCL2.js → _UdsmMDCL.js} +0 -0
- /package/dist/public/assets/{_UdsmMDCL2.js.br → _UdsmMDCL.js.br} +0 -0
- /package/dist/public/assets/{__X_XdTYD2.js → __X_XdTYD.js} +0 -0
- /package/dist/public/assets/{__X_XdTYD2.js.br → __X_XdTYD.js.br} +0 -0
- /package/dist/public/assets/{_aMsaMD1D2.js → _aMsaMD1D.js} +0 -0
- /package/dist/public/assets/{_aMsaMD1D2.js.br → _aMsaMD1D.js.br} +0 -0
- /package/dist/public/assets/{_bTVj8UrX2.js → _bTVj8UrX.js} +0 -0
- /package/dist/public/assets/{_bTVj8UrX2.js.br → _bTVj8UrX.js.br} +0 -0
- /package/dist/public/assets/{_eJ-hLW7d2.js → _eJ-hLW7d.js} +0 -0
- /package/dist/public/assets/{_eJ-hLW7d2.js.br → _eJ-hLW7d.js.br} +0 -0
- /package/dist/public/assets/{_gzcpVVnB2.js → _gzcpVVnB.js} +0 -0
- /package/dist/public/assets/{_gzcpVVnB2.js.br → _gzcpVVnB.js.br} +0 -0
- /package/dist/public/assets/{_ilITqXS62.js → _ilITqXS6.js} +0 -0
- /package/dist/public/assets/{_ilITqXS62.js.br → _ilITqXS6.js.br} +0 -0
- /package/dist/public/assets/{_nFMaYfgc2.js → _nFMaYfgc.js} +0 -0
- /package/dist/public/assets/{_nFMaYfgc2.js.br → _nFMaYfgc.js.br} +0 -0
- /package/dist/public/assets/{_ot-7Btpt2.js → _ot-7Btpt.js} +0 -0
- /package/dist/public/assets/{_ot-7Btpt2.js.br → _ot-7Btpt.js.br} +0 -0
- /package/dist/public/assets/{_qdxAdBWQ2.js → _qdxAdBWQ.js} +0 -0
- /package/dist/public/assets/{_qdxAdBWQ2.js.br → _qdxAdBWQ.js.br} +0 -0
- /package/dist/public/assets/{_rLFTqkRN2.js → _rLFTqkRN.js} +0 -0
- /package/dist/public/assets/{_rLFTqkRN2.js.br → _rLFTqkRN.js.br} +0 -0
- /package/dist/public/assets/{_sltzmVWM2.js → _sltzmVWM.js} +0 -0
- /package/dist/public/assets/{_uhdI0v042.js → _uhdI0v04.js} +0 -0
- /package/dist/public/assets/{_uhdI0v042.js.br → _uhdI0v04.js.br} +0 -0
- /package/dist/public/assets/{_zf12oZj62.js → _zf12oZj6.js} +0 -0
- /package/dist/public/assets/{_zf12oZj62.js.br → _zf12oZj6.js.br} +0 -0
package/dist/_BVHQZ1Ks.js
DELETED
|
@@ -1,2352 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/marko@6.3.43/node_modules/marko/dist/html.mjs
|
|
2
|
-
var empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", toDelimitedString = function toDelimitedString(val, delimiter, stringify) {
|
|
3
|
-
let str = "", sep = "", part;
|
|
4
|
-
if (val) if (typeof val != "object") str += val;
|
|
5
|
-
else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
|
|
6
|
-
else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
|
|
7
|
-
return str;
|
|
8
|
-
}, unsafeXMLReg = /[<&\r]/g, replaceUnsafeXML = (c) => c === "&" ? "&" : c === "<" ? "<" : " ", escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, replaceUnsafeXML) : str, unsafeScriptReg = /<(\/?script|!--)/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C$1") : str, K_SCOPE_ID = Symbol("Scope ID"), kTouchedIterator = Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (function* () {})().constructor, AsyncGenerator = (async function* () {})().constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = (() => {
|
|
9
|
-
let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
|
|
10
|
-
for (let name of Object.getOwnPropertyNames(Symbol)) {
|
|
11
|
-
let symbol = Symbol[name];
|
|
12
|
-
typeof symbol == "symbol" && KNOWN_SYMBOLS.set(symbol, "Symbol." + name);
|
|
13
|
-
}
|
|
14
|
-
return KNOWN_SYMBOLS;
|
|
15
|
-
})(), KNOWN_FUNCTIONS = /* @__PURE__ */ new Map([
|
|
16
|
-
[AggregateError, "AggregateError"],
|
|
17
|
-
[Array, "Array"],
|
|
18
|
-
[Array.from, "Array.from"],
|
|
19
|
-
[Array.isArray, "Array.isArray"],
|
|
20
|
-
[Array.of, "Array.of"],
|
|
21
|
-
[ArrayBuffer, "ArrayBuffer"],
|
|
22
|
-
[ArrayBuffer.isView, "ArrayBuffer.isView"],
|
|
23
|
-
[Atomics.add, "Atomics.add"],
|
|
24
|
-
[Atomics.and, "Atomics.and"],
|
|
25
|
-
[Atomics.compareExchange, "Atomics.compareExchange"],
|
|
26
|
-
[Atomics.exchange, "Atomics.exchange"],
|
|
27
|
-
[Atomics.isLockFree, "Atomics.isLockFree"],
|
|
28
|
-
[Atomics.load, "Atomics.load"],
|
|
29
|
-
[Atomics.notify, "Atomics.notify"],
|
|
30
|
-
[Atomics.or, "Atomics.or"],
|
|
31
|
-
[Atomics.store, "Atomics.store"],
|
|
32
|
-
[Atomics.sub, "Atomics.sub"],
|
|
33
|
-
[Atomics.wait, "Atomics.wait"],
|
|
34
|
-
[BigInt, "BigInt"],
|
|
35
|
-
[BigInt.asIntN, "BigInt.asIntN"],
|
|
36
|
-
[BigInt.asUintN, "BigInt.asUintN"],
|
|
37
|
-
[BigInt64Array, "BigInt64Array"],
|
|
38
|
-
[BigInt64Array.from, "BigInt64Array.from"],
|
|
39
|
-
[BigInt64Array.of, "BigInt64Array.of"],
|
|
40
|
-
[BigUint64Array, "BigUint64Array"],
|
|
41
|
-
[BigUint64Array.from, "BigUint64Array.from"],
|
|
42
|
-
[BigUint64Array.of, "BigUint64Array.of"],
|
|
43
|
-
[Boolean, "Boolean"],
|
|
44
|
-
[console.assert, "console.assert"],
|
|
45
|
-
[console.clear, "console.clear"],
|
|
46
|
-
[console.count, "console.count"],
|
|
47
|
-
[console.countReset, "console.countReset"],
|
|
48
|
-
[console.debug, "console.debug"],
|
|
49
|
-
[console.dir, "console.dir"],
|
|
50
|
-
[console.dirxml, "console.dirxml"],
|
|
51
|
-
[console.error, "console.error"],
|
|
52
|
-
[console.group, "console.group"],
|
|
53
|
-
[console.groupCollapsed, "console.groupCollapsed"],
|
|
54
|
-
[console.groupEnd, "console.groupEnd"],
|
|
55
|
-
[console.info, "console.info"],
|
|
56
|
-
[console.log, "console.log"],
|
|
57
|
-
[console.table, "console.table"],
|
|
58
|
-
[console.time, "console.time"],
|
|
59
|
-
[console.timeEnd, "console.timeEnd"],
|
|
60
|
-
[console.timeLog, "console.timeLog"],
|
|
61
|
-
[console.timeStamp, "console.timeStamp"],
|
|
62
|
-
[console.trace, "console.trace"],
|
|
63
|
-
[console.warn, "console.warn"],
|
|
64
|
-
[DataView, "DataView"],
|
|
65
|
-
[Date, "Date"],
|
|
66
|
-
[Date.now, "Date.now"],
|
|
67
|
-
[Date.parse, "Date.parse"],
|
|
68
|
-
[Date.UTC, "Date.UTC"],
|
|
69
|
-
[decodeURI, "decodeURI"],
|
|
70
|
-
[decodeURIComponent, "decodeURIComponent"],
|
|
71
|
-
[encodeURI, "encodeURI"],
|
|
72
|
-
[encodeURIComponent, "encodeURIComponent"],
|
|
73
|
-
[Error, "Error"],
|
|
74
|
-
[EvalError, "EvalError"],
|
|
75
|
-
[Float32Array, "Float32Array"],
|
|
76
|
-
[Float32Array.from, "Float32Array.from"],
|
|
77
|
-
[Float32Array.of, "Float32Array.of"],
|
|
78
|
-
[Float64Array, "Float64Array"],
|
|
79
|
-
[Float64Array.from, "Float64Array.from"],
|
|
80
|
-
[Float64Array.of, "Float64Array.of"],
|
|
81
|
-
[Function, "Function"],
|
|
82
|
-
[globalThis.atob, "atob"],
|
|
83
|
-
[globalThis.btoa, "btoa"],
|
|
84
|
-
[globalThis.clearImmediate, "clearImmediate"],
|
|
85
|
-
[globalThis.clearInterval, "clearInterval"],
|
|
86
|
-
[globalThis.clearTimeout, "clearTimeout"],
|
|
87
|
-
[globalThis.crypto?.getRandomValues, "crypto.getRandomValues"],
|
|
88
|
-
[globalThis.crypto?.randomUUID, "crypto.randomUUID"],
|
|
89
|
-
[globalThis.fetch, "fetch"],
|
|
90
|
-
[globalThis.performance?.now, "performance.now"],
|
|
91
|
-
[globalThis.queueMicrotask, "queueMicrotask"],
|
|
92
|
-
[globalThis.setImmediate, "setImmediate"],
|
|
93
|
-
[globalThis.setInterval, "setInterval"],
|
|
94
|
-
[globalThis.setTimeout, "setTimeout"],
|
|
95
|
-
[globalThis.structuredClone, "structuredClone"],
|
|
96
|
-
[globalThis.URL, "URL"],
|
|
97
|
-
[globalThis.URLSearchParams, "URLSearchParams"],
|
|
98
|
-
[globalThis.WritableStream, "WritableStream"],
|
|
99
|
-
[Int16Array, "Int16Array"],
|
|
100
|
-
[Int16Array.from, "Int16Array.from"],
|
|
101
|
-
[Int16Array.of, "Int16Array.of"],
|
|
102
|
-
[Int32Array, "Int32Array"],
|
|
103
|
-
[Int32Array.from, "Int32Array.from"],
|
|
104
|
-
[Int32Array.of, "Int32Array.of"],
|
|
105
|
-
[Int8Array, "Int8Array"],
|
|
106
|
-
[Int8Array.from, "Int8Array.from"],
|
|
107
|
-
[Int8Array.of, "Int8Array.of"],
|
|
108
|
-
[Intl.Collator, "Intl.Collator"],
|
|
109
|
-
[Intl.DateTimeFormat, "Intl.DateTimeFormat"],
|
|
110
|
-
[Intl.DisplayNames, "Intl.DisplayNames"],
|
|
111
|
-
[Intl.getCanonicalLocales, "Intl.getCanonicalLocales"],
|
|
112
|
-
[Intl.ListFormat, "Intl.ListFormat"],
|
|
113
|
-
[Intl.Locale, "Intl.Locale"],
|
|
114
|
-
[Intl.NumberFormat, "Intl.NumberFormat"],
|
|
115
|
-
[Intl.PluralRules, "Intl.PluralRules"],
|
|
116
|
-
[Intl.RelativeTimeFormat, "Intl.RelativeTimeFormat"],
|
|
117
|
-
[Intl.Segmenter, "Intl.Segmenter"],
|
|
118
|
-
[Intl.supportedValuesOf, "Intl.supportedValuesOf"],
|
|
119
|
-
[isFinite, "isFinite"],
|
|
120
|
-
[isNaN, "isNaN"],
|
|
121
|
-
[JSON.parse, "JSON.parse"],
|
|
122
|
-
[JSON.stringify, "JSON.stringify"],
|
|
123
|
-
[Map, "Map"],
|
|
124
|
-
[Map.groupBy, "Map.groupBy"],
|
|
125
|
-
[Math.abs, "Math.abs"],
|
|
126
|
-
[Math.acos, "Math.acos"],
|
|
127
|
-
[Math.acosh, "Math.acosh"],
|
|
128
|
-
[Math.asin, "Math.asin"],
|
|
129
|
-
[Math.asinh, "Math.asinh"],
|
|
130
|
-
[Math.atan, "Math.atan"],
|
|
131
|
-
[Math.atan2, "Math.atan2"],
|
|
132
|
-
[Math.atanh, "Math.atanh"],
|
|
133
|
-
[Math.cbrt, "Math.cbrt"],
|
|
134
|
-
[Math.ceil, "Math.ceil"],
|
|
135
|
-
[Math.clz32, "Math.clz32"],
|
|
136
|
-
[Math.cos, "Math.cos"],
|
|
137
|
-
[Math.cosh, "Math.cosh"],
|
|
138
|
-
[Math.exp, "Math.exp"],
|
|
139
|
-
[Math.expm1, "Math.expm1"],
|
|
140
|
-
[Math.floor, "Math.floor"],
|
|
141
|
-
[Math.fround, "Math.fround"],
|
|
142
|
-
[Math.hypot, "Math.hypot"],
|
|
143
|
-
[Math.imul, "Math.imul"],
|
|
144
|
-
[Math.log, "Math.log"],
|
|
145
|
-
[Math.log10, "Math.log10"],
|
|
146
|
-
[Math.log1p, "Math.log1p"],
|
|
147
|
-
[Math.log2, "Math.log2"],
|
|
148
|
-
[Math.max, "Math.max"],
|
|
149
|
-
[Math.min, "Math.min"],
|
|
150
|
-
[Math.pow, "Math.pow"],
|
|
151
|
-
[Math.random, "Math.random"],
|
|
152
|
-
[Math.round, "Math.round"],
|
|
153
|
-
[Math.sign, "Math.sign"],
|
|
154
|
-
[Math.sin, "Math.sin"],
|
|
155
|
-
[Math.sinh, "Math.sinh"],
|
|
156
|
-
[Math.sqrt, "Math.sqrt"],
|
|
157
|
-
[Math.tan, "Math.tan"],
|
|
158
|
-
[Math.tanh, "Math.tanh"],
|
|
159
|
-
[Math.trunc, "Math.trunc"],
|
|
160
|
-
[Number, "Number"],
|
|
161
|
-
[Number.isFinite, "Number.isFinite"],
|
|
162
|
-
[Number.isInteger, "Number.isInteger"],
|
|
163
|
-
[Number.isNaN, "Number.isNaN"],
|
|
164
|
-
[Number.isSafeInteger, "Number.isSafeInteger"],
|
|
165
|
-
[Number.parseFloat, "Number.parseFloat"],
|
|
166
|
-
[Number.parseInt, "Number.parseInt"],
|
|
167
|
-
[Object, "Object"],
|
|
168
|
-
[Object.assign, "Object.assign"],
|
|
169
|
-
[Object.create, "Object.create"],
|
|
170
|
-
[Object.defineProperties, "Object.defineProperties"],
|
|
171
|
-
[Object.defineProperty, "Object.defineProperty"],
|
|
172
|
-
[Object.entries, "Object.entries"],
|
|
173
|
-
[Object.freeze, "Object.freeze"],
|
|
174
|
-
[Object.fromEntries, "Object.fromEntries"],
|
|
175
|
-
[Object.getOwnPropertyDescriptor, "Object.getOwnPropertyDescriptor"],
|
|
176
|
-
[Object.getOwnPropertyDescriptors, "Object.getOwnPropertyDescriptors"],
|
|
177
|
-
[Object.getOwnPropertyNames, "Object.getOwnPropertyNames"],
|
|
178
|
-
[Object.getOwnPropertySymbols, "Object.getOwnPropertySymbols"],
|
|
179
|
-
[Object.getPrototypeOf, "Object.getPrototypeOf"],
|
|
180
|
-
[Object.is, "Object.is"],
|
|
181
|
-
[Object.isExtensible, "Object.isExtensible"],
|
|
182
|
-
[Object.isFrozen, "Object.isFrozen"],
|
|
183
|
-
[Object.isSealed, "Object.isSealed"],
|
|
184
|
-
[Object.keys, "Object.keys"],
|
|
185
|
-
[Object.preventExtensions, "Object.preventExtensions"],
|
|
186
|
-
[Object.seal, "Object.seal"],
|
|
187
|
-
[Object.setPrototypeOf, "Object.setPrototypeOf"],
|
|
188
|
-
[Object.values, "Object.values"],
|
|
189
|
-
[parseFloat, "parseFloat"],
|
|
190
|
-
[parseInt, "parseInt"],
|
|
191
|
-
[Promise, "Promise"],
|
|
192
|
-
[Proxy, "Proxy"],
|
|
193
|
-
[RangeError, "RangeError"],
|
|
194
|
-
[ReferenceError, "ReferenceError"],
|
|
195
|
-
[Reflect.apply, "Reflect.apply"],
|
|
196
|
-
[Reflect.construct, "Reflect.construct"],
|
|
197
|
-
[Reflect.defineProperty, "Reflect.defineProperty"],
|
|
198
|
-
[Reflect.deleteProperty, "Reflect.deleteProperty"],
|
|
199
|
-
[Reflect.get, "Reflect.get"],
|
|
200
|
-
[Reflect.getOwnPropertyDescriptor, "Reflect.getOwnPropertyDescriptor"],
|
|
201
|
-
[Reflect.getPrototypeOf, "Reflect.getPrototypeOf"],
|
|
202
|
-
[Reflect.has, "Reflect.has"],
|
|
203
|
-
[Reflect.isExtensible, "Reflect.isExtensible"],
|
|
204
|
-
[Reflect.ownKeys, "Reflect.ownKeys"],
|
|
205
|
-
[Reflect.preventExtensions, "Reflect.preventExtensions"],
|
|
206
|
-
[Reflect.set, "Reflect.set"],
|
|
207
|
-
[Reflect.setPrototypeOf, "Reflect.setPrototypeOf"],
|
|
208
|
-
[RegExp, "RegExp"],
|
|
209
|
-
[Set, "Set"],
|
|
210
|
-
[String, "String"],
|
|
211
|
-
[String.fromCharCode, "String.fromCharCode"],
|
|
212
|
-
[String.fromCodePoint, "String.fromCodePoint"],
|
|
213
|
-
[String.raw, "String.raw"],
|
|
214
|
-
[Symbol, "Symbol"],
|
|
215
|
-
[Symbol.for, "Symbol.for"],
|
|
216
|
-
[SyntaxError, "SyntaxError"],
|
|
217
|
-
[TypeError, "TypeError"],
|
|
218
|
-
[Uint16Array, "Uint16Array"],
|
|
219
|
-
[Uint16Array.from, "Uint16Array.from"],
|
|
220
|
-
[Uint16Array.of, "Uint16Array.of"],
|
|
221
|
-
[Uint32Array, "Uint32Array"],
|
|
222
|
-
[Uint32Array.from, "Uint32Array.from"],
|
|
223
|
-
[Uint32Array.of, "Uint32Array.of"],
|
|
224
|
-
[Uint8Array, "Uint8Array"],
|
|
225
|
-
[Uint8Array.from, "Uint8Array.from"],
|
|
226
|
-
[Uint8Array.of, "Uint8Array.of"],
|
|
227
|
-
[Uint8ClampedArray, "Uint8ClampedArray"],
|
|
228
|
-
[Uint8ClampedArray.from, "Uint8ClampedArray.from"],
|
|
229
|
-
[Uint8ClampedArray.of, "Uint8ClampedArray.of"],
|
|
230
|
-
[URIError, "URIError"],
|
|
231
|
-
[WeakMap, "WeakMap"],
|
|
232
|
-
[WeakSet, "WeakSet"]
|
|
233
|
-
]), KNOWN_OBJECTS = /* @__PURE__ */ new Map([
|
|
234
|
-
[Atomics, "Atomics"],
|
|
235
|
-
[console, "console"],
|
|
236
|
-
[globalThis, "globalThis"],
|
|
237
|
-
[globalThis.crypto, "crypto"],
|
|
238
|
-
[Intl, "Intl"],
|
|
239
|
-
[JSON, "JSON"],
|
|
240
|
-
[Math, "Math"],
|
|
241
|
-
[Reflect, "Reflect"]
|
|
242
|
-
]), unsafeRegExpSourceReg = /\\[\s\S]|[<\0\ud800-\udfff]/gu, unsafeRegExpSourceDetect = /[<\0\ud800-\udfff]/u, replaceUnsafeRegExpSourceChar = (match) => {
|
|
243
|
-
let ch = match.length === 3 ? "" : match[match.length - 1];
|
|
244
|
-
if (ch === "<") return "\\x3C";
|
|
245
|
-
if (ch === "\0") return "\\x00";
|
|
246
|
-
let code = ch.charCodeAt(0);
|
|
247
|
-
return code >= 55296 && code <= 57343 ? "\\u" + code.toString(16).padStart(4, "0") : match;
|
|
248
|
-
}, unsafeQuoteReg = /["\\<\n\r\u2028\u2029\0\ud800-\udfff]/u, $chunk, kPendingContexts = Symbol("Pending Contexts"), kBranchId = Symbol("Branch Id"), kIsAsync = Symbol("Is Async"), writeScope = (scopeId, partialScope) => {
|
|
249
|
-
let { state } = $chunk.boundary, target = $chunk.serializeState, scope = scopeWithId(state, scopeId), pending = target.writeScopes[scopeId];
|
|
250
|
-
return state.needsMainRuntime = !0, Object.assign(scope, partialScope), pending && pending !== partialScope ? Object.assign(pending, partialScope) : target.writeScopes[scopeId] = partialScope, target.flushScopes = !0, scope;
|
|
251
|
-
}, NOOP$2 = () => {}, tick = globalThis.setImmediate || globalThis.setTimeout || globalThis.queueMicrotask || ((cb) => Promise.resolve().then(cb)), tickQueue, kSelectedValue = Symbol("selectedValue"), checkedValuesRefs = /* @__PURE__ */ new WeakMap(), singleQuoteAttrReplacements = /['\r]|&(?=[#a-zA-Z])/g, doubleQuoteAttrReplacements = /["\r]|&(?=[#a-zA-Z])/g, needsQuotedAttr = /["'>\s]|&[#a-zA-Z]|\/$/g, voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/, _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, serializeReason) => {
|
|
252
|
-
let shouldResume = serializeReason !== 0, renderer = normalizeDynamicRenderer(tag), state = getState(), branchId = _peek_scope_id(), rendered, result;
|
|
253
|
-
if (typeof renderer == "string") {
|
|
254
|
-
let input = (inputIsArgs ? inputOrArgs[0] : inputOrArgs) || {};
|
|
255
|
-
rendered = !0, (() => {
|
|
256
|
-
if (_scope_id(), _html(`<${renderer}${_attrs(input, "a", branchId, renderer)}>`), !voidElementsReg.test(renderer)) {
|
|
257
|
-
let renderContent = content || normalizeDynamicRenderer(input.content);
|
|
258
|
-
if (renderer === "textarea") _html(_attr_textarea_value(branchId, "a", input.value, input.valueChange, 1));
|
|
259
|
-
else {
|
|
260
|
-
if (renderContent && typeof renderContent != "function") throw Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
261
|
-
renderer === "select" && ("value" in input || "valueChange" in input) ? _attr_select_value(branchId, "a", input.value, input.valueChange, renderContent ? () => _dynamic_tag(branchId, "a", renderContent, void 0, 0, void 0, serializeReason) : void 0, 1) : renderContent && _dynamic_tag(branchId, "a", renderContent, void 0, 0, void 0, serializeReason);
|
|
262
|
-
}
|
|
263
|
-
_html(`</${renderer}>`);
|
|
264
|
-
}
|
|
265
|
-
let childScope = getScopeById(branchId), needsScript = childScope && (childScope.Ia || childScope.Ea);
|
|
266
|
-
needsScript && _script(branchId, "_d"), (shouldResume || needsScript) && _html(state.mark("'", scopeId + " " + accessor + " " + branchId));
|
|
267
|
-
})(), result = _el(branchId, "_e");
|
|
268
|
-
} else {
|
|
269
|
-
let chunk = getChunk(), beforeBranch = shouldResume ? deferBranchStart(chunk) : void 0, render = () => {
|
|
270
|
-
if (renderer) try {
|
|
271
|
-
return _set_serialize_reason(shouldResume && inputOrArgs !== void 0 ? 1 : 0), inputIsArgs ? renderer(...inputOrArgs) : renderer(content ? {
|
|
272
|
-
...inputOrArgs,
|
|
273
|
-
content
|
|
274
|
-
} : inputOrArgs);
|
|
275
|
-
} finally {
|
|
276
|
-
_set_serialize_reason(void 0);
|
|
277
|
-
}
|
|
278
|
-
else if (content) return content();
|
|
279
|
-
};
|
|
280
|
-
result = shouldResume ? withBranchId(branchId, render) : render(), rendered = _peek_scope_id() !== branchId, beforeBranch !== void 0 && (applyBranchStart(chunk, beforeBranch, rendered), _html(state.mark("]", scopeId + " " + accessor + (rendered ? " " + branchId : ""))));
|
|
281
|
-
}
|
|
282
|
-
return rendered ? shouldResume && writeScope(scopeId, { ["D" + accessor]: rendererKey(renderer) }) : _scope_id(), result;
|
|
283
|
-
};
|
|
284
|
-
((originalDynamicTag) => (patch) => {
|
|
285
|
-
_dynamic_tag = (scopeId, accessor, tag, input, content, inputIsArgs, resume) => {
|
|
286
|
-
let patched = patch(tag, scopeId, accessor);
|
|
287
|
-
return patched !== tag && (patched.a = tag), originalDynamicTag(scopeId, accessor, patched, input, content, inputIsArgs, resume);
|
|
288
|
-
};
|
|
289
|
-
})(_dynamic_tag);
|
|
290
|
-
var CONSUMED_RESULT_MESSAGE = "Cannot read from a consumed render result", _template = (templateId, renderer, page) => (renderer.render = render, renderer.i = !page, renderer._ = renderer, _content_resume(templateId, renderer)), kAssets = Symbol(), kBlockIndex = Symbol(), kDeferIndex = Symbol(), assetFlush;
|
|
291
|
-
function attrTag(attrs) {
|
|
292
|
-
return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
|
|
293
|
-
}
|
|
294
|
-
function* attrTagIterator() {
|
|
295
|
-
yield this, yield* this[rest];
|
|
296
|
-
}
|
|
297
|
-
function stringifyClassObject(name, value) {
|
|
298
|
-
return value ? name : "";
|
|
299
|
-
}
|
|
300
|
-
function stringifyStyleObject(name, value) {
|
|
301
|
-
return value || value === 0 ? escapeStyleAttr(name) + ":" + escapeStyleAttr(value + "") : "";
|
|
302
|
-
}
|
|
303
|
-
function escapeStyleAttr(str) {
|
|
304
|
-
return unsafeStyleAttrReg.test(str) ? str.replace(unsafeStyleAttrReg, replaceUnsafeStyleAttr) : str;
|
|
305
|
-
}
|
|
306
|
-
function isEventHandler(name) {
|
|
307
|
-
return /^on[A-Z-]/.test(name);
|
|
308
|
-
}
|
|
309
|
-
function getEventHandlerName(name) {
|
|
310
|
-
return name[2] === "-" ? name.slice(3) : name.slice(2).toLowerCase();
|
|
311
|
-
}
|
|
312
|
-
function isVoid(value) {
|
|
313
|
-
return value == null || value === !1;
|
|
314
|
-
}
|
|
315
|
-
function isNotVoid(value) {
|
|
316
|
-
return value != null && value !== !1;
|
|
317
|
-
}
|
|
318
|
-
function normalizeDynamicRenderer(value) {
|
|
319
|
-
if (value) {
|
|
320
|
-
if (typeof value == "string") return value;
|
|
321
|
-
let normalized = value.content || value.default || value;
|
|
322
|
-
if ("a" in normalized) return normalized;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
function _el_read_error() {}
|
|
326
|
-
function _hoist_read_error() {}
|
|
327
|
-
function _to_text(val) {
|
|
328
|
-
return val || val === 0 ? val + "" : "";
|
|
329
|
-
}
|
|
330
|
-
function _escape(val) {
|
|
331
|
-
return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
|
|
332
|
-
}
|
|
333
|
-
function _escape_script(val) {
|
|
334
|
-
return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
|
|
335
|
-
}
|
|
336
|
-
patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
|
|
337
|
-
var State$1 = class {
|
|
338
|
-
ids = 0;
|
|
339
|
-
flushId = 0;
|
|
340
|
-
wroteUndefined = !1;
|
|
341
|
-
buf = [];
|
|
342
|
-
strs = /* @__PURE__ */ new Map();
|
|
343
|
-
refs = /* @__PURE__ */ new WeakMap();
|
|
344
|
-
pendingAssignments = /* @__PURE__ */ new Set();
|
|
345
|
-
boundary = void 0;
|
|
346
|
-
channel = void 0;
|
|
347
|
-
channelDeps = null;
|
|
348
|
-
mutated = [];
|
|
349
|
-
};
|
|
350
|
-
var Reference = class {
|
|
351
|
-
assignments = null;
|
|
352
|
-
calls = null;
|
|
353
|
-
scopeId = void 0;
|
|
354
|
-
channel = void 0;
|
|
355
|
-
parent;
|
|
356
|
-
accessor;
|
|
357
|
-
flushId;
|
|
358
|
-
pos;
|
|
359
|
-
id;
|
|
360
|
-
constructor(parent, accessor, flushId, pos = null, id = null) {
|
|
361
|
-
this.parent = parent, this.accessor = accessor, this.flushId = flushId, this.pos = pos, this.id = id;
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
var Serializer = class {
|
|
365
|
-
#state = new State$1();
|
|
366
|
-
pending(channel) {
|
|
367
|
-
return hasMatchingMutations(this.#state.mutated, channel?.readyId);
|
|
368
|
-
}
|
|
369
|
-
pendingReadyChannel() {
|
|
370
|
-
for (let mutation of this.#state.mutated) if (mutation.channel?.readyId) return mutation.channel;
|
|
371
|
-
}
|
|
372
|
-
stringifyScopes(flushes, boundary, channel) {
|
|
373
|
-
try {
|
|
374
|
-
return this.#state.boundary = boundary, this.#state.channel = channel, writeScopesRoot(this.#state, flushes);
|
|
375
|
-
} finally {
|
|
376
|
-
this.#state.flushId++, this.#state.buf = [];
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
written(val) {
|
|
380
|
-
return this.#state.refs.has(val);
|
|
381
|
-
}
|
|
382
|
-
takeChannelDeps() {
|
|
383
|
-
let deps = this.#state.channelDeps;
|
|
384
|
-
return this.#state.channelDeps = null, deps;
|
|
385
|
-
}
|
|
386
|
-
writeCall(value, object, property, channel) {
|
|
387
|
-
this.#state.mutated.push({
|
|
388
|
-
value,
|
|
389
|
-
object,
|
|
390
|
-
property,
|
|
391
|
-
channel
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
function register(id, val, scope) {
|
|
396
|
-
return REGISTRY.set(val, {
|
|
397
|
-
id,
|
|
398
|
-
scope,
|
|
399
|
-
access: "_._" + toAccess(toObjectKey(id))
|
|
400
|
-
}), val;
|
|
401
|
-
}
|
|
402
|
-
function writeScopesRoot(state, flushes) {
|
|
403
|
-
let { buf } = state, nextSlotId = -1, fillIndex = -1;
|
|
404
|
-
for (let flush of flushes) {
|
|
405
|
-
let scopeId = flush[0], scope = flush[1], ref = state.refs.get(scope) || newScopeReference(state, scope, scopeId), openIndex = buf.push("") - 1;
|
|
406
|
-
writeObjectProps(state, flush[2], ref) ? (buf[openIndex] = nextSlotId === -1 ? "[" + scopeId + ",{" : (scopeId === nextSlotId ? "" : "," + (scopeId - nextSlotId)) + ",{", fillIndex === -1 && (fillIndex = openIndex), nextSlotId = scopeId + 1, buf.push("}")) : buf.pop();
|
|
407
|
-
}
|
|
408
|
-
nextSlotId !== -1 && buf.push("]");
|
|
409
|
-
let extras = "";
|
|
410
|
-
(state.pendingAssignments.size || hasChannelMutations(state)) && (extras = ",0)", fillIndex !== -1 && (buf[fillIndex] = "_(" + buf[fillIndex], buf.push(")")), writeAssigned(state));
|
|
411
|
-
let result = extras && "(";
|
|
412
|
-
for (let chunk of buf) result += chunk;
|
|
413
|
-
return result += extras, result ? state.wroteUndefined ? (state.wroteUndefined = !1, "(_,$)=>" + result) : "_=>" + result : "";
|
|
414
|
-
}
|
|
415
|
-
function writeAssigned(state) {
|
|
416
|
-
let sep = state.buf.length ? "," : "";
|
|
417
|
-
if (state.pendingAssignments.size) {
|
|
418
|
-
let pending = state.pendingAssignments;
|
|
419
|
-
state.pendingAssignments = /* @__PURE__ */ new Set();
|
|
420
|
-
let buf = "", hasCalls = !1;
|
|
421
|
-
for (let ref of pending) ref.assignments && (buf += sep + assignmentsToString(ref.assignments, ref.id), ref.assignments = null, sep = ","), hasCalls ||= ref.calls !== null;
|
|
422
|
-
if (buf && state.buf.push(buf), hasCalls) {
|
|
423
|
-
for (let ref of pending) if (ref.calls) {
|
|
424
|
-
for (let { method, args } of ref.calls) {
|
|
425
|
-
state.buf.push((state.buf.length ? "," : "") + ref.id + "." + method + "(");
|
|
426
|
-
for (let a = 0; a < args.length; a++) a && state.buf.push(","), writeCallArg(state, args[a]);
|
|
427
|
-
state.buf.push(")");
|
|
428
|
-
}
|
|
429
|
-
ref.calls = null;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
if (hasChannelMutations(state)) {
|
|
434
|
-
let remaining = [];
|
|
435
|
-
for (let mutation of state.mutated) {
|
|
436
|
-
if (!mutationMatchesReadyId(mutation, state.channel?.readyId)) {
|
|
437
|
-
remaining.push(mutation);
|
|
438
|
-
continue;
|
|
439
|
-
}
|
|
440
|
-
let hasSeen = state.refs.get(mutation.object)?.id, objectStartIndex = state.buf.push(state.buf.length === 0 ? "" : ",");
|
|
441
|
-
if (writeProp(state, mutation.object, null, "")) {
|
|
442
|
-
let objectRef = state.refs.get(mutation.object);
|
|
443
|
-
objectRef && objectRef.scopeId === void 0 && (objectRef.id ? hasSeen || (state.buf[objectStartIndex] = "(" + state.buf[objectStartIndex], state.buf.push(")")) : (objectRef.id = nextRefAccess(state), state.buf[objectStartIndex] = "(" + objectRef.id + "=" + state.buf[objectStartIndex], state.buf.push(")")));
|
|
444
|
-
} else state.buf.push("void 0");
|
|
445
|
-
let valueStartIndex = state.buf.push(toAccess(toObjectKey(mutation.property)) + "(");
|
|
446
|
-
if (mutation.value !== void 0) if (writeProp(state, mutation.value, null, "")) {
|
|
447
|
-
let valueRef = typeof mutation.value == "string" ? state.strs.get(mutation.value) : state.refs.get(mutation.value);
|
|
448
|
-
valueRef && !valueRef.id && valueRef.scopeId === void 0 && (valueRef.id = mutation.valueId || nextRefAccess(state), state.buf[valueStartIndex] = valueRef.id + "=" + state.buf[valueStartIndex]);
|
|
449
|
-
} else state.buf.push("void 0");
|
|
450
|
-
state.buf.push(")");
|
|
451
|
-
}
|
|
452
|
-
state.mutated = remaining;
|
|
453
|
-
}
|
|
454
|
-
state.pendingAssignments.size && writeAssigned(state);
|
|
455
|
-
}
|
|
456
|
-
function writeCallArg(state, val) {
|
|
457
|
-
if (val === void 0) state.wroteUndefined = !0, state.buf.push("$");
|
|
458
|
-
else if (writeProp(state, val, null, "")) {
|
|
459
|
-
let ref = state.refs.get(val) || state.strs.get(val);
|
|
460
|
-
ref && ref.id === null && assignId(state, ref);
|
|
461
|
-
} else state.buf.push("void 0");
|
|
462
|
-
}
|
|
463
|
-
function hasChannelMutations(state) {
|
|
464
|
-
return hasMatchingMutations(state.mutated, state.channel?.readyId);
|
|
465
|
-
}
|
|
466
|
-
function hasMatchingMutations(mutated, readyId) {
|
|
467
|
-
for (let mutation of mutated) if (mutationMatchesReadyId(mutation, readyId)) return !0;
|
|
468
|
-
return !1;
|
|
469
|
-
}
|
|
470
|
-
function mutationMatchesReadyId(mutation, readyId) {
|
|
471
|
-
return mutation.channel?.readyId ? mutation.channel.readyId === readyId : !readyId;
|
|
472
|
-
}
|
|
473
|
-
function writeProp(state, val, parent, accessor) {
|
|
474
|
-
switch (typeof val) {
|
|
475
|
-
case "string": return writeString(state, val, parent, accessor);
|
|
476
|
-
case "number": return writeNumber(state, val);
|
|
477
|
-
case "boolean": return writeBoolean(state, val);
|
|
478
|
-
case "bigint": return writeBigInt(state, val);
|
|
479
|
-
case "symbol": return writeSymbol(state, val, parent, accessor);
|
|
480
|
-
case "function": return writeFunction(state, val, parent, accessor);
|
|
481
|
-
case "object": return writeObject(state, val, parent, accessor);
|
|
482
|
-
default: return !1;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
function writeReferenceOr(state, write, val, parent, accessor) {
|
|
486
|
-
let ref = state.refs.get(val);
|
|
487
|
-
if (ref) return trackChannel(state, ref) ? parent && isCircular(parent, ref) ? (ensureId(state, ref), state.pendingAssignments.add(ref), addAssignment(ref, accessId(state, parent) + toAccess(accessor)), !1) : (state.buf.push(ensureId(state, ref)), !0) : !1;
|
|
488
|
-
let registered = REGISTRY.get(val);
|
|
489
|
-
return registered ? writeRegistered(state, val, parent, accessor, registered) : (state.refs.set(val, ref = new Reference(parent, accessor, state.flushId, state.buf.length)), ref.channel = state.channel, write(state, val, ref) ? !0 : (state.refs.delete(val), !1));
|
|
490
|
-
}
|
|
491
|
-
function trackScope(state, val, scopeId) {
|
|
492
|
-
let ref = state.refs.get(val);
|
|
493
|
-
ref ? trackChannel(state, ref) : newScopeReference(state, val, scopeId);
|
|
494
|
-
}
|
|
495
|
-
function newScopeReference(state, val, scopeId) {
|
|
496
|
-
let ref = new Reference(null, null, state.flushId);
|
|
497
|
-
return ref.scopeId = scopeId, ref.channel = state.channel, state.refs.set(val, ref), ref;
|
|
498
|
-
}
|
|
499
|
-
function writeRegistered(state, val, parent, accessor, registered) {
|
|
500
|
-
let { scope } = registered;
|
|
501
|
-
if (scope) {
|
|
502
|
-
let ref = new Reference(parent, accessor, state.flushId, state.buf.length);
|
|
503
|
-
ref.channel = state.channel, state.refs.set(val, ref);
|
|
504
|
-
let scopeId = scope[K_SCOPE_ID];
|
|
505
|
-
trackScope(state, scope, scopeId), state.buf.push("_(" + scopeId + "," + quote(registered.id, 0) + ")");
|
|
506
|
-
} else state.buf.push(registered.access);
|
|
507
|
-
return !0;
|
|
508
|
-
}
|
|
509
|
-
function writeString(state, val, parent, accessor) {
|
|
510
|
-
if (val.length > 12) {
|
|
511
|
-
let ref = state.strs.get(val);
|
|
512
|
-
if (ref) {
|
|
513
|
-
if (trackChannel(state, ref)) return state.buf.push(ensureId(state, ref)), !0;
|
|
514
|
-
} else {
|
|
515
|
-
let ref = new Reference(parent, accessor, state.flushId, state.buf.length);
|
|
516
|
-
ref.channel = state.channel, state.strs.set(val, ref);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
return state.buf.push(quote(val, 0)), !0;
|
|
520
|
-
}
|
|
521
|
-
function writeNumber(state, val) {
|
|
522
|
-
return state.buf.push(val + ""), !0;
|
|
523
|
-
}
|
|
524
|
-
function writeBoolean(state, val) {
|
|
525
|
-
return state.buf.push(val ? "!0" : "!1"), !0;
|
|
526
|
-
}
|
|
527
|
-
function writeBigInt(state, val) {
|
|
528
|
-
return state.buf.push(val + "n"), !0;
|
|
529
|
-
}
|
|
530
|
-
function writeFunction(state, val, parent, accessor) {
|
|
531
|
-
let wellKnownFunction = KNOWN_FUNCTIONS.get(val);
|
|
532
|
-
return wellKnownFunction ? (state.buf.push(wellKnownFunction), !0) : writeReferenceOr(state, writeNever, val, parent, accessor);
|
|
533
|
-
}
|
|
534
|
-
function writeSymbol(state, val, parent, accessor) {
|
|
535
|
-
let wellKnownSymbol = KNOWN_SYMBOLS.get(val);
|
|
536
|
-
if (wellKnownSymbol) return state.buf.push(wellKnownSymbol), !0;
|
|
537
|
-
let key = Symbol.keyFor(val);
|
|
538
|
-
return key === void 0 ? writeReferenceOr(state, writeUnknownSymbol, val, parent, accessor) : (state.buf.push("Symbol.for(" + quote(key, 0) + ")"), !0);
|
|
539
|
-
}
|
|
540
|
-
function writeUnknownSymbol(state) {
|
|
541
|
-
return state.buf.push("Symbol()"), !0;
|
|
542
|
-
}
|
|
543
|
-
function writeNever(state, val, ref) {
|
|
544
|
-
return !1;
|
|
545
|
-
}
|
|
546
|
-
function writeNull(state) {
|
|
547
|
-
return state.buf.push("null"), !0;
|
|
548
|
-
}
|
|
549
|
-
function writeObject(state, val, parent, accessor) {
|
|
550
|
-
if (val === null) return writeNull(state);
|
|
551
|
-
let scopeId = val[K_SCOPE_ID];
|
|
552
|
-
if (scopeId !== void 0) return trackScope(state, val, scopeId), state.buf.push("_(" + scopeId + ")"), !0;
|
|
553
|
-
let wellKnownObject = KNOWN_OBJECTS.get(val);
|
|
554
|
-
return wellKnownObject ? (state.buf.push(wellKnownObject), !0) : writeReferenceOr(state, writeUnknownObject, val, parent, accessor);
|
|
555
|
-
}
|
|
556
|
-
function writeUnknownObject(state, val, ref) {
|
|
557
|
-
let proto = Object.getPrototypeOf(val);
|
|
558
|
-
if (proto === objectProto) return writePlainObject(state, val, ref);
|
|
559
|
-
if (proto === arrayProto) return writeArray(state, val, ref);
|
|
560
|
-
switch (proto?.constructor) {
|
|
561
|
-
case void 0: return writeNullObject(state, val, ref);
|
|
562
|
-
case Object: return writePlainObject(state, val, ref);
|
|
563
|
-
case Array: return writeArray(state, val, ref);
|
|
564
|
-
case Date: return writeDate(state, val);
|
|
565
|
-
case RegExp: return writeRegExp(state, val);
|
|
566
|
-
case Promise: return writePromise(state, val, ref);
|
|
567
|
-
case Map: return writeMap(state, val, ref);
|
|
568
|
-
case Set: return writeSet(state, val, ref);
|
|
569
|
-
case Generator: return writeGenerator(state, val, ref);
|
|
570
|
-
case AsyncGenerator: return writeAsyncGenerator(state, val, ref);
|
|
571
|
-
case Error:
|
|
572
|
-
case EvalError:
|
|
573
|
-
case RangeError:
|
|
574
|
-
case ReferenceError:
|
|
575
|
-
case SyntaxError:
|
|
576
|
-
case TypeError:
|
|
577
|
-
case URIError: return writeError(state, val, ref);
|
|
578
|
-
case AggregateError: return writeAggregateError(state, val, ref);
|
|
579
|
-
case ArrayBuffer: return writeArrayBuffer(state, val);
|
|
580
|
-
case Int8Array:
|
|
581
|
-
case Uint8Array:
|
|
582
|
-
case Uint8ClampedArray:
|
|
583
|
-
case Int16Array:
|
|
584
|
-
case Uint16Array:
|
|
585
|
-
case Int32Array:
|
|
586
|
-
case Uint32Array:
|
|
587
|
-
case Float32Array:
|
|
588
|
-
case Float64Array:
|
|
589
|
-
case BigInt64Array:
|
|
590
|
-
case BigUint64Array: return writeTypedArray(state, val, ref);
|
|
591
|
-
case DataView: return writeDataView(state, val, ref);
|
|
592
|
-
case WeakSet: return writeWeakSet(state);
|
|
593
|
-
case WeakMap: return writeWeakMap(state);
|
|
594
|
-
case globalThis.URL: return writeURL(state, val);
|
|
595
|
-
case globalThis.URLSearchParams: return writeURLSearchParams(state, val);
|
|
596
|
-
case globalThis.Headers: return writeHeaders(state, val);
|
|
597
|
-
case globalThis.FormData: return writeFormData(state, val, ref);
|
|
598
|
-
case globalThis.ReadableStream: return writeReadableStream(state, val, ref);
|
|
599
|
-
case globalThis.Request: return writeRequest(state, val, ref);
|
|
600
|
-
case globalThis.Response: return writeResponse(state, val, ref);
|
|
601
|
-
case globalThis.Intl?.NumberFormat: return writeIntl(state, val, "NumberFormat", ref);
|
|
602
|
-
case globalThis.Intl?.DateTimeFormat: return writeIntl(state, val, "DateTimeFormat", ref);
|
|
603
|
-
case globalThis.Intl?.Collator: return writeIntl(state, val, "Collator", ref);
|
|
604
|
-
case globalThis.Intl?.PluralRules: return writeIntl(state, val, "PluralRules", ref);
|
|
605
|
-
case globalThis.Intl?.RelativeTimeFormat: return writeIntl(state, val, "RelativeTimeFormat", ref);
|
|
606
|
-
case globalThis.Intl?.ListFormat: return writeIntl(state, val, "ListFormat", ref);
|
|
607
|
-
case globalThis.Intl?.DisplayNames: return writeIntl(state, val, "DisplayNames", ref);
|
|
608
|
-
case globalThis.Intl?.Segmenter: return writeIntl(state, val, "Segmenter", ref);
|
|
609
|
-
case globalThis.Intl?.DurationFormat: return writeIntl(state, val, "DurationFormat", ref);
|
|
610
|
-
case globalThis.Intl?.Locale: return writeIntlLocale(state, val);
|
|
611
|
-
case globalThis.Temporal?.Instant: return writeTemporal(state, val, "Instant");
|
|
612
|
-
case globalThis.Temporal?.Duration: return writeTemporal(state, val, "Duration");
|
|
613
|
-
case globalThis.Temporal?.PlainDate: return writeTemporal(state, val, "PlainDate");
|
|
614
|
-
case globalThis.Temporal?.PlainDateTime: return writeTemporal(state, val, "PlainDateTime");
|
|
615
|
-
case globalThis.Temporal?.PlainMonthDay: return writeTemporal(state, val, "PlainMonthDay");
|
|
616
|
-
case globalThis.Temporal?.PlainTime: return writeTemporal(state, val, "PlainTime");
|
|
617
|
-
case globalThis.Temporal?.PlainYearMonth: return writeTemporal(state, val, "PlainYearMonth");
|
|
618
|
-
case globalThis.Temporal?.ZonedDateTime: return writeTemporal(state, val, "ZonedDateTime");
|
|
619
|
-
}
|
|
620
|
-
return !1;
|
|
621
|
-
}
|
|
622
|
-
function writePlainObject(state, val, ref) {
|
|
623
|
-
return state.buf.push("{"), writeMaybeIterableProps(state, val, ref), state.buf.push("}"), !0;
|
|
624
|
-
}
|
|
625
|
-
function writeArray(state, val, ref) {
|
|
626
|
-
let sep = "[";
|
|
627
|
-
for (let i = 0; i < val.length; i++) {
|
|
628
|
-
let item = val[i];
|
|
629
|
-
state.buf.push(sep), sep = ",", item === void 0 ? (state.wroteUndefined = !0, state.buf.push("$")) : writeProp(state, item, ref, "" + i);
|
|
630
|
-
}
|
|
631
|
-
return sep === "[" ? state.buf.push("[]") : state.buf.push("]"), !0;
|
|
632
|
-
}
|
|
633
|
-
function writeDate(state, val) {
|
|
634
|
-
return state.buf.push("new Date(" + +val + ")"), !0;
|
|
635
|
-
}
|
|
636
|
-
function writeRegExp(state, val) {
|
|
637
|
-
let { source } = val;
|
|
638
|
-
return state.buf.push("/" + (unsafeRegExpSourceDetect.test(source) ? source.replace(unsafeRegExpSourceReg, replaceUnsafeRegExpSourceChar) : source) + "/" + val.flags), !0;
|
|
639
|
-
}
|
|
640
|
-
function writePromise(state, val, ref) {
|
|
641
|
-
let { boundary, channel } = state;
|
|
642
|
-
if (!boundary) return !1;
|
|
643
|
-
let pId = nextRefAccess(state), handle = newAsyncHandle(state, ref, pId);
|
|
644
|
-
return state.buf.push("(p=>p=new Promise((f,r)=>" + pId + "={f,r(e){p.catch(_=>0);r(e)}}))()"), val.then((v) => writeAsyncCall(state, boundary, handle, "f", v, channel, pId), (v) => writeAsyncCall(state, boundary, handle, "r", v, channel, pId)), boundary.startAsync(), !0;
|
|
645
|
-
}
|
|
646
|
-
function newAsyncHandle(state, parent, id) {
|
|
647
|
-
let handle = {}, handleRef = new Reference(parent, null, state.flushId, null, id);
|
|
648
|
-
return handleRef.channel = state.channel, state.refs.set(handle, handleRef), handle;
|
|
649
|
-
}
|
|
650
|
-
function writeMap(state, val, ref) {
|
|
651
|
-
if (!val.size) return state.buf.push("new Map"), !0;
|
|
652
|
-
let items = [], assignments, needsId, deferring = !1, i = 0;
|
|
653
|
-
if (val.size < 25) {
|
|
654
|
-
for (let [itemKey, itemValue] of val) {
|
|
655
|
-
if (!deferring && (itemKey !== val && isAncestorMember(state, ref, itemKey) || itemValue !== val && isAncestorMember(state, ref, itemValue)) && (deferring = !0), deferring) {
|
|
656
|
-
deferCall(state, ref, "set", [itemKey, itemValue]);
|
|
657
|
-
continue;
|
|
658
|
-
}
|
|
659
|
-
itemKey === val && (itemKey = void 0, (assignments ||= []).push("a[" + i + "][0]")), itemValue === val && (itemValue = void 0, (assignments ||= []).push("a[" + i + "][1]")), needsId ||= isDedupedMember(itemKey) || isDedupedMember(itemValue), i = items.push(itemValue === void 0 ? itemKey === void 0 ? [] : [itemKey] : [itemKey, itemValue]);
|
|
660
|
-
}
|
|
661
|
-
writeArrayArg(state, ref, items, assignments && "((m,a)=>(" + assignmentsToString(assignments, "m") + ",a.forEach(i=>m.set(i[0],i[1])),m))(new Map,", "new Map(", needsId);
|
|
662
|
-
} else {
|
|
663
|
-
for (let [itemKey, itemValue] of val) {
|
|
664
|
-
if (!deferring && (itemKey !== val && isAncestorMember(state, ref, itemKey) || itemValue !== val && isAncestorMember(state, ref, itemValue)) && (deferring = !0), deferring) {
|
|
665
|
-
deferCall(state, ref, "set", [itemKey, itemValue]);
|
|
666
|
-
continue;
|
|
667
|
-
}
|
|
668
|
-
itemKey === val && (itemKey = 0, (assignments ||= []).push("a[" + i + "]")), itemValue === val && (itemValue = 0, (assignments ||= []).push("a[" + (i + 1) + "]")), needsId ||= isDedupedMember(itemKey) || isDedupedMember(itemValue), i = items.push(itemKey, itemValue);
|
|
669
|
-
}
|
|
670
|
-
writeArrayArg(state, ref, items, assignments && "(a=>a.reduce((m,v,i)=>i%2?m:m.set(v,a[i+1])," + assignmentsToString(assignments, "new Map") + "))(", "(a=>a.reduce((m,v,i)=>i%2?m:m.set(v,a[i+1]),new Map))(", needsId);
|
|
671
|
-
}
|
|
672
|
-
return !0;
|
|
673
|
-
}
|
|
674
|
-
function writeSet(state, val, ref) {
|
|
675
|
-
if (!val.size) return state.buf.push("new Set"), !0;
|
|
676
|
-
let items = [], assignments, needsId, deferring = !1, i = 0;
|
|
677
|
-
for (let item of val) {
|
|
678
|
-
if (!deferring && item !== val && isAncestorMember(state, ref, item) && (deferring = !0), deferring) {
|
|
679
|
-
deferCall(state, ref, "add", [item]);
|
|
680
|
-
continue;
|
|
681
|
-
}
|
|
682
|
-
item === val ? (item = 0, (assignments ||= []).push("i[" + i + "]")) : needsId ||= isDedupedMember(item), i = items.push(item);
|
|
683
|
-
}
|
|
684
|
-
return writeArrayArg(state, ref, items, assignments && "((s,i)=>(" + assignmentsToString(assignments, "s") + ",i.forEach(i=>s.add(i)),s))(new Set,", "new Set(", needsId), !0;
|
|
685
|
-
}
|
|
686
|
-
function isAncestorMember(state, container, member) {
|
|
687
|
-
if (member === null || typeof member != "object" && typeof member != "function") return !1;
|
|
688
|
-
let ref = state.refs.get(member);
|
|
689
|
-
return ref !== void 0 && isCircular(container, ref);
|
|
690
|
-
}
|
|
691
|
-
function deferCall(state, ref, method, args) {
|
|
692
|
-
ensureId(state, ref), (ref.calls ||= []).push({
|
|
693
|
-
method,
|
|
694
|
-
args
|
|
695
|
-
}), state.pendingAssignments.add(ref);
|
|
696
|
-
}
|
|
697
|
-
function writeArrayArg(state, ref, items, assignsPrefix, plainPrefix, needsId) {
|
|
698
|
-
if (assignsPrefix || needsId) {
|
|
699
|
-
let arrayRef = new Reference(ref, null, state.flushId, null, nextRefAccess(state));
|
|
700
|
-
state.buf.push((assignsPrefix || plainPrefix) + arrayRef.id + "="), writeArray(state, items, arrayRef);
|
|
701
|
-
} else state.buf.push(plainPrefix), writeArray(state, items, new Reference(ref, null, state.flushId, state.buf.length));
|
|
702
|
-
state.buf.push(")");
|
|
703
|
-
}
|
|
704
|
-
function isDedupedMember(val) {
|
|
705
|
-
switch (typeof val) {
|
|
706
|
-
case "object": return val !== null && val[K_SCOPE_ID] === void 0;
|
|
707
|
-
case "function":
|
|
708
|
-
case "symbol": return !0;
|
|
709
|
-
case "string": return val.length > 12;
|
|
710
|
-
default: return !1;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
function canWriteBuffer(state, buffer, ref) {
|
|
714
|
-
return Object.getPrototypeOf(buffer)?.constructor === ArrayBuffer;
|
|
715
|
-
}
|
|
716
|
-
function writeDataView(state, val, ref) {
|
|
717
|
-
let { buffer } = val;
|
|
718
|
-
if (!canWriteBuffer(state, buffer, ref)) return !1;
|
|
719
|
-
let needsLength = val.byteOffset + val.byteLength < buffer.byteLength;
|
|
720
|
-
return state.buf.push("new DataView("), writeProp(state, buffer, ref, "buffer"), state.buf.push((val.byteOffset || needsLength ? "," + val.byteOffset + (needsLength ? "," + val.byteLength : "") : "") + ")"), !0;
|
|
721
|
-
}
|
|
722
|
-
function writeArrayBuffer(state, val) {
|
|
723
|
-
let result;
|
|
724
|
-
if (val.byteLength) {
|
|
725
|
-
let view = new Int8Array(val);
|
|
726
|
-
result = hasOnlyZeros(view) ? "new ArrayBuffer(" + val.byteLength + ")" : "new Int8Array(" + typedArrayToInitString(view) + ").buffer";
|
|
727
|
-
} else result = "new ArrayBuffer";
|
|
728
|
-
return state.buf.push(result), !0;
|
|
729
|
-
}
|
|
730
|
-
function writeTypedArray(state, val, ref) {
|
|
731
|
-
if (val.byteOffset || val.byteLength < val.buffer.byteLength || state.refs.has(val.buffer)) {
|
|
732
|
-
if (!canWriteBuffer(state, val.buffer, ref)) return !1;
|
|
733
|
-
let needsLength = val.byteOffset + val.byteLength < val.buffer.byteLength;
|
|
734
|
-
state.buf.push("new " + val.constructor.name + "("), writeProp(state, val.buffer, ref, "buffer"), state.buf.push((val.byteOffset || needsLength ? "," + val.byteOffset + (needsLength ? "," + val.length : "") : "") + ")");
|
|
735
|
-
} else state.refs.set(val.buffer, new Reference(ref, "buffer", state.flushId, null)), state.buf.push("new " + val.constructor.name + (val.length === 0 ? "" : "(" + (hasOnlyZeros(val) ? val.length : typedArrayToInitString(val)) + ")"));
|
|
736
|
-
return !0;
|
|
737
|
-
}
|
|
738
|
-
function writeWeakSet(state) {
|
|
739
|
-
return state.buf.push("new WeakSet"), !0;
|
|
740
|
-
}
|
|
741
|
-
function writeWeakMap(state) {
|
|
742
|
-
return state.buf.push("new WeakMap"), !0;
|
|
743
|
-
}
|
|
744
|
-
function writeError(state, val, ref) {
|
|
745
|
-
let result = "new " + val.constructor.name + "(" + quote(val.message + "", 0);
|
|
746
|
-
if (val.cause !== void 0) {
|
|
747
|
-
let pos = state.buf.push(result + ",{cause:") - 1;
|
|
748
|
-
writeProp(state, val.cause, ref, "cause") ? state.buf.push("})") : state.buf[pos] = state.buf[pos].slice(0, -8) + ")";
|
|
749
|
-
} else state.buf.push(result + ")");
|
|
750
|
-
return !0;
|
|
751
|
-
}
|
|
752
|
-
function writeAggregateError(state, val, ref) {
|
|
753
|
-
state.buf.push("new AggregateError(");
|
|
754
|
-
let inlined = writeProp(state, val.errors, ref, "errors");
|
|
755
|
-
if (inlined || state.buf.push("[]"), val.message ? state.buf.push("," + quote(val.message + "", 0) + ")") : state.buf.push(")"), inlined) {
|
|
756
|
-
let errorsRef = state.refs.get(val.errors);
|
|
757
|
-
errorsRef?.id && (state.pendingAssignments.add(errorsRef), addAssignment(errorsRef, accessId(state, ref) + toAccess("errors")));
|
|
758
|
-
}
|
|
759
|
-
return !0;
|
|
760
|
-
}
|
|
761
|
-
function writeURL(state, val) {
|
|
762
|
-
return state.buf.push("new URL(" + quote(val.toString(), 0) + ")"), !0;
|
|
763
|
-
}
|
|
764
|
-
function writeURLSearchParams(state, val) {
|
|
765
|
-
let str = val.toString();
|
|
766
|
-
return str ? state.buf.push("new URLSearchParams(" + quote(str, 0) + ")") : state.buf.push("new URLSearchParams"), !0;
|
|
767
|
-
}
|
|
768
|
-
function writeHeaders(state, val) {
|
|
769
|
-
let headers = stringEntriesToHeadersInit(val);
|
|
770
|
-
return state.buf.push("new Headers" + (headers ? "(" + headers + ")" : "")), !0;
|
|
771
|
-
}
|
|
772
|
-
function writeFormData(state, val, ref) {
|
|
773
|
-
let sep = "[", valStr = "";
|
|
774
|
-
for (let [key, value] of val) {
|
|
775
|
-
if (typeof value != "string") return !1;
|
|
776
|
-
valStr += sep + quote(key, 0) + "," + quote(value, 0), sep = ",";
|
|
777
|
-
}
|
|
778
|
-
return sep === "[" ? state.buf.push("new FormData") : state.buf.push(valStr + "].reduce((f,v,i,a)=>i%2&&f.append(a[i-1],v)||f,new FormData)"), !0;
|
|
779
|
-
}
|
|
780
|
-
function writeRequest(state, val, ref) {
|
|
781
|
-
let sep = "", bodySerialized = !1, hasBody = val.body && !val.bodyUsed && val.duplex === "half";
|
|
782
|
-
state.buf.push("new Request(" + quote(val.url, 0)), hasBody && (state.buf.push(",{body:"), writeProp(state, val.body, ref, "body") ? (state.buf.push(",duplex:\"half\""), sep = ",", bodySerialized = !0) : state.buf.pop());
|
|
783
|
-
let options = "";
|
|
784
|
-
val.cache !== "default" && (options += sep + "cache:" + quote(val.cache, 0), sep = ","), val.credentials !== "same-origin" && (options += sep + "credentials:" + quote(val.credentials, 0), sep = ",");
|
|
785
|
-
let seenHeaders = state.refs.get(val.headers);
|
|
786
|
-
if (seenHeaders) options += sep + "headers:" + ensureId(state, seenHeaders), sep = ",";
|
|
787
|
-
else {
|
|
788
|
-
state.refs.set(val.headers, new Reference(ref, "headers", state.flushId, null));
|
|
789
|
-
let headers = stringEntriesToHeadersInit(val.headers);
|
|
790
|
-
headers && (options += sep + "headers:" + headers, sep = ",");
|
|
791
|
-
}
|
|
792
|
-
return val.integrity && (options += sep + "integrity:" + quote(val.integrity, 0), sep = ","), val.keepalive && (options += sep + "keepalive:true", sep = ","), val.method !== "GET" && (options += sep + "method:" + quote(val.method, 0), sep = ","), val.mode !== "cors" && (options += sep + "mode:" + quote(val.mode, 0), sep = ","), val.redirect !== "follow" && (options += sep + "redirect:" + quote(val.redirect, 0), sep = ","), val.referrer !== "about:client" && (options += sep + "referrer:" + quote(val.referrer, 0), sep = ","), val.referrerPolicy && (options += sep + "referrerPolicy:" + quote(val.referrerPolicy, 0)), state.buf.push(bodySerialized ? options + "})" : options ? ",{" + options + "})" : ")"), !0;
|
|
793
|
-
}
|
|
794
|
-
function writeResponse(state, val, ref) {
|
|
795
|
-
let sep = "", options = "";
|
|
796
|
-
val.status !== 200 && (options += "status:" + val.status, sep = ","), val.statusText && (options += sep + "statusText:" + quote(val.statusText, 0), sep = ",");
|
|
797
|
-
let seenHeaders = state.refs.get(val.headers);
|
|
798
|
-
if (seenHeaders) options += sep + "headers:" + ensureId(state, seenHeaders);
|
|
799
|
-
else {
|
|
800
|
-
state.refs.set(val.headers, new Reference(ref, "headers", state.flushId, null));
|
|
801
|
-
let headers = stringEntriesToHeadersInit(val.headers);
|
|
802
|
-
headers && (options += sep + "headers:" + headers);
|
|
803
|
-
}
|
|
804
|
-
return !val.body || val.bodyUsed ? state.buf.push("new Response" + (options ? "(null,{" + options + "})" : "")) : (state.buf.push("new Response("), state.buf.push((writeProp(state, val.body, ref, "body") ? "" : "null") + (options ? ",{" + options + "})" : ")"))), !0;
|
|
805
|
-
}
|
|
806
|
-
function writeIntl(state, val, name, ref) {
|
|
807
|
-
let { locale, ...options } = val.resolvedOptions(), needsId = !1;
|
|
808
|
-
for (let key in options) if (isDedupedMember(options[key])) {
|
|
809
|
-
needsId = !0;
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
state.buf.push("new Intl." + name + "(" + quote(locale, 0) + ",");
|
|
813
|
-
let optionsRef;
|
|
814
|
-
return needsId ? (optionsRef = new Reference(ref, null, state.flushId, null, nextRefAccess(state)), state.buf.push(optionsRef.id + "={")) : (optionsRef = new Reference(ref, null, state.flushId, state.buf.length), state.buf.push("{")), writeObjectProps(state, options, optionsRef), state.buf.push("})"), !0;
|
|
815
|
-
}
|
|
816
|
-
function writeIntlLocale(state, val) {
|
|
817
|
-
return state.buf.push("new Intl.Locale(" + quote(val.toString(), 0) + ")"), !0;
|
|
818
|
-
}
|
|
819
|
-
function writeTemporal(state, val, name) {
|
|
820
|
-
return state.buf.push("Temporal." + name + ".from(" + quote(val.toString(), 0) + ")"), !0;
|
|
821
|
-
}
|
|
822
|
-
function writeReadableStream(state, val, ref) {
|
|
823
|
-
let { boundary, channel } = state;
|
|
824
|
-
if (!boundary || val.locked) return !1;
|
|
825
|
-
let reader = val.getReader(), iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
826
|
-
done ? writeAsyncCall(state, boundary, handle, "r", value, channel) : boundary.signal.aborted || (reader.read().then(onFulfilled, onRejected), boundary.startAsync(), writeAsyncCall(state, boundary, handle, "f", value, channel));
|
|
827
|
-
}, onRejected = (reason) => {
|
|
828
|
-
writeAsyncCall(state, boundary, handle, "j", reason, channel);
|
|
829
|
-
};
|
|
830
|
-
return state.buf.push("new ReadableStream({start(c){(async(_,f,v,l,i,p=a=>l=new Promise((r,j)=>{f=_.r=r;_.j=j}),a=((_.f=v=>{f(v);a.push(p())}),[p()]))=>{for(i of a)v=await i,i==l?c.close():c.enqueue(v)})(" + iterId + "={}).catch(e=>c.error(e))}})"), reader.read().then(onFulfilled, onRejected), boundary.startAsync(), !0;
|
|
831
|
-
}
|
|
832
|
-
function writeGenerator(state, iter, ref) {
|
|
833
|
-
if (iter[kTouchedIterator]) return state.buf.push("(function*(){}())"), !0;
|
|
834
|
-
let yields = [], returnValue, needsId;
|
|
835
|
-
for (;;) {
|
|
836
|
-
let { value, done } = iter.next();
|
|
837
|
-
if (done) {
|
|
838
|
-
returnValue = value;
|
|
839
|
-
break;
|
|
840
|
-
}
|
|
841
|
-
needsId ||= isDedupedMember(value), yields.push(value);
|
|
842
|
-
}
|
|
843
|
-
if (returnValue === void 0 && !yields.length) return state.buf.push("(function*(){})()"), !0;
|
|
844
|
-
let heldReturn = returnValue !== void 0 && isAncestorMember(state, ref, returnValue);
|
|
845
|
-
if (state.buf.push(returnValue === void 0 ? "(function*(a){yield*a})(" : heldReturn ? "(function*(a,r){yield*a;return r.v})(" : "(function*(a,r){yield*a;return r})("), needsId) {
|
|
846
|
-
let arrayRef = new Reference(ref, null, state.flushId, null, nextRefAccess(state));
|
|
847
|
-
state.buf.push(arrayRef.id + "="), writeArray(state, yields, arrayRef);
|
|
848
|
-
} else writeArray(state, yields, new Reference(ref, null, state.flushId, state.buf.length));
|
|
849
|
-
if (heldReturn) {
|
|
850
|
-
let holder = new Reference(ref, null, state.flushId, null, nextRefAccess(state));
|
|
851
|
-
state.buf.push("," + holder.id + "={}"), writeProp(state, returnValue, holder, "v");
|
|
852
|
-
} else if (returnValue !== void 0) {
|
|
853
|
-
let sepIndex = state.buf.push(",") - 1;
|
|
854
|
-
if (writeProp(state, returnValue, ref, "") && isDedupedMember(returnValue)) {
|
|
855
|
-
let retRef = typeof returnValue == "string" ? state.strs.get(returnValue) : state.refs.get(returnValue);
|
|
856
|
-
retRef && !retRef.id && retRef.scopeId === void 0 && (retRef.id = nextRefAccess(state), state.buf[sepIndex] = "," + retRef.id + "=");
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
return state.buf.push(")"), !0;
|
|
860
|
-
}
|
|
861
|
-
function writeAsyncGenerator(state, iter, ref) {
|
|
862
|
-
if (iter[kTouchedIterator]) return state.buf.push("(async function*(){}())"), !0;
|
|
863
|
-
let { boundary, channel } = state;
|
|
864
|
-
if (!boundary) return !1;
|
|
865
|
-
let iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
866
|
-
done ? writeAsyncCall(state, boundary, handle, "r", value, channel) : boundary.signal.aborted || (iter.next().then(onFulfilled, onRejected), boundary.startAsync(), writeAsyncCall(state, boundary, handle, "f", value, channel));
|
|
867
|
-
}, onRejected = (reason) => {
|
|
868
|
-
writeAsyncCall(state, boundary, handle, "j", reason, channel);
|
|
869
|
-
};
|
|
870
|
-
return state.buf.push("(async function*(_,f,v,l,i,p=a=>l=new Promise((r,j)=>{f=_.r=r;_.j=j}),a=((_.f=v=>{f(v);a.push(p())}),[p()])){for(i of a)v=await i,i!=l&&(yield v);return v})(" + iterId + "={})"), iter.next().then(onFulfilled, onRejected), boundary.startAsync(), !0;
|
|
871
|
-
}
|
|
872
|
-
function writeNullObject(state, val, ref) {
|
|
873
|
-
return state.buf.push("{"), state.buf.push(writeMaybeIterableProps(state, val, ref) + "__proto__:null}"), !0;
|
|
874
|
-
}
|
|
875
|
-
function writeObjectProps(state, val, ref) {
|
|
876
|
-
let sep = "";
|
|
877
|
-
for (let key in val) if (hasOwnProperty.call(val, key)) {
|
|
878
|
-
let escapedKey = toObjectKey(key);
|
|
879
|
-
state.buf.push(sep + escapedKey + ":"), writeProp(state, val[key], ref, escapedKey) ? sep = "," : state.buf.pop();
|
|
880
|
-
}
|
|
881
|
-
return sep;
|
|
882
|
-
}
|
|
883
|
-
function writeMaybeIterableProps(state, val, ref) {
|
|
884
|
-
let sep = writeObjectProps(state, val, ref);
|
|
885
|
-
if (hasSymbolIterator(val)) {
|
|
886
|
-
let yieldSelf = "", iterArr = [];
|
|
887
|
-
for (let item of val) item === val && !(yieldSelf || iterArr.length) ? yieldSelf = "yield this;" : iterArr.push(item);
|
|
888
|
-
if (iterArr.length) {
|
|
889
|
-
let iterRef = new Reference(ref, null, state.flushId, null, nextRefAccess(state));
|
|
890
|
-
state.buf.push(sep + "*[(" + iterRef.id + "="), writeArray(state, iterArr, iterRef), state.buf.push(",Symbol.iterator)](){" + yieldSelf + "yield*" + iterRef.id + "}");
|
|
891
|
-
} else state.buf.push(sep + "*[Symbol.iterator](){" + yieldSelf.slice(0, -1) + "}");
|
|
892
|
-
sep = ",";
|
|
893
|
-
}
|
|
894
|
-
return sep;
|
|
895
|
-
}
|
|
896
|
-
function writeAsyncCall(state, boundary, handle, method, value, channel, valueId = null) {
|
|
897
|
-
boundary.signal.aborted || (state.mutated.push({
|
|
898
|
-
value,
|
|
899
|
-
object: handle,
|
|
900
|
-
property: method,
|
|
901
|
-
channel,
|
|
902
|
-
valueId
|
|
903
|
-
}), boundary.endAsync());
|
|
904
|
-
}
|
|
905
|
-
function trackChannel(state, ref) {
|
|
906
|
-
let refReadyId = ref.channel?.readyId;
|
|
907
|
-
if (!refReadyId || refReadyId === state.channel?.readyId) return !0;
|
|
908
|
-
let cur = state.channel?.parent;
|
|
909
|
-
for (; cur;) {
|
|
910
|
-
if (cur.readyId === refReadyId) return (state.channelDeps ||= /* @__PURE__ */ new Set()).add(refReadyId), !0;
|
|
911
|
-
cur = cur.parent;
|
|
912
|
-
}
|
|
913
|
-
return !1;
|
|
914
|
-
}
|
|
915
|
-
function isCircular(parent, ref) {
|
|
916
|
-
let cur = parent;
|
|
917
|
-
for (; cur;) {
|
|
918
|
-
if (cur === ref) return !0;
|
|
919
|
-
cur = cur.parent;
|
|
920
|
-
}
|
|
921
|
-
return !1;
|
|
922
|
-
}
|
|
923
|
-
function toObjectKey(name) {
|
|
924
|
-
if (name === "") return "\"\"";
|
|
925
|
-
if (name === "__proto__") return "[\"__proto__\"]";
|
|
926
|
-
let len = name.length, c0 = name.charCodeAt(0);
|
|
927
|
-
if (c0 >= 48 && c0 <= 57) if (c0 === 48) {
|
|
928
|
-
if (len !== 1) return quote(name, 1);
|
|
929
|
-
} else {
|
|
930
|
-
for (let i = 1; i < len; i++) {
|
|
931
|
-
let c = name.charCodeAt(i);
|
|
932
|
-
if (c < 48 || c > 57) return quote(name, i);
|
|
933
|
-
}
|
|
934
|
-
if (len > 15 && "" + +name !== name) return quote(name, 0);
|
|
935
|
-
}
|
|
936
|
-
else if (c0 >= 97 && c0 <= 122 || c0 >= 65 && c0 <= 90 || c0 === 95 || c0 === 36) for (let i = 1; i < len; i++) {
|
|
937
|
-
let c = name.charCodeAt(i);
|
|
938
|
-
if (!(c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c === 95 || c === 36)) return quote(name, i);
|
|
939
|
-
}
|
|
940
|
-
else return quote(name, 0);
|
|
941
|
-
return name;
|
|
942
|
-
}
|
|
943
|
-
function toAccess(accessor) {
|
|
944
|
-
let start = accessor[0];
|
|
945
|
-
return start === "[" ? accessor : start === "\"" || start >= "0" && start <= "9" ? "[" + accessor + "]" : "." + accessor;
|
|
946
|
-
}
|
|
947
|
-
function quote(str, startPos) {
|
|
948
|
-
if (!unsafeQuoteReg.test(str)) return "\"" + str + "\"";
|
|
949
|
-
let result = "", lastPos = 0;
|
|
950
|
-
for (let i = startPos; i < str.length; i++) {
|
|
951
|
-
let replacement, code = str.charCodeAt(i);
|
|
952
|
-
switch (code) {
|
|
953
|
-
case 34:
|
|
954
|
-
replacement = "\\\"";
|
|
955
|
-
break;
|
|
956
|
-
case 92:
|
|
957
|
-
replacement = "\\\\";
|
|
958
|
-
break;
|
|
959
|
-
case 60:
|
|
960
|
-
replacement = "\\x3C";
|
|
961
|
-
break;
|
|
962
|
-
case 10:
|
|
963
|
-
replacement = "\\n";
|
|
964
|
-
break;
|
|
965
|
-
case 13:
|
|
966
|
-
replacement = "\\r";
|
|
967
|
-
break;
|
|
968
|
-
case 8232:
|
|
969
|
-
replacement = "\\u2028";
|
|
970
|
-
break;
|
|
971
|
-
case 8233:
|
|
972
|
-
replacement = "\\u2029";
|
|
973
|
-
break;
|
|
974
|
-
case 0:
|
|
975
|
-
replacement = "\\x00";
|
|
976
|
-
break;
|
|
977
|
-
default:
|
|
978
|
-
if (code < 55296 || code > 57343) continue;
|
|
979
|
-
if (code < 56320) {
|
|
980
|
-
let next = str.charCodeAt(i + 1);
|
|
981
|
-
if (next >= 56320 && next <= 57343) {
|
|
982
|
-
i++;
|
|
983
|
-
continue;
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
replacement = "\\u" + code.toString(16);
|
|
987
|
-
}
|
|
988
|
-
result += str.slice(lastPos, i) + replacement, lastPos = i + 1;
|
|
989
|
-
}
|
|
990
|
-
return "\"" + (lastPos === startPos ? str : result + str.slice(lastPos)) + "\"";
|
|
991
|
-
}
|
|
992
|
-
function ensureId(state, ref) {
|
|
993
|
-
return ref.scopeId === void 0 ? ref.id ? (trackChannel(state, ref), ref.id) : assignId(state, ref) : (trackChannel(state, ref), "_(" + ref.scopeId + ")");
|
|
994
|
-
}
|
|
995
|
-
function accessId(state, ref) {
|
|
996
|
-
let id = ensureId(state, ref);
|
|
997
|
-
return id === ref.id || ref.scopeId !== void 0 ? id : "(" + id + ")";
|
|
998
|
-
}
|
|
999
|
-
function assignId(state, ref) {
|
|
1000
|
-
let { pos } = ref;
|
|
1001
|
-
if (ref.id = nextRefAccess(state), pos !== null && ref.flushId === state.flushId) return pos === 0 ? state.buf[0] = ref.id + "=" + state.buf[0] : state.buf[pos - 1] += ref.id + "=", ref.id;
|
|
1002
|
-
ref.channel = state.channel;
|
|
1003
|
-
let cur = ref, accessPrevValue = "";
|
|
1004
|
-
do {
|
|
1005
|
-
accessPrevValue = toAccess(cur.accessor) + accessPrevValue;
|
|
1006
|
-
let parent = cur.parent;
|
|
1007
|
-
if (parent.id && (trackChannel(state, parent) || !parent.parent)) {
|
|
1008
|
-
accessPrevValue = parent.id + accessPrevValue;
|
|
1009
|
-
break;
|
|
1010
|
-
}
|
|
1011
|
-
if (parent.flushId === state.flushId || parent.scopeId !== void 0) {
|
|
1012
|
-
accessPrevValue = accessId(state, parent) + accessPrevValue;
|
|
1013
|
-
break;
|
|
1014
|
-
}
|
|
1015
|
-
cur = parent;
|
|
1016
|
-
} while (cur);
|
|
1017
|
-
return ref.id + "=" + accessPrevValue;
|
|
1018
|
-
}
|
|
1019
|
-
function assignmentsToString(assignments, value) {
|
|
1020
|
-
return assignments.length > 100 ? "($=>(" + assignments.join("=$,") + "=$))(" + value + ")" : assignments.join("=") + "=" + value;
|
|
1021
|
-
}
|
|
1022
|
-
function addAssignment(ref, assign) {
|
|
1023
|
-
ref.assignments ? ref.assignments.push(assign) : ref.assignments = [assign];
|
|
1024
|
-
}
|
|
1025
|
-
function nextRefAccess(state) {
|
|
1026
|
-
return "_." + nextId(state);
|
|
1027
|
-
}
|
|
1028
|
-
function nextId(state) {
|
|
1029
|
-
let c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789", n = state.ids++, r = c[n % 53];
|
|
1030
|
-
for (n = n / 53 | 0; n; n >>>= 6) r += c[n & 63];
|
|
1031
|
-
return r;
|
|
1032
|
-
}
|
|
1033
|
-
function hasSymbolIterator(value) {
|
|
1034
|
-
return Symbol.iterator in value;
|
|
1035
|
-
}
|
|
1036
|
-
function stringEntriesToHeadersInit(entries) {
|
|
1037
|
-
let list = [...entries];
|
|
1038
|
-
if (!list.length) return "";
|
|
1039
|
-
let duplicate = !1, seen = /* @__PURE__ */ new Set();
|
|
1040
|
-
for (let [key] of list) {
|
|
1041
|
-
if (seen.has(key)) {
|
|
1042
|
-
duplicate = !0;
|
|
1043
|
-
break;
|
|
1044
|
-
}
|
|
1045
|
-
seen.add(key);
|
|
1046
|
-
}
|
|
1047
|
-
let result = "", sep = "";
|
|
1048
|
-
for (let [key, value] of list) result += duplicate ? sep + "[" + quote(key, 0) + "," + quote(value, 0) + "]" : sep + toObjectKey(key) + ":" + quote(value, 0), sep = ",";
|
|
1049
|
-
return duplicate ? "[" + result + "]" : "{" + result + "}";
|
|
1050
|
-
}
|
|
1051
|
-
function typedArrayToInitString(view) {
|
|
1052
|
-
let suffix = typeof view[0] == "bigint" ? "n" : "", result = "[", sep = "";
|
|
1053
|
-
for (let i = 0; i < view.length; i++) result += sep + view[i] + suffix, sep = ",";
|
|
1054
|
-
return result += "]", result;
|
|
1055
|
-
}
|
|
1056
|
-
function hasOnlyZeros(typedArray) {
|
|
1057
|
-
let zero = typeof typedArray[0] == "bigint" ? 0n : 0;
|
|
1058
|
-
for (let i = 0; i < typedArray.length; i++) if (typedArray[i] !== zero) return !1;
|
|
1059
|
-
return !0;
|
|
1060
|
-
}
|
|
1061
|
-
function patchIteratorNext(proto) {
|
|
1062
|
-
if (proto.next[kTouchedIterator]) return;
|
|
1063
|
-
let { next } = proto;
|
|
1064
|
-
proto.next = function(value) {
|
|
1065
|
-
return this[kTouchedIterator] = 1, next.call(this, value);
|
|
1066
|
-
}, proto.next[kTouchedIterator] = !0;
|
|
1067
|
-
}
|
|
1068
|
-
function forOf(list, cb) {
|
|
1069
|
-
if (list) {
|
|
1070
|
-
let i = 0;
|
|
1071
|
-
for (let item of list) cb(item, i++);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
function forEach(opt, cb) {
|
|
1075
|
-
if (opt) if (Array.isArray(opt)) for (let item of opt) cb(item);
|
|
1076
|
-
else cb(opt);
|
|
1077
|
-
}
|
|
1078
|
-
function push(opt, item) {
|
|
1079
|
-
return opt ? Array.isArray(opt) ? (opt.push(item), opt) : [opt, item] : item;
|
|
1080
|
-
}
|
|
1081
|
-
function concat(opt, other) {
|
|
1082
|
-
if (!opt) return other;
|
|
1083
|
-
if (!other) return opt;
|
|
1084
|
-
if (Array.isArray(opt)) {
|
|
1085
|
-
if (Array.isArray(other)) for (let item of other) opt.push(item);
|
|
1086
|
-
else opt.push(other);
|
|
1087
|
-
return opt;
|
|
1088
|
-
}
|
|
1089
|
-
return Array.isArray(other) ? [opt, ...other] : [opt, other];
|
|
1090
|
-
}
|
|
1091
|
-
function forOfBy(by, item, index) {
|
|
1092
|
-
return by ? typeof by == "string" ? item[by] : by(item, index) : index;
|
|
1093
|
-
}
|
|
1094
|
-
function getChunk() {
|
|
1095
|
-
return $chunk;
|
|
1096
|
-
}
|
|
1097
|
-
function getContext(key) {
|
|
1098
|
-
return $chunk.context?.[key];
|
|
1099
|
-
}
|
|
1100
|
-
function getState() {
|
|
1101
|
-
return $chunk.boundary.state;
|
|
1102
|
-
}
|
|
1103
|
-
function rendererKey(renderer) {
|
|
1104
|
-
return renderer?.e === void 0 ? renderer?.a || renderer : renderer.a + " " + renderer.e;
|
|
1105
|
-
}
|
|
1106
|
-
function getScopeById(scopeId) {
|
|
1107
|
-
if (scopeId !== void 0) return $chunk.boundary.state.scopes.get(scopeId);
|
|
1108
|
-
}
|
|
1109
|
-
function $global() {
|
|
1110
|
-
return $chunk.boundary.state.$global;
|
|
1111
|
-
}
|
|
1112
|
-
function _id() {
|
|
1113
|
-
let state = $chunk.boundary.state, { $global } = state;
|
|
1114
|
-
return "s" + $global.runtimeId + $global.renderId + (state.tagId++).toString(36);
|
|
1115
|
-
}
|
|
1116
|
-
function _scope_id() {
|
|
1117
|
-
return $chunk.boundary.state.scopeId++;
|
|
1118
|
-
}
|
|
1119
|
-
function _peek_scope_id() {
|
|
1120
|
-
return $chunk.boundary.state.scopeId;
|
|
1121
|
-
}
|
|
1122
|
-
function withContext(key, value, cb, cbValue) {
|
|
1123
|
-
let ctx = $chunk.context ||= { [kPendingContexts]: 0 }, prev = ctx[key];
|
|
1124
|
-
ctx[kPendingContexts]++, ctx[key] = value;
|
|
1125
|
-
try {
|
|
1126
|
-
return cb(cbValue);
|
|
1127
|
-
} finally {
|
|
1128
|
-
ctx[kPendingContexts]--, ctx[key] = prev;
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
function withBranchId(branchId, cb) {
|
|
1132
|
-
return withContext(kBranchId, branchId, cb);
|
|
1133
|
-
}
|
|
1134
|
-
function _html(html) {
|
|
1135
|
-
$chunk.writeHTML(html);
|
|
1136
|
-
}
|
|
1137
|
-
function writeScript(script) {
|
|
1138
|
-
$chunk.writeScript(script);
|
|
1139
|
-
}
|
|
1140
|
-
function _script(scopeId, registryId) {
|
|
1141
|
-
($chunk.serializeState.readyId || $chunk.context?.[kIsAsync]) && _resume_branch(scopeId), $chunk.boundary.state.needsMainRuntime = !0, $chunk.writeEffect(scopeId, registryId);
|
|
1142
|
-
}
|
|
1143
|
-
function _trailers(html) {
|
|
1144
|
-
$chunk.boundary.state.trailerHTML += html;
|
|
1145
|
-
}
|
|
1146
|
-
function _resume(val, id, scopeId) {
|
|
1147
|
-
return register(id, val, scopeId === void 0 ? void 0 : _scope_with_id(scopeId));
|
|
1148
|
-
}
|
|
1149
|
-
function _el(scopeId, id) {
|
|
1150
|
-
return _resume(() => void 0, id, scopeId);
|
|
1151
|
-
}
|
|
1152
|
-
function _hoist(scopeId, id) {
|
|
1153
|
-
let getter = () => void 0;
|
|
1154
|
-
return getter[Symbol.iterator] = _hoist_read_error, _resume(getter, id, scopeId);
|
|
1155
|
-
}
|
|
1156
|
-
function _el_resume(scopeId, accessor, shouldResume) {
|
|
1157
|
-
if (shouldResume === 0) return "";
|
|
1158
|
-
let { state } = $chunk.boundary;
|
|
1159
|
-
return state.needsMainRuntime = !0, state.mark("*", scopeId + " " + accessor);
|
|
1160
|
-
}
|
|
1161
|
-
function _sep(shouldResume) {
|
|
1162
|
-
return shouldResume === 0 ? "" : "<!>";
|
|
1163
|
-
}
|
|
1164
|
-
function _resume_branch(scopeId) {
|
|
1165
|
-
let branchId = $chunk.context?.[kBranchId];
|
|
1166
|
-
branchId !== void 0 && branchId !== scopeId && writeScope(scopeId, { G: branchId });
|
|
1167
|
-
}
|
|
1168
|
-
function _var(parentScopeId, scopeOffsetAccessor, childScopeId, registryId, nodeAccessor) {
|
|
1169
|
-
writeScopePassive(parentScopeId, { [scopeOffsetAccessor]: _scope_id() });
|
|
1170
|
-
let childScope = writeScopePassive(childScopeId, { T: _resume({}, registryId, parentScopeId) });
|
|
1171
|
-
nodeAccessor !== void 0 && writeScope(parentScopeId, { ["A" + nodeAccessor]: childScope });
|
|
1172
|
-
}
|
|
1173
|
-
function writeScopePassive(scopeId, partialScope) {
|
|
1174
|
-
let target = $chunk.serializeState, scope = _scope_with_id(scopeId), passive = target.passiveScopes ||= {};
|
|
1175
|
-
return Object.assign(scope, partialScope), passive[scopeId] = Object.assign(passive[scopeId] || {}, partialScope), scope;
|
|
1176
|
-
}
|
|
1177
|
-
function _for_of(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, serializeStateful, parentEndTag, singleNode) {
|
|
1178
|
-
forBranches(by, (each) => each ? forOf(list, (item, index) => {
|
|
1179
|
-
let itemKey = forOfBy(by, item, index);
|
|
1180
|
-
each(itemKey, itemKey === index, () => cb(item, index));
|
|
1181
|
-
}) : forOf(list, cb), scopeId, accessor, serializeBranch, serializeMarker, serializeStateful, parentEndTag, singleNode);
|
|
1182
|
-
}
|
|
1183
|
-
function forBranches(by, iterate, scopeId, accessor, serializeBranch, serializeMarker, serializeStateful, parentEndTag, singleNode) {
|
|
1184
|
-
if (serializeBranch === 0) {
|
|
1185
|
-
iterate(0), writeBranchEnd(scopeId, accessor, serializeStateful, serializeMarker, parentEndTag, singleNode, "");
|
|
1186
|
-
return;
|
|
1187
|
-
}
|
|
1188
|
-
let { state } = $chunk.boundary, resumeKeys = serializeMarker !== 0, resumeMarker = resumeKeys && (!parentEndTag || serializeStateful !== 0), flushBranchIds = "", loopScopes;
|
|
1189
|
-
iterate((itemKey, sameAsIndex, render) => {
|
|
1190
|
-
let branchId = _peek_scope_id();
|
|
1191
|
-
resumeMarker && (singleNode ? flushBranchIds = " " + branchId + flushBranchIds : ($chunk.writeHTML(state.mark("[", flushBranchIds)), flushBranchIds = branchId + "")), withBranchId(branchId, () => {
|
|
1192
|
-
render();
|
|
1193
|
-
let branchScope = writeScope(branchId, resumeKeys && !sameAsIndex ? { M: itemKey } : {});
|
|
1194
|
-
resumeMarker || (loopScopes = push(loopScopes, branchScope));
|
|
1195
|
-
});
|
|
1196
|
-
}), loopScopes && writeScope(scopeId, { ["A" + accessor]: loopScopes }), writeBranchEnd(scopeId, accessor, serializeStateful, serializeMarker, parentEndTag, singleNode, singleNode ? flushBranchIds : flushBranchIds ? " " + flushBranchIds : "");
|
|
1197
|
-
}
|
|
1198
|
-
function _if(cb, scopeId, accessor, serializeBranch, serializeMarker, serializeStateful, parentEndTag, singleNode) {
|
|
1199
|
-
let resumeBranch = serializeBranch !== 0, resumeMarker = serializeMarker !== 0 && (!parentEndTag || serializeStateful !== 0), branchId = _peek_scope_id(), chunk = $chunk, beforeBranch = resumeMarker && resumeBranch && !singleNode ? deferBranchStart(chunk) : void 0, branchIndex = resumeBranch ? withBranchId(branchId, cb) : cb(), shouldWriteBranch = resumeBranch && branchIndex !== void 0;
|
|
1200
|
-
beforeBranch !== void 0 && applyBranchStart(chunk, beforeBranch, shouldWriteBranch), shouldWriteBranch && (branchIndex || !resumeMarker) && writeScope(scopeId, {
|
|
1201
|
-
["D" + accessor]: branchIndex || void 0,
|
|
1202
|
-
["A" + accessor]: resumeMarker ? void 0 : writeScope(branchId, {})
|
|
1203
|
-
}), writeBranchEnd(scopeId, accessor, serializeStateful, serializeMarker, parentEndTag, singleNode, shouldWriteBranch ? " " + branchId : "");
|
|
1204
|
-
}
|
|
1205
|
-
function deferBranchStart(chunk) {
|
|
1206
|
-
let beforeBranch = chunk.html;
|
|
1207
|
-
return chunk.html = "", beforeBranch;
|
|
1208
|
-
}
|
|
1209
|
-
function applyBranchStart(chunk, beforeBranch, rendered) {
|
|
1210
|
-
chunk.html = beforeBranch + (rendered ? chunk.boundary.state.mark("[", "") : "") + chunk.html;
|
|
1211
|
-
}
|
|
1212
|
-
function writeBranchEnd(scopeId, accessor, serializeStateful, serializeMarker, parentEndTag, singleNode, branchIds) {
|
|
1213
|
-
let endTag = parentEndTag || "";
|
|
1214
|
-
if (serializeMarker !== 0) if (!parentEndTag || serializeStateful !== 0) {
|
|
1215
|
-
let { state } = $chunk.boundary, mark = singleNode ? state.mark(parentEndTag ? "}" : "|", scopeId + " " + accessor + (branchIds || "")) : state.mark(parentEndTag ? ")" : "]", scopeId + " " + accessor + (branchIds || ""));
|
|
1216
|
-
$chunk.writeHTML(mark + endTag);
|
|
1217
|
-
} else $chunk.writeHTML(endTag + _el_resume(scopeId, accessor));
|
|
1218
|
-
else $chunk.writeHTML(endTag);
|
|
1219
|
-
}
|
|
1220
|
-
function _existing_scope(scopeId) {
|
|
1221
|
-
return writeScope(scopeId, {});
|
|
1222
|
-
}
|
|
1223
|
-
function _scope_with_id(scopeId) {
|
|
1224
|
-
return scopeWithId($chunk.boundary.state, scopeId);
|
|
1225
|
-
}
|
|
1226
|
-
function scopeWithId(state, scopeId) {
|
|
1227
|
-
let { scopes } = state, scope = scopes.get(scopeId);
|
|
1228
|
-
return scope || scopes.set(scopeId, scope = { [K_SCOPE_ID]: scopeId }), scope;
|
|
1229
|
-
}
|
|
1230
|
-
function _subscribe(subscribers, scope) {
|
|
1231
|
-
if (subscribers) {
|
|
1232
|
-
let { serializer } = $chunk.boundary.state;
|
|
1233
|
-
!$chunk.serializeState.readyId && !serializer.written(subscribers) ? subscribers.add(scope) : serializer.writeCall(scope, subscribers, "add", $chunk.serializeState);
|
|
1234
|
-
}
|
|
1235
|
-
return scope;
|
|
1236
|
-
}
|
|
1237
|
-
function _set_serialize_reason(reason) {
|
|
1238
|
-
$chunk.boundary.state.serializeReason = reason;
|
|
1239
|
-
}
|
|
1240
|
-
function _scope_reason() {
|
|
1241
|
-
let reason = $chunk.boundary.state.serializeReason;
|
|
1242
|
-
return $chunk.boundary.state.serializeReason = void 0, reason;
|
|
1243
|
-
}
|
|
1244
|
-
function _serialize_if(condition, key) {
|
|
1245
|
-
return condition && (condition === 1 || (typeof condition == "number" ? condition >>> key + 1 & 1 : condition[key])) ? 1 : void 0;
|
|
1246
|
-
}
|
|
1247
|
-
function _serialize_guard(condition, key) {
|
|
1248
|
-
return _serialize_if(condition, key) || 0;
|
|
1249
|
-
}
|
|
1250
|
-
function writeWaitReady(readyId, renderer, input) {
|
|
1251
|
-
let chunk = $chunk, { boundary } = chunk, body = new Chunk(boundary, null, chunk.context, {
|
|
1252
|
-
readyId,
|
|
1253
|
-
parent: chunk.serializeState,
|
|
1254
|
-
resumes: "",
|
|
1255
|
-
writeScopes: {},
|
|
1256
|
-
flushScopes: !1
|
|
1257
|
-
}), bodyEnd = body.render(renderer, input);
|
|
1258
|
-
body === bodyEnd ? (chunk.writeHTML(body.html), body.deferOwnReady(), chunk.deferredReady = push(chunk.deferredReady, body)) : (bodyEnd.next = $chunk = chunk.fork(boundary, chunk.next), chunk.next = body);
|
|
1259
|
-
}
|
|
1260
|
-
var State = class {
|
|
1261
|
-
tagId = 1;
|
|
1262
|
-
scopeId = 1;
|
|
1263
|
-
reorderId = 1;
|
|
1264
|
-
readyGate = 1;
|
|
1265
|
-
hasGlobals = !1;
|
|
1266
|
-
needsMainRuntime = !1;
|
|
1267
|
-
hasMainRuntime = !1;
|
|
1268
|
-
hasReadyRuntime = !1;
|
|
1269
|
-
hasReorderRuntime = !1;
|
|
1270
|
-
hasWrittenResume = !1;
|
|
1271
|
-
walkOnNextFlush = !1;
|
|
1272
|
-
trailerHTML = "";
|
|
1273
|
-
resumes = "";
|
|
1274
|
-
nonceAttr = "";
|
|
1275
|
-
serializer = new Serializer();
|
|
1276
|
-
writeReorders = null;
|
|
1277
|
-
scopes = /* @__PURE__ */ new Map();
|
|
1278
|
-
flushScopes = !1;
|
|
1279
|
-
writeScopes = {};
|
|
1280
|
-
readyIds = null;
|
|
1281
|
-
serializeReason;
|
|
1282
|
-
$global;
|
|
1283
|
-
constructor($global) {
|
|
1284
|
-
this.$global = $global, $global.cspNonce && (this.nonceAttr = " nonce" + attrAssignment($global.cspNonce));
|
|
1285
|
-
}
|
|
1286
|
-
get runtimePrefix() {
|
|
1287
|
-
let { $global } = this;
|
|
1288
|
-
return $global.runtimeId + "." + $global.renderId;
|
|
1289
|
-
}
|
|
1290
|
-
get commentPrefix() {
|
|
1291
|
-
let { $global } = this;
|
|
1292
|
-
return $global.runtimeId + $global.renderId;
|
|
1293
|
-
}
|
|
1294
|
-
reorder(chunk) {
|
|
1295
|
-
this.writeReorders ? this.writeReorders.push(chunk) : (this.needsMainRuntime = !0, this.writeReorders = [chunk]);
|
|
1296
|
-
}
|
|
1297
|
-
writeReady(id, resumes) {
|
|
1298
|
-
let readyKey = toObjectKey(id);
|
|
1299
|
-
return this.readyIds?.has(id) ? this.readyAccess(readyKey) + ".push(" + resumes + ")" : ((this.readyIds ||= /* @__PURE__ */ new Set()).add(id), this.hasReadyRuntime ? this.readyAccess(readyKey) + "=[" + resumes + "]" : (this.hasReadyRuntime = !0, this.runtimePrefix + ".b={" + readyKey + ":[" + resumes + "]}"));
|
|
1300
|
-
}
|
|
1301
|
-
readyAccess(readyKey) {
|
|
1302
|
-
return this.runtimePrefix + ".b" + toAccess(readyKey);
|
|
1303
|
-
}
|
|
1304
|
-
nextReorderId() {
|
|
1305
|
-
let c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789", n = this.reorderId++, r = c[n % 54];
|
|
1306
|
-
for (n = n / 54 | 0; n; n >>>= 6) r += c[n & 63];
|
|
1307
|
-
return r;
|
|
1308
|
-
}
|
|
1309
|
-
mark(code, str) {
|
|
1310
|
-
return "<!--" + this.commentPrefix + code + str + "-->";
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
|
-
var Boundary = class extends AbortController {
|
|
1314
|
-
onNext = NOOP$2;
|
|
1315
|
-
count = 0;
|
|
1316
|
-
state;
|
|
1317
|
-
parent;
|
|
1318
|
-
constructor(state, signal, parent) {
|
|
1319
|
-
super(), this.state = state, this.parent = parent, this.signal.addEventListener("abort", () => {
|
|
1320
|
-
this.count = 0, this.state = new State(this.state.$global), this.onNext();
|
|
1321
|
-
}), signal && (signal.aborted ? this.abort(signal.reason) : signal.addEventListener("abort", () => {
|
|
1322
|
-
this.abort(signal.reason);
|
|
1323
|
-
}));
|
|
1324
|
-
}
|
|
1325
|
-
flush() {
|
|
1326
|
-
return this.signal.aborted || flushSerializer(this, this.state), this.count ? 1 : this.signal.aborted ? 2 : 0;
|
|
1327
|
-
}
|
|
1328
|
-
startAsync() {
|
|
1329
|
-
this.signal.aborted || this.count++;
|
|
1330
|
-
}
|
|
1331
|
-
endAsync() {
|
|
1332
|
-
!this.signal.aborted && this.count && (this.count--, this.onNext());
|
|
1333
|
-
}
|
|
1334
|
-
};
|
|
1335
|
-
var Chunk = class Chunk {
|
|
1336
|
-
html = "";
|
|
1337
|
-
scripts = "";
|
|
1338
|
-
effects = "";
|
|
1339
|
-
lastEffect = "";
|
|
1340
|
-
async = !1;
|
|
1341
|
-
consumed = !1;
|
|
1342
|
-
needsWalk = !1;
|
|
1343
|
-
reorderId = null;
|
|
1344
|
-
deferredReady = null;
|
|
1345
|
-
placeholder = null;
|
|
1346
|
-
boundary;
|
|
1347
|
-
next;
|
|
1348
|
-
context;
|
|
1349
|
-
serializeState;
|
|
1350
|
-
constructor(boundary, next, context, serializeState) {
|
|
1351
|
-
this.boundary = boundary, this.next = next, this.context = context, this.serializeState = serializeState;
|
|
1352
|
-
}
|
|
1353
|
-
fork(boundary, next) {
|
|
1354
|
-
return new Chunk(boundary, next, this.context, this.serializeState);
|
|
1355
|
-
}
|
|
1356
|
-
writeHTML(html) {
|
|
1357
|
-
this.html += html;
|
|
1358
|
-
}
|
|
1359
|
-
writeEffect(scopeId, registryId) {
|
|
1360
|
-
this.lastEffect === registryId ? this.effects += " " + scopeId : (this.lastEffect = registryId, this.effects = concatEffects(this.effects, registryId + " " + scopeId));
|
|
1361
|
-
}
|
|
1362
|
-
writeScript(script) {
|
|
1363
|
-
this.scripts = concatScripts(this.scripts, script);
|
|
1364
|
-
}
|
|
1365
|
-
append(chunk) {
|
|
1366
|
-
this.html += chunk.html, this.effects = concatEffects(this.effects, chunk.effects), this.scripts = concatScripts(this.scripts, chunk.scripts), this.lastEffect = chunk.lastEffect || this.lastEffect, this.deferredReady = concat(this.deferredReady, chunk.takeDeferredReady());
|
|
1367
|
-
}
|
|
1368
|
-
takeDeferredReady() {
|
|
1369
|
-
let { deferredReady } = this;
|
|
1370
|
-
return this.deferredReady = null, deferredReady;
|
|
1371
|
-
}
|
|
1372
|
-
deferOwnReady() {
|
|
1373
|
-
if (this.serializeState.readyId && (this.effects || this.scripts || this.serializeState.flushScopes)) {
|
|
1374
|
-
let deferred = this.fork(this.boundary, null);
|
|
1375
|
-
deferred.effects = this.effects, deferred.scripts = this.scripts, this.effects = this.scripts = this.lastEffect = "", this.deferredReady = concat(deferred, this.deferredReady);
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
flushPlaceholder() {
|
|
1379
|
-
let { placeholder } = this;
|
|
1380
|
-
if (placeholder) {
|
|
1381
|
-
let body = placeholder.body.consume();
|
|
1382
|
-
if (body.async) {
|
|
1383
|
-
let { state } = this.boundary, { branchId, scopeId, placeholderBranchId } = placeholder, reorderId = body.reorderId = branchId ? branchId + "" : state.nextReorderId();
|
|
1384
|
-
this.writeHTML(state.mark("!^", reorderId));
|
|
1385
|
-
let { effects } = this, beforeBranch = deferBranchStart(this), after = this.render(() => withBranchId(placeholderBranchId, placeholder.render)), stateful = after === this && this.effects !== effects;
|
|
1386
|
-
applyBranchStart(this, beforeBranch, stateful), after === this ? stateful && (this.render(() => writeScope(branchId, { P: scopeWithId(state, placeholderBranchId) })), this.writeHTML(state.mark("]", scopeId + " " + ("P" + branchId) + " " + placeholderBranchId)), body.writeEffect(branchId, "_f")) : this.boundary.abort(/* @__PURE__ */ Error("An @placeholder cannot contain async content.")), this.writeHTML(state.mark("!", reorderId)), state.reorder(body);
|
|
1387
|
-
} else body.next = this.next, this.next = body;
|
|
1388
|
-
this.placeholder = null;
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
consume() {
|
|
1392
|
-
let cur = this, html = "", effects = "", scripts = "", lastEffect = "", needsWalk = !1, deferredReady;
|
|
1393
|
-
for (; cur.next && !cur.async;) cur.flushPlaceholder(), needsWalk ||= cur.needsWalk, html += cur.html, cur.serializeState.readyId ? deferredReady = push(deferredReady, cur) : (effects = concatEffects(effects, cur.effects), scripts = concatScripts(scripts, cur.scripts), lastEffect = cur.lastEffect || lastEffect), deferredReady = concat(deferredReady, cur.takeDeferredReady()), cur.consumed = !0, cur = cur.next;
|
|
1394
|
-
return cur.deferOwnReady(), cur.deferredReady = concat(deferredReady, cur.deferredReady), cur.needsWalk ||= needsWalk, cur.html = html + cur.html, cur.effects = concatEffects(effects, cur.effects), cur.scripts = concatScripts(scripts, cur.scripts), cur.lastEffect ||= lastEffect, cur;
|
|
1395
|
-
}
|
|
1396
|
-
render(content, val) {
|
|
1397
|
-
let prev = $chunk;
|
|
1398
|
-
$chunk = this;
|
|
1399
|
-
try {
|
|
1400
|
-
return content(val), $chunk;
|
|
1401
|
-
} catch (err) {
|
|
1402
|
-
return this.boundary.abort(err), this;
|
|
1403
|
-
} finally {
|
|
1404
|
-
$chunk = prev;
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
flushReadyScripts(reservations) {
|
|
1408
|
-
let { boundary, serializeState } = this, { readyId } = serializeState, scripts = "";
|
|
1409
|
-
if (forEach(this.takeDeferredReady(), (chunk) => {
|
|
1410
|
-
scripts = concatScripts(scripts, chunk.flushReadyScripts(reservations));
|
|
1411
|
-
}), readyId && !this.async) {
|
|
1412
|
-
let { state } = boundary;
|
|
1413
|
-
flushSerializer(boundary, serializeState);
|
|
1414
|
-
let deps = state.serializer.takeChannelDeps(), { effects } = this, { resumes } = serializeState, chunkScripts = this.scripts;
|
|
1415
|
-
if (serializeState.resumes = "", this.effects = this.scripts = "", this.lastEffect = "", resumes || effects) {
|
|
1416
|
-
state.needsMainRuntime = !0;
|
|
1417
|
-
let batch = concatSequence(depsMarker(deps), concatSequence(resumes, effects && `"${effects}"`));
|
|
1418
|
-
if (reservations) {
|
|
1419
|
-
let gate = state.readyGate++;
|
|
1420
|
-
reservations.push(state.writeReady(readyId, gate + "")), scripts = concatScripts(scripts, "(b=>b.splice(b.indexOf(" + gate + "),1," + batch + "))(" + state.readyAccess(toObjectKey(readyId)) + ")");
|
|
1421
|
-
} else scripts = concatScripts(scripts, state.writeReady(readyId, batch));
|
|
1422
|
-
}
|
|
1423
|
-
scripts = concatScripts(scripts, chunkScripts);
|
|
1424
|
-
}
|
|
1425
|
-
return scripts;
|
|
1426
|
-
}
|
|
1427
|
-
flushScript() {
|
|
1428
|
-
let { boundary } = this, { state } = boundary, { $global, runtimePrefix } = state, needsWalk = state.walkOnNextFlush;
|
|
1429
|
-
needsWalk && (state.walkOnNextFlush = !1);
|
|
1430
|
-
let readyResumeScripts = this.flushReadyScripts();
|
|
1431
|
-
for (let channel; channel = state.serializer.pendingReadyChannel();) {
|
|
1432
|
-
let resumes = state.serializer.stringifyScopes([], boundary, channel), deps = state.serializer.takeChannelDeps();
|
|
1433
|
-
state.needsMainRuntime = !0, readyResumeScripts = concatScripts(readyResumeScripts, state.writeReady(channel.readyId, concatSequence(depsMarker(deps), resumes)));
|
|
1434
|
-
}
|
|
1435
|
-
readyResumeScripts && (needsWalk = !0);
|
|
1436
|
-
let effects = this.async ? "" : this.effects, { html, scripts } = this;
|
|
1437
|
-
if (state.needsMainRuntime && !state.hasMainRuntime && (state.hasMainRuntime = !0, scripts = concatScripts(scripts, "(e=>(self[e]||=(l,f=e+l,s=f.length,a={},d=[],t=document,n=t.createTreeWalker(t,129))=>t=self[e][l]={i:f,d:t,l:a,v:d,x(){},w(e,l,r){for(;e=n.nextNode();)t.x(l=(l=e.data)&&!l.indexOf(f)&&(a[r=l.slice(s+1)]=e,l[s]),r,e),l>\"#\"&&d.push(e)}},self[e]))(\"" + $global.runtimeId + "\")(\"" + $global.renderId + "\")")), scripts = concatScripts(scripts, readyResumeScripts), effects && (needsWalk = !0, state.resumes = state.resumes ? state.resumes + ",\"" + effects + "\"" : "\"" + effects + "\""), state.writeReorders) {
|
|
1438
|
-
let carried = null;
|
|
1439
|
-
for (let reorderedChunk of state.writeReorders) {
|
|
1440
|
-
if (reorderedChunk.async && reorderedChunk.consumed) {
|
|
1441
|
-
let aborted = reorderedChunk.boundary;
|
|
1442
|
-
for (; aborted && !aborted.signal.aborted;) aborted = aborted.parent;
|
|
1443
|
-
if (!aborted) {
|
|
1444
|
-
(carried ||= []).push(reorderedChunk);
|
|
1445
|
-
continue;
|
|
1446
|
-
}
|
|
1447
|
-
reorderedChunk.async = !1;
|
|
1448
|
-
}
|
|
1449
|
-
needsWalk = !0, state.hasReorderRuntime || (state.hasReorderRuntime = !0, scripts = concatScripts(scripts, "(e=>{if(e.j)return;let i,l,r,t=e.p={},c=(i,l)=>e.l[i].replaceWith(...l.childNodes);e.j={},e.x=(n,a,d,o,g)=>{d==r&&i(),\"#\"==n?(t[a]=l).i++:\"!\"==n?e.l[a]&&t[a]&&(r=d.nextSibling,i=()=>t[a].c()):\"T\"==d.tagName&&(a=d.getAttribute(e.i))&&(r=d.nextSibling,i=()=>{d.remove(),o||c(a,d),l.c()},l=t[a]||(o=t[a]={i:e.l[a]?1:2,c(i=e.l[\"^\"+a],f=d.cloneNode()){if(--o.i)return 1;for(;f.prepend(r=e.l[a].previousSibling||i),i!=r;);c(a,d)}}),(n=e.j[a])&&(g=l.c,l.c=()=>g()||n(e.r)))}})(" + runtimePrefix + ")"));
|
|
1450
|
-
let { reorderId } = reorderedChunk, readyReservations = [], reorderHTML = "", reorderEffects = "", reorderScripts = "", cur = reorderedChunk;
|
|
1451
|
-
for (reorderedChunk.reorderId = null;;) {
|
|
1452
|
-
cur.flushPlaceholder(), cur.deferOwnReady();
|
|
1453
|
-
let { next } = cur, readyResumeScripts = cur.flushReadyScripts(readyReservations);
|
|
1454
|
-
if (cur.consumed = !0, reorderHTML += cur.html, reorderEffects = concatEffects(reorderEffects, cur.effects), reorderScripts = concatScripts(reorderScripts, concatScripts(readyResumeScripts, cur.scripts)), cur.async && (reorderHTML += state.mark("#", cur.reorderId = state.nextReorderId()), state.reorder(cur), cur.html = cur.effects = cur.scripts = cur.lastEffect = "", cur.next = null), next) cur = next;
|
|
1455
|
-
else break;
|
|
1456
|
-
}
|
|
1457
|
-
reorderEffects && (state.hasWrittenResume || (state.hasWrittenResume = !0, scripts = concatScripts(scripts, runtimePrefix + ".r=[]")), reorderScripts = concatScripts(reorderScripts, "_.push(\"" + reorderEffects + "\")"));
|
|
1458
|
-
for (let reservation of readyReservations) scripts = concatScripts(scripts, reservation);
|
|
1459
|
-
scripts = concatScripts(scripts, reorderScripts && runtimePrefix + ".j" + toAccess(reorderId) + "=_=>{" + reorderScripts + "}"), html += "<t hidden " + state.commentPrefix + "=" + reorderId + ">" + reorderHTML + "</t>";
|
|
1460
|
-
}
|
|
1461
|
-
state.writeReorders = carried;
|
|
1462
|
-
}
|
|
1463
|
-
return flushSerializer(boundary, state), state.resumes && (state.hasWrittenResume ? scripts = concatScripts(scripts, runtimePrefix + ".r.push(" + state.resumes + ")") : (state.hasWrittenResume = !0, scripts = concatScripts(scripts, runtimePrefix + ".r=[" + state.resumes + "]"))), needsWalk && (scripts = concatScripts(scripts, runtimePrefix + ".w()")), this.html = html, this.scripts = scripts, this.async || (this.effects = this.lastEffect = ""), state.resumes = "", this;
|
|
1464
|
-
}
|
|
1465
|
-
flushHTML() {
|
|
1466
|
-
let { boundary } = this, { state } = boundary;
|
|
1467
|
-
this.needsWalk && (this.needsWalk = !1, state.walkOnNextFlush = !0), this.flushScript();
|
|
1468
|
-
let { scripts } = this, { $global, nonceAttr } = state, { __flush__ } = $global, { html } = this;
|
|
1469
|
-
return this.html = this.scripts = "", scripts && (html += "<script" + nonceAttr + ">" + scripts + "<\/script>"), __flush__ && ($global.__flush__ = void 0, html = __flush__($global, html)), boundary.count || (html += state.trailerHTML), html;
|
|
1470
|
-
}
|
|
1471
|
-
};
|
|
1472
|
-
function flushSerializer(boundary, serializeState) {
|
|
1473
|
-
let { state } = boundary, { serializer } = state, pending = serializer.pending(serializeState);
|
|
1474
|
-
if (serializeState.flushScopes || pending) {
|
|
1475
|
-
let { writeScopes, passiveScopes } = serializeState, isBlockingState = serializeState !== state, flushes = [];
|
|
1476
|
-
if (passiveScopes) for (let key in passiveScopes) {
|
|
1477
|
-
let props = writeScopes[key];
|
|
1478
|
-
props && (writeScopes[key] = Object.assign(passiveScopes[key], props), delete passiveScopes[key]);
|
|
1479
|
-
}
|
|
1480
|
-
if (!isBlockingState && !state.hasGlobals) {
|
|
1481
|
-
state.hasGlobals = !0;
|
|
1482
|
-
let globals = getFilteredGlobals(state.$global);
|
|
1483
|
-
globals && flushes.push([
|
|
1484
|
-
0,
|
|
1485
|
-
globals,
|
|
1486
|
-
globals
|
|
1487
|
-
]);
|
|
1488
|
-
}
|
|
1489
|
-
for (let key in writeScopes) {
|
|
1490
|
-
let scopeId = +key, props = writeScopes[scopeId];
|
|
1491
|
-
Object.getOwnPropertyNames(props).length && flushes.push([
|
|
1492
|
-
scopeId,
|
|
1493
|
-
state.scopes.get(scopeId),
|
|
1494
|
-
props
|
|
1495
|
-
]);
|
|
1496
|
-
}
|
|
1497
|
-
(flushes.length || pending) && (isBlockingState && !state.hasGlobals && flushSerializerGlobals(boundary), serializeState.resumes = concatSequence(serializeState.resumes, serializer.stringifyScopes(flushes, boundary, serializeState))), serializeState.writeScopes = {}, serializeState.flushScopes = !1, pending && (state.walkOnNextFlush = !0);
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
function flushSerializerGlobals(boundary) {
|
|
1501
|
-
let { state } = boundary, globals = getFilteredGlobals(state.$global);
|
|
1502
|
-
globals && (state.hasGlobals = !0, state.needsMainRuntime = !0, state.resumes = concatSequence(state.resumes, state.serializer.stringifyScopes([[
|
|
1503
|
-
0,
|
|
1504
|
-
globals,
|
|
1505
|
-
globals
|
|
1506
|
-
]], boundary)));
|
|
1507
|
-
}
|
|
1508
|
-
function depsMarker(deps) {
|
|
1509
|
-
let marker = "";
|
|
1510
|
-
if (deps) {
|
|
1511
|
-
for (let dep of deps) marker += (marker ? "," : "[") + quote(dep, 0);
|
|
1512
|
-
marker += "]";
|
|
1513
|
-
}
|
|
1514
|
-
return marker;
|
|
1515
|
-
}
|
|
1516
|
-
function getFilteredGlobals($global) {
|
|
1517
|
-
if (!$global) return 0;
|
|
1518
|
-
let serializedGlobals = $global.serializedGlobals;
|
|
1519
|
-
if (!serializedGlobals) return 0;
|
|
1520
|
-
let filtered = 0;
|
|
1521
|
-
if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
|
|
1522
|
-
let value = $global[key];
|
|
1523
|
-
value !== void 0 && (filtered ? filtered[key] = value : filtered = { [key]: value });
|
|
1524
|
-
}
|
|
1525
|
-
else for (let key in serializedGlobals) if (serializedGlobals[key]) {
|
|
1526
|
-
let value = $global[key];
|
|
1527
|
-
value !== void 0 && (filtered ? filtered[key] = value : filtered = { [key]: value });
|
|
1528
|
-
}
|
|
1529
|
-
return filtered;
|
|
1530
|
-
}
|
|
1531
|
-
function concatEffects(a, b) {
|
|
1532
|
-
return a ? b ? a + " " + b : a : b;
|
|
1533
|
-
}
|
|
1534
|
-
function concatSequence(a, b) {
|
|
1535
|
-
return a ? b ? a + "," + b : a : b;
|
|
1536
|
-
}
|
|
1537
|
-
function concatScripts(a, b) {
|
|
1538
|
-
return a ? b ? a + ";" + b : a : b;
|
|
1539
|
-
}
|
|
1540
|
-
function queueTick(cb) {
|
|
1541
|
-
tickQueue ? tickQueue.add(cb) : (tickQueue = /* @__PURE__ */ new Set([cb]), tick(flushTickQueue));
|
|
1542
|
-
}
|
|
1543
|
-
function offTick(cb) {
|
|
1544
|
-
tickQueue?.delete(cb);
|
|
1545
|
-
}
|
|
1546
|
-
function flushTickQueue() {
|
|
1547
|
-
let queue = tickQueue;
|
|
1548
|
-
tickQueue = void 0;
|
|
1549
|
-
for (let cb of queue) try {
|
|
1550
|
-
cb(!0);
|
|
1551
|
-
} catch (err) {
|
|
1552
|
-
tick(() => {
|
|
1553
|
-
throw err;
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
function _attr_class(value) {
|
|
1558
|
-
return stringAttr("class", toDelimitedString(value, " ", stringifyClassObject));
|
|
1559
|
-
}
|
|
1560
|
-
function _attr_style(value) {
|
|
1561
|
-
return stringAttr("style", toDelimitedString(value, ";", stringifyStyleObject));
|
|
1562
|
-
}
|
|
1563
|
-
function _attr_option_value(value) {
|
|
1564
|
-
let valueAttr = _attr("value", value), selectedValue = getContext(kSelectedValue);
|
|
1565
|
-
return selectedValue !== void 0 && normalizedValueMatches(selectedValue, value) ? valueAttr + " selected" : valueAttr;
|
|
1566
|
-
}
|
|
1567
|
-
function _attr_select_value(scopeId, nodeAccessor, value, valueChange, content, serializeType) {
|
|
1568
|
-
valueChange && writeControlledScope(3, scopeId, nodeAccessor, void 0, valueChange, serializeType), content && withContext(kSelectedValue, value ?? "", content);
|
|
1569
|
-
}
|
|
1570
|
-
function _attr_textarea_value(scopeId, nodeAccessor, value, valueChange, serializeType) {
|
|
1571
|
-
return valueChange && writeControlledScope(2, scopeId, nodeAccessor, void 0, valueChange, serializeType), _textarea_value(value);
|
|
1572
|
-
}
|
|
1573
|
-
function _textarea_value(value) {
|
|
1574
|
-
let escaped = _escape(normalizeStrAttrValue(value));
|
|
1575
|
-
return escaped[0] === "\n" ? "\n" + escaped : escaped;
|
|
1576
|
-
}
|
|
1577
|
-
function _attr_input_value(scopeId, nodeAccessor, value, valueChange, serializeType) {
|
|
1578
|
-
return valueChange && writeControlledScope(2, scopeId, nodeAccessor, void 0, valueChange, serializeType), _attr("value", value);
|
|
1579
|
-
}
|
|
1580
|
-
function _attr_input_checked(scopeId, nodeAccessor, checked, checkedChange, serializeType) {
|
|
1581
|
-
return checkedChange && writeControlledScope(0, scopeId, nodeAccessor, void 0, checkedChange, serializeType), isNotVoid(checked) ? " checked" : "";
|
|
1582
|
-
}
|
|
1583
|
-
function _attr_input_checkedValue(scopeId, nodeAccessor, checkedValue, checkedValueChange, value, serializeType) {
|
|
1584
|
-
let valueAttr = _attr("value", value);
|
|
1585
|
-
return checkedValueChange && writeControlledScope(1, scopeId, nodeAccessor, getCheckedValueRef(checkedValue), checkedValueChange, serializeType), normalizedValueMatches(checkedValue, value) ? valueAttr + " checked" : valueAttr;
|
|
1586
|
-
}
|
|
1587
|
-
function getCheckedValueRef(checkedValue) {
|
|
1588
|
-
if (Array.isArray(checkedValue)) {
|
|
1589
|
-
let ref = checkedValuesRefs.get(checkedValue);
|
|
1590
|
-
return ref || (ref = [], checkedValuesRefs.set(checkedValue, ref)), ref;
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
function _attr_details_or_dialog_open(scopeId, nodeAccessor, open, openChange, serializeType) {
|
|
1594
|
-
let normalizedOpen = isNotVoid(open);
|
|
1595
|
-
return openChange && writeControlledScope(4, scopeId, nodeAccessor, normalizedOpen || void 0, openChange, serializeType), normalizedOpen ? " open" : "";
|
|
1596
|
-
}
|
|
1597
|
-
function _attr_nonce() {
|
|
1598
|
-
return getChunk().boundary.state.nonceAttr;
|
|
1599
|
-
}
|
|
1600
|
-
function _attr(name, value) {
|
|
1601
|
-
return isVoid(value) ? "" : nonVoidAttr(name, value);
|
|
1602
|
-
}
|
|
1603
|
-
function _attr_or(name, value, attr) {
|
|
1604
|
-
return value ? _attr(name, value) : attr;
|
|
1605
|
-
}
|
|
1606
|
-
function _attrs(data, nodeAccessor, scopeId, tagName) {
|
|
1607
|
-
let result = "", skip = /[\s/>"'=]/, events;
|
|
1608
|
-
switch (data && tagName) {
|
|
1609
|
-
case "input":
|
|
1610
|
-
data.checkedChange ? (result += _attr_input_checked(scopeId, nodeAccessor, data.checked, data.checkedChange, 1), skip = /^checked(?:Value)?(?:Change)?$|[\s/>"'=]/) : "checkedValue" in data || data.checkedValueChange ? (result += _attr_input_checkedValue(scopeId, nodeAccessor, data.checkedValue, data.checkedValueChange, data.value, 1), skip = /^(?:value|checked(?:Value)?)(?:Change)?$|[\s/>"'=]/) : data.valueChange && (result += _attr_input_value(scopeId, nodeAccessor, data.value, data.valueChange, 1), skip = /^value(?:Change)?$|[\s/>"'=]/);
|
|
1611
|
-
break;
|
|
1612
|
-
case "select":
|
|
1613
|
-
case "textarea":
|
|
1614
|
-
("value" in data || data.valueChange) && (skip = /^value(?:Change)?$|[\s/>"'=]/);
|
|
1615
|
-
break;
|
|
1616
|
-
case "option":
|
|
1617
|
-
"value" in data && (result += _attr_option_value(data.value), skip = /^value$|[\s/>"'=]/);
|
|
1618
|
-
break;
|
|
1619
|
-
case "details":
|
|
1620
|
-
case "dialog": data.openChange && (result += _attr_details_or_dialog_open(scopeId, nodeAccessor, data.open, data.openChange, 1), skip = /^open(?:Change)?$|[\s/>"'=]/);
|
|
1621
|
-
}
|
|
1622
|
-
for (let name in data) {
|
|
1623
|
-
let value = data[name];
|
|
1624
|
-
switch (name) {
|
|
1625
|
-
case "class":
|
|
1626
|
-
result += _attr_class(value);
|
|
1627
|
-
break;
|
|
1628
|
-
case "style":
|
|
1629
|
-
result += _attr_style(value);
|
|
1630
|
-
break;
|
|
1631
|
-
default: name && !(isVoid(value) || skip.test(name) || name === "content" && tagName !== "meta") && (isEventHandler(name) ? (events || (events = {}, writeScope(scopeId, { ["I" + nodeAccessor]: events })), events[getEventHandlerName(name)] = value) : result += nonVoidAttr(name, value));
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
return result;
|
|
1635
|
-
}
|
|
1636
|
-
function _attrs_partial(data, skip, nodeAccessor, scopeId, tagName) {
|
|
1637
|
-
let partial = {};
|
|
1638
|
-
for (let name in data) {
|
|
1639
|
-
let key = isEventHandler(name) ? `on-${getEventHandlerName(name)}` : name;
|
|
1640
|
-
skip[key] || (partial[key] = data[name]);
|
|
1641
|
-
}
|
|
1642
|
-
return _attrs(partial, nodeAccessor, scopeId, tagName);
|
|
1643
|
-
}
|
|
1644
|
-
function writeControlledScope(type, scopeId, nodeAccessor, value, valueChange, serializeType) {
|
|
1645
|
-
writeScope(scopeId, serializeType ? {
|
|
1646
|
-
["F" + nodeAccessor]: type,
|
|
1647
|
-
["G" + nodeAccessor]: value,
|
|
1648
|
-
["E" + nodeAccessor]: valueChange
|
|
1649
|
-
} : {
|
|
1650
|
-
["G" + nodeAccessor]: value,
|
|
1651
|
-
["E" + nodeAccessor]: valueChange
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
function stringAttr(name, value) {
|
|
1655
|
-
return value && " " + name + attrAssignment(value);
|
|
1656
|
-
}
|
|
1657
|
-
function nonVoidAttr(name, value) {
|
|
1658
|
-
switch (typeof value) {
|
|
1659
|
-
case "string": return " " + name + attrAssignment(value);
|
|
1660
|
-
case "boolean": return " " + name;
|
|
1661
|
-
case "number": return " " + name + "=" + value;
|
|
1662
|
-
}
|
|
1663
|
-
return " " + name + attrAssignment(value + "");
|
|
1664
|
-
}
|
|
1665
|
-
function attrAssignment(value) {
|
|
1666
|
-
return value ? needsQuotedAttr.test(value) ? value[needsQuotedAttr.lastIndex - 1] === (needsQuotedAttr.lastIndex = 0, "\"") ? "='" + escapeSingleQuotedAttrValue(value) + "'" : "=\"" + escapeDoubleQuotedAttrValue(value) + "\"" : "=" + value : "";
|
|
1667
|
-
}
|
|
1668
|
-
function escapeSingleQuotedAttrValue(value) {
|
|
1669
|
-
return singleQuoteAttrReplacements.test(value) ? value.replace(singleQuoteAttrReplacements, replaceUnsafeSingleQuoteAttrChar) : value;
|
|
1670
|
-
}
|
|
1671
|
-
function replaceUnsafeSingleQuoteAttrChar(match) {
|
|
1672
|
-
return match === "'" ? "'" : match === "\r" ? " " : "&";
|
|
1673
|
-
}
|
|
1674
|
-
function escapeDoubleQuotedAttrValue(value) {
|
|
1675
|
-
return doubleQuoteAttrReplacements.test(value) ? value.replace(doubleQuoteAttrReplacements, replaceUnsafeDoubleQuoteAttrChar) : value;
|
|
1676
|
-
}
|
|
1677
|
-
function replaceUnsafeDoubleQuoteAttrChar(match) {
|
|
1678
|
-
return match === "\"" ? """ : match === "\r" ? " " : "&";
|
|
1679
|
-
}
|
|
1680
|
-
function normalizedValueMatches(a, b) {
|
|
1681
|
-
let value = normalizeStrAttrValue(b);
|
|
1682
|
-
if (Array.isArray(a)) {
|
|
1683
|
-
for (let item of a) if (normalizeStrAttrValue(item) === value) return !0;
|
|
1684
|
-
} else if (normalizeStrAttrValue(a) === value) return !0;
|
|
1685
|
-
return !1;
|
|
1686
|
-
}
|
|
1687
|
-
function normalizeStrAttrValue(value) {
|
|
1688
|
-
return isNotVoid(value) && value !== !0 ? value + "" : "";
|
|
1689
|
-
}
|
|
1690
|
-
function _content(id, fn, scopeId) {
|
|
1691
|
-
return fn.a = id, fn.e = scopeId, fn;
|
|
1692
|
-
}
|
|
1693
|
-
function _content_resume(id, fn, scopeId) {
|
|
1694
|
-
return _resume(_content(id, fn, scopeId), id, scopeId);
|
|
1695
|
-
}
|
|
1696
|
-
function render(input = {}) {
|
|
1697
|
-
let { $global } = input;
|
|
1698
|
-
$global ? ({$global, ...input} = input, $global = {
|
|
1699
|
-
runtimeId: "M",
|
|
1700
|
-
renderId: getDefaultRenderId(this),
|
|
1701
|
-
...$global
|
|
1702
|
-
}) : $global = {
|
|
1703
|
-
runtimeId: "M",
|
|
1704
|
-
renderId: getDefaultRenderId(this)
|
|
1705
|
-
};
|
|
1706
|
-
let state = new State($global), head = new Chunk(new Boundary(state, $global.signal), null, null, state);
|
|
1707
|
-
return this.i ? head.render(() => writeWaitReady(this.a, this, input)) : head.render(this, input), new ServerRendered(head);
|
|
1708
|
-
}
|
|
1709
|
-
function getDefaultRenderId(template) {
|
|
1710
|
-
if (template.i) {
|
|
1711
|
-
let ENCODE_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789", n = Math.random() * 4294967296 >>> 0, r = ENCODE_CHARS[n % 52];
|
|
1712
|
-
for (n = n / 52 | 0; n; n = n / 63 | 0) r += ENCODE_CHARS[n % 63];
|
|
1713
|
-
return r;
|
|
1714
|
-
}
|
|
1715
|
-
return "_";
|
|
1716
|
-
}
|
|
1717
|
-
var ServerRendered = class {
|
|
1718
|
-
#head;
|
|
1719
|
-
#cachedPromise = null;
|
|
1720
|
-
constructor(head) {
|
|
1721
|
-
this.#head = head;
|
|
1722
|
-
}
|
|
1723
|
-
[Symbol.asyncIterator]() {
|
|
1724
|
-
let resolve, reject, value = "", done = !1, aborted = !1, reason, boundary = this.#read((html) => {
|
|
1725
|
-
if (value += html, resolve) {
|
|
1726
|
-
let settle = resolve;
|
|
1727
|
-
resolve = reject = void 0, settle({
|
|
1728
|
-
value,
|
|
1729
|
-
done
|
|
1730
|
-
}), value = "";
|
|
1731
|
-
}
|
|
1732
|
-
}, (err) => {
|
|
1733
|
-
if (aborted = !0, reason = err, reject) {
|
|
1734
|
-
let settle = reject;
|
|
1735
|
-
resolve = reject = void 0, settle(err);
|
|
1736
|
-
}
|
|
1737
|
-
}, () => {
|
|
1738
|
-
if (done = !0, resolve) {
|
|
1739
|
-
let settle = resolve;
|
|
1740
|
-
resolve = reject = void 0, settle({
|
|
1741
|
-
value,
|
|
1742
|
-
done: !value
|
|
1743
|
-
}), value = "";
|
|
1744
|
-
}
|
|
1745
|
-
});
|
|
1746
|
-
return {
|
|
1747
|
-
next() {
|
|
1748
|
-
if (aborted) return Promise.reject(reason);
|
|
1749
|
-
if (value) {
|
|
1750
|
-
let result = {
|
|
1751
|
-
value,
|
|
1752
|
-
done: !1
|
|
1753
|
-
};
|
|
1754
|
-
return value = "", Promise.resolve(result);
|
|
1755
|
-
} else if (done) return Promise.resolve({
|
|
1756
|
-
value: "",
|
|
1757
|
-
done
|
|
1758
|
-
});
|
|
1759
|
-
else return new Promise(exec);
|
|
1760
|
-
},
|
|
1761
|
-
throw(error) {
|
|
1762
|
-
return done || aborted || boundary?.abort(error), Promise.resolve({
|
|
1763
|
-
value: "",
|
|
1764
|
-
done: !0
|
|
1765
|
-
});
|
|
1766
|
-
},
|
|
1767
|
-
return(value) {
|
|
1768
|
-
return done || aborted || boundary?.abort(/* @__PURE__ */ Error("Iterator returned before consumed.")), Promise.resolve({
|
|
1769
|
-
value,
|
|
1770
|
-
done: !0
|
|
1771
|
-
});
|
|
1772
|
-
}
|
|
1773
|
-
};
|
|
1774
|
-
function exec(_resolve, _reject) {
|
|
1775
|
-
resolve = _resolve, reject = _reject;
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
pipe(stream) {
|
|
1779
|
-
this.#read((html) => {
|
|
1780
|
-
stream.write(html), stream.flush?.();
|
|
1781
|
-
}, (err) => {
|
|
1782
|
-
let socket = "socket" in stream && stream.socket;
|
|
1783
|
-
if (socket && typeof socket.destroySoon == "function" ? socket.destroySoon() : stream.destroy ? stream.destroy() : stream.end(), !stream.emit?.("error", err)) throw err;
|
|
1784
|
-
}, () => {
|
|
1785
|
-
stream.end();
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
toReadable() {
|
|
1789
|
-
let cancelled = !1, started = !1, boundary, encoder = new TextEncoder();
|
|
1790
|
-
return new ReadableStream({
|
|
1791
|
-
pull: (ctrl) => {
|
|
1792
|
-
started || (started = !0, boundary = this.#read((html) => {
|
|
1793
|
-
ctrl.enqueue(encoder.encode(html));
|
|
1794
|
-
}, (err) => {
|
|
1795
|
-
boundary = void 0, cancelled || ctrl.error(err);
|
|
1796
|
-
}, () => {
|
|
1797
|
-
boundary = void 0, ctrl.close();
|
|
1798
|
-
}));
|
|
1799
|
-
},
|
|
1800
|
-
cancel: (reason) => {
|
|
1801
|
-
cancelled = !0, boundary?.abort(reason);
|
|
1802
|
-
}
|
|
1803
|
-
}, { highWaterMark: 0 });
|
|
1804
|
-
}
|
|
1805
|
-
then(onfulfilled, onrejected) {
|
|
1806
|
-
return this.#promise().then(onfulfilled, onrejected);
|
|
1807
|
-
}
|
|
1808
|
-
catch(onrejected) {
|
|
1809
|
-
return this.#promise().catch(onrejected);
|
|
1810
|
-
}
|
|
1811
|
-
finally(onfinally) {
|
|
1812
|
-
return this.#promise().finally(onfinally);
|
|
1813
|
-
}
|
|
1814
|
-
#promise() {
|
|
1815
|
-
return this.#cachedPromise ||= new Promise((resolve, reject) => {
|
|
1816
|
-
let head = this.#head;
|
|
1817
|
-
if (this.#head = null, !head) return reject(/* @__PURE__ */ Error(CONSUMED_RESULT_MESSAGE));
|
|
1818
|
-
let { boundary } = head;
|
|
1819
|
-
(boundary.onNext = () => {
|
|
1820
|
-
switch (!boundary.count && boundary.flush()) {
|
|
1821
|
-
case 2:
|
|
1822
|
-
boundary.onNext = NOOP$1, reject(boundary.signal.reason);
|
|
1823
|
-
break;
|
|
1824
|
-
case 0: {
|
|
1825
|
-
let consumed = head.consume();
|
|
1826
|
-
boundary.signal.aborted || resolve(consumed.flushHTML());
|
|
1827
|
-
break;
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
})();
|
|
1831
|
-
});
|
|
1832
|
-
}
|
|
1833
|
-
#read(onWrite, onAbort, onClose) {
|
|
1834
|
-
let tick = !0, head = this.#head;
|
|
1835
|
-
if (this.#head = null, !head) {
|
|
1836
|
-
onAbort(/* @__PURE__ */ Error(CONSUMED_RESULT_MESSAGE));
|
|
1837
|
-
return;
|
|
1838
|
-
}
|
|
1839
|
-
let { boundary } = head, onNext = boundary.onNext = (write) => {
|
|
1840
|
-
let status = boundary.flush();
|
|
1841
|
-
if (status === 2) tick || offTick(onNext), boundary.onNext = NOOP$1, onAbort(boundary.signal.reason);
|
|
1842
|
-
else if (write || status === 0) {
|
|
1843
|
-
if (head = head.consume(), boundary.signal.aborted) return;
|
|
1844
|
-
let html = head.flushHTML();
|
|
1845
|
-
html && onWrite(html), status === 0 ? (tick || offTick(onNext), onClose()) : tick = !0;
|
|
1846
|
-
} else tick && (tick = !1, queueTick(onNext));
|
|
1847
|
-
};
|
|
1848
|
-
return onNext(), boundary;
|
|
1849
|
-
}
|
|
1850
|
-
toString() {
|
|
1851
|
-
let head = this.#head;
|
|
1852
|
-
if (this.#head = null, !head) throw Error(CONSUMED_RESULT_MESSAGE);
|
|
1853
|
-
let { boundary } = head;
|
|
1854
|
-
switch (boundary.flush()) {
|
|
1855
|
-
case 2: throw boundary.signal.reason;
|
|
1856
|
-
case 1: throw Error("Cannot consume asynchronous render with 'toString'");
|
|
1857
|
-
}
|
|
1858
|
-
return head.consume().flushHTML();
|
|
1859
|
-
}
|
|
1860
|
-
};
|
|
1861
|
-
function NOOP$1() {}
|
|
1862
|
-
function withPageAssets(template, runtime, assetId, runtimeId) {
|
|
1863
|
-
return assetFlush = runtime, Object.assign((input) => {
|
|
1864
|
-
let g = $global();
|
|
1865
|
-
return runtimeId && (g.runtimeId = runtimeId), addAsset(g, assetId), g.__flush__ ? (_html(flush(g, "")), writeWaitReady(assetId, template, input)) : (g.__flush__ = flush, template(input));
|
|
1866
|
-
}, template);
|
|
1867
|
-
}
|
|
1868
|
-
function _flush_head() {
|
|
1869
|
-
let g = $global();
|
|
1870
|
-
return g[kAssets] ? flush(g, "") : "";
|
|
1871
|
-
}
|
|
1872
|
-
function flush(g, html) {
|
|
1873
|
-
let result = "", assets = g[kAssets], { length } = assets, bi = g[kBlockIndex], di = g[kDeferIndex];
|
|
1874
|
-
for (; bi < length; bi++) result += assetFlush(g, "block", assets[bi].id);
|
|
1875
|
-
for (; di < length; di++) {
|
|
1876
|
-
let { id, triggers } = assets[di], deferHTML = assetFlush(g, "defer", id);
|
|
1877
|
-
triggers ? deferHTML && writeTriggerScript(deferHTML, triggers) : result += deferHTML;
|
|
1878
|
-
}
|
|
1879
|
-
return g[kBlockIndex] = bi, g[kDeferIndex] = di, result + html;
|
|
1880
|
-
}
|
|
1881
|
-
function addAsset(g, id, triggers) {
|
|
1882
|
-
let assets = g[kAssets];
|
|
1883
|
-
assets ? assets.find((a) => a.id === id) || assets.push({
|
|
1884
|
-
id,
|
|
1885
|
-
triggers
|
|
1886
|
-
}) : (g[kAssets] = [{
|
|
1887
|
-
id,
|
|
1888
|
-
triggers
|
|
1889
|
-
}], g[kBlockIndex] = g[kDeferIndex] = 0);
|
|
1890
|
-
}
|
|
1891
|
-
function writeTriggerScript(html, triggers) {
|
|
1892
|
-
let htmlStr = _escape_script(JSON.stringify(html)), exprs = triggers.map((trigger) => {
|
|
1893
|
-
let options = trigger.options && toObjectExpression(trigger.options);
|
|
1894
|
-
switch (trigger.type) {
|
|
1895
|
-
case "visible": return `(e=>e&&new IntersectionObserver((e,i)=>e.some(e=>e.isIntersecting)&&i.disconnect()+l()${options ? `,${options}` : ""}).observe(e))(${querySelectorOrLoad(trigger.selector)})`;
|
|
1896
|
-
case "idle": return `(self.requestIdleCallback||l)(l${options ? `,${options}` : ""})`;
|
|
1897
|
-
case "media": return `(m=>m.matches?l():m.addEventListener("change",l,{once:1}))(matchMedia(${JSON.stringify(trigger.selector)}))`;
|
|
1898
|
-
default: return `(e=>e?.addEventListener("${trigger.type.slice(3)}",l,{once:1}))(${querySelectorOrLoad(trigger.selector)})`;
|
|
1899
|
-
}
|
|
1900
|
-
});
|
|
1901
|
-
writeScript(`((p,h,d,l=$=>{d||p.after(new Range().createContextualFragment(d=h))})=>${exprs.length > 1 ? `{${exprs.join(";")}}` : exprs[0]})(document.currentScript,${htmlStr})`);
|
|
1902
|
-
}
|
|
1903
|
-
function querySelectorOrLoad(selector) {
|
|
1904
|
-
return `document.querySelector(${JSON.stringify(selector)})||l()`;
|
|
1905
|
-
}
|
|
1906
|
-
function toObjectExpression(options) {
|
|
1907
|
-
let result = "{", sep = "";
|
|
1908
|
-
for (let key in options) Object.hasOwn(options, key) && (result += sep + toObjectKey(key) + ":" + JSON.stringify(options[key]), sep = ",");
|
|
1909
|
-
return result + "}";
|
|
1910
|
-
}
|
|
1911
|
-
var phase = {
|
|
1912
|
-
working: "_z",
|
|
1913
|
-
waiting: "_A",
|
|
1914
|
-
idle: "_B",
|
|
1915
|
-
off: "_C"
|
|
1916
|
-
};
|
|
1917
|
-
var btnSm = "_J _o";
|
|
1918
|
-
var btnLg = "_K _o";
|
|
1919
|
-
var tone = {
|
|
1920
|
-
accent: "_O",
|
|
1921
|
-
ok: "_P",
|
|
1922
|
-
warn: "_Q",
|
|
1923
|
-
danger: "_R",
|
|
1924
|
-
merged: "_S",
|
|
1925
|
-
closed: "_T"
|
|
1926
|
-
};
|
|
1927
|
-
var metaTrunc = "_W _V";
|
|
1928
|
-
var inputLg = "_Y _X";
|
|
1929
|
-
var iconBtnXs = "_2 _j";
|
|
1930
|
-
var iconBtnRow = "_3 _j";
|
|
1931
|
-
var iconBtnLg = "_4 _j";
|
|
1932
|
-
var chipBtn = "_5 _j";
|
|
1933
|
-
//#endregion
|
|
1934
|
-
//#region src/client/github.ts
|
|
1935
|
-
/** A repo's full name is `[host/]owner/name`; the host segment is present
|
|
1936
|
-
* only for GitHub Enterprise (server mirror: github-hosts.ts `splitRepo`). */
|
|
1937
|
-
function repoWebUrl(fullName) {
|
|
1938
|
-
const parts = fullName.split("/");
|
|
1939
|
-
if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
|
|
1940
|
-
return `https://github.com/${fullName}`;
|
|
1941
|
-
}
|
|
1942
|
-
/** A pasted git URL → `[host/]owner/name`, or null when the text isn't
|
|
1943
|
-
* one. Accepts `https://host/owner/name(.git)`, `ssh://git@host/owner/name`
|
|
1944
|
-
* and scp-style `git@host:owner/name(.git)` — the shapes GitHub's own
|
|
1945
|
-
* clone dialog offers. Only a repo-root URL counts: deeper paths (issues,
|
|
1946
|
-
* tree/…) are ambiguous about what to clone. */
|
|
1947
|
-
function parseRepoUrl(text) {
|
|
1948
|
-
const t = text.trim();
|
|
1949
|
-
const m = /^(?:https?|ssh):\/\/(?:[^@/\s]+@)?([a-z0-9.-]+)(?::\d+)?\/([\w.-]+)\/([\w.-]*?)(?:\.git)?\/?$/i.exec(t) || /^[\w.-]+@([a-z0-9.-]+):([\w.-]+)\/([\w.-]*?)(?:\.git)?$/i.exec(t);
|
|
1950
|
-
if (!m) return null;
|
|
1951
|
-
const host = m[1].toLowerCase();
|
|
1952
|
-
if (!host.includes(".") || !m[3]) return null;
|
|
1953
|
-
const name = `${m[2]}/${m[3]}`;
|
|
1954
|
-
return host === "github.com" ? name : `${host}/${name}`;
|
|
1955
|
-
}
|
|
1956
|
-
/** Host whose prefix is dropped in labels: github.com by default, or the
|
|
1957
|
-
* one Enterprise host when it is the only host signed in — then it reads
|
|
1958
|
-
* like "home", exactly as github.com does. Set from the boot snapshot. */
|
|
1959
|
-
var primaryHost = "github.com";
|
|
1960
|
-
function setPrimaryHost(hosts) {
|
|
1961
|
-
const authed = (hosts || []).filter((h) => h.authed).map((h) => h.host);
|
|
1962
|
-
primaryHost = authed.includes("github.com") || authed.length !== 1 ? "github.com" : authed[0];
|
|
1963
|
-
}
|
|
1964
|
-
/** `[host/]owner/name` for display: the primary host's prefix is dropped. */
|
|
1965
|
-
function repoLabel(fullName) {
|
|
1966
|
-
const parts = fullName.split("/");
|
|
1967
|
-
if (parts.length >= 3 && parts[0].includes(".") && parts[0] === primaryHost) return parts.slice(1).join("/");
|
|
1968
|
-
return fullName;
|
|
1969
|
-
}
|
|
1970
|
-
var toastKind = {
|
|
1971
|
-
error: "_bk",
|
|
1972
|
-
warn: "_bl",
|
|
1973
|
-
info: "_bm"
|
|
1974
|
-
};
|
|
1975
|
-
var toastTitle = {
|
|
1976
|
-
error: "_bn",
|
|
1977
|
-
warn: "_bo",
|
|
1978
|
-
info: "_bp"
|
|
1979
|
-
};
|
|
1980
|
-
//#endregion
|
|
1981
|
-
//#region src/styles/tokens.css.ts
|
|
1982
|
-
var iconSize = {
|
|
1983
|
-
sm: 12,
|
|
1984
|
-
md: 14,
|
|
1985
|
-
lg: 16,
|
|
1986
|
-
xl: 18
|
|
1987
|
-
};
|
|
1988
|
-
//#endregion
|
|
1989
|
-
//#region src/tags/icons/icon-base.marko
|
|
1990
|
-
var icon_base_default = _template("P", (input) => {
|
|
1991
|
-
const $scope0_reason = _scope_reason();
|
|
1992
|
-
const $scope0_id = _scope_id();
|
|
1993
|
-
const size = input.size ?? iconSize.md;
|
|
1994
|
-
_html(`<svg${_attr_class(["_k", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path${_attr("d", input.d)}></path>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</svg>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
1995
|
-
_serialize_if($scope0_reason, 1) && writeScope($scope0_id, {});
|
|
1996
|
-
});
|
|
1997
|
-
//#endregion
|
|
1998
|
-
//#region src/tags/icons/icon-xmark.marko
|
|
1999
|
-
var icon_xmark_default = _template("qb", (input) => {
|
|
2000
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2001
|
-
const $scope0_id = _scope_id();
|
|
2002
|
-
_set_serialize_reason({
|
|
2003
|
-
0: $sg__input_size__OR__input_class,
|
|
2004
|
-
1: $sg__input_size__OR__input_class
|
|
2005
|
-
});
|
|
2006
|
-
const $childScope = _peek_scope_id();
|
|
2007
|
-
icon_base_default({
|
|
2008
|
-
d: "M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",
|
|
2009
|
-
size: input.size,
|
|
2010
|
-
class: input.class
|
|
2011
|
-
});
|
|
2012
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2013
|
-
});
|
|
2014
|
-
//#endregion
|
|
2015
|
-
//#region src/tags/toast.marko
|
|
2016
|
-
var toast_default = _template("F", (input) => {
|
|
2017
|
-
const $scope0_reason = _scope_reason(), $sg__input_title = _serialize_guard($scope0_reason, 7), $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss = _serialize_guard($scope0_reason, 5), $sg__input_content = _serialize_guard($scope0_reason, 8), $sg__input_action = _serialize_guard($scope0_reason, 9), $sg__input_action__OR__input_onDismiss = _serialize_guard($scope0_reason, 3), $sg__input_onDismiss = _serialize_guard($scope0_reason, 11), $si__input_content = _serialize_if($scope0_reason, 8), $si__input_action__OR__input_onDismiss = _serialize_if($scope0_reason, 3), $si__input_action_content = _serialize_if($scope0_reason, 10);
|
|
2018
|
-
const $scope0_id = _scope_id();
|
|
2019
|
-
const $input_action_content__closures = /* @__PURE__ */ new Set();
|
|
2020
|
-
const { kind: inputKind, placement: inputPlacement, title, class: inputClass, content, action, onDismiss, ...htmlInput } = input;
|
|
2021
|
-
const kind = inputKind || "error";
|
|
2022
|
-
const placement = inputPlacement || "float";
|
|
2023
|
-
const placementClass = {
|
|
2024
|
-
float: "_bi",
|
|
2025
|
-
inline: "_bj"
|
|
2026
|
-
}[placement];
|
|
2027
|
-
_html(`<div${_attr_class([
|
|
2028
|
-
"_bh",
|
|
2029
|
-
toastKind[kind],
|
|
2030
|
-
placementClass,
|
|
2031
|
-
inputClass
|
|
2032
|
-
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
2033
|
-
class: 1,
|
|
2034
|
-
role: 1
|
|
2035
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("_bq")}>`);
|
|
2036
|
-
_if(() => {
|
|
2037
|
-
if (title) {
|
|
2038
|
-
const $scope1_id = _scope_id();
|
|
2039
|
-
_html(`<strong${_attr_class(toastTitle[kind])}>${_escape(title)}${_el_resume($scope1_id, "b", $sg__input_title)}</strong>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
2040
|
-
_serialize_if($scope0_reason, 1) && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
2041
|
-
return 0;
|
|
2042
|
-
}
|
|
2043
|
-
}, $scope0_id, "c", _serialize_guard($scope0_reason, 1), $sg__input_title, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
|
|
2044
|
-
_if(() => {
|
|
2045
|
-
if (content) {
|
|
2046
|
-
const $scope2_id = _scope_id();
|
|
2047
|
-
_html(`<div${_attr_class("_br")}>`);
|
|
2048
|
-
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
2049
|
-
_html("</div>");
|
|
2050
|
-
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2051
|
-
return 0;
|
|
2052
|
-
}
|
|
2053
|
-
}, $scope0_id, "d", $sg__input_content, $sg__input_content, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
|
|
2054
|
-
_html("</div>");
|
|
2055
|
-
_if(() => {
|
|
2056
|
-
if (action || onDismiss) {
|
|
2057
|
-
const $scope3_id = _scope_id();
|
|
2058
|
-
_html(`<div${_attr_class(["_bs", action && "_bt"])}>`);
|
|
2059
|
-
_if(() => {
|
|
2060
|
-
if (action) {
|
|
2061
|
-
const $scope4_id = _scope_id();
|
|
2062
|
-
_dynamic_tag($scope4_id, "a", action.content, {}, 0, 0, _serialize_guard($scope0_reason, 10));
|
|
2063
|
-
$si__input_action__OR__input_onDismiss && _subscribe($si__input_action_content && $input_action_content__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) }));
|
|
2064
|
-
return 0;
|
|
2065
|
-
}
|
|
2066
|
-
}, $scope3_id, "b", $sg__input_action, $sg__input_action, $sg__input_action__OR__input_onDismiss);
|
|
2067
|
-
_if(() => {
|
|
2068
|
-
if (onDismiss) {
|
|
2069
|
-
const $scope5_id = _scope_id();
|
|
2070
|
-
_html(`<button${_attr_class([iconBtnRow, "_bu"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
2071
|
-
icon_xmark_default({ size: 14 });
|
|
2072
|
-
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
2073
|
-
_script($scope5_id, "F0");
|
|
2074
|
-
writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2075
|
-
return 0;
|
|
2076
|
-
}
|
|
2077
|
-
}, $scope3_id, "c", $sg__input_onDismiss, $sg__input_onDismiss, $sg__input_action__OR__input_onDismiss, 0, 1);
|
|
2078
|
-
_html(`</div>${_el_resume($scope3_id, "a", $sg__input_action)}`);
|
|
2079
|
-
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
2080
|
-
return 0;
|
|
2081
|
-
}
|
|
2082
|
-
}, $scope0_id, "e", $sg__input_action__OR__input_onDismiss, $sg__input_action__OR__input_onDismiss, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
|
|
2083
|
-
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
2084
|
-
_script($scope0_id, "F1");
|
|
2085
|
-
_script($scope0_id, "F2");
|
|
2086
|
-
writeScope($scope0_id, {
|
|
2087
|
-
j: _serialize_if($scope0_reason, 7) && title,
|
|
2088
|
-
k: _serialize_if($scope0_reason, 0) && inputClass,
|
|
2089
|
-
l: $si__input_content && content,
|
|
2090
|
-
m: $si__input_action__OR__input_onDismiss && action,
|
|
2091
|
-
n: $si__input_action__OR__input_onDismiss && action?.content,
|
|
2092
|
-
o: onDismiss,
|
|
2093
|
-
r: _serialize_if($scope0_reason, 4) && kind,
|
|
2094
|
-
s: placement,
|
|
2095
|
-
u: _serialize_if($scope0_reason, 2) && placementClass,
|
|
2096
|
-
z: $si__input_action_content && $input_action_content__closures
|
|
2097
|
-
});
|
|
2098
|
-
_resume_branch($scope0_id);
|
|
2099
|
-
});
|
|
2100
|
-
//#endregion
|
|
2101
|
-
//#region src/client/prefs.ts
|
|
2102
|
-
/** UI preferences, stored server-side (settings table) so every device
|
|
2103
|
-
* sees the same state — nothing user-visible is per-browser. The map is
|
|
2104
|
-
* seeded from SSR (`hydrate`) and refreshed by `sync()`; getters return
|
|
2105
|
-
* defaults only before either runs. Writes update the map immediately and
|
|
2106
|
-
* post fire-and-forget. */
|
|
2107
|
-
var prefs = /* @__PURE__ */ new Map();
|
|
2108
|
-
var written = /* @__PURE__ */ new Set();
|
|
2109
|
-
function get(key) {
|
|
2110
|
-
return prefs.get(key) ?? null;
|
|
2111
|
-
}
|
|
2112
|
-
function set(key, value) {
|
|
2113
|
-
written.add(key);
|
|
2114
|
-
if (value === null) prefs.delete(key);
|
|
2115
|
-
else prefs.set(key, value);
|
|
2116
|
-
post(key, value);
|
|
2117
|
-
}
|
|
2118
|
-
function post(key, value) {
|
|
2119
|
-
return fetch("/api/prefs", {
|
|
2120
|
-
method: "POST",
|
|
2121
|
-
headers: { "content-type": "application/json" },
|
|
2122
|
-
body: JSON.stringify({
|
|
2123
|
-
key,
|
|
2124
|
-
value
|
|
2125
|
-
}),
|
|
2126
|
-
keepalive: true
|
|
2127
|
-
}).catch(() => {});
|
|
2128
|
-
}
|
|
2129
|
-
function sideNavOpen() {
|
|
2130
|
-
return get("side-nav") !== "0";
|
|
2131
|
-
}
|
|
2132
|
-
function workspaceTab(workspaceId) {
|
|
2133
|
-
return get(`tab:${workspaceId}`);
|
|
2134
|
-
}
|
|
2135
|
-
function setWorkspaceTab(workspaceId, sessionId) {
|
|
2136
|
-
set(`tab:${workspaceId}`, sessionId);
|
|
2137
|
-
}
|
|
2138
|
-
function diffTreeOpen() {
|
|
2139
|
-
return get("diff-tree") !== "0";
|
|
2140
|
-
}
|
|
2141
|
-
function diffScope() {
|
|
2142
|
-
const v = get("diff-scope");
|
|
2143
|
-
return v === "working" || v === "dirty" ? v : "committed";
|
|
2144
|
-
}
|
|
2145
|
-
function setDiffScope(scope) {
|
|
2146
|
-
set("diff-scope", scope);
|
|
2147
|
-
}
|
|
2148
|
-
/** Review file filter, per workspace — survives a reload and follows the
|
|
2149
|
-
* review to another device. */
|
|
2150
|
-
function diffFilter(workspaceId) {
|
|
2151
|
-
return get(`diff-filter:${workspaceId}`) || "";
|
|
2152
|
-
}
|
|
2153
|
-
function diffPos(workspaceId) {
|
|
2154
|
-
const v = get(`diff-pos:${workspaceId}`);
|
|
2155
|
-
if (!v) return null;
|
|
2156
|
-
try {
|
|
2157
|
-
const p = JSON.parse(v);
|
|
2158
|
-
return p && typeof p.key === "string" ? p : null;
|
|
2159
|
-
} catch {
|
|
2160
|
-
return null;
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
function setDiffPos(workspaceId, pos) {
|
|
2164
|
-
set(`diff-pos:${workspaceId}`, pos ? JSON.stringify(pos) : null);
|
|
2165
|
-
}
|
|
2166
|
-
/** Org logins the user chose not to authorize for SAML SSO — filtered out
|
|
2167
|
-
* of the repo-picker / Settings nag until Undo. */
|
|
2168
|
-
function ignoredSsoOrgs() {
|
|
2169
|
-
const raw = get("sso-ignored");
|
|
2170
|
-
if (!raw) return [];
|
|
2171
|
-
try {
|
|
2172
|
-
const parsed = JSON.parse(raw);
|
|
2173
|
-
return Array.isArray(parsed) ? parsed.filter((x) => typeof x === "string") : [];
|
|
2174
|
-
} catch {
|
|
2175
|
-
return [];
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
function theme() {
|
|
2179
|
-
const v = get("theme");
|
|
2180
|
-
return v === "light" || v === "dark" ? v : "system";
|
|
2181
|
-
}
|
|
2182
|
-
function setTheme(mode) {
|
|
2183
|
-
set("theme", mode === "system" ? null : mode);
|
|
2184
|
-
}
|
|
2185
|
-
var sectionCount = "_bH _L _M";
|
|
2186
|
-
var row = "_bS _bK";
|
|
2187
|
-
var iconBtn = "_3 _j";
|
|
2188
|
-
//#endregion
|
|
2189
|
-
//#region src/tags/icons/icon-refresh.marko
|
|
2190
|
-
var icon_refresh_default = _template("ib", (input) => {
|
|
2191
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2192
|
-
const $scope0_id = _scope_id();
|
|
2193
|
-
_set_serialize_reason({
|
|
2194
|
-
0: $sg__input_size__OR__input_class,
|
|
2195
|
-
1: $sg__input_size__OR__input_class
|
|
2196
|
-
});
|
|
2197
|
-
const $childScope = _peek_scope_id();
|
|
2198
|
-
icon_base_default({
|
|
2199
|
-
d: "M21.8883 13.5C21.1645 18.3113 17.013 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C16.1006 2 19.6248 4.46819 21.1679 8 M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",
|
|
2200
|
-
size: input.size,
|
|
2201
|
-
class: input.class
|
|
2202
|
-
});
|
|
2203
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2204
|
-
});
|
|
2205
|
-
//#endregion
|
|
2206
|
-
//#region src/tags/icons/icon-back.marko
|
|
2207
|
-
var icon_back_default = _template("O", (input) => {
|
|
2208
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2209
|
-
const $scope0_id = _scope_id();
|
|
2210
|
-
_set_serialize_reason({
|
|
2211
|
-
0: $sg__input_size__OR__input_class,
|
|
2212
|
-
1: $sg__input_size__OR__input_class
|
|
2213
|
-
});
|
|
2214
|
-
const $childScope = _peek_scope_id();
|
|
2215
|
-
icon_base_default({
|
|
2216
|
-
d: "M15 6L9 12L15 18",
|
|
2217
|
-
size: input.size,
|
|
2218
|
-
class: input.class
|
|
2219
|
-
});
|
|
2220
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2221
|
-
});
|
|
2222
|
-
//#endregion
|
|
2223
|
-
//#region src/tags/icons/icon-chevron-right.marko
|
|
2224
|
-
var icon_chevron_right_default = _template("U", (input) => {
|
|
2225
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2226
|
-
const $scope0_id = _scope_id();
|
|
2227
|
-
_set_serialize_reason({
|
|
2228
|
-
0: $sg__input_size__OR__input_class,
|
|
2229
|
-
1: $sg__input_size__OR__input_class
|
|
2230
|
-
});
|
|
2231
|
-
const $childScope = _peek_scope_id();
|
|
2232
|
-
icon_base_default({
|
|
2233
|
-
d: "M9 6L15 12L9 18",
|
|
2234
|
-
size: input.size,
|
|
2235
|
-
class: input.class
|
|
2236
|
-
});
|
|
2237
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2238
|
-
});
|
|
2239
|
-
//#endregion
|
|
2240
|
-
//#region src/tags/icons/icon-search.marko
|
|
2241
|
-
var icon_search_default = _template("jb", (input) => {
|
|
2242
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2243
|
-
const $scope0_id = _scope_id();
|
|
2244
|
-
_set_serialize_reason({
|
|
2245
|
-
0: $sg__input_size__OR__input_class,
|
|
2246
|
-
1: $sg__input_size__OR__input_class
|
|
2247
|
-
});
|
|
2248
|
-
const $childScope = _peek_scope_id();
|
|
2249
|
-
icon_base_default({
|
|
2250
|
-
d: "M17 17L21 21 M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",
|
|
2251
|
-
size: input.size,
|
|
2252
|
-
class: input.class
|
|
2253
|
-
});
|
|
2254
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2255
|
-
});
|
|
2256
|
-
//#endregion
|
|
2257
|
-
//#region src/tags/icons/icon-arrow-up.marko
|
|
2258
|
-
var icon_arrow_up_default = _template("N", (input) => {
|
|
2259
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2260
|
-
const $scope0_id = _scope_id();
|
|
2261
|
-
_set_serialize_reason({
|
|
2262
|
-
0: $sg__input_size__OR__input_class,
|
|
2263
|
-
1: $sg__input_size__OR__input_class
|
|
2264
|
-
});
|
|
2265
|
-
const $childScope = _peek_scope_id();
|
|
2266
|
-
icon_base_default({
|
|
2267
|
-
d: "M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",
|
|
2268
|
-
size: input.size,
|
|
2269
|
-
class: input.class
|
|
2270
|
-
});
|
|
2271
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2272
|
-
});
|
|
2273
|
-
//#endregion
|
|
2274
|
-
//#region src/client/fuzzy.ts
|
|
2275
|
-
/** Rank an "org/name" repo against a query, weighting the name over the
|
|
2276
|
-
* org. Higher is better; -1 means no match (including an empty query —
|
|
2277
|
-
* rankRepos owns the empty-query short-circuit). */
|
|
2278
|
-
function repoScore(query, fullName) {
|
|
2279
|
-
if (!query) return -1;
|
|
2280
|
-
const q = query.toLowerCase();
|
|
2281
|
-
const lower = fullName.toLowerCase();
|
|
2282
|
-
const slash = lower.lastIndexOf("/");
|
|
2283
|
-
const name = lower.slice(slash + 1);
|
|
2284
|
-
const orgBonus = lower.slice(0, Math.max(0, slash)).includes(q) ? 5 : 0;
|
|
2285
|
-
if (name === q) return 1e3 + orgBonus;
|
|
2286
|
-
if (name.startsWith(q)) return 800 + orgBonus;
|
|
2287
|
-
if (name.includes(q)) return 600 + orgBonus;
|
|
2288
|
-
if (fuzzy(q, name)) return 400 + orgBonus;
|
|
2289
|
-
if (lower.includes(q)) return 300;
|
|
2290
|
-
if (fuzzy(q, lower)) return 100;
|
|
2291
|
-
return -1;
|
|
2292
|
-
}
|
|
2293
|
-
/** Typeahead ranking policy for repo pickers: skip archived and excluded
|
|
2294
|
-
* repos, order by score (ties: shorter name, then alphabetical), top 8.
|
|
2295
|
-
* An empty query returns no results. */
|
|
2296
|
-
function rankRepos(query, repos, exclude) {
|
|
2297
|
-
if (!query) return [];
|
|
2298
|
-
return repos.map((repo) => ({
|
|
2299
|
-
repo,
|
|
2300
|
-
score: repoScore(query, repo.nameWithOwner)
|
|
2301
|
-
})).filter(({ repo, score }) => !repo.isArchived && score >= 0 && !exclude(repo.nameWithOwner)).sort((a, b) => b.score - a.score || a.repo.nameWithOwner.length - b.repo.nameWithOwner.length || a.repo.nameWithOwner.localeCompare(b.repo.nameWithOwner)).slice(0, 8).map(({ repo }) => repo);
|
|
2302
|
-
}
|
|
2303
|
-
/** Subsequence match: every query char appears in order in `text`. */
|
|
2304
|
-
function fuzzy(query, text) {
|
|
2305
|
-
if (!query) return true;
|
|
2306
|
-
let i = 0;
|
|
2307
|
-
const lower = text.toLowerCase();
|
|
2308
|
-
for (const ch of query.toLowerCase()) {
|
|
2309
|
-
i = lower.indexOf(ch, i);
|
|
2310
|
-
if (i === -1) return false;
|
|
2311
|
-
i++;
|
|
2312
|
-
}
|
|
2313
|
-
return true;
|
|
2314
|
-
}
|
|
2315
|
-
//#endregion
|
|
2316
|
-
//#region src/tags/icons/icon-sidebar.marko
|
|
2317
|
-
var icon_sidebar_default = _template("mb", (input) => {
|
|
2318
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2319
|
-
const $scope0_id = _scope_id();
|
|
2320
|
-
_set_serialize_reason({
|
|
2321
|
-
0: $sg__input_size__OR__input_class,
|
|
2322
|
-
1: $sg__input_size__OR__input_class
|
|
2323
|
-
});
|
|
2324
|
-
const $childScope = _peek_scope_id();
|
|
2325
|
-
icon_base_default({
|
|
2326
|
-
d: "M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M9.5 21V3 M5.5 10L7.25 12L5.5 14",
|
|
2327
|
-
size: input.size,
|
|
2328
|
-
class: input.class
|
|
2329
|
-
});
|
|
2330
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2331
|
-
});
|
|
2332
|
-
var findInput = "_gI _l";
|
|
2333
|
-
var findIconBtn = "_gL _j";
|
|
2334
|
-
//#endregion
|
|
2335
|
-
//#region src/tags/icons/icon-arrow-down.marko
|
|
2336
|
-
var icon_arrow_down_default = _template("K", (input) => {
|
|
2337
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2338
|
-
const $scope0_id = _scope_id();
|
|
2339
|
-
_set_serialize_reason({
|
|
2340
|
-
0: $sg__input_size__OR__input_class,
|
|
2341
|
-
1: $sg__input_size__OR__input_class
|
|
2342
|
-
});
|
|
2343
|
-
const $childScope = _peek_scope_id();
|
|
2344
|
-
icon_base_default({
|
|
2345
|
-
d: "M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",
|
|
2346
|
-
size: input.size,
|
|
2347
|
-
class: input.class
|
|
2348
|
-
});
|
|
2349
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2350
|
-
});
|
|
2351
|
-
//#endregion
|
|
2352
|
-
export { _attr_or as $, iconSize as A, _serialize_if as At, iconBtnXs as B, writeScope as Bt, setWorkspaceTab as C, _resume_branch as Ct, toast_default as D, _script as Dt, workspaceTab as E, _scope_with_id as Et, btnLg as F, _trailers as Ft, $global as G, metaTrunc as H, btnSm as I, _var as It, _attr_details_or_dialog_open as J, _attr as K, chipBtn as L, attrTag as Lt, repoLabel as M, _subscribe as Mt, repoWebUrl as N, _template as Nt, icon_xmark_default as O, _sep as Ot, setPrimaryHost as P, _to_text as Pt, _attr_option_value as Q, iconBtnLg as R, forOf as Rt, setTheme as S, _resume as St, theme as T, _scope_reason as Tt, phase as U, inputLg as V, tone as W, _attr_input_value as X, _attr_input_checked as Y, _attr_nonce as Z, diffScope as _, _hoist_read_error as _t, fuzzy as a, _content as at, setDiffPos as b, _if as bt, icon_search_default as c, _el as ct, icon_refresh_default as d, _escape as dt, _attr_select_value as et, iconBtn as f, _escape_script as ft, diffPos as g, _hoist as gt, diffFilter as h, _for_of as ht, icon_sidebar_default as i, _attrs_partial as it, parseRepoUrl as j, _set_serialize_reason as jt, icon_base_default as k, _serialize_guard as kt, icon_chevron_right_default as l, _el_read_error as lt, sectionCount as m, _flush_head as mt, findIconBtn as n, _attr_textarea_value as nt, rankRepos as o, _content_resume as ot, row as p, _existing_scope as pt, _attr_class as q, findInput as r, _attrs as rt, icon_arrow_up_default as s, _dynamic_tag as st, icon_arrow_down_default as t, _attr_style as tt, icon_back_default as u, _el_resume as ut, diffTreeOpen as v, _html as vt, sideNavOpen as w, _scope_id as wt, setDiffScope as x, _peek_scope_id as xt, ignoredSsoOrgs as y, _id as yt, iconBtnRow as z, withPageAssets as zt };
|