@p4code/cli 0.3.9 → 0.3.10
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/bin.mjs +167 -20
- package/dist/client/assets/{DiffPanel-Cclcn37f.js → DiffPanel-ETNUd9Og.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-Bs1n9Dzp.js → FilePreviewPanel-Ce_rwr8V.js} +4 -4
- package/dist/client/assets/P4Sans-Bold-BY-FyO9X.woff2 +0 -0
- package/dist/client/assets/P4Sans-Medium-CYfeZ6vM.woff2 +0 -0
- package/dist/client/assets/P4Sans-Regular-CaSdfMAR.woff2 +0 -0
- package/dist/client/assets/P4Sans-Semibold-CskF8nMs.woff2 +0 -0
- package/dist/client/assets/PreviewPanel-CFe0JqbI.js +2 -0
- package/dist/client/assets/{PullRequestCodeTab-Dt7vqWn6.js → PullRequestCodeTab--XFvOGt8.js} +2 -2
- package/dist/client/assets/atkinson-hyperlegible-next-latin-400-normal-DPp7N0cD.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-400-normal-FfmJh7DR.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-500-normal-B0CYqHl3.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-500-normal-gHP6TDRs.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-600-normal-BBuhw47K.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-600-normal-BhgCag5w.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-700-normal-C2qZD_Q9.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-700-normal-Dpiyiu63.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-400-normal-BalHKn7d.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-400-normal-qxMiU51n.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-500-normal-CUASR3PD.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-500-normal-oZS3KxrF.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-600-normal-BBAQIogt.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-600-normal-kZZEtAc7.woff2 +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-700-normal-292QVhS1.woff +0 -0
- package/dist/client/assets/atkinson-hyperlegible-next-latin-ext-700-normal-CBw-mJf_.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
- package/dist/client/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
- package/dist/client/assets/dm-sans-latin-600-normal-Aqo67rzb.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-600-normal-BmdmIIQ2.woff +0 -0
- package/dist/client/assets/dm-sans-latin-700-normal-CUSSCpQX.woff +0 -0
- package/dist/client/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
- package/dist/client/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
- package/dist/client/assets/dm-sans-latin-ext-600-normal-4vooXBpG.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-ext-600-normal-DRtaDpgU.woff +0 -0
- package/dist/client/assets/dm-sans-latin-ext-700-normal-BLI3TTWz.woff +0 -0
- package/dist/client/assets/dm-sans-latin-ext-700-normal-CJIcxD6K.woff2 +0 -0
- package/dist/client/assets/{fileCommentAnnotations-BOtf5y-z.js → fileCommentAnnotations-U2eL_uoA.js} +2 -2
- package/dist/client/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-700-normal-D_uavGvn.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-700-normal-RFb1v-CK.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-700-normal-BmRLXWpJ.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-700-normal-DCQwxkRk.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-700-normal-CkZN0sRy.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-700-normal-wyJ6jzdA.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-700-normal-DZH6Xh-4.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-700-normal-BV5B8Are.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-700-normal-CkEo6LDy.woff2 +0 -0
- package/dist/client/assets/index-C3KA15QB.css +1 -0
- package/dist/client/assets/index-C8yvRYYJ.js +2590 -0
- package/dist/client/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/dist/client/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/dist/client/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
- package/dist/client/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
- package/dist/client/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/dist/client/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/dist/client/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
- package/dist/client/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
- package/dist/client/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/dist/client/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/dist/client/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/dist/client/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/dist/client/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
- package/dist/client/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
- package/dist/client/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
- package/dist/client/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
- package/dist/client/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/dist/client/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/dist/client/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/dist/client/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/dist/client/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
- package/dist/client/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
- package/dist/client/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
- package/dist/client/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
- package/dist/client/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/dist/client/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/dist/client/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/dist/client/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/dist/client/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- package/dist/client/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- package/dist/client/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
- package/dist/client/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- package/dist/client/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/dist/client/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/dist/client/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/dist/client/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/dist/client/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
- package/dist/client/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
- package/dist/client/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
- package/dist/client/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
- package/dist/client/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/dist/client/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/dist/client/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/dist/client/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/dist/client/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
- package/dist/client/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- package/dist/client/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
- package/dist/client/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-400-normal-AAMxebZb.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-400-normal-hsqIUL9Q.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-500-normal-CoaTbVwZ.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-500-normal-DPISWLls.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-600-normal-JLzruTOp.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-600-normal-JPxwL-XU.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-700-normal-3CqrwsiZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-arabic-700-normal-DXnsSW3z.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-400-normal-CjsIS08k.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-400-normal-lr8cikIT.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-500-normal-8boVNgww.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-500-normal-GCsE6TXV.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-600-normal-BUFr-ZM9.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-600-normal-D8ZQ8Cfs.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-700-normal-D41hNJFR.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-700-normal-DST6Nu2E.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-400-normal-CW3XQ4Yj.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-400-normal-D4Wl3hq7.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-500-normal-BAH5x22p.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-500-normal-CpD3jfIL.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-600-normal-6_GPoF44.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-600-normal-Be-B9uOG.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-700-normal-DX5dIs2j.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-latin-ext-700-normal-wF0ZdkCd.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-math-400-normal-BiWGKoY7.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-math-400-normal-BxrVu-ji.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-math-500-normal-CPBZimiT.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-math-500-normal-D2rXSvcI.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-math-600-normal-BQnKH7M_.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-math-600-normal-C2PaYQVA.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-math-700-normal-C3IT52xG.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-math-700-normal-DhwRdyuq.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-400-normal-BJzmBRSy.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-400-normal-BbP0vlM-.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-500-normal-BxLqRJGm.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-500-normal-DHLLsnZT.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-600-normal-BLWpRi3R.woff2 +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-600-normal-Ch3HzCxt.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-700-normal-Ct3Gyvbr.woff +0 -0
- package/dist/client/assets/noto-sans-arabic-symbols-700-normal-D40a2DlB.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-400-normal-BDYvNhAR.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-400-normal-CHP_ranX.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-500-normal-9zZ_jNuA.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-500-normal-BxM0HQjg.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-600-normal-BRIw9PIU.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-600-normal-KpAl9xZA.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-700-normal-D8UNalU-.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-700-normal-DYZmzPmX.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-400-normal-BjDhGU6t.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-400-normal-d9FrwbiD.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-500-normal-Bw4G4pNe.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-500-normal-CuwgPeWW.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-600-normal-Cwz1867h.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-600-normal-DlWr7wnj.woff2 +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-700-normal-D83T7awq.woff +0 -0
- package/dist/client/assets/noto-sans-cyrillic-ext-700-normal-OK-fZO_i.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-400-normal-C3FccbrF.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-400-normal-g9fsM2jL.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-500-normal-B62tDw8r.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-500-normal-VG35fhMU.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-600-normal-Bly84zfI.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-600-normal-Ewgvvq1j.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-700-normal-CT12sGlc.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-700-normal-DVs0dmkg.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-400-normal-BlDd6KY1.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-400-normal-CdOJmQ4E.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-500-normal-DO6LFp12.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-500-normal-DVtwyDnM.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-600-normal-B5tDaqnD.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-600-normal-BeyktMLo.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-700-normal-h2KXAbYG.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-devanagari-700-normal-v9jliTCB.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-400-normal-Bl6wi1XD.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-400-normal-BuiDGFlU.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-500-normal-Ca8IYteK.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-500-normal-DIQNxmWv.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-600-normal-Bzmbz5CH.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-600-normal-D_YUQxD_.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-700-normal-B5n956PN.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-700-normal-DcW8oEIt.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-400-normal-BnQrAETZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-400-normal-Bs32KOJx.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-500-normal-7GrnOHW4.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-500-normal-C0oyxq0s.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-600-normal-BYBXZV8b.woff +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-600-normal-eCXJLagf.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-700-normal-BKjKJI-9.woff2 +0 -0
- package/dist/client/assets/noto-sans-devanagari-latin-ext-700-normal-DXhSwleO.woff +0 -0
- package/dist/client/assets/noto-sans-greek-400-normal-Be2BcUUc.woff +0 -0
- package/dist/client/assets/noto-sans-greek-400-normal-DCESwnT1.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-500-normal-BAAA_uK7.woff +0 -0
- package/dist/client/assets/noto-sans-greek-500-normal-D_0l3T9g.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-600-normal-C0bz_iEd.woff +0 -0
- package/dist/client/assets/noto-sans-greek-600-normal-CT9U7UAD.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-700-normal-DDNJsN3F.woff +0 -0
- package/dist/client/assets/noto-sans-greek-700-normal-x3kNWF-0.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-ext-400-normal-L11LEhi4.woff +0 -0
- package/dist/client/assets/noto-sans-greek-ext-400-normal-i2oSBwXz.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-ext-500-normal-CbZNESfr.woff +0 -0
- package/dist/client/assets/noto-sans-greek-ext-500-normal-D6bOGD5V.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-ext-600-normal-B4z4a2vi.woff2 +0 -0
- package/dist/client/assets/noto-sans-greek-ext-600-normal-BjvVOqxV.woff +0 -0
- package/dist/client/assets/noto-sans-greek-ext-700-normal-BOmIwFkq.woff +0 -0
- package/dist/client/assets/noto-sans-greek-ext-700-normal-Dq1WA5-1.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-400-normal-BEvsRI_S.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-400-normal-Bp0xVS9x.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-500-normal-BPkshofI.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-500-normal-FWawh3rc.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-600-normal-BZTJana4.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-600-normal-CiulUmaK.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-700-normal-BVftoAx4.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-hebrew-700-normal-D9plwkIl.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-400-normal-Cvb_8Q96.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-400-normal-DkOjcY47.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-500-normal-BcObnDaU.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-500-normal-ChjndRw5.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-600-normal-DBSa9mSH.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-600-normal-DOfmYOL_.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-700-normal-BLkFS47X.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-700-normal-DuC6TMYq.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-400-normal-D-r4JGf5.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-400-normal-R_ivLM58.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-500-normal-DCxCP7El.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-500-normal-hynEW3wp.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-600-normal-DsQRWWZn.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-600-normal-b7siF5h4.woff +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-700-normal-2aPITt8z.woff2 +0 -0
- package/dist/client/assets/noto-sans-hebrew-latin-ext-700-normal-D2b18moL.woff +0 -0
- package/dist/client/assets/noto-sans-latin-400-normal-BTkUljjl.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-400-normal-DPpKfCgK.woff +0 -0
- package/dist/client/assets/noto-sans-latin-500-normal-CDPngY5C.woff +0 -0
- package/dist/client/assets/noto-sans-latin-500-normal-DCA2Z9Cj.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-600-normal-DVJMj_t0.woff +0 -0
- package/dist/client/assets/noto-sans-latin-600-normal-Dkgu5AE5.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-700-normal-CrvTEWhy.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-700-normal-ZyrKABVF.woff +0 -0
- package/dist/client/assets/noto-sans-latin-ext-400-normal-CNh9dRW_.woff +0 -0
- package/dist/client/assets/noto-sans-latin-ext-400-normal-CVf-LbaS.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-ext-500-normal-Bn9_h39k.woff +0 -0
- package/dist/client/assets/noto-sans-latin-ext-500-normal-D88cFz81.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-ext-600-normal-B3lLaxXr.woff +0 -0
- package/dist/client/assets/noto-sans-latin-ext-600-normal-Has_8ph9.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-ext-700-normal-BypTtJma.woff2 +0 -0
- package/dist/client/assets/noto-sans-latin-ext-700-normal-CgsG9aVh.woff +0 -0
- package/dist/client/assets/noto-sans-sc-100-400-normal-BO-rXsv0.woff +0 -0
- package/dist/client/assets/noto-sans-sc-100-400-normal-CX-7pUk_.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-100-500-normal-LjZqvEsR.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-100-500-normal-f8ZrmPAC.woff +0 -0
- package/dist/client/assets/noto-sans-sc-100-600-normal-D-989Ru7.woff +0 -0
- package/dist/client/assets/noto-sans-sc-100-600-normal-O4yONnba.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-100-700-normal-XED7J4tu.woff +0 -0
- package/dist/client/assets/noto-sans-sc-100-700-normal-skvlEtXa.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-101-400-normal-Bi19zLN0.woff +0 -0
- package/dist/client/assets/noto-sans-sc-101-400-normal-DYFU5ahq.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-101-500-normal-BN9oHDbj.woff +0 -0
- package/dist/client/assets/noto-sans-sc-101-500-normal-CjWROJGG.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-101-600-normal-BdVL7cqL.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-101-600-normal-CTvqUwGz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-101-700-normal-Cg9Nc7a8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-101-700-normal-dFJVjo-b.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-102-400-normal-D9Vb3-ZK.woff +0 -0
- package/dist/client/assets/noto-sans-sc-102-400-normal-lPQNp5DG.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-102-500-normal-BuRimFGI.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-102-500-normal-C0Y0g66e.woff +0 -0
- package/dist/client/assets/noto-sans-sc-102-600-normal-BLEfN8DQ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-102-600-normal-N5fiPmcc.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-102-700-normal-0PDKSpcg.woff +0 -0
- package/dist/client/assets/noto-sans-sc-102-700-normal-DCdJNbqs.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-103-400-normal-142t-yFg.woff +0 -0
- package/dist/client/assets/noto-sans-sc-103-400-normal-DrxRoDmn.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-103-500-normal-B3LncNxH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-103-500-normal-BvWkBJSJ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-103-600-normal-Dgr9cfWw.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-103-600-normal-oLZfpTxA.woff +0 -0
- package/dist/client/assets/noto-sans-sc-103-700-normal-DsStKEUx.woff +0 -0
- package/dist/client/assets/noto-sans-sc-103-700-normal-NwkDGJ-F.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-104-400-normal-DbzfdvQ5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-104-400-normal-Dlu6I-os.woff +0 -0
- package/dist/client/assets/noto-sans-sc-104-500-normal-Bdbt_XZi.woff +0 -0
- package/dist/client/assets/noto-sans-sc-104-500-normal-jDvxI4uY.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-104-600-normal-CUj_HtCp.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-104-600-normal-DSQ0fy8p.woff +0 -0
- package/dist/client/assets/noto-sans-sc-104-700-normal-AWqZgZB9.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-104-700-normal-CHtYBfvV.woff +0 -0
- package/dist/client/assets/noto-sans-sc-105-400-normal-BiKizsW3.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-105-400-normal-DAvx8soP.woff +0 -0
- package/dist/client/assets/noto-sans-sc-105-500-normal-BeiidV7n.woff +0 -0
- package/dist/client/assets/noto-sans-sc-105-500-normal-DXW7JQ-g.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-105-600-normal-CSNWrhCk.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-105-600-normal-CpN93d9J.woff +0 -0
- package/dist/client/assets/noto-sans-sc-105-700-normal-BHoJkdcH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-105-700-normal-Dt9qhYJX.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-106-400-normal-CLmIr7NC.woff +0 -0
- package/dist/client/assets/noto-sans-sc-106-400-normal-DDMMORp2.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-106-500-normal-9h6-MSep.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-106-500-normal-uFHAs7NG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-106-600-normal-BB1XXQOY.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-106-600-normal-GdAY_oj9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-106-700-normal-B8W_9tdk.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-106-700-normal-CJ9mgS1g.woff +0 -0
- package/dist/client/assets/noto-sans-sc-107-400-normal-7y5Di-0o.woff +0 -0
- package/dist/client/assets/noto-sans-sc-107-400-normal-DUS2YNa3.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-107-500-normal-B-G69eS6.woff +0 -0
- package/dist/client/assets/noto-sans-sc-107-500-normal-SPtoRxRh.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-107-600-normal-BiIyjO56.woff +0 -0
- package/dist/client/assets/noto-sans-sc-107-600-normal-BoqR8N9H.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-107-700-normal-CyOtrcxZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-107-700-normal-yesJ8y6A.woff +0 -0
- package/dist/client/assets/noto-sans-sc-108-400-normal-BjvHph8P.woff +0 -0
- package/dist/client/assets/noto-sans-sc-108-400-normal-D80tGT87.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-108-500-normal-BrSvs91A.woff +0 -0
- package/dist/client/assets/noto-sans-sc-108-500-normal-clZ-BISV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-108-600-normal-BVdTPKhg.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-108-600-normal-CMkyj311.woff +0 -0
- package/dist/client/assets/noto-sans-sc-108-700-normal-Bklb7tQG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-108-700-normal-O3gF6YEN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-109-400-normal-D-QmuIiA.woff +0 -0
- package/dist/client/assets/noto-sans-sc-109-400-normal-ZEHPyOzB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-109-500-normal-CMa8AMM8.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-109-500-normal-iEZXLREo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-109-600-normal-ByuX8nYO.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-109-600-normal-CeANmCSU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-109-700-normal-DABLmkdb.woff +0 -0
- package/dist/client/assets/noto-sans-sc-109-700-normal-DVabExlB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-110-400-normal-BdM_D5Jz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-110-400-normal-D1IYcvpb.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-110-500-normal-DPpO1Jgy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-110-500-normal-jlYZJC5i.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-110-600-normal-BOBszRCT.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-110-600-normal-HVXx4_N8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-110-700-normal-CDDEOvGI.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-110-700-normal-NAPhI7pU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-111-400-normal-C5Xi9UGz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-111-400-normal-D5coW_21.woff +0 -0
- package/dist/client/assets/noto-sans-sc-111-500-normal-BSdshYmW.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-111-500-normal-DEljdFMy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-111-600-normal-4vIPn_Pp.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-111-600-normal-DQHIzkYP.woff +0 -0
- package/dist/client/assets/noto-sans-sc-111-700-normal-CCRAUGWF.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-111-700-normal-CpYg6zLF.woff +0 -0
- package/dist/client/assets/noto-sans-sc-112-400-normal-D7zgcIsz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-112-400-normal-F9zvXQVU.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-112-500-normal-Bg-nnWM-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-112-500-normal-p2Brug1G.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-112-600-normal-C-K1VlX5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-112-600-normal-C4D74h47.woff +0 -0
- package/dist/client/assets/noto-sans-sc-112-700-normal-MSnZyhNJ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-112-700-normal-PlVFm4-u.woff +0 -0
- package/dist/client/assets/noto-sans-sc-113-400-normal-DSmELDL6.woff +0 -0
- package/dist/client/assets/noto-sans-sc-113-400-normal-DZoqVzDv.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-113-500-normal-C8tnUFPA.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-113-500-normal-yfrymLZ5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-113-600-normal-BqI4Uckm.woff +0 -0
- package/dist/client/assets/noto-sans-sc-113-600-normal-e4aGDSvi.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-113-700-normal-BHwWR4LC.woff +0 -0
- package/dist/client/assets/noto-sans-sc-113-700-normal-O1EkYODd.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-114-400-normal-CGiue1yH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-114-400-normal-CZUMxNv_.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-114-500-normal-DybW6syP.woff +0 -0
- package/dist/client/assets/noto-sans-sc-114-500-normal-Dz3EZ57H.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-114-600-normal-C0vO_Qps.woff +0 -0
- package/dist/client/assets/noto-sans-sc-114-600-normal-DJcvbmLg.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-114-700-normal-BNwx66R8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-114-700-normal-CjhZr28b.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-115-400-normal-BQfWDt6M.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-115-400-normal-mjVAPzyl.woff +0 -0
- package/dist/client/assets/noto-sans-sc-115-500-normal-BO06SmMa.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-115-500-normal-CrCXxLIm.woff +0 -0
- package/dist/client/assets/noto-sans-sc-115-600-normal-AGbcQmm1.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-115-600-normal-Uydmp26p.woff +0 -0
- package/dist/client/assets/noto-sans-sc-115-700-normal-DK7W-7Ob.woff +0 -0
- package/dist/client/assets/noto-sans-sc-115-700-normal-_I8wVcfS.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-116-400-normal-B9rv4EzF.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-116-400-normal-DDOlrOnk.woff +0 -0
- package/dist/client/assets/noto-sans-sc-116-500-normal-0vvUNs3z.woff +0 -0
- package/dist/client/assets/noto-sans-sc-116-500-normal-Cn7hj0Qe.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-116-600-normal-Bho1gHEE.woff +0 -0
- package/dist/client/assets/noto-sans-sc-116-600-normal-j1eco9la.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-116-700-normal-C8Y6fFkh.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-116-700-normal-DbEs5pOo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-117-400-normal-DsfbLHms.woff +0 -0
- package/dist/client/assets/noto-sans-sc-117-400-normal-QPrBdlQO.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-117-500-normal-ma0iM6M2.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-117-500-normal-nF8AQpzo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-117-600-normal-B_0llC_g.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-117-600-normal-Eab7Xunf.woff +0 -0
- package/dist/client/assets/noto-sans-sc-117-700-normal-DWwn4QCt.woff +0 -0
- package/dist/client/assets/noto-sans-sc-117-700-normal-Lia4tG1S.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-118-400-normal-CgZ3QXkC.woff +0 -0
- package/dist/client/assets/noto-sans-sc-118-400-normal-CqQ_A8sl.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-118-500-normal-BkdpJ3OC.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-118-500-normal-zwuv8TSb.woff +0 -0
- package/dist/client/assets/noto-sans-sc-118-600-normal-CiUoZFB0.woff +0 -0
- package/dist/client/assets/noto-sans-sc-118-600-normal-CrdY8srg.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-118-700-normal-BitkqWcz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-118-700-normal-CwHqE5Ld.woff +0 -0
- package/dist/client/assets/noto-sans-sc-119-400-normal-C7mqcMDM.woff +0 -0
- package/dist/client/assets/noto-sans-sc-119-400-normal-flOVnW3A.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-119-500-normal-BMc7xZUY.woff +0 -0
- package/dist/client/assets/noto-sans-sc-119-500-normal-Bg7BvryU.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-119-600-normal-CjqexEh-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-119-600-normal-r16dHS10.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-119-700-normal-B05r3al5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-119-700-normal-D9Vxo0Wr.woff +0 -0
- package/dist/client/assets/noto-sans-sc-21-400-normal-Bfz3Xm1a.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-21-400-normal-BnEV7ZGG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-21-500-normal-BVNMDEWP.woff +0 -0
- package/dist/client/assets/noto-sans-sc-21-500-normal-Dsw-xocd.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-21-600-normal-CZt2bBWO.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-21-600-normal-D4h02RWN.woff +0 -0
- package/dist/client/assets/noto-sans-sc-21-700-normal-DNuQH_x9.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-21-700-normal-F6rDGjvL.woff +0 -0
- package/dist/client/assets/noto-sans-sc-22-400-normal-B_m_Ehi5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-22-400-normal-yOvQSDF6.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-22-500-normal-BRuBCg0-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-22-500-normal-Duo_NxTl.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-22-600-normal-BcKYT3Gi.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-22-600-normal-BzUP5tYU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-22-700-normal-Byr9h8C5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-22-700-normal-gw-QDe_U.woff +0 -0
- package/dist/client/assets/noto-sans-sc-23-400-normal-CX4MRI2p.woff +0 -0
- package/dist/client/assets/noto-sans-sc-23-400-normal-D0XQUkMM.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-23-500-normal-BvADtLGk.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-23-500-normal-noU9KHBY.woff +0 -0
- package/dist/client/assets/noto-sans-sc-23-600-normal-CuQiLWXb.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-23-600-normal-DpK4Wjx3.woff +0 -0
- package/dist/client/assets/noto-sans-sc-23-700-normal-Ct9vQFVU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-23-700-normal-Dk_rc58K.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-24-400-normal-ClGanIYI.woff +0 -0
- package/dist/client/assets/noto-sans-sc-24-400-normal-mI4tDgE1.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-24-500-normal-DMJ84PR8.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-24-500-normal-Db8iJVVk.woff +0 -0
- package/dist/client/assets/noto-sans-sc-24-600-normal-B2rYgW7n.woff +0 -0
- package/dist/client/assets/noto-sans-sc-24-600-normal-CpcuAbjO.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-24-700-normal-BGBBEWUn.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-24-700-normal-SbMvRlFs.woff +0 -0
- package/dist/client/assets/noto-sans-sc-25-400-normal-C6yCXu6a.woff +0 -0
- package/dist/client/assets/noto-sans-sc-25-400-normal-CD3JKveN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-25-500-normal-D6pTcZTB.woff +0 -0
- package/dist/client/assets/noto-sans-sc-25-500-normal-DKB1lxHE.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-25-600-normal-39c92chn.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-25-600-normal-Bys8Ptb9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-25-700-normal-CxodwKtU.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-25-700-normal-D7v2dGox.woff +0 -0
- package/dist/client/assets/noto-sans-sc-26-400-normal-B306_DcA.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-26-400-normal-Dxnlkp_o.woff +0 -0
- package/dist/client/assets/noto-sans-sc-26-500-normal-Bc3Q36GO.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-26-500-normal-Bi1v18Vm.woff +0 -0
- package/dist/client/assets/noto-sans-sc-26-600-normal-B3pIfPiJ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-26-600-normal-CLOubRtQ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-26-700-normal-8Q5a-yXf.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-26-700-normal-CayP30uh.woff +0 -0
- package/dist/client/assets/noto-sans-sc-27-400-normal-DU5YC6S1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-27-400-normal-LzZF_NqI.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-27-500-normal-8q_kP--H.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-27-500-normal-CnvSqH4h.woff +0 -0
- package/dist/client/assets/noto-sans-sc-27-600-normal-B3BXsCTh.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-27-600-normal-Qbduhdcc.woff +0 -0
- package/dist/client/assets/noto-sans-sc-27-700-normal-BgbFkYQY.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-27-700-normal-DtRk-Bs1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-28-400-normal-4HLOSY5F.woff +0 -0
- package/dist/client/assets/noto-sans-sc-28-400-normal-CEc-bbYn.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-28-500-normal-BwB7WMjU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-28-500-normal-CivsKE7T.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-28-600-normal-BoxWhONk.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-28-600-normal-D0pV6iH6.woff +0 -0
- package/dist/client/assets/noto-sans-sc-28-700-normal-Bm5yHfC1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-28-700-normal-CuobRVBH.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-29-400-normal-CTMIENlc.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-29-400-normal-DmkA50P6.woff +0 -0
- package/dist/client/assets/noto-sans-sc-29-500-normal-BERGRSJk.woff +0 -0
- package/dist/client/assets/noto-sans-sc-29-500-normal-BTXg8v_Z.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-29-600-normal-CJz1QRhZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-29-600-normal-Da05Bg3n.woff +0 -0
- package/dist/client/assets/noto-sans-sc-29-700-normal-B-jj8XKB.woff +0 -0
- package/dist/client/assets/noto-sans-sc-29-700-normal-D-3W49Od.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-30-400-normal-D4bISz8a.woff +0 -0
- package/dist/client/assets/noto-sans-sc-30-400-normal-Dzb6Zn8O.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-30-500-normal-1_KfjTfy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-30-500-normal-BvVSvPAW.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-30-600-normal-DEFGrlTl.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-30-600-normal-yhyhPvPN.woff +0 -0
- package/dist/client/assets/noto-sans-sc-30-700-normal-DEY46ts6.woff +0 -0
- package/dist/client/assets/noto-sans-sc-30-700-normal-jFw539n2.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-31-400-normal-Cngcbauu.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-31-400-normal-CpMy1pFR.woff +0 -0
- package/dist/client/assets/noto-sans-sc-31-500-normal-CXR93Yl5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-31-500-normal-EU7y0Jl-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-31-600-normal-uHmiktbl.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-31-600-normal-xgdO8yzx.woff +0 -0
- package/dist/client/assets/noto-sans-sc-31-700-normal-BjFRqcE3.woff +0 -0
- package/dist/client/assets/noto-sans-sc-31-700-normal-kfjyItub.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-32-400-normal-BB06QLw6.woff +0 -0
- package/dist/client/assets/noto-sans-sc-32-400-normal-BqAPF1tT.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-32-500-normal-1J58h2E0.woff +0 -0
- package/dist/client/assets/noto-sans-sc-32-500-normal-bEbagM5b.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-32-600-normal-7vsN-Qh0.woff +0 -0
- package/dist/client/assets/noto-sans-sc-32-600-normal-BiPegPxD.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-32-700-normal-aXuO7zcD.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-32-700-normal-ku4boKRk.woff +0 -0
- package/dist/client/assets/noto-sans-sc-33-400-normal-970__YrQ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-33-400-normal-CUXtFK-t.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-33-500-normal-Bq9gQSsE.woff +0 -0
- package/dist/client/assets/noto-sans-sc-33-500-normal-Co2VsUhm.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-33-600-normal-BIfpFjxR.woff +0 -0
- package/dist/client/assets/noto-sans-sc-33-600-normal-LAx_A9aV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-33-700-normal-BxIcNX9E.woff +0 -0
- package/dist/client/assets/noto-sans-sc-33-700-normal-C8RIXC6K.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-34-400-normal-D06kjf8X.woff +0 -0
- package/dist/client/assets/noto-sans-sc-34-400-normal-Djw1IAuw.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-34-500-normal-BZLEfIsN.woff +0 -0
- package/dist/client/assets/noto-sans-sc-34-500-normal-Bs1nGgXz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-34-600-normal-BfnzqG-J.woff +0 -0
- package/dist/client/assets/noto-sans-sc-34-600-normal-DZ_AWbPt.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-34-700-normal-86HeGZg1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-34-700-normal-CQMxhMlx.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-35-400-normal-CaG_p1w5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-35-400-normal-Chgyqx1E.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-35-500-normal-BLqYFRrM.woff +0 -0
- package/dist/client/assets/noto-sans-sc-35-500-normal-_sfdXfug.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-35-600-normal-CqODizGi.woff +0 -0
- package/dist/client/assets/noto-sans-sc-35-600-normal-DnscDHZ-.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-35-700-normal-C24b7mvg.woff +0 -0
- package/dist/client/assets/noto-sans-sc-35-700-normal-GWSrRah9.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-36-400-normal-BxBT42kb.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-36-400-normal-IjrD2Bk1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-36-500-normal-CaI-3T3h.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-36-500-normal-Ct_du2ct.woff +0 -0
- package/dist/client/assets/noto-sans-sc-36-600-normal-DHkFmXNt.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-36-600-normal-qaACogoC.woff +0 -0
- package/dist/client/assets/noto-sans-sc-36-700-normal-DZnRFFzk.woff +0 -0
- package/dist/client/assets/noto-sans-sc-36-700-normal-D_nEfnKk.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-37-400-normal-BR9TSq0A.woff +0 -0
- package/dist/client/assets/noto-sans-sc-37-400-normal-CjshmOwp.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-37-500-normal-B98IgClf.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-37-500-normal-CjOa93uh.woff +0 -0
- package/dist/client/assets/noto-sans-sc-37-600-normal-BBSOpsKg.woff +0 -0
- package/dist/client/assets/noto-sans-sc-37-600-normal-BQVm7bvo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-37-700-normal-60ISo86F.woff +0 -0
- package/dist/client/assets/noto-sans-sc-37-700-normal-DW7SpU8K.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-38-400-normal-D0ErwWLV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-38-400-normal-Pcs7Bw7T.woff +0 -0
- package/dist/client/assets/noto-sans-sc-38-500-normal-DRw4QbjB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-38-500-normal-k9ZtLoyD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-38-600-normal-CRo4mJSz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-38-600-normal-D6C6Csb-.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-38-700-normal-BJNpDGNc.woff +0 -0
- package/dist/client/assets/noto-sans-sc-38-700-normal-VDGgCvkV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-39-400-normal-BdnXWhtv.woff +0 -0
- package/dist/client/assets/noto-sans-sc-39-400-normal-CNreqa8s.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-39-500-normal-BQ9_Gu47.woff +0 -0
- package/dist/client/assets/noto-sans-sc-39-500-normal-CAOP0xX7.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-39-600-normal-BrPbzEvC.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-39-600-normal-CSwjKylI.woff +0 -0
- package/dist/client/assets/noto-sans-sc-39-700-normal-BxzIbUCZ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-39-700-normal-npthtH81.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-40-400-normal-DcIMWQiP.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-40-400-normal-DmftZfNt.woff +0 -0
- package/dist/client/assets/noto-sans-sc-40-500-normal-CFdw4jgZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-40-500-normal-DB5ibUsX.woff +0 -0
- package/dist/client/assets/noto-sans-sc-40-600-normal-CatRixuU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-40-600-normal-DEQvJx_r.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-40-700-normal-CQq8R_A5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-40-700-normal-Xj3Hi7Zy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-41-400-normal-BeCST3sV.woff +0 -0
- package/dist/client/assets/noto-sans-sc-41-400-normal-CwF0ysup.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-41-500-normal-DxaQVwJP.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-41-500-normal-DxuBpi6-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-41-600-normal-ARb20F_f.woff +0 -0
- package/dist/client/assets/noto-sans-sc-41-600-normal-CPcOfpNj.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-41-700-normal-C9Fm98h0.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-41-700-normal-DSQDho5i.woff +0 -0
- package/dist/client/assets/noto-sans-sc-42-400-normal-CwAh0C6j.woff +0 -0
- package/dist/client/assets/noto-sans-sc-42-400-normal-ZKOUmsTa.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-42-500-normal-BqjPf_lN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-42-500-normal-GmHIAAIK.woff +0 -0
- package/dist/client/assets/noto-sans-sc-42-600-normal-8eQMfBXD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-42-600-normal-CDYhe0ZM.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-42-700-normal-BZKFuKCT.woff +0 -0
- package/dist/client/assets/noto-sans-sc-42-700-normal-DatVBEhz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-43-400-normal-CVPqYXUd.woff +0 -0
- package/dist/client/assets/noto-sans-sc-43-400-normal-WDsqqjmk.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-43-500-normal-B8wIbQJo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-43-500-normal-Btkg4xpj.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-43-600-normal-BVQiPukP.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-43-600-normal-CsCPM25q.woff +0 -0
- package/dist/client/assets/noto-sans-sc-43-700-normal-CXBy1e3m.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-43-700-normal-D7-2HuY2.woff +0 -0
- package/dist/client/assets/noto-sans-sc-44-400-normal-BT6yUYAt.woff +0 -0
- package/dist/client/assets/noto-sans-sc-44-400-normal-wq9JI-iJ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-44-500-normal-Bpe2AuLb.woff +0 -0
- package/dist/client/assets/noto-sans-sc-44-500-normal-DX-NL8hl.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-44-600-normal-BhGmL-Q5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-44-600-normal-DM4HkkEe.woff +0 -0
- package/dist/client/assets/noto-sans-sc-44-700-normal-BFXLL_IX.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-44-700-normal-CerrAdqj.woff +0 -0
- package/dist/client/assets/noto-sans-sc-45-400-normal-DdOuPp0S.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-45-400-normal-wKcTGncR.woff +0 -0
- package/dist/client/assets/noto-sans-sc-45-500-normal-BQ7H7gEJ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-45-500-normal-Nbt6APEA.woff +0 -0
- package/dist/client/assets/noto-sans-sc-45-600-normal-0BPZ4DzA.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-45-600-normal-C5VMdef9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-45-700-normal-BsNaJb6I.woff +0 -0
- package/dist/client/assets/noto-sans-sc-45-700-normal-DUqJO8E-.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-46-400-normal-D8BHNHvK.woff +0 -0
- package/dist/client/assets/noto-sans-sc-46-400-normal-DxQ4Lw-z.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-46-500-normal-B2zSjaQL.woff +0 -0
- package/dist/client/assets/noto-sans-sc-46-500-normal-B_dRUXQz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-46-600-normal-Beh1WiVV.woff +0 -0
- package/dist/client/assets/noto-sans-sc-46-600-normal-DtPTdVKs.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-46-700-normal-BX3o7x02.woff +0 -0
- package/dist/client/assets/noto-sans-sc-46-700-normal-BpaAdfvn.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-47-400-normal-CZbI_HNG.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-47-400-normal-TIljQdBM.woff +0 -0
- package/dist/client/assets/noto-sans-sc-47-500-normal-CWZyWKG5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-47-500-normal-D7tRwN0h.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-47-600-normal-3qBBhH5J.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-47-600-normal-Bd2p56Oj.woff +0 -0
- package/dist/client/assets/noto-sans-sc-47-700-normal-BF63qZLo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-47-700-normal-DRBMGCI9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-48-400-normal-BeitBaI5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-48-400-normal-JHdMabvg.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-48-500-normal-Bqt1gTC7.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-48-500-normal-CxY-QGbx.woff +0 -0
- package/dist/client/assets/noto-sans-sc-48-600-normal-CpllbcME.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-48-600-normal-DcIZPCzo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-48-700-normal-Bpf2wVKJ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-48-700-normal-C5NYYIZs.woff +0 -0
- package/dist/client/assets/noto-sans-sc-49-400-normal-B43LfYL1.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-49-400-normal-C0rnBp58.woff +0 -0
- package/dist/client/assets/noto-sans-sc-49-500-normal-BZeNF2SD.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-49-500-normal-C4ue3-in.woff +0 -0
- package/dist/client/assets/noto-sans-sc-49-600-normal-CGJyiTDD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-49-600-normal-D4cuAwjl.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-49-700-normal-BrS2TIwO.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-49-700-normal-DQroqax4.woff +0 -0
- package/dist/client/assets/noto-sans-sc-5-400-normal-3RzBeGhg.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-5-400-normal-CxziD17Z.woff +0 -0
- package/dist/client/assets/noto-sans-sc-5-500-normal-BdqLNb8-.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-5-500-normal-DEzgIrTU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-5-600-normal-BKqdauCl.woff +0 -0
- package/dist/client/assets/noto-sans-sc-5-600-normal-Qp7kYAY0.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-5-700-normal-CCrryvVM.woff +0 -0
- package/dist/client/assets/noto-sans-sc-5-700-normal-x9UYIBA3.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-50-400-normal-BeYaGcbF.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-50-400-normal-Ds5H6yvt.woff +0 -0
- package/dist/client/assets/noto-sans-sc-50-500-normal-DlintQvq.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-50-500-normal-kCcjZhyc.woff +0 -0
- package/dist/client/assets/noto-sans-sc-50-600-normal-CqPLGyIQ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-50-600-normal-DDym-SGX.woff +0 -0
- package/dist/client/assets/noto-sans-sc-50-700-normal-8idZV2Uz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-50-700-normal-eWm1DQPT.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-51-400-normal-BXmprHGd.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-51-400-normal-XuFDRqdl.woff +0 -0
- package/dist/client/assets/noto-sans-sc-51-500-normal-48CIxeIk.woff +0 -0
- package/dist/client/assets/noto-sans-sc-51-500-normal-B5-dbmQ8.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-51-600-normal-UuF80PSg.woff +0 -0
- package/dist/client/assets/noto-sans-sc-51-600-normal-ZZkyGTyf.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-51-700-normal-Bon9yel0.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-51-700-normal-C0mbpISK.woff +0 -0
- package/dist/client/assets/noto-sans-sc-52-400-normal-D6TC2b36.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-52-400-normal-aCTK3zc9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-52-500-normal-CWWRVJV5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-52-500-normal-C_fGT2yH.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-52-600-normal-12rG_vJz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-52-600-normal-Cvl89zgj.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-52-700-normal-BRzqGAII.woff +0 -0
- package/dist/client/assets/noto-sans-sc-52-700-normal-C8tjb5CW.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-53-400-normal-0yU0ZVKB.woff +0 -0
- package/dist/client/assets/noto-sans-sc-53-400-normal-DpzojyPN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-53-500-normal-4I_fEgQd.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-53-500-normal-J9uhr5mf.woff +0 -0
- package/dist/client/assets/noto-sans-sc-53-600-normal-BHyboCPP.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-53-600-normal-eWNudkKh.woff +0 -0
- package/dist/client/assets/noto-sans-sc-53-700-normal-BQnFTzf8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-53-700-normal-Cvcae_Sp.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-54-400-normal-B9QLYnEh.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-54-400-normal-BayPw5AU.woff +0 -0
- package/dist/client/assets/noto-sans-sc-54-500-normal-Bn5KGttd.woff +0 -0
- package/dist/client/assets/noto-sans-sc-54-500-normal-D-1v3FoB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-54-600-normal-DcSemIvZ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-54-600-normal-Fy8Dohkj.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-54-700-normal-BCWeJjRX.woff +0 -0
- package/dist/client/assets/noto-sans-sc-54-700-normal-DOGLmyCV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-55-400-normal-BJgYTKZI.woff +0 -0
- package/dist/client/assets/noto-sans-sc-55-400-normal-CYV3hjnq.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-55-500-normal-D7G22g_o.woff +0 -0
- package/dist/client/assets/noto-sans-sc-55-500-normal-Dx0OnOTe.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-55-600-normal-CE3LpPgc.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-55-600-normal-Cypt7VMO.woff +0 -0
- package/dist/client/assets/noto-sans-sc-55-700-normal-B36T3m4k.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-55-700-normal-CVgcYMFj.woff +0 -0
- package/dist/client/assets/noto-sans-sc-56-400-normal-B57fiM3p.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-56-400-normal-DsWT-1MH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-56-500-normal-Di33RYwT.woff +0 -0
- package/dist/client/assets/noto-sans-sc-56-500-normal-l5dSnWaL.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-56-600-normal-D0b6JdQ1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-56-600-normal-Dhtblb7W.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-56-700-normal-4ifjnB0Y.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-56-700-normal-DUzQxT4-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-57-400-normal-0KJcqtwa.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-57-400-normal-CS3ugs7l.woff +0 -0
- package/dist/client/assets/noto-sans-sc-57-500-normal-CInU2z8g.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-57-500-normal-PRPjErGH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-57-600-normal-C1nz6DQZ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-57-600-normal-DEuXiX_b.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-57-700-normal-B8Ji4Lux.woff +0 -0
- package/dist/client/assets/noto-sans-sc-57-700-normal-BGCjBx-g.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-58-400-normal-BDZWSF0h.woff +0 -0
- package/dist/client/assets/noto-sans-sc-58-400-normal-DHIustpc.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-58-500-normal-CHq80MvY.woff +0 -0
- package/dist/client/assets/noto-sans-sc-58-500-normal-DUnNpYKw.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-58-600-normal-Cp1SwO3Z.woff +0 -0
- package/dist/client/assets/noto-sans-sc-58-600-normal-h_fGq8L7.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-58-700-normal-DpXWU5Mz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-58-700-normal-UyEQ1UZ0.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-59-400-normal-D2Pb31nB.woff +0 -0
- package/dist/client/assets/noto-sans-sc-59-400-normal-D7wWmpIm.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-59-500-normal-BxaY6bmN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-59-500-normal-Cygs8n9U.woff +0 -0
- package/dist/client/assets/noto-sans-sc-59-600-normal-D16rNbHR.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-59-600-normal-DtZXvfLZ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-59-700-normal-BhdW5HYb.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-59-700-normal-aGOkstyv.woff +0 -0
- package/dist/client/assets/noto-sans-sc-6-400-normal-Cz_J3E7W.woff +0 -0
- package/dist/client/assets/noto-sans-sc-6-400-normal-D73klzWF.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-6-500-normal-ClybqCn5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-6-500-normal-H3sFA8hz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-6-600-normal-BkcBUb8p.woff +0 -0
- package/dist/client/assets/noto-sans-sc-6-600-normal-CMRT7Nw9.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-6-700-normal-BzsVSw-a.woff +0 -0
- package/dist/client/assets/noto-sans-sc-6-700-normal-DV8I1q8y.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-60-400-normal-BPkETD2Q.woff +0 -0
- package/dist/client/assets/noto-sans-sc-60-400-normal-BkgLo8ii.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-60-500-normal-DFqPQqQq.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-60-500-normal-fd1F0cyT.woff +0 -0
- package/dist/client/assets/noto-sans-sc-60-600-normal-CL4Cc1ID.woff +0 -0
- package/dist/client/assets/noto-sans-sc-60-600-normal-DazNjZr5.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-60-700-normal-Bc_5YyR0.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-60-700-normal-D4Zu-ouy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-61-400-normal-Db-2MbZ9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-61-400-normal-ggoUFMmb.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-61-500-normal-BB7Zjp1f.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-61-500-normal-DRxXabQ-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-61-600-normal-68F3O99g.woff +0 -0
- package/dist/client/assets/noto-sans-sc-61-600-normal-CtX_v32D.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-61-700-normal-BwEKQgac.woff +0 -0
- package/dist/client/assets/noto-sans-sc-61-700-normal-Ckxgx8cS.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-62-400-normal-B7SX0Ny8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-62-400-normal-ytbDME29.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-62-500-normal-DIpNWXyc.woff +0 -0
- package/dist/client/assets/noto-sans-sc-62-500-normal-U8mQETkr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-62-600-normal-BR4I9zBJ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-62-600-normal-BqAQGc4e.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-62-700-normal-BdN2u6iq.woff +0 -0
- package/dist/client/assets/noto-sans-sc-62-700-normal-Cj6Ks4qP.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-63-400-normal-BYQsjKYd.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-63-400-normal-CzPlApb7.woff +0 -0
- package/dist/client/assets/noto-sans-sc-63-500-normal-BUjOaASF.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-63-500-normal-CNJybeC3.woff +0 -0
- package/dist/client/assets/noto-sans-sc-63-600-normal-BhxLApvP.woff +0 -0
- package/dist/client/assets/noto-sans-sc-63-600-normal-DtIaht4T.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-63-700-normal-B-kN8_sA.woff +0 -0
- package/dist/client/assets/noto-sans-sc-63-700-normal-CIGqoDcs.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-64-400-normal-9n4RwFjr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-64-400-normal-CnR-0l9p.woff +0 -0
- package/dist/client/assets/noto-sans-sc-64-500-normal-B5UNeVXi.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-64-500-normal-NwPloP-r.woff +0 -0
- package/dist/client/assets/noto-sans-sc-64-600-normal-4ZF7XLvc.woff +0 -0
- package/dist/client/assets/noto-sans-sc-64-600-normal-C_x6M6zM.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-64-700-normal-4mJfRVw-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-64-700-normal-D6d3HRSr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-65-400-normal-BeK8C6zz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-65-400-normal-Co4l6Z_j.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-65-500-normal-CFOLBwGK.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-65-500-normal-CYx7LshH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-65-600-normal-CbqgDrJw.woff +0 -0
- package/dist/client/assets/noto-sans-sc-65-600-normal-DxjIQU1p.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-65-700-normal-BUpqu4D4.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-65-700-normal-VIY3HmQA.woff +0 -0
- package/dist/client/assets/noto-sans-sc-66-400-normal-BELuybXz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-66-400-normal-DyRyltg8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-66-500-normal-BH_NxZif.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-66-500-normal-DBxkAtMD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-66-600-normal-9ea7PztQ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-66-600-normal-BFUYUTiD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-66-700-normal-BZJjilRc.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-66-700-normal-CD92Xrbz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-67-400-normal--wzFx5DH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-67-400-normal-BS_2ddPd.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-67-500-normal-C70tqdyd.woff +0 -0
- package/dist/client/assets/noto-sans-sc-67-500-normal-DWzpSa9_.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-67-600-normal-B5TRu7Pc.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-67-600-normal-C-lHymTB.woff +0 -0
- package/dist/client/assets/noto-sans-sc-67-700-normal-CHv8ONeB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-67-700-normal-xASFIzGE.woff +0 -0
- package/dist/client/assets/noto-sans-sc-68-400-normal-BAjgs8u1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-68-400-normal-DhhAKUnY.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-68-500-normal-BRRTtSYi.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-68-500-normal-O3N9pm7P.woff +0 -0
- package/dist/client/assets/noto-sans-sc-68-600-normal-Bmzw4GGY.woff +0 -0
- package/dist/client/assets/noto-sans-sc-68-600-normal-DdInsWM2.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-68-700-normal-C3u0R9lS.woff +0 -0
- package/dist/client/assets/noto-sans-sc-68-700-normal-LGMmxj6K.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-69-400-normal-DVTFUlay.woff +0 -0
- package/dist/client/assets/noto-sans-sc-69-400-normal-o5cK7hs4.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-69-500-normal-BNOLZVQG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-69-500-normal-CyfyID68.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-69-600-normal-BN-A0bHG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-69-600-normal-DlurzGeD.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-69-700-normal-B6LPcA-t.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-69-700-normal-DXbzUprz.woff +0 -0
- package/dist/client/assets/noto-sans-sc-70-400-normal-1lgt7roi.woff +0 -0
- package/dist/client/assets/noto-sans-sc-70-400-normal-BlWmkfgH.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-70-500-normal-CUVD271H.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-70-500-normal-Do2P_EZv.woff +0 -0
- package/dist/client/assets/noto-sans-sc-70-600-normal-Cmgof_Ej.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-70-600-normal-DZ62RZw9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-70-700-normal-D_WqSwix.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-70-700-normal-DjutC1tV.woff +0 -0
- package/dist/client/assets/noto-sans-sc-71-400-normal-BcUyOtRS.woff +0 -0
- package/dist/client/assets/noto-sans-sc-71-400-normal-HYJki_zr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-71-500-normal-Dz2iPqSM.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-71-500-normal-SR18VpvI.woff +0 -0
- package/dist/client/assets/noto-sans-sc-71-600-normal-B4t1bLQn.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-71-600-normal-Dy71AhTd.woff +0 -0
- package/dist/client/assets/noto-sans-sc-71-700-normal-C-hJaEbR.woff +0 -0
- package/dist/client/assets/noto-sans-sc-71-700-normal-DyQkUuN6.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-72-400-normal-BLx1zxYv.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-72-400-normal-Df_D_sj8.woff +0 -0
- package/dist/client/assets/noto-sans-sc-72-500-normal-DQHpo1Oj.woff +0 -0
- package/dist/client/assets/noto-sans-sc-72-500-normal-DTeK03yK.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-72-600-normal-DLozH5BT.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-72-600-normal-DjAad92y.woff +0 -0
- package/dist/client/assets/noto-sans-sc-72-700-normal-DGp-Sokh.woff +0 -0
- package/dist/client/assets/noto-sans-sc-72-700-normal-OdQF7L87.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-73-400-normal-BRFF09wf.woff +0 -0
- package/dist/client/assets/noto-sans-sc-73-400-normal-tzRZHUkU.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-73-500-normal-Cw_tnR9p.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-73-500-normal-DRe_iCNK.woff +0 -0
- package/dist/client/assets/noto-sans-sc-73-600-normal-CiqoWXeJ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-73-600-normal-ctKAMYrG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-73-700-normal-Bqje2VGy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-73-700-normal-I6Weyh5u.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-74-400-normal-C15MV3i1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-74-400-normal-C40Ur-xi.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-74-500-normal-DkeJ_Z7u.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-74-500-normal-mqfHElgm.woff +0 -0
- package/dist/client/assets/noto-sans-sc-74-600-normal-BAnl7htZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-74-600-normal-C-VCYuwV.woff +0 -0
- package/dist/client/assets/noto-sans-sc-74-700-normal-IGVuCLQo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-74-700-normal-iLR6bNzA.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-75-400-normal-BBx4YRQ9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-75-400-normal-CUYSz9vA.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-75-500-normal-BqWpgxml.woff +0 -0
- package/dist/client/assets/noto-sans-sc-75-500-normal-RnXI8R7b.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-75-600-normal-ARKbJcIN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-75-600-normal-BNd2DqNB.woff +0 -0
- package/dist/client/assets/noto-sans-sc-75-700-normal-F6H3eEIe.woff +0 -0
- package/dist/client/assets/noto-sans-sc-75-700-normal-mpNhFFB1.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-76-400-normal-C4_76-zS.woff +0 -0
- package/dist/client/assets/noto-sans-sc-76-400-normal-JtvMmeCp.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-76-500-normal-B9Jbkcne.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-76-500-normal-PRJKzsYx.woff +0 -0
- package/dist/client/assets/noto-sans-sc-76-600-normal-CT7PXAmq.woff +0 -0
- package/dist/client/assets/noto-sans-sc-76-600-normal-Y8oW-fKE.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-76-700-normal-BdjZP-TW.woff +0 -0
- package/dist/client/assets/noto-sans-sc-76-700-normal-E5jLJMfB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-77-400-normal-CxYpJvkI.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-77-400-normal-D2-acYFw.woff +0 -0
- package/dist/client/assets/noto-sans-sc-77-500-normal-3BTwE5uB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-77-500-normal-DyO6RP1r.woff +0 -0
- package/dist/client/assets/noto-sans-sc-77-600-normal-32fwFvnW.woff +0 -0
- package/dist/client/assets/noto-sans-sc-77-600-normal-BiLXi0Hr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-77-700-normal-CQWqR0T-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-77-700-normal-a-oEDj-K.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-78-400-normal--Q5ApOuu.woff +0 -0
- package/dist/client/assets/noto-sans-sc-78-400-normal-AGz1p3mV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-78-500-normal-BVk9bSPD.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-78-500-normal-HYZYmtKV.woff +0 -0
- package/dist/client/assets/noto-sans-sc-78-600-normal-CQIDvTHo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-78-600-normal-DDVnp49L.woff +0 -0
- package/dist/client/assets/noto-sans-sc-78-700-normal-C-s_97KM.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-78-700-normal-UIfDqwia.woff +0 -0
- package/dist/client/assets/noto-sans-sc-79-400-normal-Bs84SZW2.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-79-400-normal-C-sLDZqR.woff +0 -0
- package/dist/client/assets/noto-sans-sc-79-500-normal-C-QvHj7p.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-79-500-normal-hJwbnaBG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-79-600-normal-CAKRzEV8.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-79-600-normal-CzGl6PT1.woff +0 -0
- package/dist/client/assets/noto-sans-sc-79-700-normal-CRywjxh7.woff +0 -0
- package/dist/client/assets/noto-sans-sc-79-700-normal-DdtsIzyh.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-80-400-normal-BJE7u3HD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-80-400-normal-psViYwkz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-80-500-normal-Dcd-n9J5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-80-500-normal-Di8G0AhH.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-80-600-normal-6FhkjQij.woff +0 -0
- package/dist/client/assets/noto-sans-sc-80-600-normal-DUB-7Kpw.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-80-700-normal-CGAI1yju.woff +0 -0
- package/dist/client/assets/noto-sans-sc-80-700-normal-UCchT3b6.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-81-400-normal-BImDXGMr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-81-400-normal-BWPnSkid.woff +0 -0
- package/dist/client/assets/noto-sans-sc-81-500-normal-CdQrn85D.woff +0 -0
- package/dist/client/assets/noto-sans-sc-81-500-normal-DUcTi26F.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-81-600-normal-Be_h4tIf.woff +0 -0
- package/dist/client/assets/noto-sans-sc-81-600-normal-Z83dZpCS.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-81-700-normal-B19yzEES.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-81-700-normal-DEwv0WXa.woff +0 -0
- package/dist/client/assets/noto-sans-sc-82-400-normal-BZZDzro0.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-82-400-normal-IMxdP4Bn.woff +0 -0
- package/dist/client/assets/noto-sans-sc-82-500-normal-D9ImAMpd.woff +0 -0
- package/dist/client/assets/noto-sans-sc-82-500-normal-DyyUtoXj.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-82-600-normal-ClMFvN-k.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-82-600-normal-TGr4gT8E.woff +0 -0
- package/dist/client/assets/noto-sans-sc-82-700-normal-BPEBmW4D.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-82-700-normal-FaF30N6r.woff +0 -0
- package/dist/client/assets/noto-sans-sc-83-400-normal-CaNTasFi.woff +0 -0
- package/dist/client/assets/noto-sans-sc-83-400-normal-cx8M2qMo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-83-500-normal-BAgaWq8p.woff +0 -0
- package/dist/client/assets/noto-sans-sc-83-500-normal-CngP5iwW.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-83-600-normal-CUa3w0AN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-83-600-normal-hP02Oq7c.woff +0 -0
- package/dist/client/assets/noto-sans-sc-83-700-normal-5yUCUUlF.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-83-700-normal-BxdgZcCH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-84-400-normal-BUAHubMX.woff +0 -0
- package/dist/client/assets/noto-sans-sc-84-400-normal-BtmNIfry.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-84-500-normal-3O-pFZPI.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-84-500-normal-sFl4NKKC.woff +0 -0
- package/dist/client/assets/noto-sans-sc-84-600-normal-BO3Ekdad.woff +0 -0
- package/dist/client/assets/noto-sans-sc-84-600-normal-DgyKDTRC.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-84-700-normal-C0UDebpJ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-84-700-normal-O2_u3aEA.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-85-400-normal-CNc66YTY.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-85-400-normal-DJgWDvwN.woff +0 -0
- package/dist/client/assets/noto-sans-sc-85-500-normal-BHnspF-n.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-85-500-normal-C07hsxBo.woff +0 -0
- package/dist/client/assets/noto-sans-sc-85-600-normal-BfmFc9Uo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-85-600-normal-CM-KSlAY.woff +0 -0
- package/dist/client/assets/noto-sans-sc-85-700-normal-CbxuEJPm.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-85-700-normal-CyrFyvwD.woff +0 -0
- package/dist/client/assets/noto-sans-sc-86-400-normal-Cs9yXoGU.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-86-400-normal-Ds-iyoTm.woff +0 -0
- package/dist/client/assets/noto-sans-sc-86-500-normal-BdmmPOi_.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-86-500-normal-BeE1D5I_.woff +0 -0
- package/dist/client/assets/noto-sans-sc-86-600-normal-BKwgZxet.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-86-600-normal-DdVQJWAG.woff +0 -0
- package/dist/client/assets/noto-sans-sc-86-700-normal-CziD2ZUu.woff +0 -0
- package/dist/client/assets/noto-sans-sc-86-700-normal-DcKO2wZq.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-87-400-normal-BGelIZWt.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-87-400-normal-BfoaKG7-.woff +0 -0
- package/dist/client/assets/noto-sans-sc-87-500-normal-CyNxmc60.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-87-500-normal-D9J_M8Bs.woff +0 -0
- package/dist/client/assets/noto-sans-sc-87-600-normal-1iym0cE1.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-87-600-normal-CZI7wgrW.woff +0 -0
- package/dist/client/assets/noto-sans-sc-87-700-normal-BtlEwhOv.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-87-700-normal-DlQbz1Zr.woff +0 -0
- package/dist/client/assets/noto-sans-sc-88-400-normal-BVGOGyuM.woff +0 -0
- package/dist/client/assets/noto-sans-sc-88-400-normal-D3GwXLyo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-88-500-normal-BfIgc9Wa.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-88-500-normal-C6O_YW_j.woff +0 -0
- package/dist/client/assets/noto-sans-sc-88-600-normal-Cf-hlmJ4.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-88-600-normal-DMttCkew.woff +0 -0
- package/dist/client/assets/noto-sans-sc-88-700-normal-Bnk-Qjhu.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-88-700-normal-CkTRTZFS.woff +0 -0
- package/dist/client/assets/noto-sans-sc-89-400-normal-DjBdLf5T.woff +0 -0
- package/dist/client/assets/noto-sans-sc-89-400-normal-acup1U1Z.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-89-500-normal-DgD3piDH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-89-500-normal-z-0TkXtN.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-89-600-normal-CGeeUbqy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-89-600-normal-CTSdIeg8.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-89-700-normal--Wr1YQox.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-89-700-normal-Dy6ropgK.woff +0 -0
- package/dist/client/assets/noto-sans-sc-90-400-normal-DRuAc-VY.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-90-400-normal-DZvnhzDn.woff +0 -0
- package/dist/client/assets/noto-sans-sc-90-500-normal-C7Z1pW-B.woff +0 -0
- package/dist/client/assets/noto-sans-sc-90-500-normal-CzRUd9Y4.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-90-600-normal-CCkKbOwb.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-90-600-normal-CW8S7t6t.woff +0 -0
- package/dist/client/assets/noto-sans-sc-90-700-normal-BfsAm7JE.woff +0 -0
- package/dist/client/assets/noto-sans-sc-90-700-normal-D_uM6Dda.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-91-400-normal-BdbNZCTz.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-91-400-normal-CxcTLhKE.woff +0 -0
- package/dist/client/assets/noto-sans-sc-91-500-normal-DvM0YA8l.woff +0 -0
- package/dist/client/assets/noto-sans-sc-91-500-normal-i0u1m_iB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-91-600-normal-CybwX0IL.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-91-600-normal-tADti8bI.woff +0 -0
- package/dist/client/assets/noto-sans-sc-91-700-normal-D4Ei2NDt.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-91-700-normal-DCw7oyGm.woff +0 -0
- package/dist/client/assets/noto-sans-sc-99-400-normal-BKciDCgy.woff +0 -0
- package/dist/client/assets/noto-sans-sc-99-400-normal-BTAaudar.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-99-500-normal-BWS8QmEB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-99-500-normal-INSdSSyd.woff +0 -0
- package/dist/client/assets/noto-sans-sc-99-600-normal-CL6skMXh.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-99-600-normal-CvKT5V9W.woff +0 -0
- package/dist/client/assets/noto-sans-sc-99-700-normal-C6W9dGdZ.woff +0 -0
- package/dist/client/assets/noto-sans-sc-99-700-normal-fxRlH1CQ.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-400-normal-C55cY1BO.woff +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-400-normal-CgZvxLpU.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-500-normal-DGAdDs8H.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-500-normal-tV8XT-Gb.woff +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-600-normal-CYm2piyo.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-600-normal-Dy3zXw6l.woff +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-700-normal-Cq1GCcGV.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-cyrillic-700-normal-DkTfyWoY.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-400-normal-C2B4T-o7.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-400-normal-C8q2FS1w.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-500-normal-Bo6Vh9-d.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-500-normal-JVPArRf3.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-600-normal-C89umeU5.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-600-normal-D5ts6k_I.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-700-normal-BzR54Sjf.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-700-normal-C7O-39-M.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-400-normal-CY4-cFyH.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-400-normal-KRK7eeLK.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-500-normal-C2ZsKVTA.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-500-normal-GsgFcZNr.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-600-normal-h7-CvYMB.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-600-normal-v9MVS2hv.woff +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-700-normal-BmmacmUC.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-latin-ext-700-normal-BweIeg1K.woff +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-400-normal-BKaPybhj.woff +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-400-normal-Bi2eM1Po.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-500-normal-920XfTAD.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-500-normal-D85XQ0q2.woff +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-600-normal-D47CFFhK.woff2 +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-600-normal-DaKq_q5M.woff +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-700-normal-AYh55WD9.woff +0 -0
- package/dist/client/assets/noto-sans-sc-vietnamese-700-normal-B_BvGp8Q.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-400-normal-BaWBrqFP.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-400-normal-Dh_FJjOB.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-500-normal-BC04jsmm.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-500-normal-fyBKClF1.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-600-normal-CemcjnVR.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-600-normal-Dbc-dNO6.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-700-normal-C4AMFKt5.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-700-normal-_dn-40wb.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-400-normal-B-1H0YkH.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-400-normal-nBP59pVw.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-500-normal-B-ZWb8SZ.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-500-normal-CrEHO7C8.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-600-normal-PkMZo0xa.woff +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-600-normal-maHHBsez.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-700-normal-uJk63onE.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-latin-ext-700-normal-xdwl2Xg6.woff +0 -0
- package/dist/client/assets/noto-sans-thai-thai-400-normal-BEOmKAI1.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-thai-400-normal-Dxb_unuU.woff +0 -0
- package/dist/client/assets/noto-sans-thai-thai-500-normal-BOGXO2tw.woff +0 -0
- package/dist/client/assets/noto-sans-thai-thai-500-normal-CU_X86GQ.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-thai-600-normal-CmgB8_JK.woff +0 -0
- package/dist/client/assets/noto-sans-thai-thai-600-normal-Cs73sVjl.woff2 +0 -0
- package/dist/client/assets/noto-sans-thai-thai-700-normal-C9ISMlQq.woff +0 -0
- package/dist/client/assets/noto-sans-thai-thai-700-normal-Cm52XUnT.woff2 +0 -0
- package/dist/client/assets/noto-sans-vietnamese-400-normal-C3Al4sv4.woff +0 -0
- package/dist/client/assets/noto-sans-vietnamese-400-normal-D2wP-Vm-.woff2 +0 -0
- package/dist/client/assets/noto-sans-vietnamese-500-normal-BBHKifio.woff +0 -0
- package/dist/client/assets/noto-sans-vietnamese-500-normal-B_DgfjT4.woff2 +0 -0
- package/dist/client/assets/noto-sans-vietnamese-600-normal-D0HZFEqa.woff +0 -0
- package/dist/client/assets/noto-sans-vietnamese-600-normal-mhyQDSzg.woff2 +0 -0
- package/dist/client/assets/noto-sans-vietnamese-700-normal-1GL2JyGE.woff +0 -0
- package/dist/client/assets/noto-sans-vietnamese-700-normal-DayJ0F-f.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-400-normal-DvjyhnTk.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-400-normal-XMp_Qeuo.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-500-normal-C0pJK5UH.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-500-normal-K_-1AP7V.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-600-normal-BuMhxFId.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-600-normal-C5LXWJm_.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-700-normal-Db4W_Rwa.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-700-normal-FWckWEfO.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-400-normal-B28g4zcY.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-400-normal-CtkCLoLZ.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-500-normal-DLgW8Edg.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-500-normal-DnbrCPr9.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-600-normal-CivhzOCV.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-600-normal-DX5V8c14.woff +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-700-normal-BWp9aGB1.woff2 +0 -0
- package/dist/client/assets/open-sans-cyrillic-ext-700-normal-hbT5P32v.woff +0 -0
- package/dist/client/assets/open-sans-greek-400-normal-BKm6CSmU.woff2 +0 -0
- package/dist/client/assets/open-sans-greek-400-normal-yVf9KAAO.woff +0 -0
- package/dist/client/assets/open-sans-greek-500-normal-BvKlOb5R.woff2 +0 -0
- package/dist/client/assets/open-sans-greek-500-normal-DSi5u7Na.woff +0 -0
- package/dist/client/assets/open-sans-greek-600-normal-CkCBI2Km.woff2 +0 -0
- package/dist/client/assets/open-sans-greek-600-normal-Xt_394w2.woff +0 -0
- package/dist/client/assets/open-sans-greek-700-normal-YcFp24oM.woff2 +0 -0
- package/dist/client/assets/open-sans-greek-700-normal-bcfTBw-h.woff +0 -0
- package/dist/client/assets/open-sans-hebrew-400-normal-C3uFZKNA.woff2 +0 -0
- package/dist/client/assets/open-sans-hebrew-400-normal-Cowz_U6T.woff +0 -0
- package/dist/client/assets/open-sans-hebrew-500-normal-BxL5gvA2.woff +0 -0
- package/dist/client/assets/open-sans-hebrew-500-normal-CDpmdBH0.woff2 +0 -0
- package/dist/client/assets/open-sans-hebrew-600-normal-CQztwT7q.woff2 +0 -0
- package/dist/client/assets/open-sans-hebrew-600-normal-D7z6DfF6.woff +0 -0
- package/dist/client/assets/open-sans-hebrew-700-normal-CZc_Q6SQ.woff +0 -0
- package/dist/client/assets/open-sans-hebrew-700-normal-DnAL3HC_.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-400-normal-Bk63H6sG.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-400-normal-DKniycaP.woff +0 -0
- package/dist/client/assets/open-sans-latin-500-normal-BxcNt415.woff +0 -0
- package/dist/client/assets/open-sans-latin-500-normal-C0rntwkW.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-600-normal-C3dWW5mx.woff +0 -0
- package/dist/client/assets/open-sans-latin-600-normal-Cp4N6AwT.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-700-normal-CZCQA30i.woff +0 -0
- package/dist/client/assets/open-sans-latin-700-normal-CceUhp2e.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-ext-400-normal-BfzJ9CTS.woff +0 -0
- package/dist/client/assets/open-sans-latin-ext-400-normal-URAvo6nN.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-ext-500-normal-BFKxrfUf.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-ext-500-normal-Ckq5M21C.woff +0 -0
- package/dist/client/assets/open-sans-latin-ext-600-normal-CXDaa6Q7.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-ext-600-normal-YZ6Vktkr.woff +0 -0
- package/dist/client/assets/open-sans-latin-ext-700-normal-DatbY7Hl.woff2 +0 -0
- package/dist/client/assets/open-sans-latin-ext-700-normal-IE4yTLg1.woff +0 -0
- package/dist/client/assets/open-sans-math-400-normal-C76BUjK0.woff2 +0 -0
- package/dist/client/assets/open-sans-math-400-normal-Cs0GbA_j.woff +0 -0
- package/dist/client/assets/open-sans-math-500-normal-CIx22CNi.woff2 +0 -0
- package/dist/client/assets/open-sans-math-500-normal-YuOtWwwG.woff +0 -0
- package/dist/client/assets/open-sans-math-600-normal-CWMKYWAo.woff +0 -0
- package/dist/client/assets/open-sans-math-600-normal-DQ8cZjrd.woff2 +0 -0
- package/dist/client/assets/open-sans-math-700-normal-B7X9EnEK.woff +0 -0
- package/dist/client/assets/open-sans-math-700-normal-EYnC2qGX.woff2 +0 -0
- package/dist/client/assets/open-sans-symbols-400-normal-B5VgOMNH.woff +0 -0
- package/dist/client/assets/open-sans-symbols-400-normal-OZvd8qMe.woff2 +0 -0
- package/dist/client/assets/open-sans-symbols-500-normal-Caj8aYkE.woff +0 -0
- package/dist/client/assets/open-sans-symbols-500-normal-CiruYkOL.woff2 +0 -0
- package/dist/client/assets/open-sans-symbols-600-normal-BiWokiHG.woff +0 -0
- package/dist/client/assets/open-sans-symbols-600-normal-DgwZOEXg.woff2 +0 -0
- package/dist/client/assets/open-sans-symbols-700-normal-DNvDgxgv.woff +0 -0
- package/dist/client/assets/open-sans-symbols-700-normal-DfXrtqu8.woff2 +0 -0
- package/dist/client/assets/open-sans-vietnamese-400-normal-DCU23d-J.woff +0 -0
- package/dist/client/assets/open-sans-vietnamese-400-normal-Dqpvjuft.woff2 +0 -0
- package/dist/client/assets/open-sans-vietnamese-500-normal-C2c3EQ5t.woff2 +0 -0
- package/dist/client/assets/open-sans-vietnamese-500-normal-MWejWSJu.woff +0 -0
- package/dist/client/assets/open-sans-vietnamese-600-normal-CVI-Ycr6.woff +0 -0
- package/dist/client/assets/open-sans-vietnamese-600-normal-cWHhjaNO.woff2 +0 -0
- package/dist/client/assets/open-sans-vietnamese-700-normal-BwQSBZ9d.woff +0 -0
- package/dist/client/assets/open-sans-vietnamese-700-normal-C0rmKuKj.woff2 +0 -0
- package/dist/client/assets/previewAssetResource-C5xnyEPa.js +48 -0
- package/dist/client/assets/{renderFileChildren-Dvr45j3z.js → renderFileChildren-BAVORNFa.js} +2 -2
- package/dist/client/assets/{toggle-group-DG7th1Qd.js → toggle-group-BuZ8VVSp.js} +2 -2
- package/dist/client/index.html +3 -3
- package/package.json +1 -1
- package/dist/client/assets/PreviewPanel-8lpqrtwj.js +0 -2
- package/dist/client/assets/dm-sans-latin-ext-wght-normal-BOFOeGcA.woff2 +0 -0
- package/dist/client/assets/dm-sans-latin-wght-normal-Xz1IZZA0.woff2 +0 -0
- package/dist/client/assets/index-CCG5yNnZ.css +0 -1
- package/dist/client/assets/index-DcVyKG-L.js +0 -2582
- package/dist/client/assets/previewAssetResource-CV43CzuE.js +0 -48
package/dist/client/assets/{renderFileChildren-Dvr45j3z.js → renderFileChildren-BAVORNFa.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./compiler-runtime-CLAvuQ-D.js";import{$t as t,An as n,At as r,Bt as i,C as a,Ct as o,Dn as s,Dt as c,Et as l,Ft as u,In as d,It as f,Jt as p,Kt as m,Ln as h,Lt as g,Mn as _,Mt as v,Nn as y,Nt as b,Ot as x,Pt as S,Qt as C,Rn as w,Rt as T,Sn as E,St as D,Tt as O,Vt as k,Wt as A,Xt as j,Yt as M,Zt as N,_n as P,_t as F,bn as I,bt as L,cn as R,dn as z,en as ee,gn as B,hn as V,ht as te,in as ne,jt as re,kt as ie,ln as ae,mn as oe,mt as H,nn as se,pn as U,pt as ce,qt as le,rn as ue,sn as W,tn as G,un as K,vt as de,wt as fe,xn as pe,xt as q,yt as me,zn as he,zt as J}from"./index-DcVyKG-L.js";function Y(e,t){return t.cacheKey==null?e.file===t&&e.sourceContents===t.contents:e.cacheKey===t.cacheKey}var ge=-1,_e=class{options;onRenderUpdate;workerManager;__id=`file-renderer:${++ge}`;highlighter;renderCache;computedLang=`text`;lineAnnotations={};lineCache;pendingStructuralRows;textDocumentCache=new WeakMap;editSessionActive=!1;constructor(e={theme:_},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=G(e.theme??_)?ue():void 0)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}setLineAnnotations(e){this.lineAnnotations={};for(let t of e){let e=this.lineAnnotations[t.lineNumber]??[];this.lineAnnotations[t.lineNumber]=e,e.push(t)}}cleanUp(){this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}beginEditSession(){this.editSessionActive=!0}endEditSession(){this.editSessionActive=!1}editorRenderReady(){return this.renderCache?.options.useTokenTransformer===!0&&this.renderCache.highlighted&&this.renderCache.result!=null}recycle(){this.clearRenderCache(),this.highlighter=void 0,this.workerManager?.cleanUpTasks(this),this.lineCache=void 0,this.endEditSession(),this.textDocumentCache=new WeakMap}syncEditedContentsToFile(){let{renderCache:e,lineCache:t}=this;e?.isDirty!==!0||t==null||!Y(t,e.file)||(e.file.contents=t.lines.join(``))}hasUnkeyedFileContentsChanged(e){let{lineCache:t}=this;return e.cacheKey==null&&t!=null&&t.file===e&&t.sourceContents!==e.contents}invalidateChangedUnkeyedFile(e){this.hasUnkeyedFileContentsChanged(e)&&(this.workerManager?.cleanUpTasks(this),this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap)}clearRenderCache(){this.syncEditedContentsToFile(),this.pendingStructuralRows=void 0;let e=this.renderCache;this.renderCache=void 0,e!=null&&e.isDirty===!0&&e.file.cacheKey!=null&&this.workerManager?.evictFileFromCache(e.file.cacheKey)}hydrate(e){let{options:n}=this.getRenderOptions(e),r=X(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength()),i=this.workerManager?.getFileResultCache(e);i!=null&&!t(n,i.options)&&(i=void 0),this.renderCache??={file:e,options:n,highlighted:!r&&!S(e),result:r?void 0:i?.result,renderRange:void 0},!this.editSessionActive&&this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!r&&this.workerManager.highlightFileAST(this,e):this.highlighter??(this.computedLang=e.lang??p(e.name),this.initializeHighlighter())}getLocalHighlightTheme(){return this.workerManager?.getFileRenderOptions().theme??this.options.theme??_}getEffectiveCodeOptions(){let e=this.workerManager?.isWorkingPool()===!0?this.workerManager.getFileRenderOptions():void 0;return{theme:this.getLocalHighlightTheme(),tokenizeMaxLineLength:e?.tokenizeMaxLineLength??this.options.tokenizeMaxLineLength}}getRenderOptions(e){let n=(()=>{if(this.workerManager?.isWorkingPool()===!0){let e=this.workerManager.getFileRenderOptions();return this.editSessionActive&&e.useTokenTransformer!==!0?{...e,useTokenTransformer:!0}:e}let{tokenizeMaxLineLength:e=1e3}=this.options;return{theme:this.getLocalHighlightTheme(),useTokenTransformer:this.editSessionActive||this.options.useTokenTransformer===!0,tokenizeMaxLineLength:e}})(),{renderCache:r}=this;return r?.result==null||!P(e,r.file)||!t(n,r.options)?{options:n,forceHighlight:!0}:{options:n,forceHighlight:!1}}getOrCreateLineCache(e){this.invalidateChangedUnkeyedFile(e);let{lineCache:t}=this;return(t==null||!Y(t,e))&&(t={cacheKey:e.cacheKey,file:e,sourceContents:e.contents,lines:A(e.contents)}),this.lineCache=t,t.lines}getLineCount(e){let t=this.getOrCreateLineCache(e);return this.textDocumentCache.get(e)?.lineCount??t.length}updateRenderCache(e,t,n=!1){if(this.pendingStructuralRows=void 0,this.renderCache==null)return;let{file:r,result:i}=this.renderCache;if(i==null)return;let a=n?new Map:void 0;this.pendingStructuralRows=a;let o=this.lineCache!=null&&Y(this.lineCache,r)?this.lineCache:void 0;for(let[t,n]of e){if(a===void 0&&o!=null&&t<o.lines.length){let e=n.map(e=>e[2]).join(``);o.lines[t]=f(o.lines[t]??``,e)}let e={type:`element`,tagName:`div`,properties:{"data-line":t+1,"data-line-type":`context`,"data-line-index":t},children:n.map(([e,t,n])=>e===0&&t===``?n===``?{type:`element`,tagName:`br`,properties:{},children:[]}:{type:`text`,value:n}:{type:`element`,tagName:`span`,properties:{"data-char":e,style:`color:${t};`},children:[{type:`text`,value:n}]})};a===void 0?i.code[t]=e:a.set(t,e)}i.baseThemeType=t,this.renderCache.isDirty=!0}applyDocumentChange(e){let t=this.pendingStructuralRows;if(this.pendingStructuralRows=void 0,this.renderCache==null)return;let{file:n,result:r}=this.renderCache;if(r==null)return;let i=this.lineCache!=null&&Y(this.lineCache,n)?this.lineCache.lines:A(n.contents),a=A(e.getText());if(i.length!==a.length){let n=Math.min(i.length,a.length),o=0;for(;o<n&&i[o]===a[o];)o++;let s=0;for(;s<n-o&&i[i.length-1-s]===a[a.length-1-s];)s++;let c=r.code;r.code=Array(a.length);for(let e=0;e<o;e++)r.code[e]=c[e];for(let e=0;e<s;e++)r.code[a.length-1-e]=c[i.length-1-e];if(t!==void 0)for(let[e,n]of t)e<a.length&&(r.code[e]=n);for(let t=o;t<a.length-s;t++)r.code[t]??={type:`element`,tagName:`div`,properties:{"data-line":t+1,"data-line-type":`context`,"data-line-index":t},children:[{type:`element`,tagName:`span`,properties:{"data-char":0},children:[{type:`text`,value:e.getLineText(t)}]}]};for(let e=0;e<r.code.length;e++){let t=r.code[e];t?.type===`element`&&(t.properties[`data-line`]=e+1,t.properties[`data-line-index`]=e)}this.renderCache.isDirty=!0}this.lineCache={cacheKey:n.cacheKey,file:n,sourceContents:n.contents,lines:a},this.textDocumentCache.set(n,e)}renderFile(e=this.renderCache?.file,r=n){if(e==null)return;this.invalidateChangedUnkeyedFile(e),this.renderCache?.isDirty===!0&&!P(e,this.renderCache.file)&&(this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap);let{options:i,forceHighlight:a}=this.getRenderOptions(e);this.renderCache?.isDirty===!0&&!t(i,this.renderCache.options)&&this.clearRenderCache();let o=this.getMatchingWorkerResultCache(e,i);o!=null&&!this.hasHighlightedRenderCache(e,i)&&(this.renderCache={file:e,highlighted:!0,renderRange:void 0,...o},a=!1),this.renderCache??={file:e,highlighted:!1,options:i,result:void 0,renderRange:void 0};let s=this.getOrCreateLineCache(e),c=e.contents.length>0,l=!c||S(e)||X(s.length,this.getTokenizeMaxLength()),u=!P(e,this.renderCache.file),d=!C(this.renderCache.renderRange,r);if(!this.editSessionActive&&this.workerManager?.isWorkingPool()===!0)(l||this.renderCache.result==null||!this.renderCache.highlighted&&(u||d))&&(this.renderCache.file=e,this.renderCache.options=i,this.renderCache.highlighted=!1,(this.renderCache.result==null||u||d||a)&&(this.renderCache.result=this.workerManager.getPlainFileAST(e,r.startingLine,r.totalLines,s)),this.renderCache.renderRange=r),!l&&c&&(!this.renderCache.highlighted||a)&&this.workerManager.highlightFileAST(this,e);else{this.computedLang=e.lang??p(e.name);let t=this.highlighter!=null&&G(i.theme),n=this.highlighter!=null&&W(this.computedLang),r=!l&&n;if(this.highlighter!=null&&t&&(a||l||!this.renderCache.highlighted&&r||this.renderCache.result==null)){let{result:t,options:i}=this.renderFileWithHighlighter(e,this.highlighter,l||!n);this.renderCache={file:e,options:i,highlighted:r,result:t,renderRange:void 0}}(!t||!l&&!n)&&this.asyncHighlight(e).then(({result:t,options:n})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.applyHighlightResult(e,t,n,!l)})}return this.renderCache.result==null?void 0:this.processFileResult(this.renderCache.file,r,this.renderCache.result)}async asyncRender(e,t=n){let{result:r}=await this.asyncHighlight(e);return this.processFileResult(e,t,r)}async asyncHighlight(e){let t=X(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength());this.computedLang=t?`text`:e.lang??p(e.name);let n=this.highlighter!=null&&ee(se(this.getLocalHighlightTheme())),r=t||this.highlighter!=null&&W(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderFileWithHighlighter(e,this.highlighter,t)}renderFileWithHighlighter(e,t,n=!1){let{options:r}=this.getRenderOptions(e);return{result:k(e,t,r,{forcePlainText:n}),options:r}}processFileResult(e,t,{code:n,themeStyles:r,baseThemeType:a}){let o=this.getLineCount(e),{disableFileHeader:s=!1}=this.options,c=[],l=V(),u=Math.min(t.startingLine+t.totalLines,o),d=0,f=i(t)?T(this.lineAnnotations):void 0;f!=null&&(l.children.push(U(`context`,`annotation`,1)),c.push(N({type:`annotation`,hunkIndex:-1,lineIndex:-1,annotations:f.map(e=>m(e))})),d++);for(let r=t.startingLine;r<u;r++){let t=r+1,i=n[r];if(i==null){let n=`FileRenderer.processFileResult: Line doesnt exist`;throw console.error(n,{name:e.name,lineIndex:r,lineNumber:t}),Error(n)}l.children.push(oe(`context`,t,`${r}`)),c.push(i),d++;let a=this.lineAnnotations[t];a!=null&&(l.children.push(U(`context`,`annotation`,1)),c.push(N({type:`annotation`,hunkIndex:0,lineIndex:t,annotations:a.map(e=>m(e))})),d++)}return l.properties.style=`grid-row: span ${d}`,{gutterAST:l.children??[],contentAST:c,preAST:this.createPreElement(o),headerAST:s?void 0:this.renderHeader(e),totalLines:o,rowCount:d,themeStyles:r,baseThemeType:a,bufferBefore:t.bufferBefore,bufferAfter:t.bufferAfter,css:``}}renderHeader(e){let{headerRenderMode:t=`default`,stickyHeader:n=!1}=this.options;return j({fileOrDiff:e,mode:t,stickyHeader:n})}renderFullHTML(e){return z(this.renderFullAST(e))}renderFullAST(e,t=[]){return t.push(B({tagName:`code`,children:this.renderCodeAST(e),properties:{"data-code":``}})),{...e.preAST,children:t}}renderCodeAST(e){let t=V();return t.children=e.gutterAST,t.properties.style=`grid-row: span ${e.rowCount}`,[t,u(e.contentAST,e.rowCount)]}renderPartialHTML(e,t=!1){return z(t?B({tagName:`code`,children:e,properties:{"data-code":``}}):e)}async initializeHighlighter(){return this.highlighter=await ne(le(this.computedLang,{theme:this.getLocalHighlightTheme(),preferredHighlighter:this.workerManager?.getPreferredHighlighter()??this.options.preferredHighlighter})),this.highlighter}onHighlightSuccess(e,t,n,r=!0){this.editSessionActive||this.applyHighlightResult(e,t,n,r)}applyHighlightResult(e,n,r,i=!0){if(this.renderCache==null)return;let a=!P(e,this.renderCache.file)||!this.renderCache.highlighted||!t(r,this.renderCache.options);this.renderCache={file:e,options:r,highlighted:i,result:n,renderRange:void 0},a&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(e,n){if(this.editSessionActive)return;let r=this.workerManager?.getFileResultCache(e);if(!(r==null||!t(n,r.options)))return r}hasHighlightedRenderCache(e,n){let{renderCache:r}=this;return r?.result!=null&&r.highlighted&&P(e,r.file)&&t(n,r.options)}onHighlightError(e){console.error(e)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??1e5}createPreElement(e){let{disableLineNumbers:t=!1,overflow:n=`scroll`}=this.options;return M({type:`file`,diffIndicators:`none`,disableBackground:!0,disableLineNumbers:t,overflow:n,split:!1,totalLines:e})}};function X(e,t){return e>t}function ve(e,t){return e.lineNumber===t.lineNumber&&e.metadata===t.metadata}function Z(e){return{theme:e?.theme,disableLineNumbers:e?.disableLineNumbers,overflow:e?.overflow,themeType:e?.themeType,collapsed:e?.collapsed,disableFileHeader:e?.disableFileHeader,disableVirtualizationBuffers:e?.disableVirtualizationBuffers,stickyHeader:e?.stickyHeader,preferredHighlighter:e?.preferredHighlighter,useCSSClasses:e?.useCSSClasses,useTokenTransformer:L(e),tokenizeMaxLineLength:e?.tokenizeMaxLineLength,tokenizeMaxLength:e?.tokenizeMaxLength,unsafeCSS:e?.unsafeCSS,headerRenderMode:e?.renderCustomHeader==null?`default`:`custom`}}var ye=[``],be=-1,Q=class{options;workerManager;isContainerManaged;static LoadedCustomComponent=!0;__id=`file:${++be}`;type=`file`;fileContainer;spriteSVG;pre;code;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;errorWrapper;placeHolder;lastRenderedHeaderHTML;cachedHeaderHTML;appliedPreAttributes;lastRowCount;mounted=!1;headerElement;headerCustom;headerPrefix;headerFilenameSuffix;headerMetadata;fileRenderer;resizeManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;file;renderRange;enabled=!0;editor;constructor(e={theme:_},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.fileRenderer=new _e(e,this.handleHighlightRender,this.workerManager),this.resizeManager=new R,this.interactionManager=new ae(`file`,K(e)),this.workerManager?.subscribeToThemeChanges(this)}handleHighlightRender=()=>{this.rerender()};rerender(){!this.enabled||this.file==null||this.render({file:this.file,forceRender:!0,renderRange:this.renderRange})}__getCurrentFile(){return this.file}onThemeChange(){this.fileRenderer.clearRenderCache(),this.rerender()}setOptions(e){e!=null&&(this.options=e,this.cachedHeaderHTML=void 0,this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(K(this.options))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??`system`)!==e&&(this.mergeOptions({themeType:e}),this.applyCachedThemeState(e))}applyCachedThemeState(e){if(typeof this.options.theme==`string`||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let t=this.appliedThemeCSS.baseThemeType??e;return this.appliedThemeCSS.themeType===t?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!pe(this.appliedThemeCSS.theme,this.options.theme??_)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}setSelectedLines(e,t){this.interactionManager.setSelection(e,t)}setEditorActiveLine(e,t){this.interactionManager.setEditorActiveLine(e,{lineNumberOnly:t?.lineNumberOnly,side:t?.side??`additions`})}getCodeScrollLeft(){return this.code?.scrollLeft??0}setCodeScrollLeft(e){this.code!=null&&(this.code.scrollLeft=e)}__getEffectiveCodeOptions(){return{...this.options,...this.fileRenderer.getEffectiveCodeOptions()}}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{overflow:e=`scroll`}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,{disableAnnotations:e===`wrap`,columnVariables:this.shouldApplyColumnVariables(e)?`apply`:`measure`}),this.managersDirty=!1}shouldApplyColumnVariables(e){return e===`scroll`&&this.lineAnnotations.length>0}cleanUp(e=!1){this.emitPostRender(!0),this.editor?.cleanUp(e),this.editor=void 0,this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,e||(this.lineAnnotations=[]),this.clearAuxiliaryNodes(),this.pre=void 0,this.code=void 0,this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,e||(this.cachedHeaderHTML=void 0),this.errorWrapper?.remove(),this.errorWrapper=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.placeHolder?.remove(),this.placeHolder=void 0,e?this.fileRenderer.recycle():(this.fileRenderer.cleanUp(),this.workerManager=void 0,this.file=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){let{fileContainer:t,prerenderedHTML:n,preventEmit:r=!1,file:i,lineAnnotations:a}=e;if(!this.enabled)throw Error(`File.hydrate: attempting to call hydrate after cleaned up`);if(this.fileContainer!=null)throw Error(`File.hydrate: hydrate can only be called before the instance has rendered or hydrated`);this.hydrateElements(t,n),xe(this.pre,i,this.options.collapsed)||Se(this.headerElement,i,this.options.disableFileHeader)?this.render({...e,preventEmit:!0}):this.hydrationSetup({file:i,lineAnnotations:a}),r||this.emitPostRender()}hydrateElements(e,t){this.fileContainer!==e&&this.emitPostRender(!0),o(e,t);for(let t of Array.from(e.shadowRoot?.children??[])){if(t instanceof SVGElement){this.spriteSVG=t;continue}if(t instanceof HTMLElement){if(t instanceof HTMLPreElement){this.pre=t,this.appliedPreAttributes=void 0;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-theme-css`)){this.themeCSSStyle=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-unsafe-css`)){this.unsafeCSSStyle=t,this.appliedUnsafeCSS=t.textContent;continue}if(`diffsHeader`in t.dataset){this.headerElement=t,this.lastRenderedHeaderHTML=void 0;continue}}}this.pre!=null&&(this.syncCodeNodeFromPre(this.pre),this.pre.removeAttribute(`data-dehydrated`)),this.fileContainer=e,this.hydrateMeasuredScrollbar()}hydrationSetup({file:e,lineAnnotations:t}){this.lineAnnotations=t??this.lineAnnotations,this.file=e,this.fileRenderer.setOptions(Z(this.options)),this.syncInteractionOptions(),this.pre!=null&&(this.fileRenderer.hydrate(e),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}getOrCreateLineCache(e=this.file){return e==null?ye:this.fileRenderer.getOrCreateLineCache(e)}updateBuffers(e){this.pre!=null&&this.applyBuffers(this.pre,e)}syncRenderViewToEditor(){let e=this.editor,t=this.fileContainer,n=this.file,r=this.lineAnnotations,i=this.renderRange;e!=null&&t!=null&&n!=null&&this.fileRenderer.initializeHighlighter().then(a=>{!this.enabled||this.editor!==e||this.fileContainer!==t||this.file!==n||e.__syncRenderView(a,t,n,r,i)})}attachEditor(e){this.editor?.cleanUp(),this.editor=e,this.fileRenderer.beginEditSession();let t=this.file==null?void 0:e.__prepareFile?.(this.file);return t!==void 0&&t!==this.file?this.renderPreparedFile({file:t,forceRender:!0,preventEmit:!0,renderRange:this.renderRange}):this.fileRenderer.editorRenderReady()?this.syncRenderViewToEditor():this.rerender(),()=>{this.editor=void 0,this.fileRenderer.endEditSession()}}applyDocumentChange(e,t){this.fileRenderer.applyDocumentChange(e),t!=null&&t!==this.lineAnnotations&&this.file!=null&&(this.setLineAnnotations(t),this.fileRenderer.setLineAnnotations(this.lineAnnotations),this.renderAnnotations())}updateRenderCache(e,t,n){this.fileRenderer.updateRenderCache(e,t,n?.lineCountChangeInFlight)}render(e){if(!this.enabled)throw Error(`File.render: attempting to call render after cleaned up`);let t=this.editor?.__prepareFile?.(e.file)??e.file;return this.renderPreparedFile(t===e.file?e:{...e,file:t})}renderPreparedFile({file:e,fileContainer:t,forceRender:n=!1,preventEmit:r=!1,containerWrapper:i,deferManagers:a=!1,lineAnnotations:o,renderRange:s}){this.editor?.__postponeBgTokenizeToNextFrame();let{collapsed:c=!1,themeType:l=`system`}=this.options,u=c?void 0:s,f=this.renderRange,p=this.hasThemeChanged(),m=o!=null&&(o.length>0||this.lineAnnotations.length>0)?o!==this.lineAnnotations:!1,h=!P(this.file,e)||this.fileRenderer.hasUnkeyedFileContentsChanged(e);if(!c&&!n&&C(u,this.renderRange)&&!h&&!m&&!p)return this.applyCachedThemeState(l);this.renderRange=u,h&&(this.cachedHeaderHTML=void 0),this.file=e,this.fileRenderer.setOptions(Z(this.options)),this.syncInteractionOptions(),o!=null&&this.setLineAnnotations(o),this.fileRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:g=!1,disableFileHeader:_=!1}=this.options;if(_&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),t=this.getOrCreateFileContainerNode(t,i),this.applyCachedThemeState(l),c){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let n=this.fileRenderer.renderFile(e,d);n!=null&&this.applyThemeState(t,n.themeStyles,l,n.baseThemeType),n?.headerAST!=null&&this.applyHeaderToDOM(n.headerAST,t),this.injectUnsafeCSS()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,t)}return r||this.emitPostRender(),!0}try{let r=this.getOrCreatePreNode(t);if(!this.canPartiallyRender(n,m,h||p)||!this.applyPartialRender(f,u)){let n=this.fileRenderer.renderFile(e,u);if(n==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(t,n.themeStyles,l,n.baseThemeType),n.headerAST!=null&&this.applyHeaderToDOM(n.headerAST,t),this.applyFullRender(n,r)}this.applyBuffers(r,u),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,a||this.flushManagers(),this.editor!=null&&this.syncRenderViewToEditor()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,t)}return r||this.emitPostRender(),!0}emitPostRender(e=!1){let{fileContainer:t,options:{onPostRender:n}}=this;if(e){if(!this.mounted||(this.mounted=!1,t==null))return;n?.(t,this,`unmount`);return}if(t==null)return;let r=this.mounted?`update`:`mount`;this.mounted=!0,n?.(t,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.code?.remove(),this.code=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}canPartiallyRender(e,t,n){return!(e||t||n)}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:`open`});this.placeHolder=document.createElement(`div`),this.placeHolder.dataset.placeholder=``,e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty(`height`,`${e}px`),!0}async primeHighlightCache(e=this.file){let{workerManager:t}=this;if(e==null||t==null||!t.isWorkingPool()||e.cacheKey==null||S(e))return;let n=this.options.tokenizeMaxLength??1e5;this.fileRenderer.getOrCreateLineCache(e).length>n||await t.primeFileHighlightCache(e).catch(e=>{console.error(e)})}cleanChildNodes(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.code?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.code=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear();return}let e=new Map(this.annotationCache),{renderAnnotation:t}=this.options;if(t!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${m(r)}`,a=this.annotationCache.get(i);if(a==null||!ve(r,a.annotation)){a?.element.remove();let e=t(r);if(e==null)continue;a={element:re(m(r)),annotation:r},a.element.appendChild(e),this.fileContainer.appendChild(a.element),this.annotationCache.set(i,a)}e.delete(i)}for(let[t,{element:n}]of e.entries())this.annotationCache.delete(t),n.remove()}renderGutterUtility(){let{renderGutterUtility:e}=this.options;if(this.fileContainer==null||e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let t=e(this.interactionManager.getHoveredLine);if(t!=null&&this.gutterUtilityContent!=null)return;if(t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=r();n.appendChild(t),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}injectUnsafeCSS(){let{unsafeCSS:e}=this.options,t=this.fileContainer?.shadowRoot;if(t!=null){if(e==null||e===``){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===t&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??=ie(),this.unsafeCSSStyle.parentNode!==t&&t.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=c(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,t,n,r){let i=e.shadowRoot??e.attachShadow({mode:`open`}),a=r??n,o=this.options.theme??_,s=typeof o==`string`?o:{...o},c=x(i);if(this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===t&&this.appliedThemeCSS.themeType===a&&this.appliedThemeCSS.scrollbarGutter===c){this.appliedThemeCSS.theme=s;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===i){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:s,themeStyles:t,themeType:a,baseThemeType:r,scrollbarGutter:c};return}this.themeCSSStyle=de({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:l(t,a,c)}),this.appliedThemeCSS=this.themeCSSStyle==null?void 0:{theme:s,themeStyles:t,themeType:a,baseThemeType:r,scrollbarGutter:c}}hydrateMeasuredScrollbar(){let e=this.fileContainer?.shadowRoot;e==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=O(this.themeCSSStyle.textContent??``,x(e)))}shouldGuardRebuildScroll(){return this.editor!=null&&F()}applyFullRender(e,t){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(t,e);let n=this.code=fe({code:this.code}),r=this.fileRenderer.renderCodeAST(e);this.editor?.__captureFocusForDOMReplacement();let i=()=>{if(n.childElementCount>=2)for(let e=0;e<2;e++){let t=n.children[e],i=r[e];t.innerHTML=z(i.children),t.style.cssText=i.properties.style}else n.innerHTML=z(r);t.contains(n)||t.replaceChildren(n)};this.shouldGuardRebuildScroll()?me(t,i):i(),this.lastRowCount=e.rowCount}applyPartialRender(e,t){if(e==null||t==null)return!1;let{file:n,code:r}=this,i=r==null?void 0:this.getColumns(r);if(n==null||r==null||i==null)return!1;let a=e.startingLine,o=t.startingLine,s=e.totalLines===1/0?1/0:a+e.totalLines,c=t.totalLines===1/0?1/0:o+t.totalLines,l=Math.max(a,o),u=Math.min(s,c);if(u<=l)return!1;if(!this.trimDOMToOverlap(i.gutter,l,u)||!this.trimDOMToOverlap(i.content,l,u))throw Error(`File.applyPartialRender: failed to trim to overlap`);let{length:d}=i.content.children,f=(e,t)=>{if(!(t<=0))return this.fileRenderer.renderFile(n,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},p=o<l?f(o,l-o):void 0;if(p===void 0&&o<l)return!1;let m=c===1/0?1/0:Math.max(0,c-u),h=c>u?f(u,m):void 0;return h===void 0&&c>u?!1:(this.cleanupErrorWrapper(),p!=null&&(i.gutter.insertAdjacentHTML(`afterbegin`,this.fileRenderer.renderPartialHTML(p.gutterAST)),i.content.insertAdjacentHTML(`afterbegin`,this.fileRenderer.renderPartialHTML(p.contentAST)),d+=p.rowCount),h!=null&&(i.gutter.insertAdjacentHTML(`beforeend`,this.fileRenderer.renderPartialHTML(h.gutterAST)),i.content.insertAdjacentHTML(`beforeend`,this.fileRenderer.renderPartialHTML(h.contentAST)),d+=h.rowCount),this.lastRowCount!==d&&(i.gutter.style.setProperty(`grid-row`,`span ${d}`),i.content.style.setProperty(`grid-row`,`span ${d}`),this.lastRowCount=d),!0)}getColumns(e){let t=e.children[0],n=e.children[1];if(!(!(t instanceof HTMLElement)||!(n instanceof HTMLElement)||t.dataset.gutter==null||n.dataset.content==null))return{gutter:t,content:n}}trimDOMToOverlap(e,t,n){let r=this.getDOMBoundaryIndices(e,[t,n]),i=r.get(t)??e.children.length,a=r.get(n)??e.children.length;if(i>a)return!1;for(let t=e.children.length-1;t>=a;--t)e.children[t]?.remove();for(let t=i-1;t>=0;--t)e.children[t]?.remove();return!0}getDOMBoundaryIndices(e,t){let n=[...new Set(t)].sort((e,t)=>e-t),r=new Map;if(n.length===0)return r;let i=0,a=n[i],{children:o}=e;a===0&&(r.set(0,0),i+=1,a=n[i]);for(let e=0;e<o.length;e+=1){let t=o[e];if(!(t instanceof HTMLElement))continue;let s=this.getLineIndexFromDOMNode(t);if(s!=null){for(;a!=null&&s>=a;)r.set(a,e),i+=1,a=n[i];if(i>=n.length)break}}for(let e of n)r.has(e)||r.set(e,o.length);return r}getLineIndexFromDOMNode(e){let t=e.dataset.lineIndex;if(t==null)return;let n=Number(t);return Number.isNaN(n)?void 0:n}applyBuffers(e,t){if(t==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(this.bufferBefore??(this.bufferBefore=document.createElement(`div`),this.bufferBefore.dataset.virtualizerBuffer=`before`,e.before(this.bufferBefore)),this.bufferBefore.style.setProperty(`height`,`${t.bufferBefore}px`),this.bufferBefore.style.setProperty(`contain`,`strict`)):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(this.bufferAfter??(this.bufferAfter=document.createElement(`div`),this.bufferAfter.dataset.virtualizerBuffer=`after`,e.after(this.bufferAfter)),this.bufferAfter.style.setProperty(`height`,`${t.bufferAfter}px`),this.bufferAfter.style.setProperty(`contain`,`strict`)):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyHeaderToDOM(e,t){let{file:n}=this;if(n==null)return;this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let r=this.cachedHeaderHTML??z(e);if(this.cachedHeaderHTML=r,r!==this.lastRenderedHeaderHTML){let e=document.createElement(`div`);e.innerHTML=r;let n=e.firstElementChild;if(!(n instanceof HTMLElement))return;this.headerElement==null?t.shadowRoot?.prepend(n):t.shadowRoot?.replaceChild(n,this.headerElement),this.headerElement=n,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged)return;let{renderHeaderPrefix:i,renderHeaderFilenameSuffix:a,renderCustomHeader:o,renderHeaderMetadata:c}=this.options;if(o!=null){let e=o(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(t,this.headerCustom,s,e),this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0}else{let e=i?.(n)??void 0,r=a?.(n)??void 0,o=c?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(t,this.headerPrefix,he,e),this.headerFilenameSuffix=this.upsertHeaderSlotElement(t,this.headerFilenameSuffix,h,r),this.headerMetadata=this.upsertHeaderSlotElement(t,this.headerMetadata,w,o),this.headerCustom?.remove(),this.headerCustom=void 0}}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,t,n,r){if(r==null){t?.remove();return}let i=t??this.createHeaderSlotElement(n);return t??e.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(e,t){e.replaceChildren(),t instanceof Element?e.appendChild(t):e.innerText=`${t}`}createHeaderSlotElement(e){let t=document.createElement(`div`);return t.slot=e,t}getOrCreateFileContainerNode(e,t){let{fileContainer:n}=this,r=e??n??document.createElement(`diffs-container`),i=n!==r;return n!=null&&i&&this.editor?.__captureFocusForDOMReplacement(),i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),t!=null&&this.fileContainer.parentNode!==t&&t.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(e){let{shadowRoot:t}=e;if(t!=null)for(let e of t.children)e instanceof SVGElement?this.spriteSVG??=e:q(e)&&e.hasAttribute(`data-theme-css`)?(this.themeCSSStyle??=e,this.hasAdoptedThemeCSS=!0):q(e)&&e.hasAttribute(`data-unsafe-css`)&&(this.unsafeCSSStyle??=e,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});if(this.spriteSVG==null){let e=document.createElement(`div`);e.innerHTML=b;let t=e.firstChild;t instanceof SVGElement&&(this.spriteSVG=t)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==t&&t.appendChild(this.spriteSVG)}getOrCreatePreNode(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});return this.pre==null?(this.pre=document.createElement(`pre`),this.appliedPreAttributes=void 0,this.code=void 0,t.appendChild(this.pre)):this.pre.parentNode!==t&&(this.editor?.__captureFocusForDOMReplacement(),e.shadowRoot?.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodeFromPre(e){this.code=void 0;for(let t of Array.from(e.children))if(t instanceof HTMLElement&&t.hasAttribute(`data-code`)){this.code=t;return}}applyPreNodeAttributes(e,{totalLines:t}){let{overflow:n=`scroll`,disableLineNumbers:r=!1}=this.options,i={type:`file`,split:!1,overflow:n,disableLineNumbers:r,diffIndicators:`none`,disableBackground:!0,totalLines:t};v(i,this.appliedPreAttributes)||(D(e,i),this.appliedPreAttributes=i)}applyErrorToDOM(e,t){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=t.shadowRoot??t.attachShadow({mode:`open`});this.errorWrapper??=document.createElement(`div`),this.errorWrapper.dataset.errorWrapper=``,this.errorWrapper.textContent=``,n.appendChild(this.errorWrapper);let r=document.createElement(`div`);r.dataset.errorMessage=``,r.innerText=e.message,this.errorWrapper.appendChild(r);let i=document.createElement(`pre`);i.dataset.errorStack=``,i.innerText=e.stack??`No Error Stack`,this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function xe(e,t,n=!1){return!n&&e==null&&t!=null}function Se(e,t,n=!1){return e==null&&t!=null&&!n}var Ce=5e3,we=-1;function Te(e,t){return(e.overflow??`scroll`)!==(t.overflow??`scroll`)||(e.collapsed??!1)!==(t.collapsed??!1)||(e.disableLineNumbers??!1)!==(t.disableLineNumbers??!1)||(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||e.unsafeCSS!==t.unsafeCSS}var Ee=class extends Q{virtualizer;metrics;__id=`virtualized-file:${++we}`;top;height=0;cache={heights:new Map,checkpoints:[],fileAnnotationHeight:0};isVisible=!1;isSetup=!1;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(e,t,n=y,r,i=!1){super(e,r,i),this.virtualizer=t,this.metrics=n}setMetrics(e,t=!1){let n=ce(e);!t&&E(this.metrics,n)||(this.metrics=n,this.resetLayoutCache())}setLineAnnotations(e){this.syncLineAnnotations(e)&&this.resetLayoutCache()}syncLineAnnotations(e){return e==null||e===this.lineAnnotations||e.length===0&&this.lineAnnotations.length===0?!1:(super.setLineAnnotations(e),!0)}hasLineAnnotations(){return this.lineAnnotations.some(e=>e.lineNumber>0)}getLineHeight(e,t=!1){let n=this.cache.heights.get(e);if(n!=null)return n;let r=t?2:1;return this.metrics.lineHeight*r}setOptions(e){if(this.isAdvancedMode())throw Error(`VirtualizedFile.setOptions cannot be used inside CodeView. Update CodeView options instead.`);if(e==null)return;let{options:t}=this,n=!I(t,e),r=Te(t,e);super.setOptions(e),r&&this.resetLayoutCache(!0),n&&(this.forceRenderOverride=!0),n&&this.virtualizer.instanceChanged(this,r)}setThemeType(e){if(this.isAdvancedMode())throw Error(`VirtualizedFile.setThemeType cannot be used inside CodeView. Update CodeView options instead.`);super.setThemeType(e)}resetLayoutCache(e=!1,t=!0){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heights.size>0&&this.cache.heights.clear(),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.renderRange!=null&&t&&(this.renderRange=void 0),e&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let e=!1;if(this.fileContainer==null||this.file==null)return this.height!==0&&(e=!0),this.height=0,e;let{overflow:t=`scroll`}=this.options;if(this.top=this.getVirtualizedTop(),t===`scroll`&&this.lineAnnotations.length===0&&!this.isResizeDebuggingEnabled()||this.code==null)return e;let n=this.code.children[1];if(!(n instanceof HTMLElement))return e;let r=J(this.lineAnnotations);if(this.renderRange!=null&&r&&i(this.renderRange)){let t=De(n)??0;t!==this.cache.fileAnnotationHeight&&(this.cache.fileAnnotationHeight=t,e=!0)}else!r&&this.cache.fileAnnotationHeight!==0&&(this.cache.fileAnnotationHeight=0,e=!0);for(let t of n.children){if(!(t instanceof HTMLElement))continue;let n=t.dataset.lineIndex;if(n==null)continue;let r=Number(n),i=t.getBoundingClientRect().height,a=!1;t.nextElementSibling instanceof HTMLElement&&(`lineAnnotation`in t.nextElementSibling.dataset||`noNewline`in t.nextElementSibling.dataset)&&(`noNewline`in t.nextElementSibling.dataset&&(a=!0),i+=t.nextElementSibling.getBoundingClientRect().height);let o=this.getLineHeight(r,a);i!==o&&(e=!0,i===this.metrics.lineHeight*(a?2:1)?this.cache.heights.delete(r):this.cache.heights.set(r,i))}return(e||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),e}onRender=e=>this.fileContainer==null||this.file==null?!1:(e&&(this.top=this.getVirtualizedTop()),this.render({file:this.file}));prepareCodeViewItem(e,t,n,r){let i=this.syncLineAnnotations(r),a=!P(this.file,e)||this.fileRenderer.hasUnkeyedFileContentsChanged(e),o=n?.resetFileLayoutCache===!0||a||i;n?.metrics!=null&&(this.metrics=n.metrics,o=!0);let{collapsed:s=!1}=this.options;return this.currentCollapsed!==s&&(this.currentCollapsed=s,o=!0),o&&this.resetLayoutCache(),this.file!==e&&(this.layoutDirty=!0),this.file=e,this.top=t,this.computeApproximateSize(),this.height}getLinePosition(e){if(this.file==null||e<1)return;let{disableFileHeader:t=!1,collapsed:n=!1}=this.options,r=this.fileRenderer.getLineCount(this.file)-1,i=H(this.metrics,t);if(n||r<0)return{top:i,height:0};let a=Math.min(Math.max(e-1,0),r),{overflow:o=`scroll`}=this.options,{lineHeight:s}=this.metrics;if(i+=this.cache.fileAnnotationHeight,o===`scroll`&&!this.hasLineAnnotations())return{top:i+a*s,height:s};let c=this.getLayoutCheckpointBeforeLineIndex(a);i=c?.top??i;for(let e=c?.lineIndex??0;e<a;e++)i+=this.getLineHeight(e,!1);return{top:i,height:this.getLineHeight(a,!1)}}getEditorViewport(){return this.virtualizer.type===`simple`?this.virtualizer.getRoot():this.virtualizer.getContainerElement()}getNumericScrollAnchor(e){if(this.file==null||this.renderRange==null)return;let{disableFileHeader:t=!1,collapsed:n=!1,overflow:r=`scroll`}=this.options;if(n||this.renderRange.totalLines<=0)return;let i=this.fileRenderer.getLineCount(this.file)-1;if(i<0)return;let a=H(this.metrics,t),o=Math.min(this.renderRange.startingLine,i),s=Math.min(o+this.renderRange.totalLines-1,i);if(s<o)return;let{fileAnnotationHeight:c}=this.cache;if(r===`scroll`&&!this.hasLineAnnotations()){let{lineHeight:t}=this.metrics,n=a+(o===0?c:this.renderRange.bufferBefore),r=o+Math.max(Math.ceil((e-n)/t),0);return r>s?void 0:{lineNumber:r+1,top:a+c+r*t}}let l=a+(o===0?c:this.renderRange.bufferBefore);for(let t=o;t<=s;t++){if(l>=e)return{lineNumber:t+1,top:l};l+=this.getLineHeight(t)}}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(e){if(this.top==null||this.file==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};let t=e==null?this.renderRange:this.computeRenderRangeFromWindow(this.file,this.top,e);if(t==null)return;let{bufferBefore:n,bufferAfter:r,totalLines:i}=t,a=0;if(i===0){let t=e??this.virtualizer.getWindowSpecs();this.top<t.top&&(a=r)}return{topOffset:this.top+n+a,height:this.height-(n+r)}}cleanUp(e=!1){this.fileContainer!=null&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),e||this.resetLayoutCache(),this.isSetup=!1,super.cleanUp(e)}computeApproximateSize(e=!1,t=this.file){let n=this.isResizeDebuggingEnabled();if(!e&&!this.layoutDirty&&!n)return;let r=this.height===0;if(this.height=0,this.cache.checkpoints=[],t==null){this.layoutDirty=!1;return}let{disableFileHeader:i=!1,collapsed:a=!1,overflow:o=`scroll`}=this.options,{lineHeight:s}=this.metrics,c=this.fileRenderer.getLineCount(t),l=H(this.metrics,i),u=te(this.metrics);if(this.height+=l,a){this.layoutDirty=!1;return}if(this.height+=this.cache.fileAnnotationHeight,o===`scroll`&&!this.hasLineAnnotations())this.height+=c*s;else for(let e=0;e<c;e++)this.addLayoutCheckpoint(e,this.height),this.height+=this.getLineHeight(e,!1);if(c>0&&(this.height+=u),this.fileContainer!=null&&n&&!r){let e=this.fileContainer.getBoundingClientRect();e.height===this.height?console.log(`VirtualizedFile.computeApproximateSize: computed height IS CORRECT`):console.log(`VirtualizedFile.computeApproximateSize: computed height doesnt match`,{name:t.name,elementHeight:e.height,computedHeight:this.height})}this.layoutDirty=!1}setVisibility(e){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){!this.enabled||this.file==null||(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}applyDocumentChange(e,t,n=!1){let{renderRange:r}=this;if(this.getAdvancedVirtualizer()?.capturePendingLayoutAnchor(),super.applyDocumentChange(e,t),this.getSimpleVirtualizer()?.markDOMDirty(),this.resetLayoutCache(this.isSimpleMode(),!1),!this.isSimpleMode())this.computeApproximateSize(!0);else if(n&&r!==void 0&&this.file!==void 0){let e=this.virtualizer.getWindowSpecs(),t=this.computeRenderRangeFromWindow(this.file,this.top??0,e);t.bufferAfter!==r.bufferAfter&&this.updateBuffers(t)}this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0)}renderPreparedFile({fileContainer:e,file:t,forceRender:n=!1,lineAnnotations:r,...i}){let a=this.file==null||!P(this.file,t)||this.fileRenderer.hasUnkeyedFileContentsChanged(t),{forceRenderOverride:o,isSetup:s}=this;this.forceRenderOverride=void 0;let c=this.syncLineAnnotations(r);if(c&&this.resetLayoutCache(),e=this.getOrCreateFileContainerNode(e),t==null)return console.error(`VirtualizedFile.render: attempting to virtually render when we dont have file`),!1;if(s)this.top??=this.getVirtualizedTop(),a&&this.isSimpleMode()&&(this.getSimpleVirtualizer()?.markDOMDirty(),this.resetLayoutCache(!1),this.computeApproximateSize(!1,t));else{this.computeApproximateSize(!1,t);let n=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(n==null)throw Error(`VirtualizedFile.render: simple virtualizer is not available`);n.connect(e,this),this.isVisible=n.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode()&&(!a||!s))return this.file=t,a&&(this.cachedHeaderHTML=void 0),this.renderPlaceholder(this.height);let l=this.virtualizer.getWindowSpecs(),u=this.top??0,d=this.computeRenderRangeFromWindow(t,u,l),f=super.renderPreparedFile({file:t,fileContainer:e,renderRange:d,lineAnnotations:r,forceRender:(o??n)||c||a,...i});return this.isSimpleMode()&&f&&this.getSimpleVirtualizer()?.requestHeightReconcile(this),f}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}shouldGuardRebuildScroll(){return!1}isSimpleMode(){return this.virtualizer.type===`simple`}isAdvancedMode(){return this.virtualizer.type===`advanced`}addLayoutCheckpoint(e,t){e%Ce===0&&this.cache.checkpoints.push({lineIndex:e,top:t})}getLayoutCheckpointBeforeLineIndex(e){if(e<=0||this.cache.checkpoints.length===0)return;let t=0,n=this.cache.checkpoints.length-1,r;for(;t<=n;){let i=t+n>>1,a=this.cache.checkpoints[i];if(a==null)throw Error(`VirtualizedFile: invalid checkpoint index`);a.lineIndex<=e?(r=a,t=i+1):n=i-1}return r}getLayoutCheckpointBeforeTop(e,t){let n=0,r=this.cache.checkpoints.length-1,i=-1;for(;n<=r;){let t=n+r>>1,a=this.cache.checkpoints[t];if(a==null)throw Error(`VirtualizedFile: invalid checkpoint index`);a.top<=e?(i=t,n=t+1):r=t-1}if(t==null)return i>=0?this.cache.checkpoints[i]:void 0;for(let e=i;e>=0;e--){let n=this.cache.checkpoints[e];if(n==null)throw Error(`VirtualizedFile: invalid checkpoint index`);if(n.lineIndex%t===0)return n}}getVirtualizedTop(){return this.virtualizer.type===`advanced`?this.virtualizer.getLocalTopForInstance(this):this.fileContainer==null?0:this.virtualizer.getOffsetInScrollContainer(this.fileContainer)}getSimpleVirtualizer(){return this.virtualizer.type===`simple`?this.virtualizer:void 0}getAdvancedVirtualizer(){return this.virtualizer.type===`advanced`?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}computeRenderRangeFromWindow(e,t,{top:n,bottom:r}){let{disableFileHeader:i=!1,overflow:a=`scroll`}=this.options,{hunkLineCount:o,lineHeight:s}=this.metrics,c=this.fileRenderer.getLineCount(e),l=this.height,u=H(this.metrics,i),d=c>0?te(this.metrics):0,{fileAnnotationHeight:f}=this.cache,p=u+f,m=Math.max(0,l-u-f-d),h=J(this.lineAnnotations),g=t+u,_=f>0&&h&&g<r&&g+f>n;if(t<n-l||t>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};if(c<=o)return{startingLine:0,totalLines:o,bufferBefore:0,bufferAfter:0};let v=Math.ceil(Math.max(r-n,0)/s),y=Math.ceil(v/o)*o+o,b=y/o,x=(n+r)/2;if(a===`scroll`&&!this.hasLineAnnotations()){let e=t+p,i=e+m;if(!_&&!(e<r&&i>n))return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};let a=Math.floor(_&&x<t+p?0:(x-(t+p))/s),h=Math.floor(a/o)-Math.floor(b/2),g=Math.ceil(c/o),v=Math.max(0,Math.min(h,g))*o,S=h<0?y+h*o:y,C=v===0?0:f+v*s,w=Math.min(S,c-v);return{startingLine:v,totalLines:S,bufferBefore:C,bufferAfter:Math.max(0,(c-v-w)*s)}}let S=b,C=[],w=this.getLayoutCheckpointBeforeTop(Math.max(0,n-t-y*s*2),o),T=t+(w?.top??p),E=w?.lineIndex??0,D,O,k,A=w?.lineIndex??0;for(let e=A;e<c;e++){let i=E%o===0,a=Math.floor(E/o);if(i&&(C[a]=T-(t+p),k!=null)){if(k<=0)break;k--}let s=this.getLineHeight(e,!1);T>n-s&&T<r&&(D??=a),T+s>x&&(O??=a),k==null&&T>=r&&i&&(k=S),E++,T+=s}if(D==null)if(_)D=0,O=0;else return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};O??=D;let j=Math.round(O-b/2),M=Math.max(0,Math.ceil(c/o)-b),N=Math.max(0,Math.min(j,M)),P=N*o,F=j<0?y+j*o:y,I=C[N]??0,L=P===0?0:f+I,R=N+F/o,z=R<C.length?m-C[R]:m-(T-t-p);return{startingLine:P,totalLines:F,bufferBefore:L,bufferAfter:Math.max(0,z)}}};function De(e){let t;for(let n of e.children)n instanceof HTMLElement&&n.dataset.lineAnnotation===g&&(t=Math.max(t??0,n.getBoundingClientRect().height));return t}var $=e();function Oe({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:o,lineAnnotations:c,renderGutterUtility:l,getHoveredLine:u}){let d=t?.(e),f=n?.(e),p=r?.(e),h=i?.(e);return(0,$.jsxs)($.Fragment,{children:[d==null?(0,$.jsxs)($.Fragment,{children:[f!=null&&(0,$.jsx)(`div`,{slot:`header-prefix`,children:f}),p!=null&&(0,$.jsx)(`div`,{slot:`header-filename-suffix`,children:p}),h!=null&&(0,$.jsx)(`div`,{slot:`header-metadata`,children:h})]}):(0,$.jsx)(`div`,{slot:s,children:d}),o!=null&&c?.map((e,t)=>(0,$.jsx)(`div`,{slot:m(e),children:o(e)},t)),l!=null&&(0,$.jsx)(`div`,{slot:`gutter-utility-slot`,style:a,children:l(u)})]})}export{Ee as n,Q as r,Oe as t};
|
|
2
|
-
//# sourceMappingURL=renderFileChildren-
|
|
1
|
+
import{n as e}from"./compiler-runtime-CLAvuQ-D.js";import{$t as t,An as n,At as r,Bt as i,C as a,Ct as o,Dn as s,Dt as c,Et as l,Ft as u,In as d,It as f,Jt as p,Kt as m,Ln as h,Lt as g,Mn as _,Mt as v,Nn as y,Nt as b,Ot as x,Pt as S,Qt as C,Rn as w,Rt as T,Sn as E,St as D,Tt as O,Vt as k,Wt as A,Xt as j,Yt as M,Zt as N,_n as P,_t as F,bn as I,bt as L,cn as R,dn as z,en as ee,gn as B,hn as V,ht as te,in as ne,jt as re,kt as ie,ln as ae,mn as oe,mt as H,nn as se,pn as U,pt as ce,qt as le,rn as ue,sn as W,tn as G,un as K,vt as de,wt as fe,xn as pe,xt as q,yt as me,zn as he,zt as J}from"./index-C8yvRYYJ.js";function Y(e,t){return t.cacheKey==null?e.file===t&&e.sourceContents===t.contents:e.cacheKey===t.cacheKey}var ge=-1,_e=class{options;onRenderUpdate;workerManager;__id=`file-renderer:${++ge}`;highlighter;renderCache;computedLang=`text`;lineAnnotations={};lineCache;pendingStructuralRows;textDocumentCache=new WeakMap;editSessionActive=!1;constructor(e={theme:_},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=G(e.theme??_)?ue():void 0)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}setLineAnnotations(e){this.lineAnnotations={};for(let t of e){let e=this.lineAnnotations[t.lineNumber]??[];this.lineAnnotations[t.lineNumber]=e,e.push(t)}}cleanUp(){this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}beginEditSession(){this.editSessionActive=!0}endEditSession(){this.editSessionActive=!1}editorRenderReady(){return this.renderCache?.options.useTokenTransformer===!0&&this.renderCache.highlighted&&this.renderCache.result!=null}recycle(){this.clearRenderCache(),this.highlighter=void 0,this.workerManager?.cleanUpTasks(this),this.lineCache=void 0,this.endEditSession(),this.textDocumentCache=new WeakMap}syncEditedContentsToFile(){let{renderCache:e,lineCache:t}=this;e?.isDirty!==!0||t==null||!Y(t,e.file)||(e.file.contents=t.lines.join(``))}hasUnkeyedFileContentsChanged(e){let{lineCache:t}=this;return e.cacheKey==null&&t!=null&&t.file===e&&t.sourceContents!==e.contents}invalidateChangedUnkeyedFile(e){this.hasUnkeyedFileContentsChanged(e)&&(this.workerManager?.cleanUpTasks(this),this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap)}clearRenderCache(){this.syncEditedContentsToFile(),this.pendingStructuralRows=void 0;let e=this.renderCache;this.renderCache=void 0,e!=null&&e.isDirty===!0&&e.file.cacheKey!=null&&this.workerManager?.evictFileFromCache(e.file.cacheKey)}hydrate(e){let{options:n}=this.getRenderOptions(e),r=X(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength()),i=this.workerManager?.getFileResultCache(e);i!=null&&!t(n,i.options)&&(i=void 0),this.renderCache??={file:e,options:n,highlighted:!r&&!S(e),result:r?void 0:i?.result,renderRange:void 0},!this.editSessionActive&&this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!r&&this.workerManager.highlightFileAST(this,e):this.highlighter??(this.computedLang=e.lang??p(e.name),this.initializeHighlighter())}getLocalHighlightTheme(){return this.workerManager?.getFileRenderOptions().theme??this.options.theme??_}getEffectiveCodeOptions(){let e=this.workerManager?.isWorkingPool()===!0?this.workerManager.getFileRenderOptions():void 0;return{theme:this.getLocalHighlightTheme(),tokenizeMaxLineLength:e?.tokenizeMaxLineLength??this.options.tokenizeMaxLineLength}}getRenderOptions(e){let n=(()=>{if(this.workerManager?.isWorkingPool()===!0){let e=this.workerManager.getFileRenderOptions();return this.editSessionActive&&e.useTokenTransformer!==!0?{...e,useTokenTransformer:!0}:e}let{tokenizeMaxLineLength:e=1e3}=this.options;return{theme:this.getLocalHighlightTheme(),useTokenTransformer:this.editSessionActive||this.options.useTokenTransformer===!0,tokenizeMaxLineLength:e}})(),{renderCache:r}=this;return r?.result==null||!P(e,r.file)||!t(n,r.options)?{options:n,forceHighlight:!0}:{options:n,forceHighlight:!1}}getOrCreateLineCache(e){this.invalidateChangedUnkeyedFile(e);let{lineCache:t}=this;return(t==null||!Y(t,e))&&(t={cacheKey:e.cacheKey,file:e,sourceContents:e.contents,lines:A(e.contents)}),this.lineCache=t,t.lines}getLineCount(e){let t=this.getOrCreateLineCache(e);return this.textDocumentCache.get(e)?.lineCount??t.length}updateRenderCache(e,t,n=!1){if(this.pendingStructuralRows=void 0,this.renderCache==null)return;let{file:r,result:i}=this.renderCache;if(i==null)return;let a=n?new Map:void 0;this.pendingStructuralRows=a;let o=this.lineCache!=null&&Y(this.lineCache,r)?this.lineCache:void 0;for(let[t,n]of e){if(a===void 0&&o!=null&&t<o.lines.length){let e=n.map(e=>e[2]).join(``);o.lines[t]=f(o.lines[t]??``,e)}let e={type:`element`,tagName:`div`,properties:{"data-line":t+1,"data-line-type":`context`,"data-line-index":t},children:n.map(([e,t,n])=>e===0&&t===``?n===``?{type:`element`,tagName:`br`,properties:{},children:[]}:{type:`text`,value:n}:{type:`element`,tagName:`span`,properties:{"data-char":e,style:`color:${t};`},children:[{type:`text`,value:n}]})};a===void 0?i.code[t]=e:a.set(t,e)}i.baseThemeType=t,this.renderCache.isDirty=!0}applyDocumentChange(e){let t=this.pendingStructuralRows;if(this.pendingStructuralRows=void 0,this.renderCache==null)return;let{file:n,result:r}=this.renderCache;if(r==null)return;let i=this.lineCache!=null&&Y(this.lineCache,n)?this.lineCache.lines:A(n.contents),a=A(e.getText());if(i.length!==a.length){let n=Math.min(i.length,a.length),o=0;for(;o<n&&i[o]===a[o];)o++;let s=0;for(;s<n-o&&i[i.length-1-s]===a[a.length-1-s];)s++;let c=r.code;r.code=Array(a.length);for(let e=0;e<o;e++)r.code[e]=c[e];for(let e=0;e<s;e++)r.code[a.length-1-e]=c[i.length-1-e];if(t!==void 0)for(let[e,n]of t)e<a.length&&(r.code[e]=n);for(let t=o;t<a.length-s;t++)r.code[t]??={type:`element`,tagName:`div`,properties:{"data-line":t+1,"data-line-type":`context`,"data-line-index":t},children:[{type:`element`,tagName:`span`,properties:{"data-char":0},children:[{type:`text`,value:e.getLineText(t)}]}]};for(let e=0;e<r.code.length;e++){let t=r.code[e];t?.type===`element`&&(t.properties[`data-line`]=e+1,t.properties[`data-line-index`]=e)}this.renderCache.isDirty=!0}this.lineCache={cacheKey:n.cacheKey,file:n,sourceContents:n.contents,lines:a},this.textDocumentCache.set(n,e)}renderFile(e=this.renderCache?.file,r=n){if(e==null)return;this.invalidateChangedUnkeyedFile(e),this.renderCache?.isDirty===!0&&!P(e,this.renderCache.file)&&(this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap);let{options:i,forceHighlight:a}=this.getRenderOptions(e);this.renderCache?.isDirty===!0&&!t(i,this.renderCache.options)&&this.clearRenderCache();let o=this.getMatchingWorkerResultCache(e,i);o!=null&&!this.hasHighlightedRenderCache(e,i)&&(this.renderCache={file:e,highlighted:!0,renderRange:void 0,...o},a=!1),this.renderCache??={file:e,highlighted:!1,options:i,result:void 0,renderRange:void 0};let s=this.getOrCreateLineCache(e),c=e.contents.length>0,l=!c||S(e)||X(s.length,this.getTokenizeMaxLength()),u=!P(e,this.renderCache.file),d=!C(this.renderCache.renderRange,r);if(!this.editSessionActive&&this.workerManager?.isWorkingPool()===!0)(l||this.renderCache.result==null||!this.renderCache.highlighted&&(u||d))&&(this.renderCache.file=e,this.renderCache.options=i,this.renderCache.highlighted=!1,(this.renderCache.result==null||u||d||a)&&(this.renderCache.result=this.workerManager.getPlainFileAST(e,r.startingLine,r.totalLines,s)),this.renderCache.renderRange=r),!l&&c&&(!this.renderCache.highlighted||a)&&this.workerManager.highlightFileAST(this,e);else{this.computedLang=e.lang??p(e.name);let t=this.highlighter!=null&&G(i.theme),n=this.highlighter!=null&&W(this.computedLang),r=!l&&n;if(this.highlighter!=null&&t&&(a||l||!this.renderCache.highlighted&&r||this.renderCache.result==null)){let{result:t,options:i}=this.renderFileWithHighlighter(e,this.highlighter,l||!n);this.renderCache={file:e,options:i,highlighted:r,result:t,renderRange:void 0}}(!t||!l&&!n)&&this.asyncHighlight(e).then(({result:t,options:n})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.applyHighlightResult(e,t,n,!l)})}return this.renderCache.result==null?void 0:this.processFileResult(this.renderCache.file,r,this.renderCache.result)}async asyncRender(e,t=n){let{result:r}=await this.asyncHighlight(e);return this.processFileResult(e,t,r)}async asyncHighlight(e){let t=X(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength());this.computedLang=t?`text`:e.lang??p(e.name);let n=this.highlighter!=null&&ee(se(this.getLocalHighlightTheme())),r=t||this.highlighter!=null&&W(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderFileWithHighlighter(e,this.highlighter,t)}renderFileWithHighlighter(e,t,n=!1){let{options:r}=this.getRenderOptions(e);return{result:k(e,t,r,{forcePlainText:n}),options:r}}processFileResult(e,t,{code:n,themeStyles:r,baseThemeType:a}){let o=this.getLineCount(e),{disableFileHeader:s=!1}=this.options,c=[],l=V(),u=Math.min(t.startingLine+t.totalLines,o),d=0,f=i(t)?T(this.lineAnnotations):void 0;f!=null&&(l.children.push(U(`context`,`annotation`,1)),c.push(N({type:`annotation`,hunkIndex:-1,lineIndex:-1,annotations:f.map(e=>m(e))})),d++);for(let r=t.startingLine;r<u;r++){let t=r+1,i=n[r];if(i==null){let n=`FileRenderer.processFileResult: Line doesnt exist`;throw console.error(n,{name:e.name,lineIndex:r,lineNumber:t}),Error(n)}l.children.push(oe(`context`,t,`${r}`)),c.push(i),d++;let a=this.lineAnnotations[t];a!=null&&(l.children.push(U(`context`,`annotation`,1)),c.push(N({type:`annotation`,hunkIndex:0,lineIndex:t,annotations:a.map(e=>m(e))})),d++)}return l.properties.style=`grid-row: span ${d}`,{gutterAST:l.children??[],contentAST:c,preAST:this.createPreElement(o),headerAST:s?void 0:this.renderHeader(e),totalLines:o,rowCount:d,themeStyles:r,baseThemeType:a,bufferBefore:t.bufferBefore,bufferAfter:t.bufferAfter,css:``}}renderHeader(e){let{headerRenderMode:t=`default`,stickyHeader:n=!1}=this.options;return j({fileOrDiff:e,mode:t,stickyHeader:n})}renderFullHTML(e){return z(this.renderFullAST(e))}renderFullAST(e,t=[]){return t.push(B({tagName:`code`,children:this.renderCodeAST(e),properties:{"data-code":``}})),{...e.preAST,children:t}}renderCodeAST(e){let t=V();return t.children=e.gutterAST,t.properties.style=`grid-row: span ${e.rowCount}`,[t,u(e.contentAST,e.rowCount)]}renderPartialHTML(e,t=!1){return z(t?B({tagName:`code`,children:e,properties:{"data-code":``}}):e)}async initializeHighlighter(){return this.highlighter=await ne(le(this.computedLang,{theme:this.getLocalHighlightTheme(),preferredHighlighter:this.workerManager?.getPreferredHighlighter()??this.options.preferredHighlighter})),this.highlighter}onHighlightSuccess(e,t,n,r=!0){this.editSessionActive||this.applyHighlightResult(e,t,n,r)}applyHighlightResult(e,n,r,i=!0){if(this.renderCache==null)return;let a=!P(e,this.renderCache.file)||!this.renderCache.highlighted||!t(r,this.renderCache.options);this.renderCache={file:e,options:r,highlighted:i,result:n,renderRange:void 0},a&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(e,n){if(this.editSessionActive)return;let r=this.workerManager?.getFileResultCache(e);if(!(r==null||!t(n,r.options)))return r}hasHighlightedRenderCache(e,n){let{renderCache:r}=this;return r?.result!=null&&r.highlighted&&P(e,r.file)&&t(n,r.options)}onHighlightError(e){console.error(e)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??1e5}createPreElement(e){let{disableLineNumbers:t=!1,overflow:n=`scroll`}=this.options;return M({type:`file`,diffIndicators:`none`,disableBackground:!0,disableLineNumbers:t,overflow:n,split:!1,totalLines:e})}};function X(e,t){return e>t}function ve(e,t){return e.lineNumber===t.lineNumber&&e.metadata===t.metadata}function Z(e){return{theme:e?.theme,disableLineNumbers:e?.disableLineNumbers,overflow:e?.overflow,themeType:e?.themeType,collapsed:e?.collapsed,disableFileHeader:e?.disableFileHeader,disableVirtualizationBuffers:e?.disableVirtualizationBuffers,stickyHeader:e?.stickyHeader,preferredHighlighter:e?.preferredHighlighter,useCSSClasses:e?.useCSSClasses,useTokenTransformer:L(e),tokenizeMaxLineLength:e?.tokenizeMaxLineLength,tokenizeMaxLength:e?.tokenizeMaxLength,unsafeCSS:e?.unsafeCSS,headerRenderMode:e?.renderCustomHeader==null?`default`:`custom`}}var ye=[``],be=-1,Q=class{options;workerManager;isContainerManaged;static LoadedCustomComponent=!0;__id=`file:${++be}`;type=`file`;fileContainer;spriteSVG;pre;code;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;errorWrapper;placeHolder;lastRenderedHeaderHTML;cachedHeaderHTML;appliedPreAttributes;lastRowCount;mounted=!1;headerElement;headerCustom;headerPrefix;headerFilenameSuffix;headerMetadata;fileRenderer;resizeManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;file;renderRange;enabled=!0;editor;constructor(e={theme:_},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.fileRenderer=new _e(e,this.handleHighlightRender,this.workerManager),this.resizeManager=new R,this.interactionManager=new ae(`file`,K(e)),this.workerManager?.subscribeToThemeChanges(this)}handleHighlightRender=()=>{this.rerender()};rerender(){!this.enabled||this.file==null||this.render({file:this.file,forceRender:!0,renderRange:this.renderRange})}__getCurrentFile(){return this.file}onThemeChange(){this.fileRenderer.clearRenderCache(),this.rerender()}setOptions(e){e!=null&&(this.options=e,this.cachedHeaderHTML=void 0,this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(K(this.options))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??`system`)!==e&&(this.mergeOptions({themeType:e}),this.applyCachedThemeState(e))}applyCachedThemeState(e){if(typeof this.options.theme==`string`||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let t=this.appliedThemeCSS.baseThemeType??e;return this.appliedThemeCSS.themeType===t?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!pe(this.appliedThemeCSS.theme,this.options.theme??_)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}setSelectedLines(e,t){this.interactionManager.setSelection(e,t)}setEditorActiveLine(e,t){this.interactionManager.setEditorActiveLine(e,{lineNumberOnly:t?.lineNumberOnly,side:t?.side??`additions`})}getCodeScrollLeft(){return this.code?.scrollLeft??0}setCodeScrollLeft(e){this.code!=null&&(this.code.scrollLeft=e)}__getEffectiveCodeOptions(){return{...this.options,...this.fileRenderer.getEffectiveCodeOptions()}}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{overflow:e=`scroll`}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,{disableAnnotations:e===`wrap`,columnVariables:this.shouldApplyColumnVariables(e)?`apply`:`measure`}),this.managersDirty=!1}shouldApplyColumnVariables(e){return e===`scroll`&&this.lineAnnotations.length>0}cleanUp(e=!1){this.emitPostRender(!0),this.editor?.cleanUp(e),this.editor=void 0,this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,e||(this.lineAnnotations=[]),this.clearAuxiliaryNodes(),this.pre=void 0,this.code=void 0,this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,e||(this.cachedHeaderHTML=void 0),this.errorWrapper?.remove(),this.errorWrapper=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.placeHolder?.remove(),this.placeHolder=void 0,e?this.fileRenderer.recycle():(this.fileRenderer.cleanUp(),this.workerManager=void 0,this.file=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){let{fileContainer:t,prerenderedHTML:n,preventEmit:r=!1,file:i,lineAnnotations:a}=e;if(!this.enabled)throw Error(`File.hydrate: attempting to call hydrate after cleaned up`);if(this.fileContainer!=null)throw Error(`File.hydrate: hydrate can only be called before the instance has rendered or hydrated`);this.hydrateElements(t,n),xe(this.pre,i,this.options.collapsed)||Se(this.headerElement,i,this.options.disableFileHeader)?this.render({...e,preventEmit:!0}):this.hydrationSetup({file:i,lineAnnotations:a}),r||this.emitPostRender()}hydrateElements(e,t){this.fileContainer!==e&&this.emitPostRender(!0),o(e,t);for(let t of Array.from(e.shadowRoot?.children??[])){if(t instanceof SVGElement){this.spriteSVG=t;continue}if(t instanceof HTMLElement){if(t instanceof HTMLPreElement){this.pre=t,this.appliedPreAttributes=void 0;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-theme-css`)){this.themeCSSStyle=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-unsafe-css`)){this.unsafeCSSStyle=t,this.appliedUnsafeCSS=t.textContent;continue}if(`diffsHeader`in t.dataset){this.headerElement=t,this.lastRenderedHeaderHTML=void 0;continue}}}this.pre!=null&&(this.syncCodeNodeFromPre(this.pre),this.pre.removeAttribute(`data-dehydrated`)),this.fileContainer=e,this.hydrateMeasuredScrollbar()}hydrationSetup({file:e,lineAnnotations:t}){this.lineAnnotations=t??this.lineAnnotations,this.file=e,this.fileRenderer.setOptions(Z(this.options)),this.syncInteractionOptions(),this.pre!=null&&(this.fileRenderer.hydrate(e),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}getOrCreateLineCache(e=this.file){return e==null?ye:this.fileRenderer.getOrCreateLineCache(e)}updateBuffers(e){this.pre!=null&&this.applyBuffers(this.pre,e)}syncRenderViewToEditor(){let e=this.editor,t=this.fileContainer,n=this.file,r=this.lineAnnotations,i=this.renderRange;e!=null&&t!=null&&n!=null&&this.fileRenderer.initializeHighlighter().then(a=>{!this.enabled||this.editor!==e||this.fileContainer!==t||this.file!==n||e.__syncRenderView(a,t,n,r,i)})}attachEditor(e){this.editor?.cleanUp(),this.editor=e,this.fileRenderer.beginEditSession();let t=this.file==null?void 0:e.__prepareFile?.(this.file);return t!==void 0&&t!==this.file?this.renderPreparedFile({file:t,forceRender:!0,preventEmit:!0,renderRange:this.renderRange}):this.fileRenderer.editorRenderReady()?this.syncRenderViewToEditor():this.rerender(),()=>{this.editor=void 0,this.fileRenderer.endEditSession()}}applyDocumentChange(e,t){this.fileRenderer.applyDocumentChange(e),t!=null&&t!==this.lineAnnotations&&this.file!=null&&(this.setLineAnnotations(t),this.fileRenderer.setLineAnnotations(this.lineAnnotations),this.renderAnnotations())}updateRenderCache(e,t,n){this.fileRenderer.updateRenderCache(e,t,n?.lineCountChangeInFlight)}render(e){if(!this.enabled)throw Error(`File.render: attempting to call render after cleaned up`);let t=this.editor?.__prepareFile?.(e.file)??e.file;return this.renderPreparedFile(t===e.file?e:{...e,file:t})}renderPreparedFile({file:e,fileContainer:t,forceRender:n=!1,preventEmit:r=!1,containerWrapper:i,deferManagers:a=!1,lineAnnotations:o,renderRange:s}){this.editor?.__postponeBgTokenizeToNextFrame();let{collapsed:c=!1,themeType:l=`system`}=this.options,u=c?void 0:s,f=this.renderRange,p=this.hasThemeChanged(),m=o!=null&&(o.length>0||this.lineAnnotations.length>0)?o!==this.lineAnnotations:!1,h=!P(this.file,e)||this.fileRenderer.hasUnkeyedFileContentsChanged(e);if(!c&&!n&&C(u,this.renderRange)&&!h&&!m&&!p)return this.applyCachedThemeState(l);this.renderRange=u,h&&(this.cachedHeaderHTML=void 0),this.file=e,this.fileRenderer.setOptions(Z(this.options)),this.syncInteractionOptions(),o!=null&&this.setLineAnnotations(o),this.fileRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:g=!1,disableFileHeader:_=!1}=this.options;if(_&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),t=this.getOrCreateFileContainerNode(t,i),this.applyCachedThemeState(l),c){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let n=this.fileRenderer.renderFile(e,d);n!=null&&this.applyThemeState(t,n.themeStyles,l,n.baseThemeType),n?.headerAST!=null&&this.applyHeaderToDOM(n.headerAST,t),this.injectUnsafeCSS()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,t)}return r||this.emitPostRender(),!0}try{let r=this.getOrCreatePreNode(t);if(!this.canPartiallyRender(n,m,h||p)||!this.applyPartialRender(f,u)){let n=this.fileRenderer.renderFile(e,u);if(n==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(t,n.themeStyles,l,n.baseThemeType),n.headerAST!=null&&this.applyHeaderToDOM(n.headerAST,t),this.applyFullRender(n,r)}this.applyBuffers(r,u),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,a||this.flushManagers(),this.editor!=null&&this.syncRenderViewToEditor()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,t)}return r||this.emitPostRender(),!0}emitPostRender(e=!1){let{fileContainer:t,options:{onPostRender:n}}=this;if(e){if(!this.mounted||(this.mounted=!1,t==null))return;n?.(t,this,`unmount`);return}if(t==null)return;let r=this.mounted?`update`:`mount`;this.mounted=!0,n?.(t,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.code?.remove(),this.code=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}canPartiallyRender(e,t,n){return!(e||t||n)}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:`open`});this.placeHolder=document.createElement(`div`),this.placeHolder.dataset.placeholder=``,e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty(`height`,`${e}px`),!0}async primeHighlightCache(e=this.file){let{workerManager:t}=this;if(e==null||t==null||!t.isWorkingPool()||e.cacheKey==null||S(e))return;let n=this.options.tokenizeMaxLength??1e5;this.fileRenderer.getOrCreateLineCache(e).length>n||await t.primeFileHighlightCache(e).catch(e=>{console.error(e)})}cleanChildNodes(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.code?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.code=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear();return}let e=new Map(this.annotationCache),{renderAnnotation:t}=this.options;if(t!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${m(r)}`,a=this.annotationCache.get(i);if(a==null||!ve(r,a.annotation)){a?.element.remove();let e=t(r);if(e==null)continue;a={element:re(m(r)),annotation:r},a.element.appendChild(e),this.fileContainer.appendChild(a.element),this.annotationCache.set(i,a)}e.delete(i)}for(let[t,{element:n}]of e.entries())this.annotationCache.delete(t),n.remove()}renderGutterUtility(){let{renderGutterUtility:e}=this.options;if(this.fileContainer==null||e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let t=e(this.interactionManager.getHoveredLine);if(t!=null&&this.gutterUtilityContent!=null)return;if(t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=r();n.appendChild(t),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}injectUnsafeCSS(){let{unsafeCSS:e}=this.options,t=this.fileContainer?.shadowRoot;if(t!=null){if(e==null||e===``){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===t&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??=ie(),this.unsafeCSSStyle.parentNode!==t&&t.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=c(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,t,n,r){let i=e.shadowRoot??e.attachShadow({mode:`open`}),a=r??n,o=this.options.theme??_,s=typeof o==`string`?o:{...o},c=x(i);if(this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===t&&this.appliedThemeCSS.themeType===a&&this.appliedThemeCSS.scrollbarGutter===c){this.appliedThemeCSS.theme=s;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===i){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:s,themeStyles:t,themeType:a,baseThemeType:r,scrollbarGutter:c};return}this.themeCSSStyle=de({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:l(t,a,c)}),this.appliedThemeCSS=this.themeCSSStyle==null?void 0:{theme:s,themeStyles:t,themeType:a,baseThemeType:r,scrollbarGutter:c}}hydrateMeasuredScrollbar(){let e=this.fileContainer?.shadowRoot;e==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=O(this.themeCSSStyle.textContent??``,x(e)))}shouldGuardRebuildScroll(){return this.editor!=null&&F()}applyFullRender(e,t){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(t,e);let n=this.code=fe({code:this.code}),r=this.fileRenderer.renderCodeAST(e);this.editor?.__captureFocusForDOMReplacement();let i=()=>{if(n.childElementCount>=2)for(let e=0;e<2;e++){let t=n.children[e],i=r[e];t.innerHTML=z(i.children),t.style.cssText=i.properties.style}else n.innerHTML=z(r);t.contains(n)||t.replaceChildren(n)};this.shouldGuardRebuildScroll()?me(t,i):i(),this.lastRowCount=e.rowCount}applyPartialRender(e,t){if(e==null||t==null)return!1;let{file:n,code:r}=this,i=r==null?void 0:this.getColumns(r);if(n==null||r==null||i==null)return!1;let a=e.startingLine,o=t.startingLine,s=e.totalLines===1/0?1/0:a+e.totalLines,c=t.totalLines===1/0?1/0:o+t.totalLines,l=Math.max(a,o),u=Math.min(s,c);if(u<=l)return!1;if(!this.trimDOMToOverlap(i.gutter,l,u)||!this.trimDOMToOverlap(i.content,l,u))throw Error(`File.applyPartialRender: failed to trim to overlap`);let{length:d}=i.content.children,f=(e,t)=>{if(!(t<=0))return this.fileRenderer.renderFile(n,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},p=o<l?f(o,l-o):void 0;if(p===void 0&&o<l)return!1;let m=c===1/0?1/0:Math.max(0,c-u),h=c>u?f(u,m):void 0;return h===void 0&&c>u?!1:(this.cleanupErrorWrapper(),p!=null&&(i.gutter.insertAdjacentHTML(`afterbegin`,this.fileRenderer.renderPartialHTML(p.gutterAST)),i.content.insertAdjacentHTML(`afterbegin`,this.fileRenderer.renderPartialHTML(p.contentAST)),d+=p.rowCount),h!=null&&(i.gutter.insertAdjacentHTML(`beforeend`,this.fileRenderer.renderPartialHTML(h.gutterAST)),i.content.insertAdjacentHTML(`beforeend`,this.fileRenderer.renderPartialHTML(h.contentAST)),d+=h.rowCount),this.lastRowCount!==d&&(i.gutter.style.setProperty(`grid-row`,`span ${d}`),i.content.style.setProperty(`grid-row`,`span ${d}`),this.lastRowCount=d),!0)}getColumns(e){let t=e.children[0],n=e.children[1];if(!(!(t instanceof HTMLElement)||!(n instanceof HTMLElement)||t.dataset.gutter==null||n.dataset.content==null))return{gutter:t,content:n}}trimDOMToOverlap(e,t,n){let r=this.getDOMBoundaryIndices(e,[t,n]),i=r.get(t)??e.children.length,a=r.get(n)??e.children.length;if(i>a)return!1;for(let t=e.children.length-1;t>=a;--t)e.children[t]?.remove();for(let t=i-1;t>=0;--t)e.children[t]?.remove();return!0}getDOMBoundaryIndices(e,t){let n=[...new Set(t)].sort((e,t)=>e-t),r=new Map;if(n.length===0)return r;let i=0,a=n[i],{children:o}=e;a===0&&(r.set(0,0),i+=1,a=n[i]);for(let e=0;e<o.length;e+=1){let t=o[e];if(!(t instanceof HTMLElement))continue;let s=this.getLineIndexFromDOMNode(t);if(s!=null){for(;a!=null&&s>=a;)r.set(a,e),i+=1,a=n[i];if(i>=n.length)break}}for(let e of n)r.has(e)||r.set(e,o.length);return r}getLineIndexFromDOMNode(e){let t=e.dataset.lineIndex;if(t==null)return;let n=Number(t);return Number.isNaN(n)?void 0:n}applyBuffers(e,t){if(t==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(this.bufferBefore??(this.bufferBefore=document.createElement(`div`),this.bufferBefore.dataset.virtualizerBuffer=`before`,e.before(this.bufferBefore)),this.bufferBefore.style.setProperty(`height`,`${t.bufferBefore}px`),this.bufferBefore.style.setProperty(`contain`,`strict`)):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(this.bufferAfter??(this.bufferAfter=document.createElement(`div`),this.bufferAfter.dataset.virtualizerBuffer=`after`,e.after(this.bufferAfter)),this.bufferAfter.style.setProperty(`height`,`${t.bufferAfter}px`),this.bufferAfter.style.setProperty(`contain`,`strict`)):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyHeaderToDOM(e,t){let{file:n}=this;if(n==null)return;this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let r=this.cachedHeaderHTML??z(e);if(this.cachedHeaderHTML=r,r!==this.lastRenderedHeaderHTML){let e=document.createElement(`div`);e.innerHTML=r;let n=e.firstElementChild;if(!(n instanceof HTMLElement))return;this.headerElement==null?t.shadowRoot?.prepend(n):t.shadowRoot?.replaceChild(n,this.headerElement),this.headerElement=n,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged)return;let{renderHeaderPrefix:i,renderHeaderFilenameSuffix:a,renderCustomHeader:o,renderHeaderMetadata:c}=this.options;if(o!=null){let e=o(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(t,this.headerCustom,s,e),this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0}else{let e=i?.(n)??void 0,r=a?.(n)??void 0,o=c?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(t,this.headerPrefix,he,e),this.headerFilenameSuffix=this.upsertHeaderSlotElement(t,this.headerFilenameSuffix,h,r),this.headerMetadata=this.upsertHeaderSlotElement(t,this.headerMetadata,w,o),this.headerCustom?.remove(),this.headerCustom=void 0}}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,t,n,r){if(r==null){t?.remove();return}let i=t??this.createHeaderSlotElement(n);return t??e.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(e,t){e.replaceChildren(),t instanceof Element?e.appendChild(t):e.innerText=`${t}`}createHeaderSlotElement(e){let t=document.createElement(`div`);return t.slot=e,t}getOrCreateFileContainerNode(e,t){let{fileContainer:n}=this,r=e??n??document.createElement(`diffs-container`),i=n!==r;return n!=null&&i&&this.editor?.__captureFocusForDOMReplacement(),i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),t!=null&&this.fileContainer.parentNode!==t&&t.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(e){let{shadowRoot:t}=e;if(t!=null)for(let e of t.children)e instanceof SVGElement?this.spriteSVG??=e:q(e)&&e.hasAttribute(`data-theme-css`)?(this.themeCSSStyle??=e,this.hasAdoptedThemeCSS=!0):q(e)&&e.hasAttribute(`data-unsafe-css`)&&(this.unsafeCSSStyle??=e,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});if(this.spriteSVG==null){let e=document.createElement(`div`);e.innerHTML=b;let t=e.firstChild;t instanceof SVGElement&&(this.spriteSVG=t)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==t&&t.appendChild(this.spriteSVG)}getOrCreatePreNode(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});return this.pre==null?(this.pre=document.createElement(`pre`),this.appliedPreAttributes=void 0,this.code=void 0,t.appendChild(this.pre)):this.pre.parentNode!==t&&(this.editor?.__captureFocusForDOMReplacement(),e.shadowRoot?.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodeFromPre(e){this.code=void 0;for(let t of Array.from(e.children))if(t instanceof HTMLElement&&t.hasAttribute(`data-code`)){this.code=t;return}}applyPreNodeAttributes(e,{totalLines:t}){let{overflow:n=`scroll`,disableLineNumbers:r=!1}=this.options,i={type:`file`,split:!1,overflow:n,disableLineNumbers:r,diffIndicators:`none`,disableBackground:!0,totalLines:t};v(i,this.appliedPreAttributes)||(D(e,i),this.appliedPreAttributes=i)}applyErrorToDOM(e,t){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=t.shadowRoot??t.attachShadow({mode:`open`});this.errorWrapper??=document.createElement(`div`),this.errorWrapper.dataset.errorWrapper=``,this.errorWrapper.textContent=``,n.appendChild(this.errorWrapper);let r=document.createElement(`div`);r.dataset.errorMessage=``,r.innerText=e.message,this.errorWrapper.appendChild(r);let i=document.createElement(`pre`);i.dataset.errorStack=``,i.innerText=e.stack??`No Error Stack`,this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function xe(e,t,n=!1){return!n&&e==null&&t!=null}function Se(e,t,n=!1){return e==null&&t!=null&&!n}var Ce=5e3,we=-1;function Te(e,t){return(e.overflow??`scroll`)!==(t.overflow??`scroll`)||(e.collapsed??!1)!==(t.collapsed??!1)||(e.disableLineNumbers??!1)!==(t.disableLineNumbers??!1)||(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||e.unsafeCSS!==t.unsafeCSS}var Ee=class extends Q{virtualizer;metrics;__id=`virtualized-file:${++we}`;top;height=0;cache={heights:new Map,checkpoints:[],fileAnnotationHeight:0};isVisible=!1;isSetup=!1;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(e,t,n=y,r,i=!1){super(e,r,i),this.virtualizer=t,this.metrics=n}setMetrics(e,t=!1){let n=ce(e);!t&&E(this.metrics,n)||(this.metrics=n,this.resetLayoutCache())}setLineAnnotations(e){this.syncLineAnnotations(e)&&this.resetLayoutCache()}syncLineAnnotations(e){return e==null||e===this.lineAnnotations||e.length===0&&this.lineAnnotations.length===0?!1:(super.setLineAnnotations(e),!0)}hasLineAnnotations(){return this.lineAnnotations.some(e=>e.lineNumber>0)}getLineHeight(e,t=!1){let n=this.cache.heights.get(e);if(n!=null)return n;let r=t?2:1;return this.metrics.lineHeight*r}setOptions(e){if(this.isAdvancedMode())throw Error(`VirtualizedFile.setOptions cannot be used inside CodeView. Update CodeView options instead.`);if(e==null)return;let{options:t}=this,n=!I(t,e),r=Te(t,e);super.setOptions(e),r&&this.resetLayoutCache(!0),n&&(this.forceRenderOverride=!0),n&&this.virtualizer.instanceChanged(this,r)}setThemeType(e){if(this.isAdvancedMode())throw Error(`VirtualizedFile.setThemeType cannot be used inside CodeView. Update CodeView options instead.`);super.setThemeType(e)}resetLayoutCache(e=!1,t=!0){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heights.size>0&&this.cache.heights.clear(),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.renderRange!=null&&t&&(this.renderRange=void 0),e&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let e=!1;if(this.fileContainer==null||this.file==null)return this.height!==0&&(e=!0),this.height=0,e;let{overflow:t=`scroll`}=this.options;if(this.top=this.getVirtualizedTop(),t===`scroll`&&this.lineAnnotations.length===0&&!this.isResizeDebuggingEnabled()||this.code==null)return e;let n=this.code.children[1];if(!(n instanceof HTMLElement))return e;let r=J(this.lineAnnotations);if(this.renderRange!=null&&r&&i(this.renderRange)){let t=De(n)??0;t!==this.cache.fileAnnotationHeight&&(this.cache.fileAnnotationHeight=t,e=!0)}else!r&&this.cache.fileAnnotationHeight!==0&&(this.cache.fileAnnotationHeight=0,e=!0);for(let t of n.children){if(!(t instanceof HTMLElement))continue;let n=t.dataset.lineIndex;if(n==null)continue;let r=Number(n),i=t.getBoundingClientRect().height,a=!1;t.nextElementSibling instanceof HTMLElement&&(`lineAnnotation`in t.nextElementSibling.dataset||`noNewline`in t.nextElementSibling.dataset)&&(`noNewline`in t.nextElementSibling.dataset&&(a=!0),i+=t.nextElementSibling.getBoundingClientRect().height);let o=this.getLineHeight(r,a);i!==o&&(e=!0,i===this.metrics.lineHeight*(a?2:1)?this.cache.heights.delete(r):this.cache.heights.set(r,i))}return(e||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),e}onRender=e=>this.fileContainer==null||this.file==null?!1:(e&&(this.top=this.getVirtualizedTop()),this.render({file:this.file}));prepareCodeViewItem(e,t,n,r){let i=this.syncLineAnnotations(r),a=!P(this.file,e)||this.fileRenderer.hasUnkeyedFileContentsChanged(e),o=n?.resetFileLayoutCache===!0||a||i;n?.metrics!=null&&(this.metrics=n.metrics,o=!0);let{collapsed:s=!1}=this.options;return this.currentCollapsed!==s&&(this.currentCollapsed=s,o=!0),o&&this.resetLayoutCache(),this.file!==e&&(this.layoutDirty=!0),this.file=e,this.top=t,this.computeApproximateSize(),this.height}getLinePosition(e){if(this.file==null||e<1)return;let{disableFileHeader:t=!1,collapsed:n=!1}=this.options,r=this.fileRenderer.getLineCount(this.file)-1,i=H(this.metrics,t);if(n||r<0)return{top:i,height:0};let a=Math.min(Math.max(e-1,0),r),{overflow:o=`scroll`}=this.options,{lineHeight:s}=this.metrics;if(i+=this.cache.fileAnnotationHeight,o===`scroll`&&!this.hasLineAnnotations())return{top:i+a*s,height:s};let c=this.getLayoutCheckpointBeforeLineIndex(a);i=c?.top??i;for(let e=c?.lineIndex??0;e<a;e++)i+=this.getLineHeight(e,!1);return{top:i,height:this.getLineHeight(a,!1)}}getEditorViewport(){return this.virtualizer.type===`simple`?this.virtualizer.getRoot():this.virtualizer.getContainerElement()}getNumericScrollAnchor(e){if(this.file==null||this.renderRange==null)return;let{disableFileHeader:t=!1,collapsed:n=!1,overflow:r=`scroll`}=this.options;if(n||this.renderRange.totalLines<=0)return;let i=this.fileRenderer.getLineCount(this.file)-1;if(i<0)return;let a=H(this.metrics,t),o=Math.min(this.renderRange.startingLine,i),s=Math.min(o+this.renderRange.totalLines-1,i);if(s<o)return;let{fileAnnotationHeight:c}=this.cache;if(r===`scroll`&&!this.hasLineAnnotations()){let{lineHeight:t}=this.metrics,n=a+(o===0?c:this.renderRange.bufferBefore),r=o+Math.max(Math.ceil((e-n)/t),0);return r>s?void 0:{lineNumber:r+1,top:a+c+r*t}}let l=a+(o===0?c:this.renderRange.bufferBefore);for(let t=o;t<=s;t++){if(l>=e)return{lineNumber:t+1,top:l};l+=this.getLineHeight(t)}}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(e){if(this.top==null||this.file==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};let t=e==null?this.renderRange:this.computeRenderRangeFromWindow(this.file,this.top,e);if(t==null)return;let{bufferBefore:n,bufferAfter:r,totalLines:i}=t,a=0;if(i===0){let t=e??this.virtualizer.getWindowSpecs();this.top<t.top&&(a=r)}return{topOffset:this.top+n+a,height:this.height-(n+r)}}cleanUp(e=!1){this.fileContainer!=null&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),e||this.resetLayoutCache(),this.isSetup=!1,super.cleanUp(e)}computeApproximateSize(e=!1,t=this.file){let n=this.isResizeDebuggingEnabled();if(!e&&!this.layoutDirty&&!n)return;let r=this.height===0;if(this.height=0,this.cache.checkpoints=[],t==null){this.layoutDirty=!1;return}let{disableFileHeader:i=!1,collapsed:a=!1,overflow:o=`scroll`}=this.options,{lineHeight:s}=this.metrics,c=this.fileRenderer.getLineCount(t),l=H(this.metrics,i),u=te(this.metrics);if(this.height+=l,a){this.layoutDirty=!1;return}if(this.height+=this.cache.fileAnnotationHeight,o===`scroll`&&!this.hasLineAnnotations())this.height+=c*s;else for(let e=0;e<c;e++)this.addLayoutCheckpoint(e,this.height),this.height+=this.getLineHeight(e,!1);if(c>0&&(this.height+=u),this.fileContainer!=null&&n&&!r){let e=this.fileContainer.getBoundingClientRect();e.height===this.height?console.log(`VirtualizedFile.computeApproximateSize: computed height IS CORRECT`):console.log(`VirtualizedFile.computeApproximateSize: computed height doesnt match`,{name:t.name,elementHeight:e.height,computedHeight:this.height})}this.layoutDirty=!1}setVisibility(e){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){!this.enabled||this.file==null||(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}applyDocumentChange(e,t,n=!1){let{renderRange:r}=this;if(this.getAdvancedVirtualizer()?.capturePendingLayoutAnchor(),super.applyDocumentChange(e,t),this.getSimpleVirtualizer()?.markDOMDirty(),this.resetLayoutCache(this.isSimpleMode(),!1),!this.isSimpleMode())this.computeApproximateSize(!0);else if(n&&r!==void 0&&this.file!==void 0){let e=this.virtualizer.getWindowSpecs(),t=this.computeRenderRangeFromWindow(this.file,this.top??0,e);t.bufferAfter!==r.bufferAfter&&this.updateBuffers(t)}this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0)}renderPreparedFile({fileContainer:e,file:t,forceRender:n=!1,lineAnnotations:r,...i}){let a=this.file==null||!P(this.file,t)||this.fileRenderer.hasUnkeyedFileContentsChanged(t),{forceRenderOverride:o,isSetup:s}=this;this.forceRenderOverride=void 0;let c=this.syncLineAnnotations(r);if(c&&this.resetLayoutCache(),e=this.getOrCreateFileContainerNode(e),t==null)return console.error(`VirtualizedFile.render: attempting to virtually render when we dont have file`),!1;if(s)this.top??=this.getVirtualizedTop(),a&&this.isSimpleMode()&&(this.getSimpleVirtualizer()?.markDOMDirty(),this.resetLayoutCache(!1),this.computeApproximateSize(!1,t));else{this.computeApproximateSize(!1,t);let n=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(n==null)throw Error(`VirtualizedFile.render: simple virtualizer is not available`);n.connect(e,this),this.isVisible=n.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode()&&(!a||!s))return this.file=t,a&&(this.cachedHeaderHTML=void 0),this.renderPlaceholder(this.height);let l=this.virtualizer.getWindowSpecs(),u=this.top??0,d=this.computeRenderRangeFromWindow(t,u,l),f=super.renderPreparedFile({file:t,fileContainer:e,renderRange:d,lineAnnotations:r,forceRender:(o??n)||c||a,...i});return this.isSimpleMode()&&f&&this.getSimpleVirtualizer()?.requestHeightReconcile(this),f}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}shouldGuardRebuildScroll(){return!1}isSimpleMode(){return this.virtualizer.type===`simple`}isAdvancedMode(){return this.virtualizer.type===`advanced`}addLayoutCheckpoint(e,t){e%Ce===0&&this.cache.checkpoints.push({lineIndex:e,top:t})}getLayoutCheckpointBeforeLineIndex(e){if(e<=0||this.cache.checkpoints.length===0)return;let t=0,n=this.cache.checkpoints.length-1,r;for(;t<=n;){let i=t+n>>1,a=this.cache.checkpoints[i];if(a==null)throw Error(`VirtualizedFile: invalid checkpoint index`);a.lineIndex<=e?(r=a,t=i+1):n=i-1}return r}getLayoutCheckpointBeforeTop(e,t){let n=0,r=this.cache.checkpoints.length-1,i=-1;for(;n<=r;){let t=n+r>>1,a=this.cache.checkpoints[t];if(a==null)throw Error(`VirtualizedFile: invalid checkpoint index`);a.top<=e?(i=t,n=t+1):r=t-1}if(t==null)return i>=0?this.cache.checkpoints[i]:void 0;for(let e=i;e>=0;e--){let n=this.cache.checkpoints[e];if(n==null)throw Error(`VirtualizedFile: invalid checkpoint index`);if(n.lineIndex%t===0)return n}}getVirtualizedTop(){return this.virtualizer.type===`advanced`?this.virtualizer.getLocalTopForInstance(this):this.fileContainer==null?0:this.virtualizer.getOffsetInScrollContainer(this.fileContainer)}getSimpleVirtualizer(){return this.virtualizer.type===`simple`?this.virtualizer:void 0}getAdvancedVirtualizer(){return this.virtualizer.type===`advanced`?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}computeRenderRangeFromWindow(e,t,{top:n,bottom:r}){let{disableFileHeader:i=!1,overflow:a=`scroll`}=this.options,{hunkLineCount:o,lineHeight:s}=this.metrics,c=this.fileRenderer.getLineCount(e),l=this.height,u=H(this.metrics,i),d=c>0?te(this.metrics):0,{fileAnnotationHeight:f}=this.cache,p=u+f,m=Math.max(0,l-u-f-d),h=J(this.lineAnnotations),g=t+u,_=f>0&&h&&g<r&&g+f>n;if(t<n-l||t>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};if(c<=o)return{startingLine:0,totalLines:o,bufferBefore:0,bufferAfter:0};let v=Math.ceil(Math.max(r-n,0)/s),y=Math.ceil(v/o)*o+o,b=y/o,x=(n+r)/2;if(a===`scroll`&&!this.hasLineAnnotations()){let e=t+p,i=e+m;if(!_&&!(e<r&&i>n))return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};let a=Math.floor(_&&x<t+p?0:(x-(t+p))/s),h=Math.floor(a/o)-Math.floor(b/2),g=Math.ceil(c/o),v=Math.max(0,Math.min(h,g))*o,S=h<0?y+h*o:y,C=v===0?0:f+v*s,w=Math.min(S,c-v);return{startingLine:v,totalLines:S,bufferBefore:C,bufferAfter:Math.max(0,(c-v-w)*s)}}let S=b,C=[],w=this.getLayoutCheckpointBeforeTop(Math.max(0,n-t-y*s*2),o),T=t+(w?.top??p),E=w?.lineIndex??0,D,O,k,A=w?.lineIndex??0;for(let e=A;e<c;e++){let i=E%o===0,a=Math.floor(E/o);if(i&&(C[a]=T-(t+p),k!=null)){if(k<=0)break;k--}let s=this.getLineHeight(e,!1);T>n-s&&T<r&&(D??=a),T+s>x&&(O??=a),k==null&&T>=r&&i&&(k=S),E++,T+=s}if(D==null)if(_)D=0,O=0;else return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};O??=D;let j=Math.round(O-b/2),M=Math.max(0,Math.ceil(c/o)-b),N=Math.max(0,Math.min(j,M)),P=N*o,F=j<0?y+j*o:y,I=C[N]??0,L=P===0?0:f+I,R=N+F/o,z=R<C.length?m-C[R]:m-(T-t-p);return{startingLine:P,totalLines:F,bufferBefore:L,bufferAfter:Math.max(0,z)}}};function De(e){let t;for(let n of e.children)n instanceof HTMLElement&&n.dataset.lineAnnotation===g&&(t=Math.max(t??0,n.getBoundingClientRect().height));return t}var $=e();function Oe({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:o,lineAnnotations:c,renderGutterUtility:l,getHoveredLine:u}){let d=t?.(e),f=n?.(e),p=r?.(e),h=i?.(e);return(0,$.jsxs)($.Fragment,{children:[d==null?(0,$.jsxs)($.Fragment,{children:[f!=null&&(0,$.jsx)(`div`,{slot:`header-prefix`,children:f}),p!=null&&(0,$.jsx)(`div`,{slot:`header-filename-suffix`,children:p}),h!=null&&(0,$.jsx)(`div`,{slot:`header-metadata`,children:h})]}):(0,$.jsx)(`div`,{slot:s,children:d}),o!=null&&c?.map((e,t)=>(0,$.jsx)(`div`,{slot:m(e),children:o(e)},t)),l!=null&&(0,$.jsx)(`div`,{slot:`gutter-utility-slot`,style:a,children:l(u)})]})}export{Ee as n,Q as r,Oe as t};
|
|
2
|
+
//# sourceMappingURL=renderFileChildren-BAVORNFa.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{r as t}from"./preload-helper-CEhsl8MR.js";import{n,r,t as i}from"./compiler-runtime-CLAvuQ-D.js";import{$c as a,$s as o,Fa as s,No as c,Pc as l,jc as u,nc as d}from"./previewAssetResource-CV43CzuE.js";import{n as f,t as p}from"./renderFileChildren-Dvr45j3z.js";import{Cn as m,D as h,E as g,En as _,Fn as v,Mn as y,On as b,Pn as x,Q as S,S as C,Sn as w,Tn as T,Z as E,ar as ee,bn as D,dt as O,ft as k,jn as A,kn as j,vn as M,wn as te,x as ne,xn as N,xt as P,yn as F}from"./index-DcVyKG-L.js";var I=a(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),L=a(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]);function R(){return typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function z(e,t){return e==null||t==null?e===t:e.header!==t.header||e.footer!==t.footer?!1:B(e.items,t.items)}function B(e,t){if(e==null||t==null)return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r==null||i==null||r.id!==i.id||r.type!==i.type||r.element!==i.element||r.instance!==i.instance||r.version!==i.version)return!1}return!0}function V(e,t,n){let r=document.createElement(`div`);return r.style.display=`flow-root`,e===`header`?(r.setAttribute(_,``),t.before(r)):(r.setAttribute(T,``),t.after(r)),n?.observe(r),r}function H(e){let t=window.devicePixelRatio??1;return Math.round(e*t)/t}var U=`theme.disableLineNumbers.overflow.themeType.disableFileHeader.disableVirtualizationBuffers.preferredHighlighter.useCSSClasses.useTokenTransformer.tokenizeMaxLineLength.tokenizeMaxLength.unsafeCSS.diffStyle.diffIndicators.disableBackground.expandUnchanged.loadDiffFiles.collapsedContextThreshold.lineDiffType.maxLineDiffLength.expansionLineCount.lineHoverHighlight.enableTokenInteractionsOnWhitespace.enableGutterUtility.__debugPointerEvents.enableLineSelection.controlledSelection.disableErrorHandling`.split(`.`),W=[`theme`,`disableLineNumbers`,`overflow`,`themeType`,`disableFileHeader`,`disableVirtualizationBuffers`,`preferredHighlighter`,`useCSSClasses`,`useTokenTransformer`,`tokenizeMaxLineLength`,`tokenizeMaxLength`,`unsafeCSS`,`lineHoverHighlight`,`enableTokenInteractionsOnWhitespace`,`enableGutterUtility`,`__debugPointerEvents`,`enableLineSelection`,`controlledSelection`,`disableErrorHandling`],G=[`renderCustomHeader`,`renderHeaderPrefix`,`renderHeaderFilenameSuffix`,`renderHeaderMetadata`,`renderAnnotation`,`renderGutterUtility`,`onPostRender`,`onGutterUtilityClick`,`onLineClick`,`onLineNumberClick`,`onLineEnter`,`onLineLeave`,`onTokenClick`,`onTokenEnter`,`onTokenLeave`],re=[`onLineSelected`,`onLineSelectionStart`,`onLineSelectionChange`,`onLineSelectionEnd`],ie=Symbol(`CodeView.itemOptionsState`);function ae(e,t){Object.defineProperty(e,ie,{configurable:!1,enumerable:!1,value:t})}function K(e){return e[ie]}function q(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get(){return n(this)}})}var oe=120,se=1,ce=`--diffs-overflow-override`,J=12e6,le=1e6,ue=2e6,de=J-ue,fe=J-le;function pe(e){if(e==null)throw Error(`CodeView: createEditor is required for items with edit: true`)}var me=(()=>{let{navigator:e}=globalThis,t=e.userAgent,n=/iP(?:hone|ad|od)/.test(t),r=e.platform===`MacIntel`&&e.maxTouchPoints>1;return(n||r)&&/AppleWebKit/.test(t)&&/Safari/.test(t)&&!/(CriOS|FxiOS|EdgiOS|OPiOS)/.test(t)})(),he=class e{static __STOP=!1;static __lastScrollPosition=0;type=`advanced`;config={overscrollSize:200,intersectionObserverMargin:0,resizeDebugging:!1};items=[];idToItem=new Map;selectedLines=null;itemEditors=new Map;attachedEditors=new Set;instanceToItem=new Map;layoutDirtyIndex;pendingLayoutReset;renderOptionsRevision=0;slotCoordinator;slotSnapshot;scrollListeners=new Set;scrollHeight=0;containerHeight=-1;scrollTop=0;scrollPageOffset=0;scrollDirty=!0;scrollInteractionFixTimer;pointerEventsDisabled=!1;codeOverflowFix=!1;height=0;heightDirty=!0;windowSpecs={top:0,bottom:0};renderState={scrollTop:-1,firstIndex:-1,lastIndex:-1,stickyHeight:0,stickyTop:-1,stickyBottom:-1};itemMetricsCache=b;fileOptionsPrototype;diffOptionsPrototype;pendingScrollTarget;pendingLayoutAnchor;shouldFixContainerFocus=!1;scrollAnimation;root;resizeObserver;container=document.createElement(`div`);stickyContainer=document.createElement(`div`);stickyOffset=document.createElement(`div`);header={element:void 0,render:void 0,height:0};footer={element:void 0,render:void 0,height:0};elementPool=[];elementPoolVersion=0;elementPoolTracker=new WeakMap;pendingElementPool=[];options;workerManager;isReadySubscription;isContainerManaged;constructor(e={theme:y},t,n=!1){this.options=e,this.computeMetricsCache(e.itemMetrics),this.fileOptionsPrototype=this.createFileOptionsPrototype(),this.diffOptionsPrototype=this.createDiffOptionsPrototype(),this.workerManager=t,this.isContainerManaged=n,this.stickyOffset.style.contain=`layout size`,this.stickyContainer.style.position=`sticky`,this.stickyContainer.style.width=`100%`,this.stickyContainer.style.contain=`layout style inline-size`,this.stickyContainer.style.isolation=`isolate`,this.stickyContainer.style.display=`flex`,this.stickyContainer.style.flexDirection=`column`}getLayout(){return this.options.layout??j}getItemTopOffset(){return this.getLayout().paddingTop+this.header.height}computeMetricsCache(e){return this.itemMetricsCache={hunkLineCount:e?.hunkLineCount??b.hunkLineCount,lineHeight:e?.lineHeight??b.lineHeight,diffHeaderHeight:e?.diffHeaderHeight??b.diffHeaderHeight,hunkSeparatorHeight:e?.hunkSeparatorHeight,spacing:e?.spacing??b.spacing,paddingTop:e?.paddingTop,paddingBottom:e?.paddingBottom},this.itemMetricsCache}getSmoothScrollSettings(){return this.options.smoothScrollSettings??A}shouldDisablePointerEvents(){return this.options.pointerEventsOnScroll!==!0}shouldValidateItemHeights(){return x&&this.options.__devOnlyValidateItemHeights===!0}validateRenderedItemHeight(e){if(!this.shouldValidateItemHeights()||e.element==null)return;let t=e.instance.getAdvancedStickySpecs();if(t==null)return;let n=t.height,r=e.element.getBoundingClientRect().height;n!==r&&console.error(`CodeView: reconciled item height does not match DOM height`,{id:e.item.id,type:e.type,index:e.index,version:e.version,expectedHeight:n,actualHeight:r,delta:r-n,stickyTopOffset:t.topOffset,virtualizedHeight:e.instance.getVirtualizedHeight(),top:e.top,scrollTop:this.getScrollTop(),windowSpecs:{...this.windowSpecs},element:e.element,instance:e.instance})}validateStickyContainerHeight(){if(!this.shouldValidateItemHeights())return;let{firstIndex:e,lastIndex:t,stickyHeight:n,stickyTop:r,stickyBottom:i}=this.renderState;if(e===-1||t===-1)return;let a=this.stickyContainer.getBoundingClientRect().height;Math.abs(a-n)<se||console.error(`CodeView: sticky container height does not match computed layout`,{computedStickyHeight:n,actualStickyHeight:a,delta:a-n,stickyTop:r,stickyBottom:i,firstIndex:e,lastIndex:t,firstStickySpecs:this.items[e]?.instance.getAdvancedStickySpecs(),lastStickySpecs:this.items[t]?.instance.getAdvancedStickySpecs(),scrollTop:this.getScrollTop(),scrollPageOffset:this.scrollPageOffset,windowSpecs:{...this.windowSpecs},stickyContainer:this.stickyContainer})}clearScrollInteractionTimer(){this.scrollInteractionFixTimer!=null&&(clearTimeout(this.scrollInteractionFixTimer),this.scrollInteractionFixTimer=void 0)}suspendScrollInteractions(){this.clearScrollInteractionTimer(),this.shouldDisablePointerEvents()&&!this.pointerEventsDisabled&&(this.stickyContainer.style.pointerEvents=`none`,this.pointerEventsDisabled=!0),me&&!this.codeOverflowFix&&(this.stickyContainer.style.setProperty(ce,`hidden`),this.codeOverflowFix=!0),this.scrollInteractionFixTimer=setTimeout(this.restoreScrollInteractions,oe)}restoreScrollInteractions=()=>{this.clearScrollInteractionTimer(),this.pointerEventsDisabled&&=(this.stickyContainer.style.removeProperty(`pointer-events`),!1),this.codeOverflowFix&&=(this.stickyContainer.style.setProperty(ce,`auto`),!1)};syncLayout(){let{gap:e,paddingBottom:t,paddingTop:n}=this.getLayout();this.stickyContainer.style.gap=`${e}px`,this.container?.style.setProperty(`margin-top`,`${n}px`),this.container?.style.setProperty(`margin-bottom`,`${t}px`)}reconcileHeaderFooterHosts(){let e=this.reconcileHost(`header`),t=this.reconcileHost(`footer`);return e||t}reconcileHost(e){let{root:t,container:n}=this;if(t==null||n==null)return!1;let r=e===`header`?this.header:this.footer,i=e===`header`?this.options.renderCodeViewHeader:this.options.renderCodeViewFooter;if(i==null)return r.element==null?!1:(this.resizeObserver?.unobserve(r.element),r.element.remove(),r.element=void 0,r.render=void 0,this.setHostHeight(r,0),!1);if(r.element!=null&&i===r.render)return!1;let a=r.element??V(e,n,this.resizeObserver);r.element=a;let o=i();return o==null?!this.isContainerManaged&&a.children.length>0&&(a.textContent=``):a.replaceChildren(o),r.render=i,!0}setHostHeight(e,t){e.height!==t&&(e.height=t,this.scrollDirty=!0)}measureMountedHosts(){this.header.element!=null&&this.setHostHeight(this.header,this.header.element.getBoundingClientRect().height),this.footer.element!=null&&this.setHostHeight(this.footer,this.footer.element.getBoundingClientRect().height)}setup(t){if(this.root!=null)throw Error(`CodeView.setup: already setup`);this.workerManager?.subscribeToThemeChanges(this),this.root=t,this.root.style.overflowAnchor=`none`,this.root.hasAttribute(`tabindex`)||(this.root.tabIndex=-1),this.container??=document.createElement(`div`),this.container.style.contain=`layout style`,this.syncLayout(),this.container.appendChild(this.stickyOffset),this.container.appendChild(this.stickyContainer),this.root.appendChild(this.container),this.scrollDirty=!0,this.heightDirty=!0,this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.stickyContainer),this.root.addEventListener(`scroll`,this.handleScroll,{passive:!0}),this.root.addEventListener(`wheel`,this.clearPendingScroll,{passive:!0}),this.root.addEventListener(`touchstart`,this.clearPendingScroll,{passive:!0}),this.root.addEventListener(`pointerdown`,this.clearPendingScroll,{passive:!0}),this.root.addEventListener(`keydown`,this.clearPendingScroll,{passive:!0}),this.resizeObserver.observe(this.root),this.render(!0),window.__INSTANCE=this,window.__TOGGLE=()=>{e.__STOP?(e.__STOP=!1,this.scrollTo({type:`position`,position:e.__lastScrollPosition,behavior:`instant`})):(e.__lastScrollPosition=this.getScrollTop(),e.__STOP=!0)}}reset(){m(this.computeRenderRangeAndEmit),this.clearReadySubscription(),this.restoreScrollInteractions(),this.cleanAllRenderedItems();for(let e of this.itemEditors.values())e.editor.cleanUp();this.itemEditors.clear(),this.attachedEditors.clear(),this.selectedLines=null,this.items.length=0,this.idToItem.clear(),this.instanceToItem.clear(),this.layoutDirtyIndex=void 0,this.pendingLayoutReset=void 0,this.stickyContainer.textContent=``,this.stickyOffset.style.height=``,this.container?.style.removeProperty(`height`),this.containerHeight=-1,this.windowSpecs={top:0,bottom:0},this.pendingLayoutAnchor=void 0,this.shouldFixContainerFocus=!1,this.height=0,this.scrollTop=0,this.scrollPageOffset=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.resetRenderState(),this.isContainerManaged||this.flushSlotCoordinator()}cleanUp(){this.reset(),this.clearElementPool(),this.restoreScrollInteractions(),this.workerManager?.unsubscribeToThemeChanges(this),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.root?.removeEventListener(`scroll`,this.handleScroll),this.root?.removeEventListener(`wheel`,this.clearPendingScroll),this.root?.removeEventListener(`touchstart`,this.clearPendingScroll),this.root?.removeEventListener(`pointerdown`,this.clearPendingScroll),this.root?.removeEventListener(`keydown`,this.clearPendingScroll),this.root?.style.removeProperty(`overflow-anchor`),this.container?.remove(),this.stickyOffset.remove(),this.stickyContainer.remove(),this.stickyContainer.textContent=``,this.header.element?.remove(),this.header.element=void 0,this.header.render=void 0,this.header.height=0,this.footer.element?.remove(),this.footer.element=void 0,this.footer.render=void 0,this.footer.height=0,this.root=void 0,this.container=void 0}cleanAllRenderedItems(){if(this.renderState.firstIndex!==-1)for(let e=this.renderState.firstIndex;e<=this.renderState.lastIndex;e++){let t=this.items[e];if(t==null)throw Error(`CodeView.cleanAllRenderedItems: Item does not exist at index: ${e}`);this.releaseRenderedItem(t)}}primeScrollTarget(e){e.type!==`position`&&this.idToItem.get(e.id)?.instance.primeHighlightCache()}getElementPoolLimit(){let e=this.getHeight()+this.config.overscrollSize*2,{diffHeaderHeight:t}=this.itemMetricsCache;return Math.max(8,Math.ceil(e/Math.max(t,10))+1)*(this.isContainerManaged?2:1)}acquireElement(){this.promotePendingPooledElements();let e=this.elementPool.pop();for(;e!=null&&!this.isElementPoolGenerationCurrent(e);)e=this.elementPool.pop();return e??=document.createElement(v),this.markElementPoolGenerationCurrent(e),e}releaseRenderedItem(e){let{element:t}=e;t!=null&&this.renderedItemOwnsFocus(t)&&(this.shouldFixContainerFocus=!0),e.instance.cleanUp(!0),this.attachedEditors.delete(e.item.id),e.element=void 0,t!=null&&(t.remove(),this.cleanElement(t),this.queueElementForPool(t))}renderedItemOwnsFocus(e){let{activeElement:t}=document;return t===e||e.contains(t)||e.shadowRoot?.activeElement!=null}fixContainerFocus(){this.shouldFixContainerFocus&&(this.shouldFixContainerFocus=!1,this.root?.focus({preventScroll:!0}))}cleanElement(e){let{shadowRoot:t}=e;if(t!=null)for(let e of Array.from(t.children))be(e)||e.remove();this.isContainerManaged||e.replaceChildren()}queueElementForPool(e){let t=this.getElementPoolLimit();!this.isElementPoolGenerationCurrent(e)||this.getElementPoolSize()>=t||(this.isElementClean(e)?this.elementPool.push(e):this.pendingElementPool.push(e))}promotePendingPooledElements(){if(this.pendingElementPool.length===0)return;let{pendingElementPool:e}=this;this.pendingElementPool=[];let t=this.getElementPoolLimit();for(let n of e)this.isElementPoolGenerationCurrent(n)&&this.isElementClean(n)&&this.elementPool.length<t?this.elementPool.push(n):this.isElementPoolGenerationCurrent(n)&&this.getElementPoolSize()<t&&this.pendingElementPool.push(n)}isElementClean(e){return e.childNodes.length===0}getElementPoolSize(){return this.elementPool.length+this.pendingElementPool.length}clearElementPool(){this.elementPool.length=0,this.pendingElementPool.length=0}invalidateElementPool(){this.elementPoolVersion++,this.clearElementPool()}markElementPoolGenerationCurrent(e){this.elementPoolTracker.set(e,this.elementPoolVersion)}isElementPoolGenerationCurrent(e){return this.elementPoolTracker.get(e)===this.elementPoolVersion}resolveEffectiveScrollBehavior(e,t){return R()?`instant`:e.behavior===`smooth-auto`?Math.abs(t-this.getScrollTop())<=this.getHeight()*10?`smooth`:`instant`:e.behavior??`instant`}scrollTo(e){if(this.root==null)return;let t=this.normalizeScrollTarget(e);if(t==null)return;let n=this.resolveScrollTargetTop(t);n!=null&&(this.primeScrollTarget(t),this.resolveEffectiveScrollBehavior(t,n)===`smooth`?this.scrollAnimation??={position:this.getScrollTop(),velocity:0,lastTimestamp:performance.now()}:this.scrollAnimation=void 0,this.suspendScrollInteractions(),this.pendingLayoutAnchor=void 0,this.pendingScrollTarget=t,this.render())}setSelectedLines(e,t){this.applySelectedLines(e,t)}getSelectedLines(){return this.selectedLines}clearSelectedLines(e){this.applySelectedLines(null,e)}getItem(e){return this.idToItem.get(e)?.item}getEditor(e){return this.itemEditors.get(e)?.editor}updateItem(e){let t=this.idToItem.get(e.id);return t==null?(console.error(`CodeView.updateItem: unknown item id "${e.id}"`),!1):this.syncItemRecord(t,e)?(this.markItemLayoutDirty(t),this.scrollDirty=!0,this.render(),this.syncItemEditors(),this.syncSelection(),!0):!1}updateItemId(e,t){if(e===t)return!0;let n=this.idToItem.get(e);if(n==null)return console.error(`CodeView.updateItemId: unknown item id "${e}"`),!1;if(this.idToItem.has(t))return console.error(`CodeView.updateItemId: duplicate item id "${t}"`),!1;this.idToItem.delete(e),n.item.id=t,this.idToItem.set(t,n),this.updateItemOptionsId(n.instance.options,t),this.selectedLines?.id===e&&(this.selectedLines={...this.selectedLines,id:t},this.options.onSelectedLinesChange?.(this.selectedLines));let r=this.itemEditors.get(e);return r!=null&&(r.state.id=t,this.itemEditors.delete(e),this.itemEditors.set(t,r),this.attachedEditors.delete(e)&&this.attachedEditors.add(t)),this.renamePendingScrollTarget(e,t),this.renamePendingLayoutAnchor(e,t),this.render(),!0}addItem(e){this.addItems([e])}addItems(e){this.appendItemsInternal(e),this.syncItemEditors(),this.syncSelection()}removeItem(e){let t=this.idToItem.get(e);if(t==null)return console.error(`CodeView.removeItem: unknown item id "${e}"`),!1;let n=[];for(let e of this.items)e!==t&&n.push(e.item);return this.setItems(n),!0}setItems(e){let t;this.items.length===0?this.appendItemsInternal(e):this.tryAppendItems(e)||(t=this.reconcileItems(e)),this.syncItemEditors(t),this.syncSelection()}appendItemsInternal(e,t=!0){if(e.length===0)return;let n=this.getLayout(),r=this.items.length===0?0:this.scrollHeight+n.gap,i=r;for(let t=0;t<e.length;t++){let i=e[t];if(i==null)throw Error(`CodeView.appendItemsInternal: missing input item`);if(this.idToItem.has(i.id))throw Error(`CodeView.addItem: duplicate id "${i.id}"`);let a=this.createItem(i,this.items.length,r);this.items.push(a),this.idToItem.set(a.item.id,a),this.instanceToItem.set(a.instance,a),a.height=ge(a),r+=a.height+n.gap}this.scrollHeight=r-n.gap,this.scrollDirty=!0,t&&(this.canSkipRenderForAppend(i)?this.syncContainerHeight():this.render())}canSkipRenderForAppend(e){return this.container!=null&&this.renderState.firstIndex!==-1&&this.pendingScrollTarget==null&&this.scrollAnimation==null&&this.layoutDirtyIndex==null&&e>this.windowSpecs.bottom}onThemeChange(){this.invalidateElementPool()}setOptions(e){if(e==null)return;this.capturePendingLayoutAnchor();let{options:t}=this,n=this.getLayout(),{itemMetricsCache:r}=this;_e(t,e)&&this.invalidateElementPool(),this.options=e;let i=this.computeMetricsCache(e.itemMetrics),a=!w(r,i),o=!w(n,this.getLayout());o&&this.syncLayout();let s=a||ve(t,e);if(s){let n=this.pendingLayoutReset;this.pendingLayoutReset={metrics:a?i:n?.metrics,resetFileLayoutCache:!0,resetDiffLayoutCache:!0,includeEstimatedDiffHeights:n?.includeEstimatedDiffHeights===!0||a||ye(t,e)}}(o||s)&&(this.markLayoutDirtyFromIndex(0),this.scrollDirty=!0),D(t,e)||this.renderOptionsRevision++,this.syncItemEditors();let c=t.renderCodeViewHeader!==e.renderCodeViewHeader||t.renderCodeViewFooter!==e.renderCodeViewFooter;!this.isContainerManaged&&(this.items.length>0||c)&&this.render()}capturePendingLayoutAnchor(e=this.idToItem){this.root==null||this.items.length===0||this.pendingScrollTarget!=null||(this.pendingLayoutAnchor=this.getScrollAnchor(this.getScrollTop(),e))}render(t=!1){e.__STOP||(t?(m(this.computeRenderRangeAndEmit),this.computeRenderRangeAndEmit()):te(this.computeRenderRangeAndEmit))}isReady(){let{workerManager:e}=this;return e==null||e.isInitialized()||e.getStats().workersFailed?(this.clearReadySubscription(),!0):(this.isReadySubscription??=e.subscribeToStatChanges(e=>{e.managerState!==`initialized`&&!e.workersFailed||(this.clearReadySubscription(),this.render(!0))}),e.getStats().managerState===`waiting`&&e.initialize().catch(()=>{}),!1)}clearReadySubscription(){this.isReadySubscription!=null&&(this.isReadySubscription(),this.isReadySubscription=void 0)}instanceChanged(e,t){let n=this.instanceToItem.get(e);if(n==null)throw Error(`CodeView.instanceChanged: An instance has changed that is not registered`);t&&this.markItemLayoutDirty(n),this.render()}getWindowSpecs(){return this.windowSpecs}getContainerElement(){return this.root}getHeaderElement(){return this.header.element}getFooterElement(){return this.footer.element}getRenderedItems(){let{firstIndex:e,lastIndex:t}=this.renderState;if(e===-1||t===-1||t<e)return[];let n=[];for(let r=e;r<=t;r++){let e=this.items[r];e?.element!=null&&(e.type===`diff`?n.push({id:e.item.id,type:`diff`,item:e.item,version:e.version,element:e.element,instance:e.instance}):n.push({id:e.item.id,type:`file`,item:e.item,version:e.version,element:e.element,instance:e.instance}))}return n}setSlotCoordinator(e){return e===this.slotCoordinator?!1:(this.slotCoordinator=e,this.slotSnapshot=void 0,!0)}getSlotSnapshot(e){return this.buildSlotSnapshot(e)}buildSlotSnapshot(e){let t=Ee(this.getRenderedItems(),e),{element:n}=this.header,{element:r}=this.footer;if(!(t==null&&n==null&&r==null))return{items:t,header:n,footer:r}}subscribeToScroll(e){return this.scrollListeners.add(e),()=>{this.scrollListeners.delete(e)}}getLocalTopForInstance(e){let t=this.instanceToItem.get(e);if(t==null)throw Error(`CodeView.getLocalTopForInstance: unknown virtualized instance`);return t.top}getTopForItem(e){let t=this.idToItem.get(e);if(t!=null)return t.top+this.getItemTopOffset()}createItem(e,t,n){let{itemMetricsCache:r}=this;if(e.type===`diff`){let i=new O(this.createDiffOptions(e.id),this,r,this.workerManager,this.isContainerManaged);return{type:`diff`,item:e,version:e.version,index:t,top:n,height:0,element:void 0,renderedOptionsRevision:this.renderOptionsRevision,instance:i}}let i=new f(this.createFileOptions(e.id),this,r,this.workerManager,this.isContainerManaged);return{type:`file`,item:e,version:e.version,index:t,top:n,height:0,element:void 0,renderedOptionsRevision:this.renderOptionsRevision,instance:i}}applySelectedLines(e,t){let{selectedLines:n}=this;e==null&&n==null||e!=null&&n?.id===e.id&&F(n.range,e.range)||(n!=null&&n.id!==e?.id&&this.idToItem.get(n.id)?.instance.setSelectedLines(null,{notify:!1}),this.selectedLines=e,this.idToItem.get(e?.id??``)?.instance.setSelectedLines(e?.range??null,t))}syncSelection(){if(this.selectedLines==null)return;let e=this.idToItem.get(this.selectedLines.id);if(e==null){this.selectedLines=null,this.options.onSelectedLinesChange?.(null);return}e.instance.setSelectedLines(this.selectedLines.range,{notify:!1})}isItemInEditMode(e){return e.item.edit===!0&&e.item.collapsed!==!0}attachItemEditor(e){let{id:t}=e.item,{createEditor:n}=this.options;if(e.element==null||this.attachedEditors.has(t)||!this.isItemInEditMode(e))return;let r=this.itemEditors.get(t),i=!1;try{if(r==null){pe(n);let e={id:t},a=n({onChange:(t,n)=>{let r=this.idToItem.get(e.id);r!=null&&(e.lastChange={item:r.item,file:t,lineAnnotations:n},this.options.onItemEditChange?.(r.item,t,n))}});if(a==null)return;r={editor:a,state:e},this.itemEditors.set(t,r),i=!0}r.editor.edit(e.instance),this.attachedEditors.add(t)}catch(n){throw i&&r!=null&&(this.itemEditors.delete(t),r.editor.cleanUp()),this.releaseRenderedItem(e),n}}syncItemEditors(e){if(this.itemEditors.size===0)return;let t=[];for(let[n,r]of this.itemEditors){let i=this.idToItem.get(n),a=e?.get(n);if(a==null&&i!=null&&this.isItemInEditMode(i))continue;r.editor.cleanUp(),this.itemEditors.delete(n),this.attachedEditors.delete(n);let{lastChange:o}=r.state,s=a==null?i?.item??o?.item:o?.item??a.item;s?.type===`diff`&&(a==null&&i!=null&&i.type===`diff`&&i.instance.completeEditSession()&&(this.markItemLayoutDirty(i),this.render()),k(s.fileDiff)),o!=null&&t.push(a!=null||i==null?o:{...o,item:i.item})}for(let{item:e,file:n,lineAnnotations:r}of t)this.options.onItemEditComplete?.(e,n,r)}renamePendingScrollTarget(e,t){let{pendingScrollTarget:n}=this;n==null||n.type===`position`||n.id!==e||(this.pendingScrollTarget={...n,id:t})}renamePendingLayoutAnchor(e,t){this.pendingLayoutAnchor?.id===e&&(this.pendingLayoutAnchor.id=t)}createFileOptionsPrototype(){let e={};for(let t of W)q(e,t,()=>this.options[t]);q(e,`stickyHeader`,()=>this.options.stickyHeaders),q(e,`collapsed`,e=>{let t=K(e);if(t!=null)return this.getItemOptions(t,`file`)?.item.collapsed});for(let t of G)this.defineItemSharedCallback(e,`file`,t);for(let t of re)this.defineItemSelectionCallback(e,`file`,t);return e}createDiffOptionsPrototype(){let e={};for(let t of U)q(e,t,()=>this.options[t]);q(e,`stickyHeader`,()=>this.options.stickyHeaders),q(e,`hunkSeparators`,()=>this.options.hunkSeparators),q(e,`collapsed`,e=>{let t=K(e);if(t!=null)return this.getItemOptions(t,`diff`)?.item.collapsed});for(let t of G)this.defineItemSharedCallback(e,`diff`,t);for(let t of re)this.defineItemSelectionCallback(e,`diff`,t);return e}createFileOptions(e){let t=Object.create(this.fileOptionsPrototype);return ae(t,{id:e}),t}createDiffOptions(e){let t=Object.create(this.diffOptionsPrototype);return ae(t,{id:e}),t}updateItemOptionsId(e,t){let n=K(e);if(n==null)throw Error(`CodeView.updateItemOptionsId: No valid state`);n.id=t}getItemOptions(e,t){let n=this.idToItem.get(e.id);if(!(n==null||n.type!==t))return n}defineItemSharedCallback(e,t,n){q(e,n,e=>{if(this.options[n]==null)return;let r=K(e);if(r==null)return;let i=r.callbackCache??={},a=i[n];return a??(a=((...e)=>{let i=this.getItemOptions(r,t);if(i==null)return;let a=this.options[n];return a?.(...e,i)}),i[n]=a),a})}defineItemSelectionCallback(e,t,n){q(e,n,e=>{let r=K(e);if(r==null)return;let i=r.callbackCache??={},a=i[n];return a??(a=(e=>{let i=this.getItemOptions(r,t);if(i==null)return;let a=e==null?null:{id:i.item.id,range:e};this.options.controlledSelection!==!0&&(e!=null||this.selectedLines?.id===i.item.id)&&this.applySelectedLines(a,{notify:!1}),this.options.onSelectedLinesChange?.(a);let o=this.options[n];return o?.(e,i)}),i[n]=a),a})}markLayoutDirtyFromIndex(e){this.layoutDirtyIndex=Math.min(this.layoutDirtyIndex??e,e)}markItemLayoutDirty(e){if(this.items[e.index]!==e)throw Error(`CodeView.markItemLayoutDirty: unknown item id "${e.item.id}"`);this.markLayoutDirtyFromIndex(e.index)}tryAppendItems(e){if(e.length<=this.items.length)return!1;for(let t=0;t<this.items.length;t++){let n=this.items[t];if(n==null)throw Error(`CodeView.tryAppendItems: missing existing item`);let r=e[t];if(r==null||n.item.id!==r.id||n.type!==r.type)return!1}for(let t=0;t<this.items.length;t++){let n=this.items[t];if(n==null)throw Error(`CodeView.tryAppendItems: missing existing item`);let r=e[t];if(r==null)throw Error(`CodeView.tryAppendItems: append candidate missing prefix item`);this.syncItemRecord(n,r)&&this.markLayoutDirtyFromIndex(t)}return this.appendItemsInternal(e.slice(this.items.length),!1),this.scrollDirty=!0,this.render(),!0}reconcileItems(e){let{items:t,idToItem:n}=this,r=new Set(t),i=[],a=new Map,o=new Map,s=new Map,c;for(let s=0;s<e.length;s++){let l=e[s];if(l==null)throw Error(`CodeView.reconcileItems: missing input item`);if(a.has(l.id))throw Error(`CodeView.setItems: duplicate id "${l.id}"`);let u=n.get(l.id),d=u!=null&&u.type===l.type?u:this.createItem(l,s,0);d.index=s,u!=null&&u.type===l.type?(r.delete(u),this.syncItemRecord(d,l)&&(c=Math.min(c??s,s))):c=Math.min(c??s,s),t[s]!==d&&(c=Math.min(c??s,s)),i.push(d),a.set(l.id,d),o.set(d.instance,d)}if(c==null){if(r.size===0)return;c=Math.max(i.length-1,0)}this.capturePendingLayoutAnchor(a);for(let e=0;e<t.length;e++){let n=t[e];if(n==null||!r.has(n))continue;s.set(n.item.id,n),this.releaseRenderedItem(n);let a=Math.max(i.length-1,0);c=Math.min(c??a,a)}return this.items=i,this.idToItem=a,this.instanceToItem=o,this.renderState.firstIndex>=i.length?this.resetRenderState():this.renderState.lastIndex>=i.length&&(this.renderState.lastIndex=i.length-1),this.markLayoutDirtyFromIndex(c),this.scrollDirty=!0,this.render(),s.size>0?s:void 0}syncItemRecord(e,t){if(e.type!==t.type)throw Error(`CodeView.syncItemRecord: type mismatch for id "${t.id}"`);return e.version===t.version?!1:(e.item=t,e.version=t.version,e.renderedOptionsRevision=-1,!0)}getMaxScrollTopForHeight(e){let{paddingBottom:t,paddingTop:n}=this.getLayout();return Math.max(n+this.header.height+e+this.footer.height+t-this.getHeight(),0)}getMaxScrollTop(){return this.getMaxScrollTopForHeight(this.getScrollHeight())}shouldRebaseScroll(){return this.getMaxScrollTop()>fe}getPagedScrollHeight(){return this.shouldRebaseScroll()?Math.min(this.getScrollHeight(),J):this.getScrollHeight()}getMaxPagedScrollTop(){return this.getMaxScrollTopForHeight(this.getPagedScrollHeight())}clampPagedScrollTop(e){let t=this.getMaxPagedScrollTop();return Math.max(0,Math.min(e,t))}clampScrollTop(e){let t=this.getMaxScrollTop();return Math.max(0,Math.min(e,t))}getMaxScrollPageOffset(){return Math.max(this.getMaxScrollTop()-this.getMaxPagedScrollTop(),0)}clampScrollPageOffset(e){let t=this.getMaxScrollPageOffset();return Math.max(0,Math.min(e,t))}resolveScrollPageWindow(e,t){let n=H(this.clampPagedScrollTop(t)),r=this.clampScrollPageOffset(e-n);return n=H(this.clampPagedScrollTop(e-r)),r=this.clampScrollPageOffset(e-n),{pagedScrollTop:n,scrollPageOffset:r}}resolvePagedScrollPosition(e){if(!this.shouldRebaseScroll())return{pagedScrollTop:this.clampPagedScrollTop(e),scrollPageOffset:0};let t=this.clampScrollPageOffset(this.scrollPageOffset),n=e-t,r=this.getMaxPagedScrollTop(),i=this.getMaxScrollPageOffset(),a=n>fe&&t<i,o=n<le&&t>0;return n<0||n>r||a||o?this.resolveScrollPageWindow(e,o?Math.min(de,r):ue):{pagedScrollTop:H(this.clampPagedScrollTop(n)),scrollPageOffset:t}}needsScrollPageUpdate(e){let t=H(this.clampScrollTop(e)),{scrollPageOffset:n}=this.resolvePagedScrollPosition(t);return n!==this.scrollPageOffset}getPagedLayoutTop(e){return this.shouldRebaseScroll()?Math.max(e-this.scrollPageOffset,0):e}getStickyHeaderOffset(){return this.options.stickyHeaders===!0&&this.options.disableFileHeader!==!0?this.itemMetricsCache.diffHeaderHeight:0}getScrollTargetRect(e){let t=this.idToItem.get(e.id);if(t==null){console.warn(`CodeView.scrollTo: unknown item id "${e.id}"`);return}if(e.type===`item`)return{top:t.top,height:t.height};if(e.type===`range`){let n=this.getRangeScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve range ${xe(e.range)} for item "${e.id}"`);return}return{top:t.top+n.top,height:n.height}}let n=this.getLineScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve line ${e.lineNumber} for item "${e.id}"`);return}return{top:t.top+n.top,height:n.height}}normalizeScrollTarget(e){if(e.type===`position`||e.align!==`nearest`)return e;let t=this.getScrollTargetRect(e);if(t==null)return;let n=e.offset??0,r=this.getItemTopOffset()+t.top,i=r+t.height,a=this.getScrollTop(),o=a+(e.type===`line`||e.type===`range`?this.getStickyHeaderOffset():0),s=a+this.getHeight();if(!(r-n<=o&&i+n>=s)){if(r-n<o)return{...e,align:`start`};if(i+n>s)return{...e,align:`end`}}}resolveScrollTargetTop(e){if(e.type===`position`){let t=this.clampScrollTop(e.position);return t===e.position?this.clampScrollTop(e.position-this.getStickyHeaderOffset()):t}let t=this.idToItem.get(e.id);if(t==null){console.warn(`CodeView.scrollTo: unknown item id "${e.id}"`);return}if(e.type===`item`)return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top,t.height,e.align,e.offset));if(e.type===`range`){let n=this.getRangeScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve range ${xe(e.range)} for item "${e.id}"`);return}return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top+n.top,n.height,e.align,e.offset,this.getStickyHeaderOffset()))}let n=this.getLineScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve line ${e.lineNumber} for item "${e.id}"`);return}return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top+n.top,n.height,e.align,e.offset,this.getStickyHeaderOffset()))}resolveAlignedScrollPosition(e,t,n,r=0,i=0){e+=this.getItemTopOffset();let a=this.getHeight();return n===`center`&&t+r<a?e-(a-t)/2+r:n===`end`?e-(a-t)+r:e-i-r}getLineScrollPosition(e,t){return e.type===`diff`?e.instance.getLinePosition(t.lineNumber,t.side):e.instance.getLinePosition(t.lineNumber)}getRangeScrollPosition(e,t){let{range:n}=t,r=this.getLineScrollPosition(e,{type:`line`,id:t.id,lineNumber:n.start,side:n.side}),i=this.getLineScrollPosition(e,{type:`line`,id:t.id,lineNumber:n.end,side:n.endSide??n.side});if(r==null||i==null)return;let a=r.top,o=a+r.height,s=i.top,c=s+i.height,l=Math.min(a,s);return{top:l,height:Math.max(o,c)-l}}computeTargetScrollTopForFrame(e,t){if(this.pendingScrollTarget==null)return e;let n=this.resolveScrollTargetTop(this.pendingScrollTarget);if(n==null)return e;let{scrollAnimation:r}=this;return r==null?n:this.computeSpringStep(r,n,t).position}computeSpringStep(e,t,n){let r=Math.max(0,n-e.lastTimestamp),{omega:i}=this.getSmoothScrollSettings(),a=Math.exp(-i*r),o=e.position-t,s=e.velocity+i*o;return{position:t+(o+s*r)*a,velocity:(s*(1-i*r)-i*o)*a}}advanceScrollAnimation(e,t){if(this.pendingScrollTarget==null)return;let n=this.resolveScrollTargetTop(this.pendingScrollTarget);if(n==null){this.pendingScrollTarget=void 0,this.scrollAnimation=void 0;return}let r=this.scrollAnimation;if(r==null)return n;r.position+=t;let{position:i,velocity:a}=this.computeSpringStep(r,n,e);r.lastTimestamp=e,r.position=i,r.velocity=a;let{positionEpsilon:o,velocityEpsilon:s}=this.getSmoothScrollSettings();return Math.abs(n-i)<=o&&Math.abs(a)<=s?(r.position=n,r.velocity=0,this.scrollAnimation=void 0,n):r.position}computeRenderRangeAndEmit=(t=performance.now())=>{if(e.__STOP||this.container==null||!this.isReady())return;let n=this.getHeight(),r=this.getScrollTop(),i=r,a=this.pendingLayoutAnchor!=null,o=this.getScrollAnchor(i);if(this.layoutDirtyIndex!=null&&(this.recomputeLayout(this.layoutDirtyIndex,this.pendingLayoutReset),this.layoutDirtyIndex=void 0,this.pendingLayoutReset=void 0,a=!0),a&&o!=null){let e=this.resolveAnchoredScrollTop(o);if(e!=null){let t=e-i;i=e,this.scrollAnimation!=null&&(this.scrollAnimation.position+=t)}}a&&(i=this.clampScrollTop(i),this.syncContainerHeight());let s=this.computeTargetScrollTopForFrame(i,t),c=!a&&(this.renderState.scrollTop===-1||Math.abs(s-this.renderState.scrollTop)>n+this.config.overscrollSize*2);c&&(o=void 0),this.windowSpecs=M({scrollTop:s-this.header.height,height:n,scrollHeight:this.getScrollHeight(),fitPerfectly:c,fitPerfectlyOverscroll:this.getFitPerfectlyOverscroll(),overscrollSize:this.config.overscrollSize});let l=r;(this.pendingScrollTarget!=null&&s!==l||this.needsScrollPageUpdate(s))&&(this.applyScrollFix(s,l,this.windowSpecs),l=s);let{top:u,bottom:d}=this.windowSpecs,{firstIndex:f,lastIndex:p}=this.renderState;if(f>=0)for(let e=f;e<=p;e++){let t=this.items[e];if(t==null)throw Error(`CodeView.computeRenderRangeAndEmit: No item at index: ${e}`);t.top>u-t.height&&t.top<=d||this.releaseRenderedItem(t)}let m=this.reconcileHeaderFooterHosts(),h,g=new Set,_=this.findFirstVisibleIndex(u),v=this.findLastVisibleIndex(d);for(let e=_;e<=v;e++){let t=this.items[e];if(t==null)throw Error(`CodeView.computeRenderRangeAndEmit: missing item`);let{instance:n}=t;t.element==null?(t.element=this.acquireElement(),we(this.stickyContainer,t.element,h),n.virtualizedSetup(),Ce(t,t.element)&&(t.renderedOptionsRevision=this.renderOptionsRevision,g.add(t)),h=t.element):(we(this.stickyContainer,t.element,h),Ce(t,void 0,t.renderedOptionsRevision!==this.renderOptionsRevision)&&(t.renderedOptionsRevision=this.renderOptionsRevision,g.add(t)),h=t.element),t.item.edit===!0&&this.attachItemEditor(t)}this.renderState.firstIndex=_<=v?_:-1,this.renderState.lastIndex=v,this.flushSlotCoordinator(),this.flushManagers(g),m&&this.measureMountedHosts(),this.reconcileRenderedItems(g),this.syncContainerHeight(),this.updateStickyPositioning();let y=o==null?void 0:this.resolveAnchoredScrollTop(o);o===this.pendingLayoutAnchor&&(this.pendingLayoutAnchor=void 0);let b=y==null?0:y-i,x=s,S=!1;if(this.pendingScrollTarget!=null){let e=this.advanceScrollAnimation(t,b);e==null?x=i:(x=e,S=!0)}else x=y??s;x!==l&&(this.applyScrollFix(x,l,this.windowSpecs),l=x),S&&this.pendingScrollTarget!=null&&this.isPendingTargetSettled(this.pendingScrollTarget)&&(this.pendingScrollTarget=void 0,this.scrollAnimation=void 0),this.renderState.scrollTop=H(l),this.updateStickyPositioning(),this.validateStickyContainerHeight(),this.fixContainerFocus(),(c||this.scrollAnimation!=null)&&this.render()};flushManagers(e){for(let t of e)t.instance.flushManagers()}syncContainerHeight(){let e=this.getPagedScrollHeight();this.container==null||this.containerHeight===e||(this.container.style.height=`${e}px`,this.containerHeight=e)}getStickyBounds(e){let{firstIndex:t,lastIndex:n}=e==null?this.renderState:{firstIndex:this.findFirstVisibleIndex(e.top),lastIndex:this.findLastVisibleIndex(e.bottom)};if(t===-1||n===-1||t>n)return;let r=this.items[t]?.instance.getAdvancedStickySpecs(e),i=this.items[n]?.instance.getAdvancedStickySpecs(e);if(!(r==null||i==null))return{stickyTop:this.getPagedLayoutTop(Math.max(r.topOffset,0)),stickyBottom:this.getPagedLayoutTop(i.topOffset+i.height)}}applyStickyPositioning({stickyTop:e,stickyBottom:t}){let n=this.getHeight(),{itemMetricsCache:r}=this,i=t-e;this.renderState.stickyHeight=i,this.renderState.stickyTop=e,this.renderState.stickyBottom=t,this.stickyOffset.style.height=`${e}px`;let a=(Math.random()*r.lineHeight>>0)*-1,o=-Math.max(i+a,0)+n;this.stickyContainer.style.top=`${o}px`,this.stickyContainer.style.bottom=`${o+r.diffHeaderHeight}px`}syncPagedScrollScaffolding(e){this.syncContainerHeight();let t=this.getStickyBounds(e);t!=null&&this.applyStickyPositioning(t)}reconcileRenderedItems(e){let{firstIndex:t,lastIndex:n}=this.renderState;if(t===-1)return;let r=-1,i=!1;for(let a=t;a<this.items.length&&!(!i&&a>n);a++){let t=this.items[a];if(t==null)throw Error(`CodeView.reconcileRenderedItems: Invalid item`);r===-1?r=t.top:t.top!==r&&(t.top=r,t.instance.syncVirtualizedTop(),i=!0),(e==null?a<=n:e.has(t))&&(t.instance.reconcileHeights()&&(i=!0,t.height=t.instance.getVirtualizedHeight()),this.validateRenderedItemHeight(t)),r+=t.instance.getVirtualizedHeight(),a<this.items.length-1&&(r+=this.getLayout().gap)}i&&r!=null&&(this.scrollDirty=!0,this.scrollHeight=r)}updateStickyPositioning(){let e=this.getStickyBounds();if(e==null){this.renderState.firstIndex===-1&&(this.stickyOffset.style.height=``);return}let{stickyTop:t,stickyBottom:n}=e;n-t===this.renderState.stickyHeight&&t===this.renderState.stickyTop&&n===this.renderState.stickyBottom||this.applyStickyPositioning(e)}handleScroll=()=>{e.__STOP||(this.suspendScrollInteractions(),this.scrollDirty=!0,this.notifyScroll(),this.render())};clearPendingScroll=()=>{this.pendingScrollTarget=void 0,this.pendingLayoutAnchor=void 0,this.scrollAnimation=void 0};handleResize=e=>{let t=!1;for(let n of e)if(n.target===this.stickyContainer){let e=n.borderBoxSize[0].blockSize;if(Math.abs(e-this.renderState.stickyHeight)>=se){let e=this.getScrollTop(),n=this.getScrollAnchor(e);this.reconcileRenderedItems(),this.updateStickyPositioning();let r=n==null?void 0:this.resolveAnchoredScrollTop(n);if(r!=null){let t=r-e;this.applyScrollFix(r,e,this.windowSpecs),this.scrollAnimation!=null&&(this.scrollAnimation.position+=t)}this.pendingScrollTarget!=null&&this.isPendingTargetSettled(this.pendingScrollTarget)&&(this.pendingScrollTarget=void 0,this.scrollAnimation=void 0),t=!0}}else if(n.target===this.header.element||n.target===this.footer.element){let e=n.target===this.header.element?this.header:this.footer,r=n.borderBoxSize[0].blockSize;if(r!==e.height){let n=this.getScrollTop(),i=this.getScrollAnchor(n);this.setHostHeight(e,r);let a=i==null?void 0:this.resolveAnchoredScrollTop(i);if(a!=null){let e=a-n;this.applyScrollFix(a,n,this.windowSpecs),this.scrollAnimation!=null&&(this.scrollAnimation.position+=e)}this.pendingScrollTarget!=null&&this.isPendingTargetSettled(this.pendingScrollTarget)&&(this.pendingScrollTarget=void 0,this.scrollAnimation=void 0),t=!0}}else this.scrollDirty=!0,this.heightDirty=!0,t=!0;t&&this.render(!0)};getScrollAnchorViewportTop(e,t){return e<t?t+this.getStickyHeaderOffset():t}getScrollAnchor(e,t=this.idToItem){let n,{pendingLayoutAnchor:r}=this;if(r!=null){let e=this.idToItem.get(r.id);if(e!=null&&t.get(r.id)===e)return r;e!=null&&(n=e)}if(e<=0)return;let{firstIndex:i,lastIndex:a,stickyTop:o,stickyBottom:s}=this.renderState;if(i===-1||a===-1)return;let c=this.getHeight();if(!(o===-1||s===-1)){for(let r=i;r<=a;r++){let i=this.items[r];if(i==null)continue;let a=this.getItemTopOffset()+i.top;if(a+i.height<=e)continue;if(a>=e+c)break;if(t.get(i.item.id)!==i){n??=i;continue}if(a>=e)return{type:`item`,id:i.item.id,viewportOffset:a-e};let o=this.getScrollAnchorViewportTop(a,e)-a,s=i.instance.getNumericScrollAnchor(o);if(s!=null){let t=a+s.top;return{type:`line`,id:i.item.id,lineNumber:s.lineNumber,side:s.side,viewportOffset:t-e}}}if(n!=null)for(let e=n.index+1;e<this.items.length;e++){let n=this.items[e];if(n!=null&&t.get(n.item.id)===n)return{type:`item`,id:n.item.id,viewportOffset:0}}}}resolveAnchoredScrollTop(e){let t=this.idToItem.get(e.id);if(t==null)return;let n=this.getItemTopOffset();if(e.type===`item`){let r=n+t.top;return this.clampScrollTop(r-e.viewportOffset)}let r=t.type===`diff`?t.instance.getLinePosition(e.lineNumber,e.side):t.instance.getLinePosition(e.lineNumber);if(r==null)return;let i=n+t.top+r.top;return this.clampScrollTop(i-e.viewportOffset)}applyScrollFix(e,t,n){if(this.root==null)return;let r=H(this.clampScrollTop(e)),i=H(t),{scrollPageOffset:a}=this,o=H(this.clampPagedScrollTop(i-a)),{pagedScrollTop:s,scrollPageOffset:c}=this.resolvePagedScrollPosition(r),l=s,u=a!==c;r===this.renderState.scrollTop&&r===i&&l===o&&!u||(this.suspendScrollInteractions(),(l!==o||u)&&(this.scrollPageOffset=c,this.syncPagedScrollScaffolding(n)),l!==o&&this.root.scrollTo({top:l,behavior:`instant`}),this.renderState.scrollTop=r,this.scrollTop=r,this.scrollDirty=!1)}isPendingTargetSettled(e){let t=this.resolveScrollTargetTop(e);return t==null?!0:H(this.getScrollTop())===H(t)}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let e=this.root?.scrollTop??0;return this.scrollTop=this.clampScrollTop(e+this.scrollPageOffset),this.scrollTop}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root?.getBoundingClientRect().height??0,this.height):this.height}getScrollHeight(){return this.scrollHeight}flushSlotCoordinator(){if(this.slotCoordinator==null)return;let e=this.buildSlotSnapshot(this.slotCoordinator);z(this.slotSnapshot,e)||(this.slotSnapshot=e,this.slotCoordinator.onSnapshotChange(e))}notifyScroll(){if(this.scrollListeners.size===0)return;let e=this.getScrollTop();for(let t of this.scrollListeners)t(e,this)}findFirstVisibleIndex(e){let t=0,n=this.items.length-1,r=this.items.length;for(;t<=n;){let i=t+n>>1,a=this.items[i];if(a==null)throw Error(`CodeView.findFirstVisibleIndex: invalid item index`);a.top+a.height>e?(r=i,n=i-1):t=i+1}return r}findLastVisibleIndex(e){let t=0,n=this.items.length-1,r=-1;for(;t<=n;){let i=t+n>>1,a=this.items[i];if(a==null)throw Error(`CodeView.findLastVisibleIndex: invalid item index`);a.top<=e?(r=i,t=i+1):n=i-1}return r}recomputeLayout(e=0,t){if(this.items.length===0){this.scrollHeight=0;return}let n=this.getLayout(),r=0;if(e>0){let t=this.items[e-1];if(t==null)throw Error(`CodeView.recomputeLayout: invalid dirty index`);r=t.top+t.height+n.gap}for(let i=e;i<this.items.length;i++){let e=this.items[i];if(e==null)throw Error(`CodeView.recomputeLayout: invalid item index`);if(e.top=r,e.type===`diff`){let n=e.instance.consumeCodeViewLayoutChanges(e.item.fileDiff);n!=null&&Object.assign(e.item.fileDiff,n),e.height=e.instance.prepareCodeViewItem(e.item.fileDiff,r,t,e.item.annotations??[])}else e.height=e.instance.prepareCodeViewItem(e.item.file,r,t,e.item.annotations??[]);r+=e.height,i<this.items.length-1&&(r+=n.gap)}r!==this.scrollHeight&&(this.scrollDirty=!0),this.scrollHeight=r}resetRenderState(){this.renderState.scrollTop=-1,this.renderState.firstIndex=-1,this.renderState.lastIndex=-1,this.renderState.stickyHeight=0,this.renderState.stickyTop=-1,this.renderState.stickyBottom=-1}getFitPerfectlyOverscroll(){return this.getLayout().gap+this.itemMetricsCache.diffHeaderHeight}};function ge(e){return e.instance.cleanUp(!0),e.type===`diff`?e.instance.prepareCodeViewItem(e.item.fileDiff,e.top,void 0,e.item.annotations??[]):e.instance.prepareCodeViewItem(e.item.file,e.top,void 0,e.item.annotations??[])}function _e(e,t){return!N(e.theme??y,t.theme??y)||(e.themeType??`system`)!==(t.themeType??`system`)||e.unsafeCSS!==t.unsafeCSS}function ve(e,t){return(e.overflow??`scroll`)!==(t.overflow??`scroll`)||(e.disableLineNumbers??!1)!==(t.disableLineNumbers??!1)||(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||e.unsafeCSS!==t.unsafeCSS||(e.diffStyle??`split`)!==(t.diffStyle??`split`)||(e.diffIndicators??`bars`)!==(t.diffIndicators??`bars`)||(e.hunkSeparators??`line-info`)!==(t.hunkSeparators??`line-info`)||(e.expandUnchanged??!1)!==(t.expandUnchanged??!1)||(e.collapsedContextThreshold??1)!==(t.collapsedContextThreshold??1)}function ye(e,t){return(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||(e.hunkSeparators??`line-info`)!==(t.hunkSeparators??`line-info`)||(e.expandUnchanged??!1)!==(t.expandUnchanged??!1)||(e.collapsedContextThreshold??1)!==(t.collapsedContextThreshold??1)}function be(e){return e instanceof SVGElement?!0:P(e)&&(e.hasAttribute(`data-core-css`)||e.hasAttribute(`data-theme-css`)||e.hasAttribute(`data-unsafe-css`))}function xe(e){let t=Se(e.start,e.side),n=Se(e.end,e.endSide??e.side);return t===n?t:`${t}-${n}`}function Se(e,t){return t==null?`${e}`:`${t===`deletions`?`D`:`A`}${e}`}function Ce(e,t,n=!1){return e.type===`diff`?e.instance.render({deferManagers:!0,fileContainer:t,fileDiff:e.item.fileDiff,forceRender:n,lineAnnotations:e.item.annotations??[]}):e.instance.render({deferManagers:!0,fileContainer:t,file:e.item.file,forceRender:n,lineAnnotations:e.item.annotations??[]})}function we(e,t,n){if(n==null){e.firstChild!==t&&e.prepend(t);return}n.nextSibling!==t&&n.after(t)}function Te(e){return(e.annotations?.length??0)>0}function Ee(e,{hasHeaderRenderers:t,hasAnnotationRenderer:n,hasGutterRenderer:r}){if(e.length===0)return;if(t||r)return e;if(!n)return;let i=[];for(let t of e)Te(t.item)&&i.push(t);return i.length>0?i:void 0}var Y=e(r(),1),X=e(t(),1),Z=n(),De=typeof window>`u`?Y.useEffect:Y.useLayoutEffect;function Oe(e){return{instance:void 0,items:void 0,controlled:e,managedOptions:void 0,disableFlushSync:!1,slotCoordinator:void 0}}function ke(e,t){let{className:n,containerRef:r,disableWorkerPool:i=!1,editorOptions:a,initialItems:o,items:s,onItemEditChange:c,onItemEditComplete:l,onScroll:u,onSelectedLinesChange:d,options:f,renderAnnotation:p,renderCodeViewFooter:m,renderCodeViewHeader:_,renderCustomHeader:v,renderGutterUtility:y,renderHeaderFilenameSuffix:b,renderHeaderMetadata:x,renderHeaderPrefix:S,selectedLines:C,style:w}=e,T=s!==void 0,E=g(),ee=(0,Y.useContext)(ne),O=(0,Y.useRef)(Oe(T)),k=v!=null,A=p!=null,j=y!=null,M=k||S!=null||b!=null||x!=null,te=M||A||j,N=_!=null,P=m!=null,F=h(e=>{d?.(e)}),I=C!==void 0,L=h(e=>{if(E==null)throw Error(`CodeView: EditContext is not attached`);let t=E({...a,...e});if(t==null)throw Error(`CodeView: EditProvider.createEditor must return an editor instance`);return t}),R=h((e,t,n)=>{c?.(e,t,n)}),z=h((e,t,n)=>{l?.(e,t,n)}),B=(0,Y.useMemo)(()=>Pe({options:f,hasCustomHeader:k,hasGutterRenderer:j,hasCodeViewHeader:N,hasCodeViewFooter:P,onSelectedLinesChange:d==null?void 0:F,controlledSelection:I,createEditor:E==null?void 0:L,onItemEditChange:c==null?void 0:R,onItemEditComplete:l==null?void 0:z}),[E,I,L,R,z,F,P,N,k,j,c,l,d,f]),[V]=(0,Y.useState)(()=>Ne()),[,H]=(0,Y.useState)({}),U=h(e=>{O.current.instance!=null&&(e==null||e!==O.current.instance.getContainerElement())&&(O.current.instance.cleanUp(),V.publish(void 0),O.current=Oe(T)),e!=null&&e!==O.current.instance?.getContainerElement()&&(O.current.instance=new he(B,i?void 0:ee,!0),O.current.instance.setup(e)),typeof r==`function`?r(e):r!=null&&(r.current=e)}),W=h(e=>{O.current.disableFlushSync?V.publish(e):(0,X.flushSync)(()=>{V.publish(e)})}),G=(0,Y.useMemo)(()=>{if(!(!M&&!A&&!j&&!N&&!P))return{hasHeaderRenderers:M,hasAnnotationRenderer:A,hasGutterRenderer:j,onSnapshotChange:W}},[W,A,j,M,N,P]);return De(()=>u==null?void 0:O.current.instance?.subscribeToScroll(u)),De(()=>{let{instance:e,controlled:t,items:n,managedOptions:r,slotCoordinator:i}=O.current;if(e!=null)try{O.current.disableFlushSync=!0;let a=!1;if(D(B,r)||(O.current.managedOptions=B,e.setOptions(B),a=!0),t!==T){console.error(`CodeView: cannot switch between controlled and uncontrolled modes. Remount with a new key instead.`);return}if(T)s!==n&&(Me(n,s)?O.current.items=s:je(n,s)?(O.current.items=s,e.addItems(s.slice(n.length))):(O.current.items=s,e.setItems(s),a=!0));else if(n==null){let t=o??[];O.current.items=t,t.length>0&&(e.setItems(t),a=!0)}C!==void 0&&e.setSelectedLines(C,{notify:!1});let c=e.setSlotCoordinator(G),l=!1;G!==i&&((G==null||i==null)&&(l=!0),O.current.slotCoordinator=G),(a||c)&&e.render(!0),c&&G==null&&V.publish(void 0),l&&H({})}finally{O.current.disableFlushSync=!1}}),(0,Y.useImperativeHandle)(t,()=>({addItems(e){let{controlled:t,instance:n}=O.current;Q(t,`addItems`),n==null?console.error(`CodeView.addItems: no valid instance to append items with`,e):n.addItems(e)},getItem(e){let{instance:t}=O.current;if(t==null){console.error(`CodeView.getItem: no valid instance exists`,e);return}else return t.getItem(e)},removeItem(e){let{controlled:t,instance:n}=O.current;return Q(t,`removeItem`),n==null?(console.error(`CodeView.removeItem: no valid instance to remove item from`,e),!1):n.removeItem(e)},updateItem(e){let{controlled:t,instance:n}=O.current;return Q(t,`updateItem`),n==null?(console.error(`CodeView.updateItem: no valid instance to update item with`,e),!1):n.updateItem(e)},updateItemId(e,t){let{controlled:n,instance:r}=O.current;return Q(n,`updateItemId`),r==null?(console.error(`CodeView.updateItemId: no valid instance to update item id with`,e,t),!1):r.updateItemId(e,t)},scrollTo(e){let{instance:t}=O.current;t==null?console.error(`CodeView.scrollTo: no valid instance to scroll with`,e):t.scrollTo(e)},setSelectedLines(e){let{instance:t}=O.current;t==null?console.error(`CodeView.setSelectedLines: no valid instance to update selection with`,e):(t.setSelectedLines(e,{notify:!1}),F(e))},getSelectedLines(){let{instance:e}=O.current;return e==null?(console.error(`CodeView.getSelectedLines: no valid instance exists`),null):e.getSelectedLines()},clearSelectedLines(){let{instance:e}=O.current;e==null?console.error(`CodeView.clearSelectedLines: no valid instance to update selection with`):(e.clearSelectedLines({notify:!1}),F(null))},getEditor(e){let{instance:t}=O.current;if(t==null){console.error(`CodeView.getEditor: no valid instance exists`,e);return}return t.getEditor(e)},getInstance(){return O.current.instance}}),[F]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:U,className:n,style:w}),(te||N||P)&&(0,Z.jsx)(Fe,{managedContentStore:V,renderCustomHeader:v,renderHeaderPrefix:S,renderHeaderFilenameSuffix:b,renderHeaderMetadata:x,renderAnnotation:p,renderGutterUtility:y,renderCodeViewHeader:_,renderCodeViewFooter:m})]})}var Ae=(0,Y.forwardRef)(ke);function je(e,t){if(e==null||t.length<=e.length)return!1;if(e.length===0)return!0;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Me(e,t){if(e==null||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Q(e,t){if(e)throw Error(`CodeView.${t} cannot be used when CodeView is controlled. Use initialItems for imperative item updates.`)}function Ne(){let e,t=new Set;return{getSnapshot(){return e},publish(n){if(!z(e,n)){e=n;for(let e of t)e()}},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}function Pe({options:e,hasCustomHeader:t,hasGutterRenderer:n,hasCodeViewHeader:r,hasCodeViewFooter:i,onSelectedLinesChange:a,controlledSelection:o,createEditor:s,onItemEditChange:c,onItemEditComplete:l}){let u={...e,controlledSelection:o,onSelectedLinesChange:a,createEditor:s};return c!=null&&(u.onItemEditChange=c),l!=null&&(u.onItemEditComplete=l),t&&(u.renderCustomHeader=$),n&&(u.renderGutterUtility=$),r&&(u.renderCodeViewHeader=$),i&&(u.renderCodeViewFooter=$),u}var Fe=(0,Y.memo)(function({managedContentStore:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o,renderCodeViewHeader:s,renderCodeViewFooter:c}){"use no memo";let l=h(t=>e.subscribe(t)),u=h(()=>e.getSnapshot()),d=(0,Y.useSyncExternalStore)(l,u,u),f=``;for(let e of d?.items??[])f+=`${e.id}:${e.version}:${e.type}`;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Y.useMemo)(()=>d?.items?.map(e=>(0,X.createPortal)(Ie({renderedItem:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o}),e.element,e.id)),[t,n,r,i,a,o,f]),(0,Y.useMemo)(()=>s!=null&&d?.header!=null?(0,X.createPortal)(s(),d.header):null,[s,d?.header]),(0,Y.useMemo)(()=>c!=null&&d?.footer!=null?(0,X.createPortal)(c(),d.footer):null,[c,d?.footer])]})});function Ie({renderedItem:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o}){if(e.type===`diff`){let{item:s,instance:c}=e;return C({fileDiff:s.fileDiff,renderCustomHeader:t==null?void 0:()=>t(s),renderHeaderPrefix:n==null?void 0:()=>n(s),renderHeaderFilenameSuffix:r==null?void 0:()=>r(s),renderHeaderMetadata:i==null?void 0:()=>i(s),renderAnnotation:a==null?void 0:e=>a(e,s),lineAnnotations:s.annotations,renderGutterUtility:o==null?void 0:e=>o(e,s),getHoveredLine:c.getHoveredLine})}else{let{item:s,instance:c}=e;return p({file:s.file,renderCustomHeader:t==null?void 0:()=>t(s),renderHeaderPrefix:n==null?void 0:()=>n(s),renderHeaderFilenameSuffix:r==null?void 0:()=>r(s),renderHeaderMetadata:i==null?void 0:()=>i(s),renderAnnotation:a==null?void 0:e=>a(e,s),lineAnnotations:s.annotations,renderGutterUtility:o==null?void 0:e=>o(e,s),getHoveredLine:c.getHoveredLine})}}function $(){}function Le(e,t){return e.length>0&&e.every(e=>t.has(e))}function Re(e,t){return Le(e,t)?new Set:new Set(e)}var ze=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),Be={multiple(e){return e?{[ze.multiple]:``}:null}},Ve=Y.forwardRef(function(e,t){let{defaultValue:n,disabled:r=!1,loopFocus:i=!0,onValueChange:a,orientation:s=`horizontal`,multiple:f=!1,value:p,className:m,render:h,style:g,..._}=e,v=c(!0),y=Y.useMemo(()=>p!==void 0||n!==void 0,[p,n]),b=(v?.disabled??!1)||r,[x,C]=d({controlled:p,default:p===void 0?n??l:void 0,name:`ToggleGroup`,state:`value`}),w=o((e,t,n)=>{let r;f?(r=x.slice(),t?r.push(e):r.splice(x.indexOf(e),1)):r=t?[e]:[],a?.(r,n),!n.isCanceled&&C(r)}),T={disabled:b,multiple:f,orientation:s},E=Y.useMemo(()=>({disabled:b,orientation:s,setGroupValue:w,value:x,isValueInitialized:y}),[b,s,w,x,y]),D={role:`group`},O=u(`div`,e,{enabled:!!v,state:T,ref:t,props:[D,_],stateAttributesMapping:Be});return(0,Z.jsx)(S.Provider,{value:E,children:v?O:(0,Z.jsx)(ee,{render:h,className:m,style:g,state:T,refs:[t],props:[D,_],stateAttributesMapping:Be,loopFocus:i,enableHomeAndEndKeys:!0,orientation:s})})}),He=i(),Ue=Y.createContext({size:`default`,variant:`default`});function We(e){let t=(0,He.c)(24),n,r,i,a,o,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6]):({className:r,variant:a,size:o,orientation:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c);let l=a===void 0?`default`:a,u=o===void 0?`default`:o,d=c===void 0?`horizontal`:c,f;t[7]!==u||t[8]!==l?(f={size:u,variant:l},t[7]=u,t[8]=l,t[9]=f):f=t[9];let p=f,m=d===`horizontal`?`*:pointer-coarse:after:min-w-auto`:`*:pointer-coarse:after:min-h-auto`,h=l==="default"?`gap-0.5`:d===`horizontal`?`*:not-first:not-data-[slot=separator]:before:-start-[0.5px] *:not-last:not-data-[slot=separator]:before:-end-[0.5px] *:not-first:rounded-s-none *:not-last:rounded-e-none *:not-first:border-s-0 *:not-last:border-e-0 *:not-first:before:rounded-s-none *:not-last:before:rounded-e-none`:`*:not-first:not-data-[slot=separator]:before:-top-[0.5px] *:not-last:not-data-[slot=separator]:before:-bottom-[0.5px] flex-col *:not-first:rounded-t-none *:not-last:rounded-b-none *:not-first:border-t-0 *:not-last:border-b-0 *:not-first:before:rounded-t-none *:not-last:before:rounded-b-none *:data-[slot=toggle]:not-last:before:hidden dark:*:last:before:hidden dark:*:first:before:block`,g;t[10]!==r||t[11]!==m||t[12]!==h?(g=s(`flex w-fit *:focus-visible:z-10 dark:*:[[data-slot=separator]:has(+[data-slot=toggle]:hover)]:before:bg-input/64 dark:*:[[data-slot=separator]:has(+[data-slot=toggle][data-pressed])]:before:bg-input dark:*:[[data-slot=toggle]:hover+[data-slot=separator]]:before:bg-input/64 dark:*:[[data-slot=toggle][data-pressed]+[data-slot=separator]]:before:bg-input`,m,h,r),t[10]=r,t[11]=m,t[12]=h,t[13]=g):g=t[13];let _;t[14]!==n||t[15]!==p?(_=(0,Z.jsx)(Ue,{value:p,children:n}),t[14]=n,t[15]=p,t[16]=_):_=t[16];let v;return t[17]!==d||t[18]!==i||t[19]!==u||t[20]!==g||t[21]!==_||t[22]!==l?(v=(0,Z.jsx)(Ve,{className:g,"data-size":u,"data-slot":`toggle-group`,"data-variant":l,orientation:d,...i,children:_}),t[17]=d,t[18]=i,t[19]=u,t[20]=g,t[21]=_,t[22]=l,t[23]=v):v=t[23],v}function Ge(e){let t=(0,He.c)(12),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,variant:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=Y.use(Ue),c=o??s.variant,l=a??s.size,u;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==l||t[10]!==c?(u=(0,Z.jsx)(E,{className:r,"data-size":l,"data-variant":c,size:l,variant:c,...i,children:n}),t[6]=n,t[7]=r,t[8]=i,t[9]=l,t[10]=c,t[11]=u):u=t[11],u}export{Ae as a,Re as i,We as n,L as o,Le as r,I as s,Ge as t};
|
|
2
|
-
//# sourceMappingURL=toggle-group-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{r as t}from"./preload-helper-CEhsl8MR.js";import{n,r,t as i}from"./compiler-runtime-CLAvuQ-D.js";import{$c as a,$s as o,Fa as s,No as c,Pc as l,jc as u,nc as d}from"./previewAssetResource-C5xnyEPa.js";import{n as f,t as p}from"./renderFileChildren-BAVORNFa.js";import{Cn as m,D as h,E as g,En as _,Fn as v,Mn as y,On as b,Pn as x,Q as S,S as C,Sn as w,Tn as T,Z as E,ar as ee,bn as D,dt as O,ft as k,jn as A,kn as j,vn as M,wn as te,x as ne,xn as N,xt as P,yn as F}from"./index-C8yvRYYJ.js";var I=a(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),L=a(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]);function R(){return typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function z(e,t){return e==null||t==null?e===t:e.header!==t.header||e.footer!==t.footer?!1:B(e.items,t.items)}function B(e,t){if(e==null||t==null)return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r==null||i==null||r.id!==i.id||r.type!==i.type||r.element!==i.element||r.instance!==i.instance||r.version!==i.version)return!1}return!0}function V(e,t,n){let r=document.createElement(`div`);return r.style.display=`flow-root`,e===`header`?(r.setAttribute(_,``),t.before(r)):(r.setAttribute(T,``),t.after(r)),n?.observe(r),r}function H(e){let t=window.devicePixelRatio??1;return Math.round(e*t)/t}var U=`theme.disableLineNumbers.overflow.themeType.disableFileHeader.disableVirtualizationBuffers.preferredHighlighter.useCSSClasses.useTokenTransformer.tokenizeMaxLineLength.tokenizeMaxLength.unsafeCSS.diffStyle.diffIndicators.disableBackground.expandUnchanged.loadDiffFiles.collapsedContextThreshold.lineDiffType.maxLineDiffLength.expansionLineCount.lineHoverHighlight.enableTokenInteractionsOnWhitespace.enableGutterUtility.__debugPointerEvents.enableLineSelection.controlledSelection.disableErrorHandling`.split(`.`),W=[`theme`,`disableLineNumbers`,`overflow`,`themeType`,`disableFileHeader`,`disableVirtualizationBuffers`,`preferredHighlighter`,`useCSSClasses`,`useTokenTransformer`,`tokenizeMaxLineLength`,`tokenizeMaxLength`,`unsafeCSS`,`lineHoverHighlight`,`enableTokenInteractionsOnWhitespace`,`enableGutterUtility`,`__debugPointerEvents`,`enableLineSelection`,`controlledSelection`,`disableErrorHandling`],G=[`renderCustomHeader`,`renderHeaderPrefix`,`renderHeaderFilenameSuffix`,`renderHeaderMetadata`,`renderAnnotation`,`renderGutterUtility`,`onPostRender`,`onGutterUtilityClick`,`onLineClick`,`onLineNumberClick`,`onLineEnter`,`onLineLeave`,`onTokenClick`,`onTokenEnter`,`onTokenLeave`],re=[`onLineSelected`,`onLineSelectionStart`,`onLineSelectionChange`,`onLineSelectionEnd`],ie=Symbol(`CodeView.itemOptionsState`);function ae(e,t){Object.defineProperty(e,ie,{configurable:!1,enumerable:!1,value:t})}function K(e){return e[ie]}function q(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get(){return n(this)}})}var oe=120,se=1,ce=`--diffs-overflow-override`,J=12e6,le=1e6,ue=2e6,de=J-ue,fe=J-le;function pe(e){if(e==null)throw Error(`CodeView: createEditor is required for items with edit: true`)}var me=(()=>{let{navigator:e}=globalThis,t=e.userAgent,n=/iP(?:hone|ad|od)/.test(t),r=e.platform===`MacIntel`&&e.maxTouchPoints>1;return(n||r)&&/AppleWebKit/.test(t)&&/Safari/.test(t)&&!/(CriOS|FxiOS|EdgiOS|OPiOS)/.test(t)})(),he=class e{static __STOP=!1;static __lastScrollPosition=0;type=`advanced`;config={overscrollSize:200,intersectionObserverMargin:0,resizeDebugging:!1};items=[];idToItem=new Map;selectedLines=null;itemEditors=new Map;attachedEditors=new Set;instanceToItem=new Map;layoutDirtyIndex;pendingLayoutReset;renderOptionsRevision=0;slotCoordinator;slotSnapshot;scrollListeners=new Set;scrollHeight=0;containerHeight=-1;scrollTop=0;scrollPageOffset=0;scrollDirty=!0;scrollInteractionFixTimer;pointerEventsDisabled=!1;codeOverflowFix=!1;height=0;heightDirty=!0;windowSpecs={top:0,bottom:0};renderState={scrollTop:-1,firstIndex:-1,lastIndex:-1,stickyHeight:0,stickyTop:-1,stickyBottom:-1};itemMetricsCache=b;fileOptionsPrototype;diffOptionsPrototype;pendingScrollTarget;pendingLayoutAnchor;shouldFixContainerFocus=!1;scrollAnimation;root;resizeObserver;container=document.createElement(`div`);stickyContainer=document.createElement(`div`);stickyOffset=document.createElement(`div`);header={element:void 0,render:void 0,height:0};footer={element:void 0,render:void 0,height:0};elementPool=[];elementPoolVersion=0;elementPoolTracker=new WeakMap;pendingElementPool=[];options;workerManager;isReadySubscription;isContainerManaged;constructor(e={theme:y},t,n=!1){this.options=e,this.computeMetricsCache(e.itemMetrics),this.fileOptionsPrototype=this.createFileOptionsPrototype(),this.diffOptionsPrototype=this.createDiffOptionsPrototype(),this.workerManager=t,this.isContainerManaged=n,this.stickyOffset.style.contain=`layout size`,this.stickyContainer.style.position=`sticky`,this.stickyContainer.style.width=`100%`,this.stickyContainer.style.contain=`layout style inline-size`,this.stickyContainer.style.isolation=`isolate`,this.stickyContainer.style.display=`flex`,this.stickyContainer.style.flexDirection=`column`}getLayout(){return this.options.layout??j}getItemTopOffset(){return this.getLayout().paddingTop+this.header.height}computeMetricsCache(e){return this.itemMetricsCache={hunkLineCount:e?.hunkLineCount??b.hunkLineCount,lineHeight:e?.lineHeight??b.lineHeight,diffHeaderHeight:e?.diffHeaderHeight??b.diffHeaderHeight,hunkSeparatorHeight:e?.hunkSeparatorHeight,spacing:e?.spacing??b.spacing,paddingTop:e?.paddingTop,paddingBottom:e?.paddingBottom},this.itemMetricsCache}getSmoothScrollSettings(){return this.options.smoothScrollSettings??A}shouldDisablePointerEvents(){return this.options.pointerEventsOnScroll!==!0}shouldValidateItemHeights(){return x&&this.options.__devOnlyValidateItemHeights===!0}validateRenderedItemHeight(e){if(!this.shouldValidateItemHeights()||e.element==null)return;let t=e.instance.getAdvancedStickySpecs();if(t==null)return;let n=t.height,r=e.element.getBoundingClientRect().height;n!==r&&console.error(`CodeView: reconciled item height does not match DOM height`,{id:e.item.id,type:e.type,index:e.index,version:e.version,expectedHeight:n,actualHeight:r,delta:r-n,stickyTopOffset:t.topOffset,virtualizedHeight:e.instance.getVirtualizedHeight(),top:e.top,scrollTop:this.getScrollTop(),windowSpecs:{...this.windowSpecs},element:e.element,instance:e.instance})}validateStickyContainerHeight(){if(!this.shouldValidateItemHeights())return;let{firstIndex:e,lastIndex:t,stickyHeight:n,stickyTop:r,stickyBottom:i}=this.renderState;if(e===-1||t===-1)return;let a=this.stickyContainer.getBoundingClientRect().height;Math.abs(a-n)<se||console.error(`CodeView: sticky container height does not match computed layout`,{computedStickyHeight:n,actualStickyHeight:a,delta:a-n,stickyTop:r,stickyBottom:i,firstIndex:e,lastIndex:t,firstStickySpecs:this.items[e]?.instance.getAdvancedStickySpecs(),lastStickySpecs:this.items[t]?.instance.getAdvancedStickySpecs(),scrollTop:this.getScrollTop(),scrollPageOffset:this.scrollPageOffset,windowSpecs:{...this.windowSpecs},stickyContainer:this.stickyContainer})}clearScrollInteractionTimer(){this.scrollInteractionFixTimer!=null&&(clearTimeout(this.scrollInteractionFixTimer),this.scrollInteractionFixTimer=void 0)}suspendScrollInteractions(){this.clearScrollInteractionTimer(),this.shouldDisablePointerEvents()&&!this.pointerEventsDisabled&&(this.stickyContainer.style.pointerEvents=`none`,this.pointerEventsDisabled=!0),me&&!this.codeOverflowFix&&(this.stickyContainer.style.setProperty(ce,`hidden`),this.codeOverflowFix=!0),this.scrollInteractionFixTimer=setTimeout(this.restoreScrollInteractions,oe)}restoreScrollInteractions=()=>{this.clearScrollInteractionTimer(),this.pointerEventsDisabled&&=(this.stickyContainer.style.removeProperty(`pointer-events`),!1),this.codeOverflowFix&&=(this.stickyContainer.style.setProperty(ce,`auto`),!1)};syncLayout(){let{gap:e,paddingBottom:t,paddingTop:n}=this.getLayout();this.stickyContainer.style.gap=`${e}px`,this.container?.style.setProperty(`margin-top`,`${n}px`),this.container?.style.setProperty(`margin-bottom`,`${t}px`)}reconcileHeaderFooterHosts(){let e=this.reconcileHost(`header`),t=this.reconcileHost(`footer`);return e||t}reconcileHost(e){let{root:t,container:n}=this;if(t==null||n==null)return!1;let r=e===`header`?this.header:this.footer,i=e===`header`?this.options.renderCodeViewHeader:this.options.renderCodeViewFooter;if(i==null)return r.element==null?!1:(this.resizeObserver?.unobserve(r.element),r.element.remove(),r.element=void 0,r.render=void 0,this.setHostHeight(r,0),!1);if(r.element!=null&&i===r.render)return!1;let a=r.element??V(e,n,this.resizeObserver);r.element=a;let o=i();return o==null?!this.isContainerManaged&&a.children.length>0&&(a.textContent=``):a.replaceChildren(o),r.render=i,!0}setHostHeight(e,t){e.height!==t&&(e.height=t,this.scrollDirty=!0)}measureMountedHosts(){this.header.element!=null&&this.setHostHeight(this.header,this.header.element.getBoundingClientRect().height),this.footer.element!=null&&this.setHostHeight(this.footer,this.footer.element.getBoundingClientRect().height)}setup(t){if(this.root!=null)throw Error(`CodeView.setup: already setup`);this.workerManager?.subscribeToThemeChanges(this),this.root=t,this.root.style.overflowAnchor=`none`,this.root.hasAttribute(`tabindex`)||(this.root.tabIndex=-1),this.container??=document.createElement(`div`),this.container.style.contain=`layout style`,this.syncLayout(),this.container.appendChild(this.stickyOffset),this.container.appendChild(this.stickyContainer),this.root.appendChild(this.container),this.scrollDirty=!0,this.heightDirty=!0,this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.stickyContainer),this.root.addEventListener(`scroll`,this.handleScroll,{passive:!0}),this.root.addEventListener(`wheel`,this.clearPendingScroll,{passive:!0}),this.root.addEventListener(`touchstart`,this.clearPendingScroll,{passive:!0}),this.root.addEventListener(`pointerdown`,this.clearPendingScroll,{passive:!0}),this.root.addEventListener(`keydown`,this.clearPendingScroll,{passive:!0}),this.resizeObserver.observe(this.root),this.render(!0),window.__INSTANCE=this,window.__TOGGLE=()=>{e.__STOP?(e.__STOP=!1,this.scrollTo({type:`position`,position:e.__lastScrollPosition,behavior:`instant`})):(e.__lastScrollPosition=this.getScrollTop(),e.__STOP=!0)}}reset(){m(this.computeRenderRangeAndEmit),this.clearReadySubscription(),this.restoreScrollInteractions(),this.cleanAllRenderedItems();for(let e of this.itemEditors.values())e.editor.cleanUp();this.itemEditors.clear(),this.attachedEditors.clear(),this.selectedLines=null,this.items.length=0,this.idToItem.clear(),this.instanceToItem.clear(),this.layoutDirtyIndex=void 0,this.pendingLayoutReset=void 0,this.stickyContainer.textContent=``,this.stickyOffset.style.height=``,this.container?.style.removeProperty(`height`),this.containerHeight=-1,this.windowSpecs={top:0,bottom:0},this.pendingLayoutAnchor=void 0,this.shouldFixContainerFocus=!1,this.height=0,this.scrollTop=0,this.scrollPageOffset=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.resetRenderState(),this.isContainerManaged||this.flushSlotCoordinator()}cleanUp(){this.reset(),this.clearElementPool(),this.restoreScrollInteractions(),this.workerManager?.unsubscribeToThemeChanges(this),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.root?.removeEventListener(`scroll`,this.handleScroll),this.root?.removeEventListener(`wheel`,this.clearPendingScroll),this.root?.removeEventListener(`touchstart`,this.clearPendingScroll),this.root?.removeEventListener(`pointerdown`,this.clearPendingScroll),this.root?.removeEventListener(`keydown`,this.clearPendingScroll),this.root?.style.removeProperty(`overflow-anchor`),this.container?.remove(),this.stickyOffset.remove(),this.stickyContainer.remove(),this.stickyContainer.textContent=``,this.header.element?.remove(),this.header.element=void 0,this.header.render=void 0,this.header.height=0,this.footer.element?.remove(),this.footer.element=void 0,this.footer.render=void 0,this.footer.height=0,this.root=void 0,this.container=void 0}cleanAllRenderedItems(){if(this.renderState.firstIndex!==-1)for(let e=this.renderState.firstIndex;e<=this.renderState.lastIndex;e++){let t=this.items[e];if(t==null)throw Error(`CodeView.cleanAllRenderedItems: Item does not exist at index: ${e}`);this.releaseRenderedItem(t)}}primeScrollTarget(e){e.type!==`position`&&this.idToItem.get(e.id)?.instance.primeHighlightCache()}getElementPoolLimit(){let e=this.getHeight()+this.config.overscrollSize*2,{diffHeaderHeight:t}=this.itemMetricsCache;return Math.max(8,Math.ceil(e/Math.max(t,10))+1)*(this.isContainerManaged?2:1)}acquireElement(){this.promotePendingPooledElements();let e=this.elementPool.pop();for(;e!=null&&!this.isElementPoolGenerationCurrent(e);)e=this.elementPool.pop();return e??=document.createElement(v),this.markElementPoolGenerationCurrent(e),e}releaseRenderedItem(e){let{element:t}=e;t!=null&&this.renderedItemOwnsFocus(t)&&(this.shouldFixContainerFocus=!0),e.instance.cleanUp(!0),this.attachedEditors.delete(e.item.id),e.element=void 0,t!=null&&(t.remove(),this.cleanElement(t),this.queueElementForPool(t))}renderedItemOwnsFocus(e){let{activeElement:t}=document;return t===e||e.contains(t)||e.shadowRoot?.activeElement!=null}fixContainerFocus(){this.shouldFixContainerFocus&&(this.shouldFixContainerFocus=!1,this.root?.focus({preventScroll:!0}))}cleanElement(e){let{shadowRoot:t}=e;if(t!=null)for(let e of Array.from(t.children))be(e)||e.remove();this.isContainerManaged||e.replaceChildren()}queueElementForPool(e){let t=this.getElementPoolLimit();!this.isElementPoolGenerationCurrent(e)||this.getElementPoolSize()>=t||(this.isElementClean(e)?this.elementPool.push(e):this.pendingElementPool.push(e))}promotePendingPooledElements(){if(this.pendingElementPool.length===0)return;let{pendingElementPool:e}=this;this.pendingElementPool=[];let t=this.getElementPoolLimit();for(let n of e)this.isElementPoolGenerationCurrent(n)&&this.isElementClean(n)&&this.elementPool.length<t?this.elementPool.push(n):this.isElementPoolGenerationCurrent(n)&&this.getElementPoolSize()<t&&this.pendingElementPool.push(n)}isElementClean(e){return e.childNodes.length===0}getElementPoolSize(){return this.elementPool.length+this.pendingElementPool.length}clearElementPool(){this.elementPool.length=0,this.pendingElementPool.length=0}invalidateElementPool(){this.elementPoolVersion++,this.clearElementPool()}markElementPoolGenerationCurrent(e){this.elementPoolTracker.set(e,this.elementPoolVersion)}isElementPoolGenerationCurrent(e){return this.elementPoolTracker.get(e)===this.elementPoolVersion}resolveEffectiveScrollBehavior(e,t){return R()?`instant`:e.behavior===`smooth-auto`?Math.abs(t-this.getScrollTop())<=this.getHeight()*10?`smooth`:`instant`:e.behavior??`instant`}scrollTo(e){if(this.root==null)return;let t=this.normalizeScrollTarget(e);if(t==null)return;let n=this.resolveScrollTargetTop(t);n!=null&&(this.primeScrollTarget(t),this.resolveEffectiveScrollBehavior(t,n)===`smooth`?this.scrollAnimation??={position:this.getScrollTop(),velocity:0,lastTimestamp:performance.now()}:this.scrollAnimation=void 0,this.suspendScrollInteractions(),this.pendingLayoutAnchor=void 0,this.pendingScrollTarget=t,this.render())}setSelectedLines(e,t){this.applySelectedLines(e,t)}getSelectedLines(){return this.selectedLines}clearSelectedLines(e){this.applySelectedLines(null,e)}getItem(e){return this.idToItem.get(e)?.item}getEditor(e){return this.itemEditors.get(e)?.editor}updateItem(e){let t=this.idToItem.get(e.id);return t==null?(console.error(`CodeView.updateItem: unknown item id "${e.id}"`),!1):this.syncItemRecord(t,e)?(this.markItemLayoutDirty(t),this.scrollDirty=!0,this.render(),this.syncItemEditors(),this.syncSelection(),!0):!1}updateItemId(e,t){if(e===t)return!0;let n=this.idToItem.get(e);if(n==null)return console.error(`CodeView.updateItemId: unknown item id "${e}"`),!1;if(this.idToItem.has(t))return console.error(`CodeView.updateItemId: duplicate item id "${t}"`),!1;this.idToItem.delete(e),n.item.id=t,this.idToItem.set(t,n),this.updateItemOptionsId(n.instance.options,t),this.selectedLines?.id===e&&(this.selectedLines={...this.selectedLines,id:t},this.options.onSelectedLinesChange?.(this.selectedLines));let r=this.itemEditors.get(e);return r!=null&&(r.state.id=t,this.itemEditors.delete(e),this.itemEditors.set(t,r),this.attachedEditors.delete(e)&&this.attachedEditors.add(t)),this.renamePendingScrollTarget(e,t),this.renamePendingLayoutAnchor(e,t),this.render(),!0}addItem(e){this.addItems([e])}addItems(e){this.appendItemsInternal(e),this.syncItemEditors(),this.syncSelection()}removeItem(e){let t=this.idToItem.get(e);if(t==null)return console.error(`CodeView.removeItem: unknown item id "${e}"`),!1;let n=[];for(let e of this.items)e!==t&&n.push(e.item);return this.setItems(n),!0}setItems(e){let t;this.items.length===0?this.appendItemsInternal(e):this.tryAppendItems(e)||(t=this.reconcileItems(e)),this.syncItemEditors(t),this.syncSelection()}appendItemsInternal(e,t=!0){if(e.length===0)return;let n=this.getLayout(),r=this.items.length===0?0:this.scrollHeight+n.gap,i=r;for(let t=0;t<e.length;t++){let i=e[t];if(i==null)throw Error(`CodeView.appendItemsInternal: missing input item`);if(this.idToItem.has(i.id))throw Error(`CodeView.addItem: duplicate id "${i.id}"`);let a=this.createItem(i,this.items.length,r);this.items.push(a),this.idToItem.set(a.item.id,a),this.instanceToItem.set(a.instance,a),a.height=ge(a),r+=a.height+n.gap}this.scrollHeight=r-n.gap,this.scrollDirty=!0,t&&(this.canSkipRenderForAppend(i)?this.syncContainerHeight():this.render())}canSkipRenderForAppend(e){return this.container!=null&&this.renderState.firstIndex!==-1&&this.pendingScrollTarget==null&&this.scrollAnimation==null&&this.layoutDirtyIndex==null&&e>this.windowSpecs.bottom}onThemeChange(){this.invalidateElementPool()}setOptions(e){if(e==null)return;this.capturePendingLayoutAnchor();let{options:t}=this,n=this.getLayout(),{itemMetricsCache:r}=this;_e(t,e)&&this.invalidateElementPool(),this.options=e;let i=this.computeMetricsCache(e.itemMetrics),a=!w(r,i),o=!w(n,this.getLayout());o&&this.syncLayout();let s=a||ve(t,e);if(s){let n=this.pendingLayoutReset;this.pendingLayoutReset={metrics:a?i:n?.metrics,resetFileLayoutCache:!0,resetDiffLayoutCache:!0,includeEstimatedDiffHeights:n?.includeEstimatedDiffHeights===!0||a||ye(t,e)}}(o||s)&&(this.markLayoutDirtyFromIndex(0),this.scrollDirty=!0),D(t,e)||this.renderOptionsRevision++,this.syncItemEditors();let c=t.renderCodeViewHeader!==e.renderCodeViewHeader||t.renderCodeViewFooter!==e.renderCodeViewFooter;!this.isContainerManaged&&(this.items.length>0||c)&&this.render()}capturePendingLayoutAnchor(e=this.idToItem){this.root==null||this.items.length===0||this.pendingScrollTarget!=null||(this.pendingLayoutAnchor=this.getScrollAnchor(this.getScrollTop(),e))}render(t=!1){e.__STOP||(t?(m(this.computeRenderRangeAndEmit),this.computeRenderRangeAndEmit()):te(this.computeRenderRangeAndEmit))}isReady(){let{workerManager:e}=this;return e==null||e.isInitialized()||e.getStats().workersFailed?(this.clearReadySubscription(),!0):(this.isReadySubscription??=e.subscribeToStatChanges(e=>{e.managerState!==`initialized`&&!e.workersFailed||(this.clearReadySubscription(),this.render(!0))}),e.getStats().managerState===`waiting`&&e.initialize().catch(()=>{}),!1)}clearReadySubscription(){this.isReadySubscription!=null&&(this.isReadySubscription(),this.isReadySubscription=void 0)}instanceChanged(e,t){let n=this.instanceToItem.get(e);if(n==null)throw Error(`CodeView.instanceChanged: An instance has changed that is not registered`);t&&this.markItemLayoutDirty(n),this.render()}getWindowSpecs(){return this.windowSpecs}getContainerElement(){return this.root}getHeaderElement(){return this.header.element}getFooterElement(){return this.footer.element}getRenderedItems(){let{firstIndex:e,lastIndex:t}=this.renderState;if(e===-1||t===-1||t<e)return[];let n=[];for(let r=e;r<=t;r++){let e=this.items[r];e?.element!=null&&(e.type===`diff`?n.push({id:e.item.id,type:`diff`,item:e.item,version:e.version,element:e.element,instance:e.instance}):n.push({id:e.item.id,type:`file`,item:e.item,version:e.version,element:e.element,instance:e.instance}))}return n}setSlotCoordinator(e){return e===this.slotCoordinator?!1:(this.slotCoordinator=e,this.slotSnapshot=void 0,!0)}getSlotSnapshot(e){return this.buildSlotSnapshot(e)}buildSlotSnapshot(e){let t=Ee(this.getRenderedItems(),e),{element:n}=this.header,{element:r}=this.footer;if(!(t==null&&n==null&&r==null))return{items:t,header:n,footer:r}}subscribeToScroll(e){return this.scrollListeners.add(e),()=>{this.scrollListeners.delete(e)}}getLocalTopForInstance(e){let t=this.instanceToItem.get(e);if(t==null)throw Error(`CodeView.getLocalTopForInstance: unknown virtualized instance`);return t.top}getTopForItem(e){let t=this.idToItem.get(e);if(t!=null)return t.top+this.getItemTopOffset()}createItem(e,t,n){let{itemMetricsCache:r}=this;if(e.type===`diff`){let i=new O(this.createDiffOptions(e.id),this,r,this.workerManager,this.isContainerManaged);return{type:`diff`,item:e,version:e.version,index:t,top:n,height:0,element:void 0,renderedOptionsRevision:this.renderOptionsRevision,instance:i}}let i=new f(this.createFileOptions(e.id),this,r,this.workerManager,this.isContainerManaged);return{type:`file`,item:e,version:e.version,index:t,top:n,height:0,element:void 0,renderedOptionsRevision:this.renderOptionsRevision,instance:i}}applySelectedLines(e,t){let{selectedLines:n}=this;e==null&&n==null||e!=null&&n?.id===e.id&&F(n.range,e.range)||(n!=null&&n.id!==e?.id&&this.idToItem.get(n.id)?.instance.setSelectedLines(null,{notify:!1}),this.selectedLines=e,this.idToItem.get(e?.id??``)?.instance.setSelectedLines(e?.range??null,t))}syncSelection(){if(this.selectedLines==null)return;let e=this.idToItem.get(this.selectedLines.id);if(e==null){this.selectedLines=null,this.options.onSelectedLinesChange?.(null);return}e.instance.setSelectedLines(this.selectedLines.range,{notify:!1})}isItemInEditMode(e){return e.item.edit===!0&&e.item.collapsed!==!0}attachItemEditor(e){let{id:t}=e.item,{createEditor:n}=this.options;if(e.element==null||this.attachedEditors.has(t)||!this.isItemInEditMode(e))return;let r=this.itemEditors.get(t),i=!1;try{if(r==null){pe(n);let e={id:t},a=n({onChange:(t,n)=>{let r=this.idToItem.get(e.id);r!=null&&(e.lastChange={item:r.item,file:t,lineAnnotations:n},this.options.onItemEditChange?.(r.item,t,n))}});if(a==null)return;r={editor:a,state:e},this.itemEditors.set(t,r),i=!0}r.editor.edit(e.instance),this.attachedEditors.add(t)}catch(n){throw i&&r!=null&&(this.itemEditors.delete(t),r.editor.cleanUp()),this.releaseRenderedItem(e),n}}syncItemEditors(e){if(this.itemEditors.size===0)return;let t=[];for(let[n,r]of this.itemEditors){let i=this.idToItem.get(n),a=e?.get(n);if(a==null&&i!=null&&this.isItemInEditMode(i))continue;r.editor.cleanUp(),this.itemEditors.delete(n),this.attachedEditors.delete(n);let{lastChange:o}=r.state,s=a==null?i?.item??o?.item:o?.item??a.item;s?.type===`diff`&&(a==null&&i!=null&&i.type===`diff`&&i.instance.completeEditSession()&&(this.markItemLayoutDirty(i),this.render()),k(s.fileDiff)),o!=null&&t.push(a!=null||i==null?o:{...o,item:i.item})}for(let{item:e,file:n,lineAnnotations:r}of t)this.options.onItemEditComplete?.(e,n,r)}renamePendingScrollTarget(e,t){let{pendingScrollTarget:n}=this;n==null||n.type===`position`||n.id!==e||(this.pendingScrollTarget={...n,id:t})}renamePendingLayoutAnchor(e,t){this.pendingLayoutAnchor?.id===e&&(this.pendingLayoutAnchor.id=t)}createFileOptionsPrototype(){let e={};for(let t of W)q(e,t,()=>this.options[t]);q(e,`stickyHeader`,()=>this.options.stickyHeaders),q(e,`collapsed`,e=>{let t=K(e);if(t!=null)return this.getItemOptions(t,`file`)?.item.collapsed});for(let t of G)this.defineItemSharedCallback(e,`file`,t);for(let t of re)this.defineItemSelectionCallback(e,`file`,t);return e}createDiffOptionsPrototype(){let e={};for(let t of U)q(e,t,()=>this.options[t]);q(e,`stickyHeader`,()=>this.options.stickyHeaders),q(e,`hunkSeparators`,()=>this.options.hunkSeparators),q(e,`collapsed`,e=>{let t=K(e);if(t!=null)return this.getItemOptions(t,`diff`)?.item.collapsed});for(let t of G)this.defineItemSharedCallback(e,`diff`,t);for(let t of re)this.defineItemSelectionCallback(e,`diff`,t);return e}createFileOptions(e){let t=Object.create(this.fileOptionsPrototype);return ae(t,{id:e}),t}createDiffOptions(e){let t=Object.create(this.diffOptionsPrototype);return ae(t,{id:e}),t}updateItemOptionsId(e,t){let n=K(e);if(n==null)throw Error(`CodeView.updateItemOptionsId: No valid state`);n.id=t}getItemOptions(e,t){let n=this.idToItem.get(e.id);if(!(n==null||n.type!==t))return n}defineItemSharedCallback(e,t,n){q(e,n,e=>{if(this.options[n]==null)return;let r=K(e);if(r==null)return;let i=r.callbackCache??={},a=i[n];return a??(a=((...e)=>{let i=this.getItemOptions(r,t);if(i==null)return;let a=this.options[n];return a?.(...e,i)}),i[n]=a),a})}defineItemSelectionCallback(e,t,n){q(e,n,e=>{let r=K(e);if(r==null)return;let i=r.callbackCache??={},a=i[n];return a??(a=(e=>{let i=this.getItemOptions(r,t);if(i==null)return;let a=e==null?null:{id:i.item.id,range:e};this.options.controlledSelection!==!0&&(e!=null||this.selectedLines?.id===i.item.id)&&this.applySelectedLines(a,{notify:!1}),this.options.onSelectedLinesChange?.(a);let o=this.options[n];return o?.(e,i)}),i[n]=a),a})}markLayoutDirtyFromIndex(e){this.layoutDirtyIndex=Math.min(this.layoutDirtyIndex??e,e)}markItemLayoutDirty(e){if(this.items[e.index]!==e)throw Error(`CodeView.markItemLayoutDirty: unknown item id "${e.item.id}"`);this.markLayoutDirtyFromIndex(e.index)}tryAppendItems(e){if(e.length<=this.items.length)return!1;for(let t=0;t<this.items.length;t++){let n=this.items[t];if(n==null)throw Error(`CodeView.tryAppendItems: missing existing item`);let r=e[t];if(r==null||n.item.id!==r.id||n.type!==r.type)return!1}for(let t=0;t<this.items.length;t++){let n=this.items[t];if(n==null)throw Error(`CodeView.tryAppendItems: missing existing item`);let r=e[t];if(r==null)throw Error(`CodeView.tryAppendItems: append candidate missing prefix item`);this.syncItemRecord(n,r)&&this.markLayoutDirtyFromIndex(t)}return this.appendItemsInternal(e.slice(this.items.length),!1),this.scrollDirty=!0,this.render(),!0}reconcileItems(e){let{items:t,idToItem:n}=this,r=new Set(t),i=[],a=new Map,o=new Map,s=new Map,c;for(let s=0;s<e.length;s++){let l=e[s];if(l==null)throw Error(`CodeView.reconcileItems: missing input item`);if(a.has(l.id))throw Error(`CodeView.setItems: duplicate id "${l.id}"`);let u=n.get(l.id),d=u!=null&&u.type===l.type?u:this.createItem(l,s,0);d.index=s,u!=null&&u.type===l.type?(r.delete(u),this.syncItemRecord(d,l)&&(c=Math.min(c??s,s))):c=Math.min(c??s,s),t[s]!==d&&(c=Math.min(c??s,s)),i.push(d),a.set(l.id,d),o.set(d.instance,d)}if(c==null){if(r.size===0)return;c=Math.max(i.length-1,0)}this.capturePendingLayoutAnchor(a);for(let e=0;e<t.length;e++){let n=t[e];if(n==null||!r.has(n))continue;s.set(n.item.id,n),this.releaseRenderedItem(n);let a=Math.max(i.length-1,0);c=Math.min(c??a,a)}return this.items=i,this.idToItem=a,this.instanceToItem=o,this.renderState.firstIndex>=i.length?this.resetRenderState():this.renderState.lastIndex>=i.length&&(this.renderState.lastIndex=i.length-1),this.markLayoutDirtyFromIndex(c),this.scrollDirty=!0,this.render(),s.size>0?s:void 0}syncItemRecord(e,t){if(e.type!==t.type)throw Error(`CodeView.syncItemRecord: type mismatch for id "${t.id}"`);return e.version===t.version?!1:(e.item=t,e.version=t.version,e.renderedOptionsRevision=-1,!0)}getMaxScrollTopForHeight(e){let{paddingBottom:t,paddingTop:n}=this.getLayout();return Math.max(n+this.header.height+e+this.footer.height+t-this.getHeight(),0)}getMaxScrollTop(){return this.getMaxScrollTopForHeight(this.getScrollHeight())}shouldRebaseScroll(){return this.getMaxScrollTop()>fe}getPagedScrollHeight(){return this.shouldRebaseScroll()?Math.min(this.getScrollHeight(),J):this.getScrollHeight()}getMaxPagedScrollTop(){return this.getMaxScrollTopForHeight(this.getPagedScrollHeight())}clampPagedScrollTop(e){let t=this.getMaxPagedScrollTop();return Math.max(0,Math.min(e,t))}clampScrollTop(e){let t=this.getMaxScrollTop();return Math.max(0,Math.min(e,t))}getMaxScrollPageOffset(){return Math.max(this.getMaxScrollTop()-this.getMaxPagedScrollTop(),0)}clampScrollPageOffset(e){let t=this.getMaxScrollPageOffset();return Math.max(0,Math.min(e,t))}resolveScrollPageWindow(e,t){let n=H(this.clampPagedScrollTop(t)),r=this.clampScrollPageOffset(e-n);return n=H(this.clampPagedScrollTop(e-r)),r=this.clampScrollPageOffset(e-n),{pagedScrollTop:n,scrollPageOffset:r}}resolvePagedScrollPosition(e){if(!this.shouldRebaseScroll())return{pagedScrollTop:this.clampPagedScrollTop(e),scrollPageOffset:0};let t=this.clampScrollPageOffset(this.scrollPageOffset),n=e-t,r=this.getMaxPagedScrollTop(),i=this.getMaxScrollPageOffset(),a=n>fe&&t<i,o=n<le&&t>0;return n<0||n>r||a||o?this.resolveScrollPageWindow(e,o?Math.min(de,r):ue):{pagedScrollTop:H(this.clampPagedScrollTop(n)),scrollPageOffset:t}}needsScrollPageUpdate(e){let t=H(this.clampScrollTop(e)),{scrollPageOffset:n}=this.resolvePagedScrollPosition(t);return n!==this.scrollPageOffset}getPagedLayoutTop(e){return this.shouldRebaseScroll()?Math.max(e-this.scrollPageOffset,0):e}getStickyHeaderOffset(){return this.options.stickyHeaders===!0&&this.options.disableFileHeader!==!0?this.itemMetricsCache.diffHeaderHeight:0}getScrollTargetRect(e){let t=this.idToItem.get(e.id);if(t==null){console.warn(`CodeView.scrollTo: unknown item id "${e.id}"`);return}if(e.type===`item`)return{top:t.top,height:t.height};if(e.type===`range`){let n=this.getRangeScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve range ${xe(e.range)} for item "${e.id}"`);return}return{top:t.top+n.top,height:n.height}}let n=this.getLineScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve line ${e.lineNumber} for item "${e.id}"`);return}return{top:t.top+n.top,height:n.height}}normalizeScrollTarget(e){if(e.type===`position`||e.align!==`nearest`)return e;let t=this.getScrollTargetRect(e);if(t==null)return;let n=e.offset??0,r=this.getItemTopOffset()+t.top,i=r+t.height,a=this.getScrollTop(),o=a+(e.type===`line`||e.type===`range`?this.getStickyHeaderOffset():0),s=a+this.getHeight();if(!(r-n<=o&&i+n>=s)){if(r-n<o)return{...e,align:`start`};if(i+n>s)return{...e,align:`end`}}}resolveScrollTargetTop(e){if(e.type===`position`){let t=this.clampScrollTop(e.position);return t===e.position?this.clampScrollTop(e.position-this.getStickyHeaderOffset()):t}let t=this.idToItem.get(e.id);if(t==null){console.warn(`CodeView.scrollTo: unknown item id "${e.id}"`);return}if(e.type===`item`)return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top,t.height,e.align,e.offset));if(e.type===`range`){let n=this.getRangeScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve range ${xe(e.range)} for item "${e.id}"`);return}return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top+n.top,n.height,e.align,e.offset,this.getStickyHeaderOffset()))}let n=this.getLineScrollPosition(t,e);if(n==null){console.warn(`CodeView.scrollTo: unable to resolve line ${e.lineNumber} for item "${e.id}"`);return}return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top+n.top,n.height,e.align,e.offset,this.getStickyHeaderOffset()))}resolveAlignedScrollPosition(e,t,n,r=0,i=0){e+=this.getItemTopOffset();let a=this.getHeight();return n===`center`&&t+r<a?e-(a-t)/2+r:n===`end`?e-(a-t)+r:e-i-r}getLineScrollPosition(e,t){return e.type===`diff`?e.instance.getLinePosition(t.lineNumber,t.side):e.instance.getLinePosition(t.lineNumber)}getRangeScrollPosition(e,t){let{range:n}=t,r=this.getLineScrollPosition(e,{type:`line`,id:t.id,lineNumber:n.start,side:n.side}),i=this.getLineScrollPosition(e,{type:`line`,id:t.id,lineNumber:n.end,side:n.endSide??n.side});if(r==null||i==null)return;let a=r.top,o=a+r.height,s=i.top,c=s+i.height,l=Math.min(a,s);return{top:l,height:Math.max(o,c)-l}}computeTargetScrollTopForFrame(e,t){if(this.pendingScrollTarget==null)return e;let n=this.resolveScrollTargetTop(this.pendingScrollTarget);if(n==null)return e;let{scrollAnimation:r}=this;return r==null?n:this.computeSpringStep(r,n,t).position}computeSpringStep(e,t,n){let r=Math.max(0,n-e.lastTimestamp),{omega:i}=this.getSmoothScrollSettings(),a=Math.exp(-i*r),o=e.position-t,s=e.velocity+i*o;return{position:t+(o+s*r)*a,velocity:(s*(1-i*r)-i*o)*a}}advanceScrollAnimation(e,t){if(this.pendingScrollTarget==null)return;let n=this.resolveScrollTargetTop(this.pendingScrollTarget);if(n==null){this.pendingScrollTarget=void 0,this.scrollAnimation=void 0;return}let r=this.scrollAnimation;if(r==null)return n;r.position+=t;let{position:i,velocity:a}=this.computeSpringStep(r,n,e);r.lastTimestamp=e,r.position=i,r.velocity=a;let{positionEpsilon:o,velocityEpsilon:s}=this.getSmoothScrollSettings();return Math.abs(n-i)<=o&&Math.abs(a)<=s?(r.position=n,r.velocity=0,this.scrollAnimation=void 0,n):r.position}computeRenderRangeAndEmit=(t=performance.now())=>{if(e.__STOP||this.container==null||!this.isReady())return;let n=this.getHeight(),r=this.getScrollTop(),i=r,a=this.pendingLayoutAnchor!=null,o=this.getScrollAnchor(i);if(this.layoutDirtyIndex!=null&&(this.recomputeLayout(this.layoutDirtyIndex,this.pendingLayoutReset),this.layoutDirtyIndex=void 0,this.pendingLayoutReset=void 0,a=!0),a&&o!=null){let e=this.resolveAnchoredScrollTop(o);if(e!=null){let t=e-i;i=e,this.scrollAnimation!=null&&(this.scrollAnimation.position+=t)}}a&&(i=this.clampScrollTop(i),this.syncContainerHeight());let s=this.computeTargetScrollTopForFrame(i,t),c=!a&&(this.renderState.scrollTop===-1||Math.abs(s-this.renderState.scrollTop)>n+this.config.overscrollSize*2);c&&(o=void 0),this.windowSpecs=M({scrollTop:s-this.header.height,height:n,scrollHeight:this.getScrollHeight(),fitPerfectly:c,fitPerfectlyOverscroll:this.getFitPerfectlyOverscroll(),overscrollSize:this.config.overscrollSize});let l=r;(this.pendingScrollTarget!=null&&s!==l||this.needsScrollPageUpdate(s))&&(this.applyScrollFix(s,l,this.windowSpecs),l=s);let{top:u,bottom:d}=this.windowSpecs,{firstIndex:f,lastIndex:p}=this.renderState;if(f>=0)for(let e=f;e<=p;e++){let t=this.items[e];if(t==null)throw Error(`CodeView.computeRenderRangeAndEmit: No item at index: ${e}`);t.top>u-t.height&&t.top<=d||this.releaseRenderedItem(t)}let m=this.reconcileHeaderFooterHosts(),h,g=new Set,_=this.findFirstVisibleIndex(u),v=this.findLastVisibleIndex(d);for(let e=_;e<=v;e++){let t=this.items[e];if(t==null)throw Error(`CodeView.computeRenderRangeAndEmit: missing item`);let{instance:n}=t;t.element==null?(t.element=this.acquireElement(),we(this.stickyContainer,t.element,h),n.virtualizedSetup(),Ce(t,t.element)&&(t.renderedOptionsRevision=this.renderOptionsRevision,g.add(t)),h=t.element):(we(this.stickyContainer,t.element,h),Ce(t,void 0,t.renderedOptionsRevision!==this.renderOptionsRevision)&&(t.renderedOptionsRevision=this.renderOptionsRevision,g.add(t)),h=t.element),t.item.edit===!0&&this.attachItemEditor(t)}this.renderState.firstIndex=_<=v?_:-1,this.renderState.lastIndex=v,this.flushSlotCoordinator(),this.flushManagers(g),m&&this.measureMountedHosts(),this.reconcileRenderedItems(g),this.syncContainerHeight(),this.updateStickyPositioning();let y=o==null?void 0:this.resolveAnchoredScrollTop(o);o===this.pendingLayoutAnchor&&(this.pendingLayoutAnchor=void 0);let b=y==null?0:y-i,x=s,S=!1;if(this.pendingScrollTarget!=null){let e=this.advanceScrollAnimation(t,b);e==null?x=i:(x=e,S=!0)}else x=y??s;x!==l&&(this.applyScrollFix(x,l,this.windowSpecs),l=x),S&&this.pendingScrollTarget!=null&&this.isPendingTargetSettled(this.pendingScrollTarget)&&(this.pendingScrollTarget=void 0,this.scrollAnimation=void 0),this.renderState.scrollTop=H(l),this.updateStickyPositioning(),this.validateStickyContainerHeight(),this.fixContainerFocus(),(c||this.scrollAnimation!=null)&&this.render()};flushManagers(e){for(let t of e)t.instance.flushManagers()}syncContainerHeight(){let e=this.getPagedScrollHeight();this.container==null||this.containerHeight===e||(this.container.style.height=`${e}px`,this.containerHeight=e)}getStickyBounds(e){let{firstIndex:t,lastIndex:n}=e==null?this.renderState:{firstIndex:this.findFirstVisibleIndex(e.top),lastIndex:this.findLastVisibleIndex(e.bottom)};if(t===-1||n===-1||t>n)return;let r=this.items[t]?.instance.getAdvancedStickySpecs(e),i=this.items[n]?.instance.getAdvancedStickySpecs(e);if(!(r==null||i==null))return{stickyTop:this.getPagedLayoutTop(Math.max(r.topOffset,0)),stickyBottom:this.getPagedLayoutTop(i.topOffset+i.height)}}applyStickyPositioning({stickyTop:e,stickyBottom:t}){let n=this.getHeight(),{itemMetricsCache:r}=this,i=t-e;this.renderState.stickyHeight=i,this.renderState.stickyTop=e,this.renderState.stickyBottom=t,this.stickyOffset.style.height=`${e}px`;let a=(Math.random()*r.lineHeight>>0)*-1,o=-Math.max(i+a,0)+n;this.stickyContainer.style.top=`${o}px`,this.stickyContainer.style.bottom=`${o+r.diffHeaderHeight}px`}syncPagedScrollScaffolding(e){this.syncContainerHeight();let t=this.getStickyBounds(e);t!=null&&this.applyStickyPositioning(t)}reconcileRenderedItems(e){let{firstIndex:t,lastIndex:n}=this.renderState;if(t===-1)return;let r=-1,i=!1;for(let a=t;a<this.items.length&&!(!i&&a>n);a++){let t=this.items[a];if(t==null)throw Error(`CodeView.reconcileRenderedItems: Invalid item`);r===-1?r=t.top:t.top!==r&&(t.top=r,t.instance.syncVirtualizedTop(),i=!0),(e==null?a<=n:e.has(t))&&(t.instance.reconcileHeights()&&(i=!0,t.height=t.instance.getVirtualizedHeight()),this.validateRenderedItemHeight(t)),r+=t.instance.getVirtualizedHeight(),a<this.items.length-1&&(r+=this.getLayout().gap)}i&&r!=null&&(this.scrollDirty=!0,this.scrollHeight=r)}updateStickyPositioning(){let e=this.getStickyBounds();if(e==null){this.renderState.firstIndex===-1&&(this.stickyOffset.style.height=``);return}let{stickyTop:t,stickyBottom:n}=e;n-t===this.renderState.stickyHeight&&t===this.renderState.stickyTop&&n===this.renderState.stickyBottom||this.applyStickyPositioning(e)}handleScroll=()=>{e.__STOP||(this.suspendScrollInteractions(),this.scrollDirty=!0,this.notifyScroll(),this.render())};clearPendingScroll=()=>{this.pendingScrollTarget=void 0,this.pendingLayoutAnchor=void 0,this.scrollAnimation=void 0};handleResize=e=>{let t=!1;for(let n of e)if(n.target===this.stickyContainer){let e=n.borderBoxSize[0].blockSize;if(Math.abs(e-this.renderState.stickyHeight)>=se){let e=this.getScrollTop(),n=this.getScrollAnchor(e);this.reconcileRenderedItems(),this.updateStickyPositioning();let r=n==null?void 0:this.resolveAnchoredScrollTop(n);if(r!=null){let t=r-e;this.applyScrollFix(r,e,this.windowSpecs),this.scrollAnimation!=null&&(this.scrollAnimation.position+=t)}this.pendingScrollTarget!=null&&this.isPendingTargetSettled(this.pendingScrollTarget)&&(this.pendingScrollTarget=void 0,this.scrollAnimation=void 0),t=!0}}else if(n.target===this.header.element||n.target===this.footer.element){let e=n.target===this.header.element?this.header:this.footer,r=n.borderBoxSize[0].blockSize;if(r!==e.height){let n=this.getScrollTop(),i=this.getScrollAnchor(n);this.setHostHeight(e,r);let a=i==null?void 0:this.resolveAnchoredScrollTop(i);if(a!=null){let e=a-n;this.applyScrollFix(a,n,this.windowSpecs),this.scrollAnimation!=null&&(this.scrollAnimation.position+=e)}this.pendingScrollTarget!=null&&this.isPendingTargetSettled(this.pendingScrollTarget)&&(this.pendingScrollTarget=void 0,this.scrollAnimation=void 0),t=!0}}else this.scrollDirty=!0,this.heightDirty=!0,t=!0;t&&this.render(!0)};getScrollAnchorViewportTop(e,t){return e<t?t+this.getStickyHeaderOffset():t}getScrollAnchor(e,t=this.idToItem){let n,{pendingLayoutAnchor:r}=this;if(r!=null){let e=this.idToItem.get(r.id);if(e!=null&&t.get(r.id)===e)return r;e!=null&&(n=e)}if(e<=0)return;let{firstIndex:i,lastIndex:a,stickyTop:o,stickyBottom:s}=this.renderState;if(i===-1||a===-1)return;let c=this.getHeight();if(!(o===-1||s===-1)){for(let r=i;r<=a;r++){let i=this.items[r];if(i==null)continue;let a=this.getItemTopOffset()+i.top;if(a+i.height<=e)continue;if(a>=e+c)break;if(t.get(i.item.id)!==i){n??=i;continue}if(a>=e)return{type:`item`,id:i.item.id,viewportOffset:a-e};let o=this.getScrollAnchorViewportTop(a,e)-a,s=i.instance.getNumericScrollAnchor(o);if(s!=null){let t=a+s.top;return{type:`line`,id:i.item.id,lineNumber:s.lineNumber,side:s.side,viewportOffset:t-e}}}if(n!=null)for(let e=n.index+1;e<this.items.length;e++){let n=this.items[e];if(n!=null&&t.get(n.item.id)===n)return{type:`item`,id:n.item.id,viewportOffset:0}}}}resolveAnchoredScrollTop(e){let t=this.idToItem.get(e.id);if(t==null)return;let n=this.getItemTopOffset();if(e.type===`item`){let r=n+t.top;return this.clampScrollTop(r-e.viewportOffset)}let r=t.type===`diff`?t.instance.getLinePosition(e.lineNumber,e.side):t.instance.getLinePosition(e.lineNumber);if(r==null)return;let i=n+t.top+r.top;return this.clampScrollTop(i-e.viewportOffset)}applyScrollFix(e,t,n){if(this.root==null)return;let r=H(this.clampScrollTop(e)),i=H(t),{scrollPageOffset:a}=this,o=H(this.clampPagedScrollTop(i-a)),{pagedScrollTop:s,scrollPageOffset:c}=this.resolvePagedScrollPosition(r),l=s,u=a!==c;r===this.renderState.scrollTop&&r===i&&l===o&&!u||(this.suspendScrollInteractions(),(l!==o||u)&&(this.scrollPageOffset=c,this.syncPagedScrollScaffolding(n)),l!==o&&this.root.scrollTo({top:l,behavior:`instant`}),this.renderState.scrollTop=r,this.scrollTop=r,this.scrollDirty=!1)}isPendingTargetSettled(e){let t=this.resolveScrollTargetTop(e);return t==null?!0:H(this.getScrollTop())===H(t)}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let e=this.root?.scrollTop??0;return this.scrollTop=this.clampScrollTop(e+this.scrollPageOffset),this.scrollTop}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root?.getBoundingClientRect().height??0,this.height):this.height}getScrollHeight(){return this.scrollHeight}flushSlotCoordinator(){if(this.slotCoordinator==null)return;let e=this.buildSlotSnapshot(this.slotCoordinator);z(this.slotSnapshot,e)||(this.slotSnapshot=e,this.slotCoordinator.onSnapshotChange(e))}notifyScroll(){if(this.scrollListeners.size===0)return;let e=this.getScrollTop();for(let t of this.scrollListeners)t(e,this)}findFirstVisibleIndex(e){let t=0,n=this.items.length-1,r=this.items.length;for(;t<=n;){let i=t+n>>1,a=this.items[i];if(a==null)throw Error(`CodeView.findFirstVisibleIndex: invalid item index`);a.top+a.height>e?(r=i,n=i-1):t=i+1}return r}findLastVisibleIndex(e){let t=0,n=this.items.length-1,r=-1;for(;t<=n;){let i=t+n>>1,a=this.items[i];if(a==null)throw Error(`CodeView.findLastVisibleIndex: invalid item index`);a.top<=e?(r=i,t=i+1):n=i-1}return r}recomputeLayout(e=0,t){if(this.items.length===0){this.scrollHeight=0;return}let n=this.getLayout(),r=0;if(e>0){let t=this.items[e-1];if(t==null)throw Error(`CodeView.recomputeLayout: invalid dirty index`);r=t.top+t.height+n.gap}for(let i=e;i<this.items.length;i++){let e=this.items[i];if(e==null)throw Error(`CodeView.recomputeLayout: invalid item index`);if(e.top=r,e.type===`diff`){let n=e.instance.consumeCodeViewLayoutChanges(e.item.fileDiff);n!=null&&Object.assign(e.item.fileDiff,n),e.height=e.instance.prepareCodeViewItem(e.item.fileDiff,r,t,e.item.annotations??[])}else e.height=e.instance.prepareCodeViewItem(e.item.file,r,t,e.item.annotations??[]);r+=e.height,i<this.items.length-1&&(r+=n.gap)}r!==this.scrollHeight&&(this.scrollDirty=!0),this.scrollHeight=r}resetRenderState(){this.renderState.scrollTop=-1,this.renderState.firstIndex=-1,this.renderState.lastIndex=-1,this.renderState.stickyHeight=0,this.renderState.stickyTop=-1,this.renderState.stickyBottom=-1}getFitPerfectlyOverscroll(){return this.getLayout().gap+this.itemMetricsCache.diffHeaderHeight}};function ge(e){return e.instance.cleanUp(!0),e.type===`diff`?e.instance.prepareCodeViewItem(e.item.fileDiff,e.top,void 0,e.item.annotations??[]):e.instance.prepareCodeViewItem(e.item.file,e.top,void 0,e.item.annotations??[])}function _e(e,t){return!N(e.theme??y,t.theme??y)||(e.themeType??`system`)!==(t.themeType??`system`)||e.unsafeCSS!==t.unsafeCSS}function ve(e,t){return(e.overflow??`scroll`)!==(t.overflow??`scroll`)||(e.disableLineNumbers??!1)!==(t.disableLineNumbers??!1)||(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||e.unsafeCSS!==t.unsafeCSS||(e.diffStyle??`split`)!==(t.diffStyle??`split`)||(e.diffIndicators??`bars`)!==(t.diffIndicators??`bars`)||(e.hunkSeparators??`line-info`)!==(t.hunkSeparators??`line-info`)||(e.expandUnchanged??!1)!==(t.expandUnchanged??!1)||(e.collapsedContextThreshold??1)!==(t.collapsedContextThreshold??1)}function ye(e,t){return(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||(e.hunkSeparators??`line-info`)!==(t.hunkSeparators??`line-info`)||(e.expandUnchanged??!1)!==(t.expandUnchanged??!1)||(e.collapsedContextThreshold??1)!==(t.collapsedContextThreshold??1)}function be(e){return e instanceof SVGElement?!0:P(e)&&(e.hasAttribute(`data-core-css`)||e.hasAttribute(`data-theme-css`)||e.hasAttribute(`data-unsafe-css`))}function xe(e){let t=Se(e.start,e.side),n=Se(e.end,e.endSide??e.side);return t===n?t:`${t}-${n}`}function Se(e,t){return t==null?`${e}`:`${t===`deletions`?`D`:`A`}${e}`}function Ce(e,t,n=!1){return e.type===`diff`?e.instance.render({deferManagers:!0,fileContainer:t,fileDiff:e.item.fileDiff,forceRender:n,lineAnnotations:e.item.annotations??[]}):e.instance.render({deferManagers:!0,fileContainer:t,file:e.item.file,forceRender:n,lineAnnotations:e.item.annotations??[]})}function we(e,t,n){if(n==null){e.firstChild!==t&&e.prepend(t);return}n.nextSibling!==t&&n.after(t)}function Te(e){return(e.annotations?.length??0)>0}function Ee(e,{hasHeaderRenderers:t,hasAnnotationRenderer:n,hasGutterRenderer:r}){if(e.length===0)return;if(t||r)return e;if(!n)return;let i=[];for(let t of e)Te(t.item)&&i.push(t);return i.length>0?i:void 0}var Y=e(r(),1),X=e(t(),1),Z=n(),De=typeof window>`u`?Y.useEffect:Y.useLayoutEffect;function Oe(e){return{instance:void 0,items:void 0,controlled:e,managedOptions:void 0,disableFlushSync:!1,slotCoordinator:void 0}}function ke(e,t){let{className:n,containerRef:r,disableWorkerPool:i=!1,editorOptions:a,initialItems:o,items:s,onItemEditChange:c,onItemEditComplete:l,onScroll:u,onSelectedLinesChange:d,options:f,renderAnnotation:p,renderCodeViewFooter:m,renderCodeViewHeader:_,renderCustomHeader:v,renderGutterUtility:y,renderHeaderFilenameSuffix:b,renderHeaderMetadata:x,renderHeaderPrefix:S,selectedLines:C,style:w}=e,T=s!==void 0,E=g(),ee=(0,Y.useContext)(ne),O=(0,Y.useRef)(Oe(T)),k=v!=null,A=p!=null,j=y!=null,M=k||S!=null||b!=null||x!=null,te=M||A||j,N=_!=null,P=m!=null,F=h(e=>{d?.(e)}),I=C!==void 0,L=h(e=>{if(E==null)throw Error(`CodeView: EditContext is not attached`);let t=E({...a,...e});if(t==null)throw Error(`CodeView: EditProvider.createEditor must return an editor instance`);return t}),R=h((e,t,n)=>{c?.(e,t,n)}),z=h((e,t,n)=>{l?.(e,t,n)}),B=(0,Y.useMemo)(()=>Pe({options:f,hasCustomHeader:k,hasGutterRenderer:j,hasCodeViewHeader:N,hasCodeViewFooter:P,onSelectedLinesChange:d==null?void 0:F,controlledSelection:I,createEditor:E==null?void 0:L,onItemEditChange:c==null?void 0:R,onItemEditComplete:l==null?void 0:z}),[E,I,L,R,z,F,P,N,k,j,c,l,d,f]),[V]=(0,Y.useState)(()=>Ne()),[,H]=(0,Y.useState)({}),U=h(e=>{O.current.instance!=null&&(e==null||e!==O.current.instance.getContainerElement())&&(O.current.instance.cleanUp(),V.publish(void 0),O.current=Oe(T)),e!=null&&e!==O.current.instance?.getContainerElement()&&(O.current.instance=new he(B,i?void 0:ee,!0),O.current.instance.setup(e)),typeof r==`function`?r(e):r!=null&&(r.current=e)}),W=h(e=>{O.current.disableFlushSync?V.publish(e):(0,X.flushSync)(()=>{V.publish(e)})}),G=(0,Y.useMemo)(()=>{if(!(!M&&!A&&!j&&!N&&!P))return{hasHeaderRenderers:M,hasAnnotationRenderer:A,hasGutterRenderer:j,onSnapshotChange:W}},[W,A,j,M,N,P]);return De(()=>u==null?void 0:O.current.instance?.subscribeToScroll(u)),De(()=>{let{instance:e,controlled:t,items:n,managedOptions:r,slotCoordinator:i}=O.current;if(e!=null)try{O.current.disableFlushSync=!0;let a=!1;if(D(B,r)||(O.current.managedOptions=B,e.setOptions(B),a=!0),t!==T){console.error(`CodeView: cannot switch between controlled and uncontrolled modes. Remount with a new key instead.`);return}if(T)s!==n&&(Me(n,s)?O.current.items=s:je(n,s)?(O.current.items=s,e.addItems(s.slice(n.length))):(O.current.items=s,e.setItems(s),a=!0));else if(n==null){let t=o??[];O.current.items=t,t.length>0&&(e.setItems(t),a=!0)}C!==void 0&&e.setSelectedLines(C,{notify:!1});let c=e.setSlotCoordinator(G),l=!1;G!==i&&((G==null||i==null)&&(l=!0),O.current.slotCoordinator=G),(a||c)&&e.render(!0),c&&G==null&&V.publish(void 0),l&&H({})}finally{O.current.disableFlushSync=!1}}),(0,Y.useImperativeHandle)(t,()=>({addItems(e){let{controlled:t,instance:n}=O.current;Q(t,`addItems`),n==null?console.error(`CodeView.addItems: no valid instance to append items with`,e):n.addItems(e)},getItem(e){let{instance:t}=O.current;if(t==null){console.error(`CodeView.getItem: no valid instance exists`,e);return}else return t.getItem(e)},removeItem(e){let{controlled:t,instance:n}=O.current;return Q(t,`removeItem`),n==null?(console.error(`CodeView.removeItem: no valid instance to remove item from`,e),!1):n.removeItem(e)},updateItem(e){let{controlled:t,instance:n}=O.current;return Q(t,`updateItem`),n==null?(console.error(`CodeView.updateItem: no valid instance to update item with`,e),!1):n.updateItem(e)},updateItemId(e,t){let{controlled:n,instance:r}=O.current;return Q(n,`updateItemId`),r==null?(console.error(`CodeView.updateItemId: no valid instance to update item id with`,e,t),!1):r.updateItemId(e,t)},scrollTo(e){let{instance:t}=O.current;t==null?console.error(`CodeView.scrollTo: no valid instance to scroll with`,e):t.scrollTo(e)},setSelectedLines(e){let{instance:t}=O.current;t==null?console.error(`CodeView.setSelectedLines: no valid instance to update selection with`,e):(t.setSelectedLines(e,{notify:!1}),F(e))},getSelectedLines(){let{instance:e}=O.current;return e==null?(console.error(`CodeView.getSelectedLines: no valid instance exists`),null):e.getSelectedLines()},clearSelectedLines(){let{instance:e}=O.current;e==null?console.error(`CodeView.clearSelectedLines: no valid instance to update selection with`):(e.clearSelectedLines({notify:!1}),F(null))},getEditor(e){let{instance:t}=O.current;if(t==null){console.error(`CodeView.getEditor: no valid instance exists`,e);return}return t.getEditor(e)},getInstance(){return O.current.instance}}),[F]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:U,className:n,style:w}),(te||N||P)&&(0,Z.jsx)(Fe,{managedContentStore:V,renderCustomHeader:v,renderHeaderPrefix:S,renderHeaderFilenameSuffix:b,renderHeaderMetadata:x,renderAnnotation:p,renderGutterUtility:y,renderCodeViewHeader:_,renderCodeViewFooter:m})]})}var Ae=(0,Y.forwardRef)(ke);function je(e,t){if(e==null||t.length<=e.length)return!1;if(e.length===0)return!0;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Me(e,t){if(e==null||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Q(e,t){if(e)throw Error(`CodeView.${t} cannot be used when CodeView is controlled. Use initialItems for imperative item updates.`)}function Ne(){let e,t=new Set;return{getSnapshot(){return e},publish(n){if(!z(e,n)){e=n;for(let e of t)e()}},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}function Pe({options:e,hasCustomHeader:t,hasGutterRenderer:n,hasCodeViewHeader:r,hasCodeViewFooter:i,onSelectedLinesChange:a,controlledSelection:o,createEditor:s,onItemEditChange:c,onItemEditComplete:l}){let u={...e,controlledSelection:o,onSelectedLinesChange:a,createEditor:s};return c!=null&&(u.onItemEditChange=c),l!=null&&(u.onItemEditComplete=l),t&&(u.renderCustomHeader=$),n&&(u.renderGutterUtility=$),r&&(u.renderCodeViewHeader=$),i&&(u.renderCodeViewFooter=$),u}var Fe=(0,Y.memo)(function({managedContentStore:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o,renderCodeViewHeader:s,renderCodeViewFooter:c}){"use no memo";let l=h(t=>e.subscribe(t)),u=h(()=>e.getSnapshot()),d=(0,Y.useSyncExternalStore)(l,u,u),f=``;for(let e of d?.items??[])f+=`${e.id}:${e.version}:${e.type}`;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Y.useMemo)(()=>d?.items?.map(e=>(0,X.createPortal)(Ie({renderedItem:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o}),e.element,e.id)),[t,n,r,i,a,o,f]),(0,Y.useMemo)(()=>s!=null&&d?.header!=null?(0,X.createPortal)(s(),d.header):null,[s,d?.header]),(0,Y.useMemo)(()=>c!=null&&d?.footer!=null?(0,X.createPortal)(c(),d.footer):null,[c,d?.footer])]})});function Ie({renderedItem:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o}){if(e.type===`diff`){let{item:s,instance:c}=e;return C({fileDiff:s.fileDiff,renderCustomHeader:t==null?void 0:()=>t(s),renderHeaderPrefix:n==null?void 0:()=>n(s),renderHeaderFilenameSuffix:r==null?void 0:()=>r(s),renderHeaderMetadata:i==null?void 0:()=>i(s),renderAnnotation:a==null?void 0:e=>a(e,s),lineAnnotations:s.annotations,renderGutterUtility:o==null?void 0:e=>o(e,s),getHoveredLine:c.getHoveredLine})}else{let{item:s,instance:c}=e;return p({file:s.file,renderCustomHeader:t==null?void 0:()=>t(s),renderHeaderPrefix:n==null?void 0:()=>n(s),renderHeaderFilenameSuffix:r==null?void 0:()=>r(s),renderHeaderMetadata:i==null?void 0:()=>i(s),renderAnnotation:a==null?void 0:e=>a(e,s),lineAnnotations:s.annotations,renderGutterUtility:o==null?void 0:e=>o(e,s),getHoveredLine:c.getHoveredLine})}}function $(){}function Le(e,t){return e.length>0&&e.every(e=>t.has(e))}function Re(e,t){return Le(e,t)?new Set:new Set(e)}var ze=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),Be={multiple(e){return e?{[ze.multiple]:``}:null}},Ve=Y.forwardRef(function(e,t){let{defaultValue:n,disabled:r=!1,loopFocus:i=!0,onValueChange:a,orientation:s=`horizontal`,multiple:f=!1,value:p,className:m,render:h,style:g,..._}=e,v=c(!0),y=Y.useMemo(()=>p!==void 0||n!==void 0,[p,n]),b=(v?.disabled??!1)||r,[x,C]=d({controlled:p,default:p===void 0?n??l:void 0,name:`ToggleGroup`,state:`value`}),w=o((e,t,n)=>{let r;f?(r=x.slice(),t?r.push(e):r.splice(x.indexOf(e),1)):r=t?[e]:[],a?.(r,n),!n.isCanceled&&C(r)}),T={disabled:b,multiple:f,orientation:s},E=Y.useMemo(()=>({disabled:b,orientation:s,setGroupValue:w,value:x,isValueInitialized:y}),[b,s,w,x,y]),D={role:`group`},O=u(`div`,e,{enabled:!!v,state:T,ref:t,props:[D,_],stateAttributesMapping:Be});return(0,Z.jsx)(S.Provider,{value:E,children:v?O:(0,Z.jsx)(ee,{render:h,className:m,style:g,state:T,refs:[t],props:[D,_],stateAttributesMapping:Be,loopFocus:i,enableHomeAndEndKeys:!0,orientation:s})})}),He=i(),Ue=Y.createContext({size:`default`,variant:`default`});function We(e){let t=(0,He.c)(24),n,r,i,a,o,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6]):({className:r,variant:a,size:o,orientation:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c);let l=a===void 0?`default`:a,u=o===void 0?`default`:o,d=c===void 0?`horizontal`:c,f;t[7]!==u||t[8]!==l?(f={size:u,variant:l},t[7]=u,t[8]=l,t[9]=f):f=t[9];let p=f,m=d===`horizontal`?`*:pointer-coarse:after:min-w-auto`:`*:pointer-coarse:after:min-h-auto`,h=l==="default"?`gap-0.5`:d===`horizontal`?`*:not-first:not-data-[slot=separator]:before:-start-[0.5px] *:not-last:not-data-[slot=separator]:before:-end-[0.5px] *:not-first:rounded-s-none *:not-last:rounded-e-none *:not-first:border-s-0 *:not-last:border-e-0 *:not-first:before:rounded-s-none *:not-last:before:rounded-e-none`:`*:not-first:not-data-[slot=separator]:before:-top-[0.5px] *:not-last:not-data-[slot=separator]:before:-bottom-[0.5px] flex-col *:not-first:rounded-t-none *:not-last:rounded-b-none *:not-first:border-t-0 *:not-last:border-b-0 *:not-first:before:rounded-t-none *:not-last:before:rounded-b-none *:data-[slot=toggle]:not-last:before:hidden dark:*:last:before:hidden dark:*:first:before:block`,g;t[10]!==r||t[11]!==m||t[12]!==h?(g=s(`flex w-fit *:focus-visible:z-10 dark:*:[[data-slot=separator]:has(+[data-slot=toggle]:hover)]:before:bg-input/64 dark:*:[[data-slot=separator]:has(+[data-slot=toggle][data-pressed])]:before:bg-input dark:*:[[data-slot=toggle]:hover+[data-slot=separator]]:before:bg-input/64 dark:*:[[data-slot=toggle][data-pressed]+[data-slot=separator]]:before:bg-input`,m,h,r),t[10]=r,t[11]=m,t[12]=h,t[13]=g):g=t[13];let _;t[14]!==n||t[15]!==p?(_=(0,Z.jsx)(Ue,{value:p,children:n}),t[14]=n,t[15]=p,t[16]=_):_=t[16];let v;return t[17]!==d||t[18]!==i||t[19]!==u||t[20]!==g||t[21]!==_||t[22]!==l?(v=(0,Z.jsx)(Ve,{className:g,"data-size":u,"data-slot":`toggle-group`,"data-variant":l,orientation:d,...i,children:_}),t[17]=d,t[18]=i,t[19]=u,t[20]=g,t[21]=_,t[22]=l,t[23]=v):v=t[23],v}function Ge(e){let t=(0,He.c)(12),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,variant:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=Y.use(Ue),c=o??s.variant,l=a??s.size,u;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==l||t[10]!==c?(u=(0,Z.jsx)(E,{className:r,"data-size":l,"data-variant":c,size:l,variant:c,...i,children:n}),t[6]=n,t[7]=r,t[8]=i,t[9]=l,t[10]=c,t[11]=u):u=t[11],u}export{Ae as a,Re as i,We as n,L as o,Le as r,I as s,Ge as t};
|
|
2
|
+
//# sourceMappingURL=toggle-group-BuZ8VVSp.js.map
|
package/dist/client/index.html
CHANGED
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
does not flash a stage label the client will not use.
|
|
91
91
|
-->
|
|
92
92
|
<title>P4Code</title>
|
|
93
|
-
<script type="module" crossorigin src="/assets/index-
|
|
93
|
+
<script type="module" crossorigin src="/assets/index-C8yvRYYJ.js"></script>
|
|
94
94
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-QTnfLwEv.js">
|
|
95
95
|
<link rel="modulepreload" crossorigin href="/assets/compiler-runtime-CLAvuQ-D.js">
|
|
96
96
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-CEhsl8MR.js">
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/previewAssetResource-
|
|
98
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
97
|
+
<link rel="modulepreload" crossorigin href="/assets/previewAssetResource-C5xnyEPa.js">
|
|
98
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C3KA15QB.css">
|
|
99
99
|
</head>
|
|
100
100
|
<body>
|
|
101
101
|
<div id="root">
|