@kanorio/elements 1.2.0 → 1.4.0
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/README.md +1 -1
- package/dist/CustomerAccountPanel-FXJEOS4F.js +2 -0
- package/dist/CustomerAccountPanel-LK4GSYYU.js +2 -0
- package/dist/{FormAddressField-QR7ZCH77.js → FormAddressField-NH5LD6K7.js} +2 -2
- package/dist/{FormAddressField-C6VN7J6I.js → FormAddressField-Z5XT2ELO.js} +2 -2
- package/dist/FormFileField-5YFTKIRZ.js +2 -0
- package/dist/FormFileField-D2XIGIML.js +2 -0
- package/dist/{FormTaxIdField-K34MDUPW.js → FormTaxIdField-GGBQOVZE.js} +2 -2
- package/dist/{FormTaxIdField-XMK5WRQO.js → FormTaxIdField-XJSMW3II.js} +2 -2
- package/dist/KanorioAccount-BGIMYMGL.js +2 -0
- package/dist/KanorioAccount-E3NDKUX5.js +2 -0
- package/dist/KanorioAnalytics-CNEIZ4VZ.js +2 -0
- package/dist/KanorioAnalytics-RTCJ62AP.js +2 -0
- package/dist/KanorioCurriculum-CDHXCPSI.js +2 -0
- package/dist/KanorioCurriculum-JIKUHPOJ.js +2 -0
- package/dist/KanorioForm-QU243SAP.js +2 -0
- package/dist/KanorioForm-W6XBJW74.js +2 -0
- package/dist/KanorioLightbox-2YTEYM57.js +2 -0
- package/dist/KanorioLightbox-WCQ4NW5Z.js +2 -0
- package/dist/KanorioLogin-CDSAAJJE.js +2 -0
- package/dist/KanorioLogin-OYIESFJL.js +2 -0
- package/dist/KanorioMedia-BEFSUKSN.js +2 -0
- package/dist/KanorioMedia-ZGHENDE3.js +2 -0
- package/dist/KanorioReviews-O67GJZ24.js +2 -0
- package/dist/KanorioReviews-V5RUA2TV.js +2 -0
- package/dist/KanorioUnit-2FXOUNOP.js +2 -0
- package/dist/KanorioUnit-AIM4O7QI.js +2 -0
- package/dist/{MediaPlayer-F43FPK4E.js → MediaPlayer-C5KI6N5V.js} +2 -2
- package/dist/{MediaPlayer-JHFZFOOG.js → MediaPlayer-PMAEZSCZ.js} +2 -2
- package/dist/{PDFViewerFull-INVHZL4V.js → PDFViewerFull-6MZJTHN2.js} +2 -2
- package/dist/{PDFViewerFull-CB44M7GW.js → PDFViewerFull-P3HCVGDZ.js} +2 -2
- package/dist/account.d.ts +3 -2
- package/dist/account.js +1 -1
- package/dist/analytics.js +1 -1
- package/dist/ar-JXAEXYYY.js +2 -0
- package/dist/ar-UXUCJCPY.js +2 -0
- package/dist/bg-EUIPVVBX.js +2 -0
- package/dist/bg-HEU3KGAJ.js +2 -0
- package/dist/{bn-BHRS66N3.js → bn-L35GOE5D.js} +2 -2
- package/dist/{bn-DM5WNGJ5.js → bn-LMQOF3SO.js} +2 -2
- package/dist/bot-protection.d.ts +67 -36
- package/dist/bot-protection.js +1 -1
- package/dist/chunk-2H3LTDAA.js +2 -0
- package/dist/chunk-3NXF6SCJ.js +2 -0
- package/dist/{chunk-EE4S6NRV.js → chunk-4OC7BRQS.js} +2 -2
- package/dist/{chunk-DTBRUBPG.js → chunk-56UUP6CI.js} +2 -2
- package/dist/{chunk-IAXVJLJ3.js → chunk-65RP744E.js} +2 -2
- package/dist/chunk-73S6VKNV.js +2 -0
- package/dist/{chunk-4MOCTNN7.js → chunk-7UCZ56EJ.js} +2 -2
- package/dist/{chunk-FQCA2VGY.js → chunk-A4ZGBTRT.js} +2 -2
- package/dist/chunk-APWDEDWM.js +2 -0
- package/dist/{chunk-WM5S3YN5.js → chunk-CTMHQZAU.js} +2 -2
- package/dist/chunk-D4KDA3KL.js +2 -0
- package/dist/{chunk-2ONAW3CA.js → chunk-DIHLDYIG.js} +2 -2
- package/dist/chunk-EGMCB2MQ.js +3 -0
- package/dist/{chunk-LWRWKZBC.js → chunk-FFSPNYLJ.js} +2 -2
- package/dist/chunk-FXDWRWZ3.js +3 -0
- package/dist/chunk-I6KLZIN6.js +2 -0
- package/dist/{chunk-NGRNPVON.js → chunk-II7PVZWZ.js} +2 -2
- package/dist/chunk-J24HGQ7U.js +2 -0
- package/dist/{chunk-4KA3HSRQ.js → chunk-JYBSXLT3.js} +2 -2
- package/dist/{chunk-N5PIQM4L.js → chunk-KW2CH7SS.js} +2 -2
- package/dist/chunk-KYXZNMNA.js +2 -0
- package/dist/{chunk-QOQQCCID.js → chunk-L3BUSP27.js} +2 -2
- package/dist/{chunk-B7KLKVIM.js → chunk-L66F3USG.js} +2 -2
- package/dist/{chunk-36YEGBKK.js → chunk-N4Y3DCC6.js} +2 -2
- package/dist/{chunk-NBDRYQZV.js → chunk-OLGITMLA.js} +2 -2
- package/dist/{chunk-5HWAL7VK.js → chunk-OSXFUIAV.js} +2 -2
- package/dist/chunk-Q4APVE7S.js +2 -0
- package/dist/chunk-QF55WZDP.js +2 -0
- package/dist/chunk-QYTK2CW3.js +2 -0
- package/dist/chunk-RNRIZCZS.js +2 -0
- package/dist/{chunk-K4VRRKYJ.js → chunk-UDNUWN4W.js} +2 -2
- package/dist/{chunk-AF46NLXK.js → chunk-UITC3NFQ.js} +2 -2
- package/dist/chunk-UWRJBUJY.js +2 -0
- package/dist/chunk-VGQ2N7JH.js +2 -0
- package/dist/{chunk-H7VP4BYY.js → chunk-VRD67HVO.js} +2 -2
- package/dist/chunk-VT2B53EX.js +2 -0
- package/dist/{chunk-BGVTMWPN.js → chunk-W5QS3RHM.js} +2 -2
- package/dist/chunk-WJPCDZSL.js +2 -0
- package/dist/chunk-XJPS3G7J.js +3 -0
- package/dist/{chunk-Z4OV6QHI.js → chunk-Y5JA6B5O.js} +2 -2
- package/dist/cs-LY4LE4NI.js +2 -0
- package/dist/cs-MGLMNU2K.js +2 -0
- package/dist/curriculum.d.ts +3 -2
- package/dist/curriculum.js +1 -1
- package/dist/da-LQTLZNBW.js +2 -0
- package/dist/da-X5HKEDEL.js +2 -0
- package/dist/de-M3M4VBDR.js +2 -0
- package/dist/de-Y5ELIZBU.js +2 -0
- package/dist/{deliverables-C5RD2ASE.js → deliverables-EOIAZFWB.js} +25 -25
- package/dist/{deliverables-BDS7WMBC.js → deliverables-NO5NEFRM.js} +2 -2
- package/dist/{el-SMBF7FG4.js → el-7YYYEHW6.js} +2 -2
- package/dist/{el-G2AWU43W.js → el-YZGS3PLP.js} +2 -2
- package/dist/elements.css +1 -1
- package/dist/en-AU-IUEA3YQP.js +2 -0
- package/dist/en-AU-RQ2DVIXE.js +2 -0
- package/dist/en-CA-OFK46Q44.js +2 -0
- package/dist/en-CA-QDP57WHG.js +2 -0
- package/dist/en-GB-URCOTEDK.js +2 -0
- package/dist/en-GB-VNG2IO2E.js +2 -0
- package/dist/en-JSBHSC4K.js +2 -0
- package/dist/en-MCRNEXQP.js +2 -0
- package/dist/en-US-5RT4SJ3V.js +2 -0
- package/dist/en-US-IWMVMSUT.js +2 -0
- package/dist/es-419-53Z5HI6Z.js +2 -0
- package/dist/es-419-JFUQ3D4V.js +2 -0
- package/dist/es-ES-BMD6JJEO.js +2 -0
- package/dist/es-ES-PBIVNTAT.js +2 -0
- package/dist/fa-57P7R77M.js +2 -0
- package/dist/{fa-OYP2Q5EV.js → fa-NE4XJTHW.js} +2 -2
- package/dist/fi-G5MG7VJ2.js +2 -0
- package/dist/fi-SCTIKRMX.js +2 -0
- package/dist/form.d.ts +393 -23
- package/dist/form.js +1 -1
- package/dist/{forms-answers-address-7P6EVFY5.js → forms-answers-address-5MXQYIH3.js} +2 -2
- package/dist/{forms-answers-address-IQV2Y56H.js → forms-answers-address-BGBI445K.js} +2 -2
- package/dist/{forms-answers-tax-id-WJD7K3PG.js → forms-answers-tax-id-3AYXCNP5.js} +2 -2
- package/dist/{forms-answers-tax-id-D4GOUC6N.js → forms-answers-tax-id-LSWOEHJ4.js} +2 -2
- package/dist/fr-CA-4X7URW4M.js +2 -0
- package/dist/fr-CA-RQDI3NIQ.js +2 -0
- package/dist/fr-FR-EDVHTVOW.js +2 -0
- package/dist/fr-FR-KGXOTINP.js +2 -0
- package/dist/{gu-BREQK3GJ.js → gu-7AJCL43I.js} +2 -2
- package/dist/{gu-RNCZTEOA.js → gu-QE53XIWR.js} +2 -2
- package/dist/he-UWYKIUPF.js +2 -0
- package/dist/he-VLGZUN42.js +2 -0
- package/dist/{hi-DKG5TPYX.js → hi-5M4U37GW.js} +2 -2
- package/dist/{hi-F7Y62LAZ.js → hi-KXKJMKZF.js} +2 -2
- package/dist/{hu-3Y5YEIFL.js → hu-JU7V3YQX.js} +2 -2
- package/dist/{hu-L6W5O2G5.js → hu-YRF3KPIJ.js} +2 -2
- package/dist/id-IRL2KCIE.js +2 -0
- package/dist/id-SXO4Z54V.js +2 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/it-55QCLHB7.js +2 -0
- package/dist/it-RBRELRA3.js +2 -0
- package/dist/ja-2WRUVHKU.js +2 -0
- package/dist/ja-3HZPHYZS.js +2 -0
- package/dist/kanorio-elements.js +1 -1
- package/dist/{km-HPCMYWAG.js → km-EW4ISUB7.js} +2 -2
- package/dist/{km-PHVYTPLT.js → km-SL6MZB3H.js} +2 -2
- package/dist/{kn-QAWBGLHG.js → kn-RUSRJNGR.js} +2 -2
- package/dist/kn-YGEU3PSD.js +2 -0
- package/dist/ko-2GI6Z5YH.js +2 -0
- package/dist/ko-QK33QMU2.js +2 -0
- package/dist/{lightbox-DEvsB5dB.d.ts → lightbox-BmkHgtZg.d.ts} +1 -1
- package/dist/lightbox.d.ts +4 -3
- package/dist/lightbox.js +1 -1
- package/dist/{lo-JNUKFIQV.js → lo-PPDKXTQQ.js} +2 -2
- package/dist/{lo-YRHYLRZC.js → lo-ZRV6OAH6.js} +2 -2
- package/dist/login.d.ts +3 -2
- package/dist/login.js +1 -1
- package/dist/media.d.ts +3 -2
- package/dist/media.js +1 -1
- package/dist/{ml-QO64O4H6.js → ml-BIZEFHNR.js} +2 -2
- package/dist/{ml-3LXSDTNF.js → ml-KO2JGAL5.js} +2 -2
- package/dist/{mr-PLM72664.js → mr-J4AGQFC7.js} +2 -2
- package/dist/{mr-5WLN37JQ.js → mr-PZNRW5MW.js} +2 -2
- package/dist/{ms-PIAATVMD.js → ms-NYWKJQEQ.js} +2 -2
- package/dist/{ms-N544Y63H.js → ms-OMUKF5WC.js} +2 -2
- package/dist/{my-3J665CWK.js → my-FHI5JEQF.js} +2 -2
- package/dist/{my-6IKSM3XW.js → my-R4OXNUDW.js} +2 -2
- package/dist/nb-EC6AP76Y.js +2 -0
- package/dist/nb-U4QN5GJE.js +2 -0
- package/dist/{ne-ASFNHMO3.js → ne-DRPNDCZH.js} +2 -2
- package/dist/ne-J3XQJZAY.js +2 -0
- package/dist/nl-BE-QIH5K6WQ.js +2 -0
- package/dist/nl-BE-VHBDCIRF.js +2 -0
- package/dist/nl-NL-FZMZRVH4.js +2 -0
- package/dist/nl-NL-USXHXD5U.js +2 -0
- package/dist/nn-IPL74C6S.js +2 -0
- package/dist/nn-UCSEDGDB.js +2 -0
- package/dist/{pa-P2GAYL5A.js → pa-LTF7CWS2.js} +2 -2
- package/dist/{pa-VX5TUNDP.js → pa-NTK4KSUF.js} +2 -2
- package/dist/{phone-input-Q5AV6KSW.js → phone-input-DOL46AIF.js} +2 -2
- package/dist/{phone-input-T6QX2TDS.js → phone-input-PXLNDXAB.js} +2 -2
- package/dist/pl-6FXX3WNC.js +2 -0
- package/dist/pl-YWCG2YWW.js +2 -0
- package/dist/{provider-CMLzyAjJ.d.ts → provider-BYGVc6kS.d.ts} +3 -1
- package/dist/provider.d.ts +3 -2
- package/dist/provider.js +1 -1
- package/dist/pt-BR-5JRKIQVH.js +2 -0
- package/dist/pt-BR-CIJCMCLE.js +2 -0
- package/dist/pt-PT-A7F2KKCY.js +2 -0
- package/dist/pt-PT-Y2UCAKHP.js +2 -0
- package/dist/reviews.d.ts +3 -2
- package/dist/reviews.js +1 -1
- package/dist/ro-6MQF2KY2.js +2 -0
- package/dist/ro-YISUN7LU.js +2 -0
- package/dist/ru-KGU3SC3S.js +2 -0
- package/dist/ru-RMPFJQSL.js +2 -0
- package/dist/{si-5VUM5FGR.js → si-CTQN6I2M.js} +2 -2
- package/dist/{si-5F7RWQIE.js → si-N5U32GIL.js} +2 -2
- package/dist/sv-36EB3HIA.js +2 -0
- package/dist/sv-QGZRDKBJ.js +2 -0
- package/dist/sw-CWIRVHYD.js +2 -0
- package/dist/sw-OUQYTLJF.js +2 -0
- package/dist/{ta-MNWTH3F5.js → ta-E3ZBHC6A.js} +2 -2
- package/dist/{ta-R73RBA23.js → ta-N7BHKWBO.js} +2 -2
- package/dist/{te-5SBVH4OF.js → te-7JC2KGAU.js} +2 -2
- package/dist/{te-GVW56XDM.js → te-CTCZQKFU.js} +2 -2
- package/dist/{th-G6SY3D2Q.js → th-AN5CLQP6.js} +2 -2
- package/dist/{th-2GWK7DBB.js → th-JVK4E2AJ.js} +2 -2
- package/dist/tl-BSWGJB7O.js +2 -0
- package/dist/tl-X72423V3.js +2 -0
- package/dist/tr-22NUPSET.js +2 -0
- package/dist/tr-AZ2PLRZY.js +2 -0
- package/dist/{uk-PGHXMWJR.js → uk-POKPJJDZ.js} +2 -2
- package/dist/uk-UOTQJ3E7.js +2 -0
- package/dist/unit.d.ts +3 -1
- package/dist/unit.js +1 -1
- package/dist/{ur-4CR64XUI.js → ur-6LBRTMAE.js} +2 -2
- package/dist/{ur-J5HV4NTW.js → ur-NRHFTLO5.js} +2 -2
- package/dist/vi-3ZVAOXIJ.js +2 -0
- package/dist/vi-XC4CGJHX.js +2 -0
- package/dist/web-components.js +1 -1
- package/dist/zh-CN-EKEY2CLM.js +2 -0
- package/dist/zh-CN-XW3PLUG5.js +2 -0
- package/dist/zh-HK-25OZZBHO.js +2 -0
- package/dist/zh-HK-EPQAUBL3.js +2 -0
- package/dist/zh-Hant-LFJZCOMK.js +2 -0
- package/dist/zh-Hant-RQMTFZSE.js +2 -0
- package/package.json +2 -2
- package/dist/CustomerAccountPanel-DJKV7LT4.js +0 -2
- package/dist/CustomerAccountPanel-RWEHWBJY.js +0 -2
- package/dist/FormFileField-LZDCXI2Z.js +0 -2
- package/dist/FormFileField-ONL4Q55V.js +0 -2
- package/dist/KanorioAccount-EN3TM67X.js +0 -2
- package/dist/KanorioAccount-XGVSGVYN.js +0 -2
- package/dist/KanorioAnalytics-NEKTFQEE.js +0 -2
- package/dist/KanorioAnalytics-UMCUWQM7.js +0 -2
- package/dist/KanorioCurriculum-3QSCOHK7.js +0 -2
- package/dist/KanorioCurriculum-RUIGZ5X7.js +0 -2
- package/dist/KanorioForm-GUA5GEJY.js +0 -2
- package/dist/KanorioForm-KXV7D2TU.js +0 -2
- package/dist/KanorioLightbox-M72HNQQX.js +0 -2
- package/dist/KanorioLightbox-TQ3Q73TD.js +0 -2
- package/dist/KanorioLogin-5XFN3YEE.js +0 -2
- package/dist/KanorioLogin-AJHHVQGV.js +0 -2
- package/dist/KanorioMedia-ADKUDH5C.js +0 -2
- package/dist/KanorioMedia-DLBSXCKA.js +0 -2
- package/dist/KanorioReviews-42FZSXTI.js +0 -2
- package/dist/KanorioReviews-7LD5WKFG.js +0 -2
- package/dist/KanorioUnit-NWBX5DEI.js +0 -2
- package/dist/KanorioUnit-SIM3344J.js +0 -2
- package/dist/ar-3VA7IUCO.js +0 -2
- package/dist/ar-AUQCHHZG.js +0 -2
- package/dist/bg-IRGRVWOG.js +0 -2
- package/dist/bg-QWC2KG3G.js +0 -2
- package/dist/chunk-4BBERZ6T.js +0 -2
- package/dist/chunk-5AUWUK5R.js +0 -2
- package/dist/chunk-66XN5RR4.js +0 -2
- package/dist/chunk-EZMTUAQX.js +0 -2
- package/dist/chunk-FSY5GB5E.js +0 -3
- package/dist/chunk-G4U6BFZY.js +0 -2
- package/dist/chunk-GJY6AQIS.js +0 -2
- package/dist/chunk-IXDKZO42.js +0 -2
- package/dist/chunk-MIQK3T3Y.js +0 -2
- package/dist/chunk-QGR3QAQB.js +0 -3
- package/dist/chunk-SUXTLVTX.js +0 -2
- package/dist/chunk-UIHBR4NU.js +0 -3
- package/dist/chunk-WXIUWMFR.js +0 -2
- package/dist/cs-3IX2ZQKJ.js +0 -2
- package/dist/cs-NZW6FBFY.js +0 -2
- package/dist/da-AFMLFM32.js +0 -2
- package/dist/da-PZ32KKTE.js +0 -2
- package/dist/de-5JPEK4HF.js +0 -2
- package/dist/de-MVL4XGYR.js +0 -2
- package/dist/en-AIAENVLI.js +0 -2
- package/dist/en-AU-LB5UVGIW.js +0 -2
- package/dist/en-AU-Q2O2HPJ2.js +0 -2
- package/dist/en-CA-AZDOY7PW.js +0 -2
- package/dist/en-CA-PVKXM3WS.js +0 -2
- package/dist/en-GB-2N4WB6SL.js +0 -2
- package/dist/en-GB-Y5QRPC7S.js +0 -2
- package/dist/en-SAXQF5YW.js +0 -2
- package/dist/en-US-74L4OI3J.js +0 -2
- package/dist/en-US-EKS52JBW.js +0 -2
- package/dist/es-419-Q5IH6W5F.js +0 -2
- package/dist/es-419-VSZWGONE.js +0 -2
- package/dist/es-ES-7L55KPLO.js +0 -2
- package/dist/es-ES-ETSYFLPQ.js +0 -2
- package/dist/fa-WRJCKGS3.js +0 -2
- package/dist/fi-44ST6B6Q.js +0 -2
- package/dist/fi-J6NJBPNK.js +0 -2
- package/dist/fr-CA-KXRNFZBP.js +0 -2
- package/dist/fr-CA-PWWAPLBH.js +0 -2
- package/dist/fr-FR-FMLQPLOD.js +0 -2
- package/dist/fr-FR-MQAFE7IX.js +0 -2
- package/dist/he-GNC45OCB.js +0 -2
- package/dist/he-VXZCGAHY.js +0 -2
- package/dist/id-7DWHYYFC.js +0 -2
- package/dist/id-DCV57AQB.js +0 -2
- package/dist/it-7RASZ4SK.js +0 -2
- package/dist/it-JICU5WVL.js +0 -2
- package/dist/ja-4V7QJLTM.js +0 -2
- package/dist/ja-52MBIM3T.js +0 -2
- package/dist/kn-5DYCOYAN.js +0 -2
- package/dist/ko-55JV4VQK.js +0 -2
- package/dist/ko-FZIJZG6K.js +0 -2
- package/dist/nb-345ACUTX.js +0 -2
- package/dist/nb-F33WYJ6T.js +0 -2
- package/dist/ne-AAIECB2W.js +0 -2
- package/dist/nl-BE-SHZLAL5T.js +0 -2
- package/dist/nl-BE-WK4C6XRZ.js +0 -2
- package/dist/nl-NL-2YLHGJZL.js +0 -2
- package/dist/nl-NL-PHRY43UB.js +0 -2
- package/dist/nn-I5A2LCBH.js +0 -2
- package/dist/nn-S3SNETRB.js +0 -2
- package/dist/pl-4Y4BWTLT.js +0 -2
- package/dist/pl-SGPLZAER.js +0 -2
- package/dist/pt-BR-CW3MRSRP.js +0 -2
- package/dist/pt-BR-WKEKB5CG.js +0 -2
- package/dist/pt-PT-AJZQS2C6.js +0 -2
- package/dist/pt-PT-ZTPCI2K6.js +0 -2
- package/dist/ro-ANISGUFX.js +0 -2
- package/dist/ro-HRV64STT.js +0 -2
- package/dist/ru-7U566HR4.js +0 -2
- package/dist/ru-PKSZKOLH.js +0 -2
- package/dist/sv-HZVCM7LG.js +0 -2
- package/dist/sv-UOGO55PW.js +0 -2
- package/dist/sw-5XU65KFC.js +0 -2
- package/dist/sw-KVAYRFED.js +0 -2
- package/dist/tl-OCD2O6J3.js +0 -2
- package/dist/tl-PZNXANIM.js +0 -2
- package/dist/tr-2BDM6H5Q.js +0 -2
- package/dist/tr-VFMHVRQX.js +0 -2
- package/dist/uk-OQRACKKD.js +0 -2
- package/dist/vi-MQSOSIUY.js +0 -2
- package/dist/vi-U7OT2LM7.js +0 -2
- package/dist/zh-CN-CCYHPSVA.js +0 -2
- package/dist/zh-CN-RNW2BEY7.js +0 -2
- package/dist/zh-HK-HE2T63O2.js +0 -2
- package/dist/zh-HK-RKREDSAO.js +0 -2
- package/dist/zh-Hant-GBQLGJDF.js +0 -2
- package/dist/zh-Hant-T6KHSA5B.js +0 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import{a as Pn}from"./chunk-KDNGDR64.js";import"./chunk-D7K3YCBR.js";import{a as Fn}from"./chunk-WP7UEAIB.js";import"./chunk-VYSRVTYI.js";import{a as mt,b as Ta,g as Ia,i as Ca}from"./chunk-2LOQXVFI.js";import{a as Sa,b as it,c as Mn}from"./chunk-
|
|
2
|
-
`)],{type:"text/plain;charset=utf-8"}),_=URL.createObjectURL(x),$=document.createElement("a");$.href=_,$.download=`${c||"transcript"}.${i.locale}.txt`,document.body.appendChild($),$.click(),$.remove(),setTimeout(()=>URL.revokeObjectURL(_),1e3)},M=x=>{let _=uc(x.locale,u);return x.edited?_:x.source==="ai"?Fr(u,_,e.transcriptAutoGenerated):x.source==="translation"?Fr(u,_,e.transcriptAutoTranslated):_};return(0,Y.jsxs)("section",{className:E("rounded-[var(--site-radius-card,0.75rem)] border",Ut,ac,p),"aria-label":e.transcript,"data-kanorio-transcript":!0,children:[(0,Y.jsxs)("button",{type:"button",onClick:()=>t(!n),"aria-expanded":n,className:E("flex min-h-12 w-full items-center gap-2 px-3 text-left text-sm font-semibold",ht),children:[(0,Y.jsx)(Ln,{className:E("h-4 w-4 shrink-0",We),"aria-hidden":"true"}),(0,Y.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.transcript}),(0,Y.jsx)("span",{className:E("text-xs font-normal",We),children:n?e.transcriptHide:e.transcriptShow}),(0,Y.jsx)(Dt,{className:E("h-4 w-4 shrink-0 transition-transform",We,n&&"rotate-180"),"aria-hidden":"true"})]}),n&&(0,Y.jsx)("div",{className:E("border-t",Ut),children:r==="loading"||r==="idle"?(0,Y.jsx)("div",{className:"space-y-2 p-3","aria-busy":"true",children:[0,1,2].map(x=>(0,Y.jsx)("div",{className:"h-4 animate-pulse rounded bg-black/5 dark:bg-white/10",style:{width:`${80-x*15}%`}},x))}):r==="error"||!i?(0,Y.jsxs)("div",{role:"alert",className:E("flex flex-col items-center gap-2 p-6 text-center text-sm",We),children:[(0,Y.jsx)("p",{children:e.loadError}),(0,Y.jsxs)("button",{type:"button",onClick:l,className:E(Dn,Ut,ht),children:[(0,Y.jsx)(_n,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",e.retry]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"flex flex-wrap items-center gap-2 p-3",children:[(0,Y.jsxs)("label",{className:"relative min-w-40 flex-1",children:[(0,Y.jsx)(ca,{className:E("pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2",We),"aria-hidden":"true"}),(0,Y.jsx)(Pn,{type:"search",value:f,onChange:x=>d(x.target.value),placeholder:e.transcriptSearch,"aria-label":e.transcriptSearch,className:"h-10 pl-9"})]}),(0,Y.jsx)("button",{type:"button",onClick:()=>v(x=>!x),"aria-pressed":b,className:E(Dn,Ut,b?ht:We,b&&"bg-black/5 dark:bg-white/10"),children:e.transcriptFollow}),(0,Y.jsxs)("button",{type:"button",onClick:A,className:E(Dn,Ut,ht),children:[(0,Y.jsx)(Bt,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",e.transcriptDownload]})]}),i.tracks.length>1&&(0,Y.jsx)("div",{className:"flex flex-wrap items-center gap-2 px-3 pb-3",role:"group","aria-label":e.transcriptLanguage,children:i.tracks.map(x=>(0,Y.jsx)("button",{type:"button",onClick:()=>s(x.locale),"aria-pressed":x.locale===i.locale,lang:x.locale,className:E(Dn,Ut,x.locale===i.locale?E(ht,"bg-black/5 dark:bg-white/10"):We),children:M(x)},x.locale))}),C&&(0,Y.jsx)("p",{className:E("px-3 pb-2 text-xs",We),role:"status",children:C.length>0?sc(e.transcriptMatches,{count:C.length}):e.transcriptNoResults}),(0,Y.jsx)("ol",{ref:N,className:"max-h-80 overflow-y-auto px-2 pb-2",lang:i.locale,children:I.map(x=>{let _=i.segments[x],$=x===a;return(0,Y.jsx)("li",{"data-index":x,children:(0,Y.jsxs)("button",{type:"button",onClick:()=>o(_.s),"aria-current":$?"true":void 0,className:E("flex w-full gap-3 rounded-[var(--site-radius-button,0.5rem)] px-2 py-1.5 text-left text-sm hover:bg-black/5 dark:hover:bg-white/10",$?E(ht,"bg-black/5 font-medium dark:bg-white/10"):ht),children:[(0,Y.jsx)("span",{className:E("w-11 shrink-0 pt-0.5 font-mono text-xs tabular-nums",We),children:lc(_.s)}),(0,Y.jsx)("span",{className:"min-w-0 flex-1 leading-relaxed",children:cc(_.t,y)})]})},x)})})]})})]})}function Na(e){return e.width<768?"mobile":e.coarsePointer&&e.width<1024?"tablet":"desktop"}var Ru=W(Ft());var au=W(Ft());var pc=["javascript:","data:","vbscript:","file:","blob:","about:"];function $t(e){let n=e.trim();if(!n)return!1;let t=n.toLowerCase();for(let a of pc)if(t.startsWith(a))return!1;if(t.startsWith("https://")||t.startsWith("http://")||t.startsWith("mailto:")||t.startsWith("tel:"))return!0;if(n.startsWith("//"))return!1;if(n.startsWith("#")||n.startsWith("?")||n.startsWith("/"))return!0;let r=n.indexOf(":"),i=n.indexOf("/");return!(r!==-1&&(i===-1||r<i))}function On(e){let n=e.trim().toLowerCase();return n.startsWith("https://")||n.startsWith("http://")}var dc=new Set(["text","strong","emphasis","delete","inlineCode","link","break","underline","inlineStyle","image"]);function fc(e){return dc.has(e.type)}function mc(e,n){let t=e.trim();if(!$t(t))return!1;if(n!=="email")return!0;let r=t.toLowerCase();return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("mailto:")||r.startsWith("tel:")}var hc=/^\s*<br\s*\/?>\s*$/i;function Dr(e){let n=[];for(let t of e??[]){if(t.type==="strong"){n.push(...Dr(t.children));continue}n.push(t.children?{...t,children:Dr(t.children)}:t)}return n}function gc(e,n){n.push({from:e.type,to:"text"});let t=e.label??e.identifier??"";if(e.type==="footnoteReference")return{type:"text",value:`(${t})`};let r=(e.children??[]).flatMap(i=>i.type==="paragraph"?i.children??[]:[i]);return{type:"paragraph",children:[{type:"text",value:`(${t}) `},...r]}}function rn(e,n,t){let r=[];for(let i of e??[]){let a=yc(i,n,t);a&&r.push(a)}return r}function xc(e){return(e.children??[]).some(t=>za(t)>0)?{type:"paragraph",children:[{type:"strong",children:Dr(e.children)}]}:{type:"paragraph",children:[]}}function za(e){return e.type==="text"?(e.value??"").trim().length:(e.children??[]).reduce((n,t)=>n+za(t),0)}function bc(e){let n=e.children??[],t=(n[0]?.children??[]).map(i=>Ur(i));return{type:"list",ordered:!1,spread:!1,children:(n.length>1?n.slice(1):n).map(i=>({type:"listItem",spread:!1,children:[{type:"paragraph",children:kc(i,n.length>1?t:null)}]}))}}function Ur(e){let n=[],t=r=>{r.type==="text"&&r.value&&n.push(r.value);for(let i of r.children??[])t(i)};return t(e),n.join("").trim()}function kc(e,n){let t=e.children??[],r=[],i=ma([...n??[],...t.map(a=>Ur(a))].join(""));return t.forEach((a,o)=>{r.length>0&&r.push({type:"text",value:i.item});let s=n?.[o];s&&r.push({type:"text",value:`${s}${i.labelValue}`}),r.push(...a.children??[])}),r.length>0?r:[{type:"text",value:""}]}function yc(e,n,t){if(e.type==="html")return hc.test(e.value??"")?(t.push({from:"html",to:"break"}),{type:"break"}):(t.push({from:"html",to:"removed"}),null);if(e.type==="yaml"||e.type==="definition")return t.push({from:e.type,to:"removed"}),null;if(e.type==="footnoteReference"||e.type==="footnoteDefinition")return gc(e,t);if(e.type==="link"&&!mc(e.url??"",n))return t.push({from:"link",to:"text"}),{type:"text",value:Ur(e)||e.url||""};if(n==="article")return e.type==="heading"&&e.depth===1?(t.push({from:"heading",to:"heading"}),{...e,depth:2,children:rn(e.children,n,t)}):e.children?{...e,children:rn(e.children,n,t)}:e;if(e.type==="kanorioDirective")return t.push({from:"directive",to:"removed"}),null;if(e.type==="image"&&(n==="inline"||n==="body"||n==="plain"))return t.push({from:"image",to:"removed"}),null;if(n==="email"&&e.type==="heading"){let r=!e.depth||e.depth<=2?2:3;return r!==e.depth&&t.push({from:"heading",to:"heading"}),{...e,depth:r,children:rn(e.children,n,t)}}return(n==="body"||n==="plain"||n==="inline")&&e.type==="heading"?(t.push({from:"heading",to:"strong"}),xc(e)):(n==="body"||n==="plain"||n==="inline"||n==="email")&&e.type==="table"?(t.push({from:"table",to:"list"}),bc(e)):(n==="body"||n==="inline"||n==="plain")&&(e.type==="thematicBreak"||e.type==="code"&&n==="inline")?(t.push({from:e.type,to:n==="inline"?"text":"removed"}),n==="inline"&&e.type==="code"?{type:"paragraph",children:[{type:"text",value:e.value??""}]}:null):n==="email"&&e.type==="thematicBreak"?(t.push({from:"thematicBreak",to:"removed"}),null):e.children?{...e,children:rn(e.children,n,t)}:e}function Ra(e,n){let t=[],r=()=>{let a=t[t.length-1];a&&(a.type==="text"&&a.value?.endsWith(" ")||t.push({type:"text",value:" "}))},i=a=>{for(let o of a){if(fc(o)&&o.type!=="image"){o.type==="text"&&o.value?t.push({...o,value:o.value.replace(/[\r\n]+/g," ")}):o.type!=="image"&&t.push(o.children?{...o,children:Ra(o.children,n)}:o);continue}if(o.type==="image"||o.type==="kanorioDirective"){n.push({from:o.type==="image"?"image":"directive",to:"removed"});continue}if(t.length>0&&r(),o.type==="code"){n.push({from:"code",to:"text"}),t.push({type:"text",value:(o.value??"").replace(/[\r\n]+/g," ")});continue}if(o.type==="list"){o.children?.forEach((s,l)=>{t.length>0&&r(),t.push({type:"text",value:o.ordered?`${(o.start??1)+l}. `:"- "}),i(s.children??[])});continue}i(o.children??[])}};return i(e),t.filter(a=>a.type!=="text"||a.value!=="")}function wc(e){let n=e.children?.[0];n?.type!=="text"||!n.value||(n.value=n.value.replace(/^(?:\s*[•·])+\s*/,""),n.value||e.children?.shift())}function Or(e,n){if(!e||e.length===0)return;let t=n==="start"?0:e.length-1,r=e[t];if(r){if(r.type==="text"&&typeof r.value=="string"){r.value=n==="start"?r.value.replace(/^\s+/,""):r.value.replace(/\s+$/,"");return}r.children&&Or(r.children,n)}}function Br(e){(e.type==="paragraph"||e.type==="heading")&&(Or(e.children,"start"),Or(e.children,"end"));for(let n of e.children??[])Br(n)}var Sc=/\*{2,}|__|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g,Tc=/\*{2,}|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g;function La(e,n,t){let r=t==="inline"||t==="body"?Tc:Sc;if(e.type==="text"&&e.value){let i=e.value.replace(r,"");i!==e.value&&(n.push({from:"unclosed-marker",to:"text"}),e.value=i)}for(let i of e.children??[])La(i,n,t)}var Ic=new Set(["root","blockquote","listItem","list"]);function _a(e){if(e.children){Ic.has(e.type)&&(e.children=e.children.filter(n=>n.type!=="break"));for(let n of e.children)_a(n)}}function Pa(e){return e.map(n=>n.type==="break"?{type:"text",value:" "}:n.children?{...n,children:Pa(n.children)}:n)}function Ma(e){if(!e.children)return;let n=[];for(let t of e.children){if(Ma(t),t.type==="text"){if(!t.value)continue;let r=n[n.length-1];if(r?.type==="text"){r.value=(r.value??"")+t.value;continue}n.push({type:"text",value:t.value});continue}Cc.has(t.type)&&(t.children?.length??0)===0||t.type==="paragraph"&&(t.children?.length??0)===0||n.push(t)}e.children=n}var Cc=new Set(["strong","emphasis","delete","underline","inlineStyle","link"]);function ot(e,n){let t=[];if(n==="plain")return ot(e,"body");let r={type:"root",children:rn(e.children,n,t)};La(r,t,n);let i=n==="inline"?{type:"root",children:[{type:"paragraph",children:Pa(Ra(r.children??[],t))}]}:r;return _a(i),Br(i),Ma(i),n==="inline"&&i.children?.[0]&&(wc(i.children[0]),Br(i)),{tree:i,changes:t}}function $r(e){if(e)throw e}var $n=W(ja(),1);function on(e){if(typeof e!="object"||e===null)return!1;let n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hr(){let e=[],n={run:t,use:r};return n;function t(...i){let a=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){let c=e[++a],p=-1;if(l){o(l);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,c?Ga(c,s)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ga(e,n){let t;return r;function r(...o){let s=e.length>o.length,l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){let c=u;if(s&&t)throw c;return i(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){t||(t=!0,n(o,...s))}function a(o){i(null,o)}}function at(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Va(e.position):"start"in e||"end"in e?Va(e):"line"in e||"column"in e?qr(e):""}function qr(e){return Wa(e&&e.line)+":"+Wa(e&&e.column)}function Va(e){return qr(e&&e.start)+"-"+qr(e&&e.end)}function Wa(e){return e&&typeof e=="number"?e:1}var pe=class extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?i=n:!a.cause&&n&&(o=!0,i=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=at(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};pe.prototype.file="";pe.prototype.name="";pe.prototype.reason="";pe.prototype.message="";pe.prototype.stack="";pe.prototype.column=void 0;pe.prototype.line=void 0;pe.prototype.ancestors=void 0;pe.prototype.cause=void 0;pe.prototype.fatal=void 0;pe.prototype.place=void 0;pe.prototype.ruleId=void 0;pe.prototype.source=void 0;var _e={basename:Ec,dirname:vc,extname:Ac,join:Nc,sep:"/"};function Ec(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');an(e);let t=0,r=-1,i=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,s=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===n.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function vc(e){if(an(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ac(e){an(e);let n=e.length,t=-1,r=0,i=-1,a=0,o;for(;n--;){let s=e.codePointAt(n);if(s===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),s===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||t<0||a===0||a===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Nc(...e){let n=-1,t;for(;++n<e.length;)an(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":zc(t)}function zc(e){an(e);let n=e.codePointAt(0)===47,t=Rc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Rc(e,n){let t="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(l=t.lastIndexOf("/"),l!==t.length-1){l<0?(t="",r=0):(t=t.slice(0,l),r=t.length-1-t.lastIndexOf("/")),i=o,a=0;continue}}else if(t.length>0){t="",r=0,i=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return t}function an(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Qa={cwd:Lc};function Lc(){return"/"}function Ht(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ya(e){if(typeof e=="string")e=new URL(e);else if(!Ht(e)){let n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){let n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return _c(e)}function _c(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let n=e.pathname,t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){let r=n.codePointAt(t+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}var jr=["history","path","basename","stem","extname","dirname"],sn=class{constructor(n){let t;n?Ht(n)?t={path:n}:typeof n=="string"||Pc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Qa.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<jr.length;){let a=jr[r];a in t&&t[a]!==void 0&&t[a]!==null&&(this[a]=a==="history"?[...t[a]]:t[a])}let i;for(i in t)jr.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?_e.basename(this.path):void 0}set basename(n){Vr(n,"basename"),Gr(n,"basename"),this.path=_e.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?_e.dirname(this.path):void 0}set dirname(n){Xa(this.basename,"dirname"),this.path=_e.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?_e.extname(this.path):void 0}set extname(n){if(Gr(n,"extname"),Xa(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_e.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ht(n)&&(n=Ya(n)),Vr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?_e.basename(this.path,this.extname):void 0}set stem(n){Vr(n,"stem"),Gr(n,"stem"),this.path=_e.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){let i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){let i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){let i=new pe(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}};function Gr(e,n){if(e&&e.includes(_e.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+_e.sep+"`")}function Vr(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Xa(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Pc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Ka=(function(e){let r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a});var Mc={}.hasOwnProperty,Xr=class e extends Ka{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Hr()}copy(){let n=new e,t=-1;for(;++t<this.attachers.length;){let r=this.attachers[t];n.use(...r)}return n.data((0,$n.default)(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Yr("data",this.frozen),this.namespace[n]=t,this):Mc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Yr("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;let n=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();let t=Un(n),r=this.parser||this.Parser;return Wr("parse",r),r(String(t),t)}process(n,t){let r=this;return this.freeze(),Wr("process",this.parser||this.Parser),Qr("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(a,o){let s=Un(n),l=r.parse(s);r.run(l,s,function(c,p,f){if(c||!p||!f)return u(c);let d=p,b=r.stringify(d,f);Dc(b)?f.value=b:f.result=b,u(c,f)});function u(c,p){c||!p?o(c):a?a(p):t(void 0,p)}}}processSync(n){let t=!1,r;return this.freeze(),Wr("processSync",this.parser||this.Parser),Qr("processSync",this.compiler||this.Compiler),this.process(n,i),Ja("processSync","process",t),r;function i(a,o){t=!0,$r(a),r=o}}run(n,t,r){Za(n),this.freeze();let i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(o,s){let l=Un(t);i.run(n,l,u);function u(c,p,f){let d=p||n;c?s(c):o?o(d):r(void 0,d,f)}}}runSync(n,t){let r=!1,i;return this.run(n,t,a),Ja("runSync","run",r),i;function a(o,s){$r(o),i=s,r=!0}}stringify(n,t){this.freeze();let r=Un(t),i=this.compiler||this.Compiler;return Qr("stringify",i),Za(n),i(n,r)}use(n,...t){let r=this.attachers,i=this.namespace;if(Yr("use",this.frozen),n!=null)if(typeof n=="function")l(n,t);else if(typeof n=="object")Array.isArray(n)?s(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...p]=u;l(c,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=(0,$n.default)(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let p=u[c];a(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let p=-1,f=-1;for(;++p<r.length;)if(r[p][0]===u){f=p;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[d,...b]=c,v=r[f][1];on(v)&&on(d)&&(d=(0,$n.default)(!0,v,d)),r[f]=[u,d,...b]}}}},Kr=new Xr().freeze();function Wr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Qr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yr(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Za(e){if(!on(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ja(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Un(e){return Fc(e)?e:new sn(e)}function Fc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dc(e){return typeof e=="string"||Oc(e)}function Oc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Bc={};function gt(e,n){let t=n||Bc,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return ts(e,r,i)}function ts(e,n,t){if(Uc(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return es(e.children,n,t)}return Array.isArray(e)?es(e,n,t):""}function es(e,n,t){let r=[],i=-1;for(;++i<e.length;)r[i]=ts(e[i],n,t);return r.join("")}function Uc(e){return!!(e&&typeof e=="object")}var ns=document.createElement("i");function qt(e){let n="&"+e+";";ns.innerHTML=n;let t=ns.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ie(e,n,t,r){let i=e.length,a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function ae(e,n){return e.length>0?(ie(e,e.length,0,n),e):n}var rs={}.hasOwnProperty;function Hn(e){let n={},t=-1;for(;++t<e.length;)$c(n,e[t]);return n}function $c(e,n){let t;for(t in n){let i=(rs.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t],o;if(a)for(o in a){rs.call(i,o)||(i[o]=[]);let s=a[o];Hc(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Hc(e,n){let t=-1,r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ie(e,0,0,r)}function qn(e,n){let t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"\uFFFD":String.fromCodePoint(t)}function be(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ue=st(/[A-Za-z]/),ce=st(/[\dA-Za-z]/),is=st(/[#-'*+\--9=?A-Z^-~]/);function xt(e){return e!==null&&(e<32||e===127)}var ln=st(/\d/),os=st(/[\dA-Fa-f]/),as=st(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}var bt=st(/\p{P}|\p{S}/u),Fe=st(/\s/);function st(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function D(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return o;function o(l){return O(l)?(e.enter(t),s(l)):n(l)}function s(l){return O(l)&&a++<i?(e.consume(l),s):(e.exit(t),n(l))}}var ss={tokenize:qc};function qc(e){let n=e.attempt(this.parser.constructs.contentInitial,r,i),t;return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),D(e,n,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return L(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}var us={tokenize:jc},ls={tokenize:Gc};function jc(e){let n=this,t=[],r=0,i,a,o;return s;function s(I){if(r<t.length){let A=t[r];return n.containerState=A[1],e.attempt(A[0].continuation,l,u)(I)}return u(I)}function l(I){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&C();let A=n.events.length,M=A,x;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){x=n.events[M][1].end;break}y(r);let _=A;for(;_<n.events.length;)n.events[_][1].end={...x},_++;return ie(n.events,M+1,0,n.events.slice(A)),n.events.length=_,u(I)}return s(I)}function u(I){if(r===t.length){if(!i)return f(I);if(i.currentConstruct&&i.currentConstruct.concrete)return b(I);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ls,c,p)(I)}function c(I){return i&&C(),y(r),f(I)}function p(I){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(I)}function f(I){return n.containerState={},e.attempt(ls,d,b)(I)}function d(I){return r++,t.push([n.currentConstruct,n.containerState]),f(I)}function b(I){if(I===null){i&&C(),y(0),e.consume(I);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),v(I)}function v(I){if(I===null){N(e.exit("chunkFlow"),!0),y(0),e.consume(I);return}return L(I)?(e.consume(I),N(e.exit("chunkFlow")),r=0,n.interrupt=void 0,s):(e.consume(I),v)}function N(I,A){let M=n.sliceStream(I);if(A&&M.push(null),I.previous=a,a&&(a.next=I),a=I,i.defineSkip(I.start),i.write(M),n.parser.lazy[I.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;let _=n.events.length,$=_,B,w;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(B){w=n.events[$][1].end;break}B=!0}for(y(r),x=_;x<n.events.length;)n.events[x][1].end={...w},x++;ie(n.events,$+1,0,n.events.slice(_)),n.events.length=x}}function y(I){let A=t.length;for(;A-- >I;){let M=t[A];n.containerState=M[1],M[0].exit.call(n,e)}t.length=I}function C(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Gc(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jt(e){if(e===null||G(e)||Fe(e))return 1;if(bt(e))return 2}function De(e,n,t){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}var un={name:"attention",resolveAll:Vc,tokenize:Wc};function Vc(e,n){let t=-1,r,i,a,o,s,l,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;let p={...e[r][1].end},f={...e[t][1].start};cs(p,-l),cs(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[t][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ae(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ae(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),u=ae(u,De(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ae(u,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=ae(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,ie(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Wc(e,n){let t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jt(r),a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;let u=e.exit("attentionSequence"),c=jt(l),p=!c||c===2&&i||t.includes(l),f=!i||i===2&&c||t.includes(r);return u._open=!!(a===42?p:p&&(i||!f)),u._close=!!(a===42?f:f&&(c||!p)),n(l)}}function cs(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}var Zr={name:"autolink",tokenize:Qc};function Qc(e,n,t){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return ue(d)?(e.consume(d),o):d===64?t(d):u(d)}function o(d){return d===43||d===45||d===46||ce(d)?(r=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||ce(d))&&r++<32?(e.consume(d),s):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):d===null||d===32||d===60||xt(d)?t(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):is(d)?(e.consume(d),u):t(d)}function c(d){return ce(d)?p(d):t(d)}function p(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):f(d)}function f(d){if((d===45||ce(d))&&r++<63){let b=d===45?f:p;return e.consume(d),b}return t(d)}}var Oe={partial:!0,tokenize:Yc};function Yc(e,n,t){return r;function r(a){return O(a)?D(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||L(a)?n(a):t(a)}}var jn={continuation:{tokenize:Kc},exit:Zc,name:"blockQuote",tokenize:Xc};function Xc(e,n,t){let r=this;return i;function i(o){if(o===62){let s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return t(o)}function a(o){return O(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Kc(e,n,t){let r=this;return i;function i(o){return O(o)?D(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(jn,n,t)(o)}}function Zc(e){e.exit("blockQuote")}var Gn={name:"characterEscape",tokenize:Jc};function Jc(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return as(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}var Vn={name:"characterReference",tokenize:ep};function ep(e,n,t){let r=this,i=0,a,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=ce,c(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=os,c):(e.enter("characterReferenceValue"),a=7,o=ln,c(p))}function c(p){if(p===59&&i){let f=e.exit("characterReferenceValue");return o===ce&&!qt(r.sliceSerialize(f))?t(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(p)&&i++<a?(e.consume(p),c):t(p)}}var ps={partial:!0,tokenize:np},Wn={concrete:!0,name:"codeFenced",tokenize:tp};function tp(e,n,t){let r=this,i={partial:!0,tokenize:M},a=0,o=0,s;return l;function l(x){return u(x)}function u(x){let _=r.events[r.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===s?(o++,e.consume(x),c):o<3?t(x):(e.exit("codeFencedFenceSequence"),O(x)?D(e,p,"whitespace")(x):p(x))}function p(x){return x===null||L(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(ps,v,A)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===null||L(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(x)):O(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,d,"whitespace")(x)):x===96&&x===s?t(x):(e.consume(x),f)}function d(x){return x===null||L(x)?p(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===null||L(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(x)):x===96&&x===s?t(x):(e.consume(x),b)}function v(x){return e.attempt(i,A,N)(x)}function N(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return a>0&&O(x)?D(e,C,"linePrefix",a+1)(x):C(x)}function C(x){return x===null||L(x)?e.check(ps,v,A)(x):(e.enter("codeFlowValue"),I(x))}function I(x){return x===null||L(x)?(e.exit("codeFlowValue"),C(x)):(e.consume(x),I)}function A(x){return e.exit("codeFenced"),n(x)}function M(x,_,$){let B=0;return w;function w(q){return x.enter("lineEnding"),x.consume(q),x.exit("lineEnding"),S}function S(q){return x.enter("codeFencedFence"),O(q)?D(x,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):j(q)}function j(q){return q===s?(x.enter("codeFencedFenceSequence"),R(q)):$(q)}function R(q){return q===s?(B++,x.consume(q),R):B>=o?(x.exit("codeFencedFenceSequence"),O(q)?D(x,U,"whitespace")(q):U(q)):$(q)}function U(q){return q===null||L(q)?(x.exit("codeFencedFence"),_(q)):$(q)}}}function np(e,n,t){let r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}var cn={name:"codeIndented",tokenize:ip},rp={partial:!0,tokenize:op};function ip(e,n,t){let r=this;return i;function i(u){return e.enter("codeIndented"),D(e,a,"linePrefix",5)(u)}function a(u){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?l(u):L(u)?e.attempt(rp,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||L(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),n(u)}}function op(e,n,t){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):L(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):D(e,a,"linePrefix",5)(o)}function a(o){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):L(o)?i(o):t(o)}}var Jr={name:"codeText",previous:sp,resolve:ap,tokenize:lp};function ap(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function sp(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lp(e,n,t){let r=this,i=0,a,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),i++,l):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(o=e.enter("codeTextSequence"),a=0,p(f)):L(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||L(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),a++,p):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(o.type="codeTextData",c(f))}}var Qn=class{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){let r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){let i=t||0;this.setCursor(Math.trunc(n));let a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&pn(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),pn(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),pn(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){let t=this.left.splice(n,Number.POSITIVE_INFINITY);pn(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);pn(this.left,t.reverse())}}};function pn(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Yn(e){let n={},t=-1,r,i,a,o,s,l,u,c=new Qn(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,up(c,t)),t=n[t],u=!0);else if(r[1]._container){for(a=t,i=void 0;a--;)if(o=c.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},s=c.slice(i,t),s.unshift(r),c.splice(i,t-i+1,s))}}return ie(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function up(e,n){let t=e.get(n)[1],r=e.get(n)[2],i=n-1,a=[],o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,l=[],u={},c,p,f=-1,d=t,b=0,v=0,N=[v];for(;d;){for(;e.get(++i)[1]!==d;);a.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),p&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=d,d=d.next}for(d=t;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,N.push(v),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):N.pop(),f=N.length;f--;){let y=s.slice(N[f],N[f+1]),C=a.pop();l.push([C,C+y.length-1]),e.splice(C,2,y)}for(l.reverse(),f=-1;++f<l.length;)u[b+l[f][0]]=b+l[f][1],b+=l[f][1]-l[f][0]-1;return u}var ei={resolve:pp,tokenize:dp},cp={partial:!0,tokenize:fp};function pp(e){return Yn(e),e}function dp(e,n){let t;return r;function r(s){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):L(s)?e.check(cp,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),n(s)}function o(s){return e.consume(s),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function fp(e,n,t){let r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,a,"linePrefix")}function a(o){if(o===null||L(o))return t(o);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Xn(e,n,t,r,i,a,o,s,l){let u=l||Number.POSITIVE_INFINITY,c=0;return p;function p(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||xt(y)?t(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||L(y)?t(y):(e.consume(y),y===92?b:d)}function b(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function v(y){return!c&&(y===null||y===41||G(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),n(y)):c<u&&y===40?(e.consume(y),c++,v):y===41?(e.consume(y),c--,v):y===null||y===32||y===40||xt(y)?t(y):(e.consume(y),y===92?N:v)}function N(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function Kn(e,n,t,r,i,a){let o=this,s=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(a),c}function c(d){return s>999||d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?t(d):d===93?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):L(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===null||d===91||d===93||L(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!O(d)),d===92?f:p)}function f(d){return d===91||d===92||d===93?(e.consume(d),s++,p):p(d)}}function Zn(e,n,t,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):t(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(a),u(f))}function u(f){return f===o?(e.exit(a),l(o)):f===null?t(f):L(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),D(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||L(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:c)}function p(f){return f===o||f===92?(e.consume(f),c):c(f)}}function kt(e,n){let t;return r;function r(i){return L(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):O(i)?D(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}var ti={name:"definition",tokenize:hp},mp={partial:!0,tokenize:gp};function hp(e,n,t){let r=this,i;return a;function a(d){return e.enter("definition"),o(d)}function o(d){return Kn.call(r,e,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):t(d)}function l(d){return G(d)?kt(e,u)(d):u(d)}function u(d){return Xn(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(mp,p,p)(d)}function p(d){return O(d)?D(e,f,"whitespace")(d):f(d)}function f(d){return d===null||L(d)?(e.exit("definition"),r.parser.defined.push(i),n(d)):t(d)}}function gp(e,n,t){return r;function r(s){return G(s)?kt(e,i)(s):t(s)}function i(s){return Zn(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return O(s)?D(e,o,"whitespace")(s):o(s)}function o(s){return s===null||L(s)?n(s):t(s)}}var ni={name:"hardBreakEscape",tokenize:xp};function xp(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return L(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}var ri={name:"headingAtx",resolve:bp,tokenize:kp};function bp(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ie(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function kp(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||G(c)?(e.exit("atxHeadingSequence"),s(c)):t(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||L(c)?(e.exit("atxHeading"),n(c)):O(c)?D(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||G(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}var ds=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ii=["pre","script","style","textarea"];var oi={concrete:!0,name:"htmlFlow",resolveTo:Sp,tokenize:Tp},yp={partial:!0,tokenize:Cp},wp={partial:!0,tokenize:Ip};function Sp(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Tp(e,n,t){let r=this,i,a,o,s,l;return u;function u(h){return c(h)}function c(h){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(h),p}function p(h){return h===33?(e.consume(h),f):h===47?(e.consume(h),a=!0,v):h===63?(e.consume(h),i=3,r.interrupt?n:m):ue(h)?(e.consume(h),o=String.fromCharCode(h),N):t(h)}function f(h){return h===45?(e.consume(h),i=2,d):h===91?(e.consume(h),i=5,s=0,b):ue(h)?(e.consume(h),i=4,r.interrupt?n:m):t(h)}function d(h){return h===45?(e.consume(h),r.interrupt?n:m):t(h)}function b(h){let fe="CDATA[";return h===fe.charCodeAt(s++)?(e.consume(h),s===fe.length?r.interrupt?n:j:b):t(h)}function v(h){return ue(h)?(e.consume(h),o=String.fromCharCode(h),N):t(h)}function N(h){if(h===null||h===47||h===62||G(h)){let fe=h===47,Me=o.toLowerCase();return!fe&&!a&&ii.includes(Me)?(i=1,r.interrupt?n(h):j(h)):ds.includes(o.toLowerCase())?(i=6,fe?(e.consume(h),y):r.interrupt?n(h):j(h)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(h):a?C(h):I(h))}return h===45||ce(h)?(e.consume(h),o+=String.fromCharCode(h),N):t(h)}function y(h){return h===62?(e.consume(h),r.interrupt?n:j):t(h)}function C(h){return O(h)?(e.consume(h),C):w(h)}function I(h){return h===47?(e.consume(h),w):h===58||h===95||ue(h)?(e.consume(h),A):O(h)?(e.consume(h),I):w(h)}function A(h){return h===45||h===46||h===58||h===95||ce(h)?(e.consume(h),A):M(h)}function M(h){return h===61?(e.consume(h),x):O(h)?(e.consume(h),M):I(h)}function x(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),l=h,_):O(h)?(e.consume(h),x):$(h)}function _(h){return h===l?(e.consume(h),l=null,B):h===null||L(h)?t(h):(e.consume(h),_)}function $(h){return h===null||h===34||h===39||h===47||h===60||h===61||h===62||h===96||G(h)?M(h):(e.consume(h),$)}function B(h){return h===47||h===62||O(h)?I(h):t(h)}function w(h){return h===62?(e.consume(h),S):t(h)}function S(h){return h===null||L(h)?j(h):O(h)?(e.consume(h),S):t(h)}function j(h){return h===45&&i===2?(e.consume(h),te):h===60&&i===1?(e.consume(h),ne):h===62&&i===4?(e.consume(h),ye):h===63&&i===3?(e.consume(h),m):h===93&&i===5?(e.consume(h),Ce):L(h)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(yp,Re,R)(h)):h===null||L(h)?(e.exit("htmlFlowData"),R(h)):(e.consume(h),j)}function R(h){return e.check(wp,U,Re)(h)}function U(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),q}function q(h){return h===null||L(h)?R(h):(e.enter("htmlFlowData"),j(h))}function te(h){return h===45?(e.consume(h),m):j(h)}function ne(h){return h===47?(e.consume(h),o="",Ie):j(h)}function Ie(h){if(h===62){let fe=o.toLowerCase();return ii.includes(fe)?(e.consume(h),ye):j(h)}return ue(h)&&o.length<8?(e.consume(h),o+=String.fromCharCode(h),Ie):j(h)}function Ce(h){return h===93?(e.consume(h),m):j(h)}function m(h){return h===62?(e.consume(h),ye):h===45&&i===2?(e.consume(h),m):j(h)}function ye(h){return h===null||L(h)?(e.exit("htmlFlowData"),Re(h)):(e.consume(h),ye)}function Re(h){return e.exit("htmlFlow"),n(h)}}function Ip(e,n,t){let r=this;return i;function i(o){return L(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Cp(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Oe,n,t)}}var ai={name:"htmlText",tokenize:Ep};function Ep(e,n,t){let r=this,i,a,o;return s;function s(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),l}function l(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),M):m===63?(e.consume(m),I):ue(m)?(e.consume(m),$):t(m)}function u(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),a=0,b):ue(m)?(e.consume(m),C):t(m)}function c(m){return m===45?(e.consume(m),d):t(m)}function p(m){return m===null?t(m):m===45?(e.consume(m),f):L(m)?(o=p,ne(m)):(e.consume(m),p)}function f(m){return m===45?(e.consume(m),d):p(m)}function d(m){return m===62?te(m):m===45?f(m):p(m)}function b(m){let ye="CDATA[";return m===ye.charCodeAt(a++)?(e.consume(m),a===ye.length?v:b):t(m)}function v(m){return m===null?t(m):m===93?(e.consume(m),N):L(m)?(o=v,ne(m)):(e.consume(m),v)}function N(m){return m===93?(e.consume(m),y):v(m)}function y(m){return m===62?te(m):m===93?(e.consume(m),y):v(m)}function C(m){return m===null||m===62?te(m):L(m)?(o=C,ne(m)):(e.consume(m),C)}function I(m){return m===null?t(m):m===63?(e.consume(m),A):L(m)?(o=I,ne(m)):(e.consume(m),I)}function A(m){return m===62?te(m):I(m)}function M(m){return ue(m)?(e.consume(m),x):t(m)}function x(m){return m===45||ce(m)?(e.consume(m),x):_(m)}function _(m){return L(m)?(o=_,ne(m)):O(m)?(e.consume(m),_):te(m)}function $(m){return m===45||ce(m)?(e.consume(m),$):m===47||m===62||G(m)?B(m):t(m)}function B(m){return m===47?(e.consume(m),te):m===58||m===95||ue(m)?(e.consume(m),w):L(m)?(o=B,ne(m)):O(m)?(e.consume(m),B):te(m)}function w(m){return m===45||m===46||m===58||m===95||ce(m)?(e.consume(m),w):S(m)}function S(m){return m===61?(e.consume(m),j):L(m)?(o=S,ne(m)):O(m)?(e.consume(m),S):B(m)}function j(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,R):L(m)?(o=j,ne(m)):O(m)?(e.consume(m),j):(e.consume(m),U)}function R(m){return m===i?(e.consume(m),i=void 0,q):m===null?t(m):L(m)?(o=R,ne(m)):(e.consume(m),R)}function U(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||G(m)?B(m):(e.consume(m),U)}function q(m){return m===47||m===62||G(m)?B(m):t(m)}function te(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function ne(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ie}function Ie(m){return O(m)?D(e,Ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):Ce(m)}function Ce(m){return e.enter("htmlTextData"),o(m)}}var yt={name:"labelEnd",resolveAll:zp,resolveTo:Rp,tokenize:Lp},vp={tokenize:_p},Ap={tokenize:Pp},Np={tokenize:Mp};function zp(e){let n=-1,t=[];for(;++n<e.length;){let r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ie(e,0,e.length,t),e}function Rp(e,n){let t=e.length,r=0,i,a,o,s;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);let l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,n],["enter",u,n]],s=ae(s,e.slice(a+1,a+r+3)),s=ae(s,[["enter",c,n]]),s=ae(s,De(n.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),n)),s=ae(s,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),s=ae(s,e.slice(o+1)),s=ae(s,[["exit",l,n]]),ie(e,a,e.length,s),e}function Lp(e,n,t){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?p(f):(o=r.parser.defined.includes(be(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):t(f)}function l(f){return f===40?e.attempt(vp,c,o?c:p)(f):f===91?e.attempt(Ap,c,o?u:p)(f):o?c(f):p(f)}function u(f){return e.attempt(Np,c,p)(f)}function c(f){return n(f)}function p(f){return a._balanced=!0,t(f)}}function _p(e,n,t){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return G(p)?kt(e,a)(p):a(p)}function a(p){return p===41?c(p):Xn(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return G(p)?kt(e,l)(p):c(p)}function s(p){return t(p)}function l(p){return p===34||p===39||p===40?Zn(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):c(p)}function u(p){return G(p)?kt(e,c)(p):c(p)}function c(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):t(p)}}function Pp(e,n,t){let r=this;return i;function i(s){return Kn.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function o(s){return t(s)}}function Mp(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}var si={name:"labelStartImage",resolveAll:yt.resolveAll,tokenize:Fp};function Fp(e,n,t){let r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):t(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}var li={name:"labelStartLink",resolveAll:yt.resolveAll,tokenize:Dp};function Dp(e,n,t){let r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}var dn={name:"lineEnding",tokenize:Op};function Op(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),D(e,n,"linePrefix")}}var wt={name:"thematicBreak",tokenize:Bp};function Bp(e,n,t){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||L(u))?(e.exit("thematicBreak"),n(u)):t(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),O(u)?D(e,s,"whitespace")(u):s(u))}}var ke={continuation:{tokenize:qp},exit:Gp,name:"list",tokenize:Hp},Up={partial:!0,tokenize:Vp},$p={partial:!0,tokenize:jp};function Hp(e,n,t){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(d){let b=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ln(d)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(wt,t,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return t(d)}function l(d){return ln(d)&&++o<10?(e.consume(d),l):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):t(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Oe,r.interrupt?t:c,e.attempt(Up,f,p))}function c(d){return r.containerState.initialBlankLine=!0,a++,f(d)}function p(d){return O(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):t(d)}function f(d){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(d)}}function qp(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(Oe,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,D(e,n,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!O(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($p,n,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,D(e,e.attempt(ke,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function jp(e,n,t){let r=this;return D(e,i,"listItemIndent",r.containerState.size+1);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):t(a)}}function Gp(e){e.exit(this.containerState.type)}function Vp(e,n,t){let r=this;return D(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){let o=r.events[r.events.length-1];return!O(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}var Jn={name:"setextUnderline",resolveTo:Wp,tokenize:Qp};function Wp(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);let o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Qp(e,n,t){let r=this,i;return a;function a(u){let c=r.events.length,p;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){p=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),O(u)?D(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||L(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}var fs={tokenize:Yp};function Yp(e){let n=this,t=e.attempt(Oe,r,e.attempt(this.parser.constructs.flowInitial,i,D(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ei,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}var ms={resolveAll:bs()},hs=xs("string"),gs=xs("text");function xs(e){return{resolveAll:bs(e==="text"?Xp:void 0),tokenize:n};function n(t){let r=this,i=this.parser.constructs[e],a=t.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),l}function l(c){return u(c)?(t.exit("data"),a(c)):(t.consume(c),l)}function u(c){if(c===null)return!0;let p=i[c],f=-1;if(p)for(;++f<p.length;){let d=p[f];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function bs(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function Xp(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){let r=e[t-1][1],i=n.sliceStream(r),a=i.length,o=-1,s=0,l;for(;a--;){let u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(s=0),s){let u={type:t===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}var ui={};ic(ui,{attentionMarkers:()=>id,contentInitial:()=>Zp,disable:()=>od,document:()=>Kp,flow:()=>ed,flowInitial:()=>Jp,insideSpan:()=>rd,string:()=>td,text:()=>nd});var Kp={42:ke,43:ke,45:ke,48:ke,49:ke,50:ke,51:ke,52:ke,53:ke,54:ke,55:ke,56:ke,57:ke,62:jn},Zp={91:ti},Jp={[-2]:cn,[-1]:cn,32:cn},ed={35:ri,42:wt,45:[Jn,wt],60:oi,61:Jn,95:wt,96:Wn,126:Wn},td={38:Vn,92:Gn},nd={[-5]:dn,[-4]:dn,[-3]:dn,33:si,38:Vn,42:un,60:[Zr,ai],91:li,92:[ni,Gn],93:yt,95:un,96:Jr},rd={null:[un,ms]},id={null:[42,95]},od={null:[]};function ks(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0},i={},a=[],o=[],s=[],l=!0,u={attempt:B(_),check:B($),consume:A,enter:M,exit:x,interrupt:B($,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:N,parser:e,previous:null,sliceSerialize:b,sliceStream:v,write:d},p=n.tokenize.call(c,u),f;return n.resolveAll&&a.push(n),c;function d(R){return o=ae(o,R),C(),o[o.length-1]!==null?[]:(w(n,0),c.events=De(a,c.events,c),c.events)}function b(R,U){return sd(v(R),U)}function v(R){return ad(o,R)}function N(){let{_bufferIndex:R,_index:U,line:q,column:te,offset:ne}=r;return{_bufferIndex:R,_index:U,line:q,column:te,offset:ne}}function y(R){i[R.line]=R.column,j()}function C(){let R;for(;r._index<o.length;){let U=o[r._index];if(typeof U=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<U.length;)I(U.charCodeAt(r._bufferIndex));else I(U)}}function I(R){l=void 0,f=R,p=p(R)}function A(R){L(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,j()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R,l=!0}function M(R,U){let q=U||{};return q.type=R,q.start=N(),c.events.push(["enter",q,c]),s.push(q),q}function x(R){let U=s.pop();return U.end=N(),c.events.push(["exit",U,c]),U}function _(R,U){w(R,U.from)}function $(R,U){U.restore()}function B(R,U){return q;function q(te,ne,Ie){let Ce,m,ye,Re;return Array.isArray(te)?fe(te):"tokenize"in te?fe([te]):h(te);function h(oe){return je;function je(se){let Ge=se!==null&&oe[se],J=se!==null&&oe.null,Nt=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(J)?J:J?[J]:[]];return fe(Nt)(se)}}function fe(oe){return Ce=oe,m=0,oe.length===0?Ie:Me(oe[m])}function Me(oe){return je;function je(se){return Re=S(),ye=oe,oe.partial||(c.currentConstruct=oe),oe.name&&c.parser.constructs.disable.null.includes(oe.name)?Ze(se):oe.tokenize.call(U?Object.assign(Object.create(c),U):c,u,en,Ze)(se)}}function en(oe){return l=!0,R(ye,Re),ne}function Ze(oe){return l=!0,Re.restore(),++m<Ce.length?Me(Ce[m]):Ie}}}function w(R,U){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&ie(c.events,U,c.events.length-U,R.resolve(c.events.slice(U),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function S(){let R=N(),U=c.previous,q=c.currentConstruct,te=c.events.length,ne=Array.from(s);return{from:te,restore:Ie};function Ie(){r=R,c.previous=U,c.currentConstruct=q,c.events.length=te,s=ne,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ad(e,n){let t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex,o;if(t===i)o=[e[t].slice(r,a)];else{if(o=e.slice(t,i),r>-1){let s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function sd(e,n){let t=-1,r=[],i;for(;++t<e.length;){let a=e[t],o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
1
|
+
import{a as Pn}from"./chunk-KDNGDR64.js";import"./chunk-D7K3YCBR.js";import{a as Fn}from"./chunk-WP7UEAIB.js";import"./chunk-VYSRVTYI.js";import{a as mt,b as Ta,g as Ia,i as Ca}from"./chunk-2LOQXVFI.js";import{a as Sa,b as it,c as Mn}from"./chunk-II7PVZWZ.js";import{a as ac}from"./chunk-4DPSNQEI.js";import{a as Ea}from"./chunk-MWPRTK32.js";import{i as ga,w as xa}from"./chunk-65RP744E.js";import"./chunk-3NXF6SCJ.js";import{b as ha}from"./chunk-2E6RCDAA.js";import{a as ba,b as ya,c as wa}from"./chunk-56UUP6CI.js";import"./chunk-UM74DXPE.js";import{c as ka}from"./chunk-LXNMHQFN.js";import"./chunk-J37D44SX.js";import"./chunk-MQ7PBFUM.js";import"./chunk-W63RJF6Q.js";import"./chunk-U7KVGD47.js";import{a as Fr,b as ma}from"./chunk-6RZBXZFP.js";import"./chunk-ET57PWXC.js";import{B as sa,F as la,G as ua,L as _n,M as ca,N as pa,Y as da,b as ta,ba as E,c as Rn,g as na,h as Dt,i as Pr,l as Ot,m as ra,n as ia,o as oa,q as Bt,r as aa,s as Ln,z as Mr}from"./chunk-S2NFWI7C.js";import{b as fa}from"./chunk-AFNEGNVJ.js";import{a as K}from"./chunk-OU4IOHLN.js";import"./chunk-H2XQYT62.js";import"./chunk-NSY72ZYX.js";import"./chunk-DXTWCLOM.js";import"./chunk-V4OWPVBD.js";import{a as Ft}from"./chunk-6LGTFWQS.js";import{a as ic,b as oc,c as W}from"./chunk-CDG7S4P5.js";var ja=ic((Nh,qa)=>{"use strict";var Bn=Object.prototype.hasOwnProperty,Ha=Object.prototype.toString,Fa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Oa=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Ha.call(n)==="[object Array]"},Ba=function(n){if(!n||Ha.call(n)!=="[object Object]")return!1;var t=Bn.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Bn.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Bn.call(n,i)},Ua=function(n,t){Fa&&t.name==="__proto__"?Fa(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},$a=function(n,t){if(t==="__proto__")if(Bn.call(n,t)){if(Da)return Da(n,t).value}else return;return n[t]};qa.exports=function e(){var n,t,r,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(n=arguments[l],n!=null)for(t in n)r=$a(s,t),i=$a(n,t),s!==i&&(c&&i&&(Ba(i)||(a=Oa(i)))?(a?(a=!1,o=r&&Oa(r)?r:[]):o=r&&Ba(r)?r:{},Ua(s,{name:t,newValue:e(c,o,i)})):typeof i<"u"&&Ua(s,{name:t,newValue:i}));return s}});var P=W(Ft());var Qe=W(Ft());var Y=W(K()),Ut="border-[var(--site-border,rgba(0,0,0,0.1))]",sc="bg-[var(--site-surface,#ffffff)]",We="text-[var(--site-fg-muted,#71717a)]",ht="text-[var(--site-fg,#18181b)]",Dn="inline-flex min-h-9 items-center rounded-full border px-3 text-xs";function lc(e,n){return e.replace(/\{(\w+)\}/g,(t,r)=>String(n[r]??""))}function uc(e){let n=Math.max(0,Math.floor(e)),t=Math.floor(n/3600),r=Math.floor(n%3600/60),i=n%60,a=t>0?String(r).padStart(2,"0"):String(r);return`${t>0?`${t}:`:""}${a}:${String(i).padStart(2,"0")}`}function cc(e,n){try{return new Intl.DisplayNames([n],{type:"language"}).of(e)??e}catch{return e}}function va(e,n){let t=0,r=e.length-1,i=-1;for(;t<=r;){let a=t+r>>1;e[a].s<=n?(i=a,t=a+1):r=a-1}return i}function pc(e,n){if(!n)return e;let t=e.toLowerCase(),r=n.toLowerCase(),i=[],a=0;for(;;){let o=t.indexOf(r,a);if(o===-1)break;o>a&&i.push(e.slice(a,o)),i.push((0,Y.jsx)("mark",{className:"rounded-sm bg-yellow-200 px-0.5 text-inherit dark:bg-yellow-500/40",children:e.slice(o,o+r.length)},o)),a=o+r.length}return a<e.length&&i.push(e.slice(a)),i}function Aa({labels:e,open:n,onToggle:t,status:r,data:i,activeIndex:a,onSeek:o,onLocaleChange:s,onRetry:l,uiLocale:u,fileName:c,className:p}){let[f,d]=(0,Qe.useState)(""),[b,v]=(0,Qe.useState)(!0),N=(0,Qe.useRef)(null),y=f.trim(),C=(0,Qe.useMemo)(()=>{if(!i||!y)return null;let x=y.toLowerCase();return i.segments.map((_,$)=>_.t.toLowerCase().includes(x)?$:-1).filter(_=>_>=0)},[i,y]),I=C??(i?i.segments.map((x,_)=>_):[]);(0,Qe.useEffect)(()=>{if(!n||!b||C||a<0)return;let x=N.current,_=x?.querySelector(`[data-index="${a}"]`);if(!x||!_)return;let $=_.offsetTop-x.offsetTop,B=$+_.offsetHeight;($<x.scrollTop||B>x.scrollTop+x.clientHeight)&&x.scrollTo({top:Math.max(0,$-x.clientHeight/3),behavior:"smooth"})},[a,n,b,C]);let A=()=>{if(!i)return;let x=new Blob([i.segments.map(B=>B.t).join(`
|
|
2
|
+
`)],{type:"text/plain;charset=utf-8"}),_=URL.createObjectURL(x),$=document.createElement("a");$.href=_,$.download=`${c||"transcript"}.${i.locale}.txt`,document.body.appendChild($),$.click(),$.remove(),setTimeout(()=>URL.revokeObjectURL(_),1e3)},M=x=>{let _=cc(x.locale,u);return x.edited?_:x.source==="ai"?Fr(u,_,e.transcriptAutoGenerated):x.source==="translation"?Fr(u,_,e.transcriptAutoTranslated):_};return(0,Y.jsxs)("section",{className:E("rounded-[var(--site-radius-card,0.75rem)] border",Ut,sc,p),"aria-label":e.transcript,"data-kanorio-transcript":!0,children:[(0,Y.jsxs)("button",{type:"button",onClick:()=>t(!n),"aria-expanded":n,className:E("flex min-h-12 w-full items-center gap-2 px-3 text-left text-sm font-semibold",ht),children:[(0,Y.jsx)(Ln,{className:E("h-4 w-4 shrink-0",We),"aria-hidden":"true"}),(0,Y.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.transcript}),(0,Y.jsx)("span",{className:E("text-xs font-normal",We),children:n?e.transcriptHide:e.transcriptShow}),(0,Y.jsx)(Dt,{className:E("h-4 w-4 shrink-0 transition-transform",We,n&&"rotate-180"),"aria-hidden":"true"})]}),n&&(0,Y.jsx)("div",{className:E("border-t",Ut),children:r==="loading"||r==="idle"?(0,Y.jsx)("div",{className:"space-y-2 p-3","aria-busy":"true",children:[0,1,2].map(x=>(0,Y.jsx)("div",{className:"h-4 animate-pulse rounded bg-black/5 dark:bg-white/10",style:{width:`${80-x*15}%`}},x))}):r==="error"||!i?(0,Y.jsxs)("div",{role:"alert",className:E("flex flex-col items-center gap-2 p-6 text-center text-sm",We),children:[(0,Y.jsx)("p",{children:e.loadError}),(0,Y.jsxs)("button",{type:"button",onClick:l,className:E(Dn,Ut,ht),children:[(0,Y.jsx)(_n,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",e.retry]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"flex flex-wrap items-center gap-2 p-3",children:[(0,Y.jsxs)("label",{className:"relative min-w-40 flex-1",children:[(0,Y.jsx)(ca,{className:E("pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2",We),"aria-hidden":"true"}),(0,Y.jsx)(Pn,{type:"search",value:f,onChange:x=>d(x.target.value),placeholder:e.transcriptSearch,"aria-label":e.transcriptSearch,className:"h-10 pl-9"})]}),(0,Y.jsx)("button",{type:"button",onClick:()=>v(x=>!x),"aria-pressed":b,className:E(Dn,Ut,b?ht:We,b&&"bg-black/5 dark:bg-white/10"),children:e.transcriptFollow}),(0,Y.jsxs)("button",{type:"button",onClick:A,className:E(Dn,Ut,ht),children:[(0,Y.jsx)(Bt,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",e.transcriptDownload]})]}),i.tracks.length>1&&(0,Y.jsx)("div",{className:"flex flex-wrap items-center gap-2 px-3 pb-3",role:"group","aria-label":e.transcriptLanguage,children:i.tracks.map(x=>(0,Y.jsx)("button",{type:"button",onClick:()=>s(x.locale),"aria-pressed":x.locale===i.locale,lang:x.locale,className:E(Dn,Ut,x.locale===i.locale?E(ht,"bg-black/5 dark:bg-white/10"):We),children:M(x)},x.locale))}),C&&(0,Y.jsx)("p",{className:E("px-3 pb-2 text-xs",We),role:"status",children:C.length>0?lc(e.transcriptMatches,{count:C.length}):e.transcriptNoResults}),(0,Y.jsx)("ol",{ref:N,className:"max-h-80 overflow-y-auto px-2 pb-2",lang:i.locale,children:I.map(x=>{let _=i.segments[x],$=x===a;return(0,Y.jsx)("li",{"data-index":x,children:(0,Y.jsxs)("button",{type:"button",onClick:()=>o(_.s),"aria-current":$?"true":void 0,className:E("flex w-full gap-3 rounded-[var(--site-radius-button,0.5rem)] px-2 py-1.5 text-left text-sm hover:bg-black/5 dark:hover:bg-white/10",$?E(ht,"bg-black/5 font-medium dark:bg-white/10"):ht),children:[(0,Y.jsx)("span",{className:E("w-11 shrink-0 pt-0.5 font-mono text-xs tabular-nums",We),children:uc(_.s)}),(0,Y.jsx)("span",{className:"min-w-0 flex-1 leading-relaxed",children:pc(_.t,y)})]})},x)})})]})})]})}function Na(e){return e.width<768?"mobile":e.coarsePointer&&e.width<1024?"tablet":"desktop"}var Lu=W(Ft());var au=W(Ft());var dc=["javascript:","data:","vbscript:","file:","blob:","about:"];function $t(e){let n=e.trim();if(!n)return!1;let t=n.toLowerCase();for(let a of dc)if(t.startsWith(a))return!1;if(t.startsWith("https://")||t.startsWith("http://")||t.startsWith("mailto:")||t.startsWith("tel:"))return!0;if(n.startsWith("//"))return!1;if(n.startsWith("#")||n.startsWith("?")||n.startsWith("/"))return!0;let r=n.indexOf(":"),i=n.indexOf("/");return!(r!==-1&&(i===-1||r<i))}function On(e){let n=e.trim().toLowerCase();return n.startsWith("https://")||n.startsWith("http://")}var fc=new Set(["text","strong","emphasis","delete","inlineCode","link","break","underline","inlineStyle","image"]);function mc(e){return fc.has(e.type)}function hc(e,n){let t=e.trim();if(!$t(t))return!1;if(n!=="email")return!0;let r=t.toLowerCase();return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("mailto:")||r.startsWith("tel:")}var gc=/^\s*<br\s*\/?>\s*$/i;function Dr(e){let n=[];for(let t of e??[]){if(t.type==="strong"){n.push(...Dr(t.children));continue}n.push(t.children?{...t,children:Dr(t.children)}:t)}return n}function xc(e,n){n.push({from:e.type,to:"text"});let t=e.label??e.identifier??"";if(e.type==="footnoteReference")return{type:"text",value:`(${t})`};let r=(e.children??[]).flatMap(i=>i.type==="paragraph"?i.children??[]:[i]);return{type:"paragraph",children:[{type:"text",value:`(${t}) `},...r]}}function rn(e,n,t){let r=[];for(let i of e??[]){let a=wc(i,n,t);a&&r.push(a)}return r}function bc(e){return(e.children??[]).some(t=>za(t)>0)?{type:"paragraph",children:[{type:"strong",children:Dr(e.children)}]}:{type:"paragraph",children:[]}}function za(e){return e.type==="text"?(e.value??"").trim().length:(e.children??[]).reduce((n,t)=>n+za(t),0)}function kc(e){let n=e.children??[],t=(n[0]?.children??[]).map(i=>Ur(i));return{type:"list",ordered:!1,spread:!1,children:(n.length>1?n.slice(1):n).map(i=>({type:"listItem",spread:!1,children:[{type:"paragraph",children:yc(i,n.length>1?t:null)}]}))}}function Ur(e){let n=[],t=r=>{r.type==="text"&&r.value&&n.push(r.value);for(let i of r.children??[])t(i)};return t(e),n.join("").trim()}function yc(e,n){let t=e.children??[],r=[],i=ma([...n??[],...t.map(a=>Ur(a))].join(""));return t.forEach((a,o)=>{r.length>0&&r.push({type:"text",value:i.item});let s=n?.[o];s&&r.push({type:"text",value:`${s}${i.labelValue}`}),r.push(...a.children??[])}),r.length>0?r:[{type:"text",value:""}]}function wc(e,n,t){if(e.type==="html")return gc.test(e.value??"")?(t.push({from:"html",to:"break"}),{type:"break"}):(t.push({from:"html",to:"removed"}),null);if(e.type==="yaml"||e.type==="definition")return t.push({from:e.type,to:"removed"}),null;if(e.type==="footnoteReference"||e.type==="footnoteDefinition")return xc(e,t);if(e.type==="link"&&!hc(e.url??"",n))return t.push({from:"link",to:"text"}),{type:"text",value:Ur(e)||e.url||""};if(n==="article")return e.type==="heading"&&e.depth===1?(t.push({from:"heading",to:"heading"}),{...e,depth:2,children:rn(e.children,n,t)}):e.children?{...e,children:rn(e.children,n,t)}:e;if(e.type==="kanorioDirective")return t.push({from:"directive",to:"removed"}),null;if(e.type==="image"&&(n==="inline"||n==="body"||n==="plain"))return t.push({from:"image",to:"removed"}),null;if(n==="email"&&e.type==="heading"){let r=!e.depth||e.depth<=2?2:3;return r!==e.depth&&t.push({from:"heading",to:"heading"}),{...e,depth:r,children:rn(e.children,n,t)}}return(n==="body"||n==="plain"||n==="inline")&&e.type==="heading"?(t.push({from:"heading",to:"strong"}),bc(e)):(n==="body"||n==="plain"||n==="inline"||n==="email")&&e.type==="table"?(t.push({from:"table",to:"list"}),kc(e)):(n==="body"||n==="inline"||n==="plain")&&(e.type==="thematicBreak"||e.type==="code"&&n==="inline")?(t.push({from:e.type,to:n==="inline"?"text":"removed"}),n==="inline"&&e.type==="code"?{type:"paragraph",children:[{type:"text",value:e.value??""}]}:null):n==="email"&&e.type==="thematicBreak"?(t.push({from:"thematicBreak",to:"removed"}),null):e.children?{...e,children:rn(e.children,n,t)}:e}function Ra(e,n){let t=[],r=()=>{let a=t[t.length-1];a&&(a.type==="text"&&a.value?.endsWith(" ")||t.push({type:"text",value:" "}))},i=a=>{for(let o of a){if(mc(o)&&o.type!=="image"){o.type==="text"&&o.value?t.push({...o,value:o.value.replace(/[\r\n]+/g," ")}):o.type!=="image"&&t.push(o.children?{...o,children:Ra(o.children,n)}:o);continue}if(o.type==="image"||o.type==="kanorioDirective"){n.push({from:o.type==="image"?"image":"directive",to:"removed"});continue}if(t.length>0&&r(),o.type==="code"){n.push({from:"code",to:"text"}),t.push({type:"text",value:(o.value??"").replace(/[\r\n]+/g," ")});continue}if(o.type==="list"){o.children?.forEach((s,l)=>{t.length>0&&r(),t.push({type:"text",value:o.ordered?`${(o.start??1)+l}. `:"- "}),i(s.children??[])});continue}i(o.children??[])}};return i(e),t.filter(a=>a.type!=="text"||a.value!=="")}function Sc(e){let n=e.children?.[0];n?.type!=="text"||!n.value||(n.value=n.value.replace(/^(?:\s*[•·])+\s*/,""),n.value||e.children?.shift())}function Or(e,n){if(!e||e.length===0)return;let t=n==="start"?0:e.length-1,r=e[t];if(r){if(r.type==="text"&&typeof r.value=="string"){r.value=n==="start"?r.value.replace(/^\s+/,""):r.value.replace(/\s+$/,"");return}r.children&&Or(r.children,n)}}function Br(e){(e.type==="paragraph"||e.type==="heading")&&(Or(e.children,"start"),Or(e.children,"end"));for(let n of e.children??[])Br(n)}var Tc=/\*{2,}|__|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g,Ic=/\*{2,}|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g;function La(e,n,t){let r=t==="inline"||t==="body"?Ic:Tc;if(e.type==="text"&&e.value){let i=e.value.replace(r,"");i!==e.value&&(n.push({from:"unclosed-marker",to:"text"}),e.value=i)}for(let i of e.children??[])La(i,n,t)}var Cc=new Set(["root","blockquote","listItem","list"]);function _a(e){if(e.children){Cc.has(e.type)&&(e.children=e.children.filter(n=>n.type!=="break"));for(let n of e.children)_a(n)}}function Pa(e){return e.map(n=>n.type==="break"?{type:"text",value:" "}:n.children?{...n,children:Pa(n.children)}:n)}function Ma(e){if(!e.children)return;let n=[];for(let t of e.children){if(Ma(t),t.type==="text"){if(!t.value)continue;let r=n[n.length-1];if(r?.type==="text"){r.value=(r.value??"")+t.value;continue}n.push({type:"text",value:t.value});continue}Ec.has(t.type)&&(t.children?.length??0)===0||t.type==="paragraph"&&(t.children?.length??0)===0||n.push(t)}e.children=n}var Ec=new Set(["strong","emphasis","delete","underline","inlineStyle","link"]);function ot(e,n){let t=[];if(n==="plain")return ot(e,"body");let r={type:"root",children:rn(e.children,n,t)};La(r,t,n);let i=n==="inline"?{type:"root",children:[{type:"paragraph",children:Pa(Ra(r.children??[],t))}]}:r;return _a(i),Br(i),Ma(i),n==="inline"&&i.children?.[0]&&(Sc(i.children[0]),Br(i)),{tree:i,changes:t}}function $r(e){if(e)throw e}var $n=W(ja(),1);function on(e){if(typeof e!="object"||e===null)return!1;let n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hr(){let e=[],n={run:t,use:r};return n;function t(...i){let a=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){let c=e[++a],p=-1;if(l){o(l);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,c?Ga(c,s)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ga(e,n){let t;return r;function r(...o){let s=e.length>o.length,l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){let c=u;if(s&&t)throw c;return i(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){t||(t=!0,n(o,...s))}function a(o){i(null,o)}}function at(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Va(e.position):"start"in e||"end"in e?Va(e):"line"in e||"column"in e?qr(e):""}function qr(e){return Wa(e&&e.line)+":"+Wa(e&&e.column)}function Va(e){return qr(e&&e.start)+"-"+qr(e&&e.end)}function Wa(e){return e&&typeof e=="number"?e:1}var pe=class extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?i=n:!a.cause&&n&&(o=!0,i=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=at(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};pe.prototype.file="";pe.prototype.name="";pe.prototype.reason="";pe.prototype.message="";pe.prototype.stack="";pe.prototype.column=void 0;pe.prototype.line=void 0;pe.prototype.ancestors=void 0;pe.prototype.cause=void 0;pe.prototype.fatal=void 0;pe.prototype.place=void 0;pe.prototype.ruleId=void 0;pe.prototype.source=void 0;var _e={basename:vc,dirname:Ac,extname:Nc,join:zc,sep:"/"};function vc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');an(e);let t=0,r=-1,i=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,s=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===n.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ac(e){if(an(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Nc(e){an(e);let n=e.length,t=-1,r=0,i=-1,a=0,o;for(;n--;){let s=e.codePointAt(n);if(s===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),s===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||t<0||a===0||a===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function zc(...e){let n=-1,t;for(;++n<e.length;)an(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Rc(t)}function Rc(e){an(e);let n=e.codePointAt(0)===47,t=Lc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Lc(e,n){let t="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(l=t.lastIndexOf("/"),l!==t.length-1){l<0?(t="",r=0):(t=t.slice(0,l),r=t.length-1-t.lastIndexOf("/")),i=o,a=0;continue}}else if(t.length>0){t="",r=0,i=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return t}function an(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Qa={cwd:_c};function _c(){return"/"}function Ht(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ya(e){if(typeof e=="string")e=new URL(e);else if(!Ht(e)){let n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){let n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Pc(e)}function Pc(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let n=e.pathname,t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){let r=n.codePointAt(t+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}var jr=["history","path","basename","stem","extname","dirname"],sn=class{constructor(n){let t;n?Ht(n)?t={path:n}:typeof n=="string"||Mc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Qa.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<jr.length;){let a=jr[r];a in t&&t[a]!==void 0&&t[a]!==null&&(this[a]=a==="history"?[...t[a]]:t[a])}let i;for(i in t)jr.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?_e.basename(this.path):void 0}set basename(n){Vr(n,"basename"),Gr(n,"basename"),this.path=_e.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?_e.dirname(this.path):void 0}set dirname(n){Xa(this.basename,"dirname"),this.path=_e.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?_e.extname(this.path):void 0}set extname(n){if(Gr(n,"extname"),Xa(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_e.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ht(n)&&(n=Ya(n)),Vr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?_e.basename(this.path,this.extname):void 0}set stem(n){Vr(n,"stem"),Gr(n,"stem"),this.path=_e.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){let i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){let i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){let i=new pe(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}};function Gr(e,n){if(e&&e.includes(_e.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+_e.sep+"`")}function Vr(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Xa(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Mc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Ka=(function(e){let r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a});var Fc={}.hasOwnProperty,Xr=class e extends Ka{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Hr()}copy(){let n=new e,t=-1;for(;++t<this.attachers.length;){let r=this.attachers[t];n.use(...r)}return n.data((0,$n.default)(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Yr("data",this.frozen),this.namespace[n]=t,this):Fc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Yr("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;let n=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();let t=Un(n),r=this.parser||this.Parser;return Wr("parse",r),r(String(t),t)}process(n,t){let r=this;return this.freeze(),Wr("process",this.parser||this.Parser),Qr("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(a,o){let s=Un(n),l=r.parse(s);r.run(l,s,function(c,p,f){if(c||!p||!f)return u(c);let d=p,b=r.stringify(d,f);Oc(b)?f.value=b:f.result=b,u(c,f)});function u(c,p){c||!p?o(c):a?a(p):t(void 0,p)}}}processSync(n){let t=!1,r;return this.freeze(),Wr("processSync",this.parser||this.Parser),Qr("processSync",this.compiler||this.Compiler),this.process(n,i),Ja("processSync","process",t),r;function i(a,o){t=!0,$r(a),r=o}}run(n,t,r){Za(n),this.freeze();let i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(o,s){let l=Un(t);i.run(n,l,u);function u(c,p,f){let d=p||n;c?s(c):o?o(d):r(void 0,d,f)}}}runSync(n,t){let r=!1,i;return this.run(n,t,a),Ja("runSync","run",r),i;function a(o,s){$r(o),i=s,r=!0}}stringify(n,t){this.freeze();let r=Un(t),i=this.compiler||this.Compiler;return Qr("stringify",i),Za(n),i(n,r)}use(n,...t){let r=this.attachers,i=this.namespace;if(Yr("use",this.frozen),n!=null)if(typeof n=="function")l(n,t);else if(typeof n=="object")Array.isArray(n)?s(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...p]=u;l(c,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=(0,$n.default)(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let p=u[c];a(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let p=-1,f=-1;for(;++p<r.length;)if(r[p][0]===u){f=p;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[d,...b]=c,v=r[f][1];on(v)&&on(d)&&(d=(0,$n.default)(!0,v,d)),r[f]=[u,d,...b]}}}},Kr=new Xr().freeze();function Wr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Qr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yr(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Za(e){if(!on(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ja(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Un(e){return Dc(e)?e:new sn(e)}function Dc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Oc(e){return typeof e=="string"||Bc(e)}function Bc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Uc={};function gt(e,n){let t=n||Uc,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return ts(e,r,i)}function ts(e,n,t){if($c(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return es(e.children,n,t)}return Array.isArray(e)?es(e,n,t):""}function es(e,n,t){let r=[],i=-1;for(;++i<e.length;)r[i]=ts(e[i],n,t);return r.join("")}function $c(e){return!!(e&&typeof e=="object")}var ns=document.createElement("i");function qt(e){let n="&"+e+";";ns.innerHTML=n;let t=ns.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ie(e,n,t,r){let i=e.length,a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function ae(e,n){return e.length>0?(ie(e,e.length,0,n),e):n}var rs={}.hasOwnProperty;function Hn(e){let n={},t=-1;for(;++t<e.length;)Hc(n,e[t]);return n}function Hc(e,n){let t;for(t in n){let i=(rs.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t],o;if(a)for(o in a){rs.call(i,o)||(i[o]=[]);let s=a[o];qc(i[o],Array.isArray(s)?s:s?[s]:[])}}}function qc(e,n){let t=-1,r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ie(e,0,0,r)}function qn(e,n){let t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"\uFFFD":String.fromCodePoint(t)}function be(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ue=st(/[A-Za-z]/),ce=st(/[\dA-Za-z]/),is=st(/[#-'*+\--9=?A-Z^-~]/);function xt(e){return e!==null&&(e<32||e===127)}var ln=st(/\d/),os=st(/[\dA-Fa-f]/),as=st(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}var bt=st(/\p{P}|\p{S}/u),Fe=st(/\s/);function st(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function D(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return o;function o(l){return O(l)?(e.enter(t),s(l)):n(l)}function s(l){return O(l)&&a++<i?(e.consume(l),s):(e.exit(t),n(l))}}var ss={tokenize:jc};function jc(e){let n=e.attempt(this.parser.constructs.contentInitial,r,i),t;return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),D(e,n,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return L(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}var us={tokenize:Gc},ls={tokenize:Vc};function Gc(e){let n=this,t=[],r=0,i,a,o;return s;function s(I){if(r<t.length){let A=t[r];return n.containerState=A[1],e.attempt(A[0].continuation,l,u)(I)}return u(I)}function l(I){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&C();let A=n.events.length,M=A,x;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){x=n.events[M][1].end;break}y(r);let _=A;for(;_<n.events.length;)n.events[_][1].end={...x},_++;return ie(n.events,M+1,0,n.events.slice(A)),n.events.length=_,u(I)}return s(I)}function u(I){if(r===t.length){if(!i)return f(I);if(i.currentConstruct&&i.currentConstruct.concrete)return b(I);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ls,c,p)(I)}function c(I){return i&&C(),y(r),f(I)}function p(I){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(I)}function f(I){return n.containerState={},e.attempt(ls,d,b)(I)}function d(I){return r++,t.push([n.currentConstruct,n.containerState]),f(I)}function b(I){if(I===null){i&&C(),y(0),e.consume(I);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),v(I)}function v(I){if(I===null){N(e.exit("chunkFlow"),!0),y(0),e.consume(I);return}return L(I)?(e.consume(I),N(e.exit("chunkFlow")),r=0,n.interrupt=void 0,s):(e.consume(I),v)}function N(I,A){let M=n.sliceStream(I);if(A&&M.push(null),I.previous=a,a&&(a.next=I),a=I,i.defineSkip(I.start),i.write(M),n.parser.lazy[I.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;let _=n.events.length,$=_,B,w;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(B){w=n.events[$][1].end;break}B=!0}for(y(r),x=_;x<n.events.length;)n.events[x][1].end={...w},x++;ie(n.events,$+1,0,n.events.slice(_)),n.events.length=x}}function y(I){let A=t.length;for(;A-- >I;){let M=t[A];n.containerState=M[1],M[0].exit.call(n,e)}t.length=I}function C(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Vc(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jt(e){if(e===null||G(e)||Fe(e))return 1;if(bt(e))return 2}function De(e,n,t){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}var un={name:"attention",resolveAll:Wc,tokenize:Qc};function Wc(e,n){let t=-1,r,i,a,o,s,l,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;let p={...e[r][1].end},f={...e[t][1].start};cs(p,-l),cs(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[t][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ae(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ae(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),u=ae(u,De(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ae(u,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=ae(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,ie(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Qc(e,n){let t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jt(r),a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;let u=e.exit("attentionSequence"),c=jt(l),p=!c||c===2&&i||t.includes(l),f=!i||i===2&&c||t.includes(r);return u._open=!!(a===42?p:p&&(i||!f)),u._close=!!(a===42?f:f&&(c||!p)),n(l)}}function cs(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}var Zr={name:"autolink",tokenize:Yc};function Yc(e,n,t){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return ue(d)?(e.consume(d),o):d===64?t(d):u(d)}function o(d){return d===43||d===45||d===46||ce(d)?(r=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||ce(d))&&r++<32?(e.consume(d),s):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):d===null||d===32||d===60||xt(d)?t(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):is(d)?(e.consume(d),u):t(d)}function c(d){return ce(d)?p(d):t(d)}function p(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):f(d)}function f(d){if((d===45||ce(d))&&r++<63){let b=d===45?f:p;return e.consume(d),b}return t(d)}}var Oe={partial:!0,tokenize:Xc};function Xc(e,n,t){return r;function r(a){return O(a)?D(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||L(a)?n(a):t(a)}}var jn={continuation:{tokenize:Zc},exit:Jc,name:"blockQuote",tokenize:Kc};function Kc(e,n,t){let r=this;return i;function i(o){if(o===62){let s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return t(o)}function a(o){return O(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Zc(e,n,t){let r=this;return i;function i(o){return O(o)?D(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(jn,n,t)(o)}}function Jc(e){e.exit("blockQuote")}var Gn={name:"characterEscape",tokenize:ep};function ep(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return as(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}var Vn={name:"characterReference",tokenize:tp};function tp(e,n,t){let r=this,i=0,a,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=ce,c(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=os,c):(e.enter("characterReferenceValue"),a=7,o=ln,c(p))}function c(p){if(p===59&&i){let f=e.exit("characterReferenceValue");return o===ce&&!qt(r.sliceSerialize(f))?t(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(p)&&i++<a?(e.consume(p),c):t(p)}}var ps={partial:!0,tokenize:rp},Wn={concrete:!0,name:"codeFenced",tokenize:np};function np(e,n,t){let r=this,i={partial:!0,tokenize:M},a=0,o=0,s;return l;function l(x){return u(x)}function u(x){let _=r.events[r.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===s?(o++,e.consume(x),c):o<3?t(x):(e.exit("codeFencedFenceSequence"),O(x)?D(e,p,"whitespace")(x):p(x))}function p(x){return x===null||L(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(ps,v,A)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===null||L(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(x)):O(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,d,"whitespace")(x)):x===96&&x===s?t(x):(e.consume(x),f)}function d(x){return x===null||L(x)?p(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===null||L(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(x)):x===96&&x===s?t(x):(e.consume(x),b)}function v(x){return e.attempt(i,A,N)(x)}function N(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return a>0&&O(x)?D(e,C,"linePrefix",a+1)(x):C(x)}function C(x){return x===null||L(x)?e.check(ps,v,A)(x):(e.enter("codeFlowValue"),I(x))}function I(x){return x===null||L(x)?(e.exit("codeFlowValue"),C(x)):(e.consume(x),I)}function A(x){return e.exit("codeFenced"),n(x)}function M(x,_,$){let B=0;return w;function w(q){return x.enter("lineEnding"),x.consume(q),x.exit("lineEnding"),S}function S(q){return x.enter("codeFencedFence"),O(q)?D(x,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):j(q)}function j(q){return q===s?(x.enter("codeFencedFenceSequence"),R(q)):$(q)}function R(q){return q===s?(B++,x.consume(q),R):B>=o?(x.exit("codeFencedFenceSequence"),O(q)?D(x,U,"whitespace")(q):U(q)):$(q)}function U(q){return q===null||L(q)?(x.exit("codeFencedFence"),_(q)):$(q)}}}function rp(e,n,t){let r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}var cn={name:"codeIndented",tokenize:op},ip={partial:!0,tokenize:ap};function op(e,n,t){let r=this;return i;function i(u){return e.enter("codeIndented"),D(e,a,"linePrefix",5)(u)}function a(u){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?l(u):L(u)?e.attempt(ip,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||L(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),n(u)}}function ap(e,n,t){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):L(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):D(e,a,"linePrefix",5)(o)}function a(o){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):L(o)?i(o):t(o)}}var Jr={name:"codeText",previous:lp,resolve:sp,tokenize:up};function sp(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function lp(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function up(e,n,t){let r=this,i=0,a,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),i++,l):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(o=e.enter("codeTextSequence"),a=0,p(f)):L(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||L(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),a++,p):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(o.type="codeTextData",c(f))}}var Qn=class{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){let r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){let i=t||0;this.setCursor(Math.trunc(n));let a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&pn(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),pn(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),pn(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){let t=this.left.splice(n,Number.POSITIVE_INFINITY);pn(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);pn(this.left,t.reverse())}}};function pn(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Yn(e){let n={},t=-1,r,i,a,o,s,l,u,c=new Qn(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,cp(c,t)),t=n[t],u=!0);else if(r[1]._container){for(a=t,i=void 0;a--;)if(o=c.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},s=c.slice(i,t),s.unshift(r),c.splice(i,t-i+1,s))}}return ie(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function cp(e,n){let t=e.get(n)[1],r=e.get(n)[2],i=n-1,a=[],o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,l=[],u={},c,p,f=-1,d=t,b=0,v=0,N=[v];for(;d;){for(;e.get(++i)[1]!==d;);a.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),p&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=d,d=d.next}for(d=t;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,N.push(v),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):N.pop(),f=N.length;f--;){let y=s.slice(N[f],N[f+1]),C=a.pop();l.push([C,C+y.length-1]),e.splice(C,2,y)}for(l.reverse(),f=-1;++f<l.length;)u[b+l[f][0]]=b+l[f][1],b+=l[f][1]-l[f][0]-1;return u}var ei={resolve:dp,tokenize:fp},pp={partial:!0,tokenize:mp};function dp(e){return Yn(e),e}function fp(e,n){let t;return r;function r(s){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):L(s)?e.check(pp,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),n(s)}function o(s){return e.consume(s),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function mp(e,n,t){let r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,a,"linePrefix")}function a(o){if(o===null||L(o))return t(o);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Xn(e,n,t,r,i,a,o,s,l){let u=l||Number.POSITIVE_INFINITY,c=0;return p;function p(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||xt(y)?t(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||L(y)?t(y):(e.consume(y),y===92?b:d)}function b(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function v(y){return!c&&(y===null||y===41||G(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),n(y)):c<u&&y===40?(e.consume(y),c++,v):y===41?(e.consume(y),c--,v):y===null||y===32||y===40||xt(y)?t(y):(e.consume(y),y===92?N:v)}function N(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function Kn(e,n,t,r,i,a){let o=this,s=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(a),c}function c(d){return s>999||d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?t(d):d===93?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):L(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===null||d===91||d===93||L(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!O(d)),d===92?f:p)}function f(d){return d===91||d===92||d===93?(e.consume(d),s++,p):p(d)}}function Zn(e,n,t,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):t(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(a),u(f))}function u(f){return f===o?(e.exit(a),l(o)):f===null?t(f):L(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),D(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||L(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:c)}function p(f){return f===o||f===92?(e.consume(f),c):c(f)}}function kt(e,n){let t;return r;function r(i){return L(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):O(i)?D(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}var ti={name:"definition",tokenize:gp},hp={partial:!0,tokenize:xp};function gp(e,n,t){let r=this,i;return a;function a(d){return e.enter("definition"),o(d)}function o(d){return Kn.call(r,e,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):t(d)}function l(d){return G(d)?kt(e,u)(d):u(d)}function u(d){return Xn(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(hp,p,p)(d)}function p(d){return O(d)?D(e,f,"whitespace")(d):f(d)}function f(d){return d===null||L(d)?(e.exit("definition"),r.parser.defined.push(i),n(d)):t(d)}}function xp(e,n,t){return r;function r(s){return G(s)?kt(e,i)(s):t(s)}function i(s){return Zn(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return O(s)?D(e,o,"whitespace")(s):o(s)}function o(s){return s===null||L(s)?n(s):t(s)}}var ni={name:"hardBreakEscape",tokenize:bp};function bp(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return L(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}var ri={name:"headingAtx",resolve:kp,tokenize:yp};function kp(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ie(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function yp(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||G(c)?(e.exit("atxHeadingSequence"),s(c)):t(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||L(c)?(e.exit("atxHeading"),n(c)):O(c)?D(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||G(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}var ds=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ii=["pre","script","style","textarea"];var oi={concrete:!0,name:"htmlFlow",resolveTo:Tp,tokenize:Ip},wp={partial:!0,tokenize:Ep},Sp={partial:!0,tokenize:Cp};function Tp(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ip(e,n,t){let r=this,i,a,o,s,l;return u;function u(h){return c(h)}function c(h){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(h),p}function p(h){return h===33?(e.consume(h),f):h===47?(e.consume(h),a=!0,v):h===63?(e.consume(h),i=3,r.interrupt?n:m):ue(h)?(e.consume(h),o=String.fromCharCode(h),N):t(h)}function f(h){return h===45?(e.consume(h),i=2,d):h===91?(e.consume(h),i=5,s=0,b):ue(h)?(e.consume(h),i=4,r.interrupt?n:m):t(h)}function d(h){return h===45?(e.consume(h),r.interrupt?n:m):t(h)}function b(h){let fe="CDATA[";return h===fe.charCodeAt(s++)?(e.consume(h),s===fe.length?r.interrupt?n:j:b):t(h)}function v(h){return ue(h)?(e.consume(h),o=String.fromCharCode(h),N):t(h)}function N(h){if(h===null||h===47||h===62||G(h)){let fe=h===47,Me=o.toLowerCase();return!fe&&!a&&ii.includes(Me)?(i=1,r.interrupt?n(h):j(h)):ds.includes(o.toLowerCase())?(i=6,fe?(e.consume(h),y):r.interrupt?n(h):j(h)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(h):a?C(h):I(h))}return h===45||ce(h)?(e.consume(h),o+=String.fromCharCode(h),N):t(h)}function y(h){return h===62?(e.consume(h),r.interrupt?n:j):t(h)}function C(h){return O(h)?(e.consume(h),C):w(h)}function I(h){return h===47?(e.consume(h),w):h===58||h===95||ue(h)?(e.consume(h),A):O(h)?(e.consume(h),I):w(h)}function A(h){return h===45||h===46||h===58||h===95||ce(h)?(e.consume(h),A):M(h)}function M(h){return h===61?(e.consume(h),x):O(h)?(e.consume(h),M):I(h)}function x(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),l=h,_):O(h)?(e.consume(h),x):$(h)}function _(h){return h===l?(e.consume(h),l=null,B):h===null||L(h)?t(h):(e.consume(h),_)}function $(h){return h===null||h===34||h===39||h===47||h===60||h===61||h===62||h===96||G(h)?M(h):(e.consume(h),$)}function B(h){return h===47||h===62||O(h)?I(h):t(h)}function w(h){return h===62?(e.consume(h),S):t(h)}function S(h){return h===null||L(h)?j(h):O(h)?(e.consume(h),S):t(h)}function j(h){return h===45&&i===2?(e.consume(h),te):h===60&&i===1?(e.consume(h),ne):h===62&&i===4?(e.consume(h),ye):h===63&&i===3?(e.consume(h),m):h===93&&i===5?(e.consume(h),Ce):L(h)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(wp,Re,R)(h)):h===null||L(h)?(e.exit("htmlFlowData"),R(h)):(e.consume(h),j)}function R(h){return e.check(Sp,U,Re)(h)}function U(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),q}function q(h){return h===null||L(h)?R(h):(e.enter("htmlFlowData"),j(h))}function te(h){return h===45?(e.consume(h),m):j(h)}function ne(h){return h===47?(e.consume(h),o="",Ie):j(h)}function Ie(h){if(h===62){let fe=o.toLowerCase();return ii.includes(fe)?(e.consume(h),ye):j(h)}return ue(h)&&o.length<8?(e.consume(h),o+=String.fromCharCode(h),Ie):j(h)}function Ce(h){return h===93?(e.consume(h),m):j(h)}function m(h){return h===62?(e.consume(h),ye):h===45&&i===2?(e.consume(h),m):j(h)}function ye(h){return h===null||L(h)?(e.exit("htmlFlowData"),Re(h)):(e.consume(h),ye)}function Re(h){return e.exit("htmlFlow"),n(h)}}function Cp(e,n,t){let r=this;return i;function i(o){return L(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Ep(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Oe,n,t)}}var ai={name:"htmlText",tokenize:vp};function vp(e,n,t){let r=this,i,a,o;return s;function s(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),l}function l(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),M):m===63?(e.consume(m),I):ue(m)?(e.consume(m),$):t(m)}function u(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),a=0,b):ue(m)?(e.consume(m),C):t(m)}function c(m){return m===45?(e.consume(m),d):t(m)}function p(m){return m===null?t(m):m===45?(e.consume(m),f):L(m)?(o=p,ne(m)):(e.consume(m),p)}function f(m){return m===45?(e.consume(m),d):p(m)}function d(m){return m===62?te(m):m===45?f(m):p(m)}function b(m){let ye="CDATA[";return m===ye.charCodeAt(a++)?(e.consume(m),a===ye.length?v:b):t(m)}function v(m){return m===null?t(m):m===93?(e.consume(m),N):L(m)?(o=v,ne(m)):(e.consume(m),v)}function N(m){return m===93?(e.consume(m),y):v(m)}function y(m){return m===62?te(m):m===93?(e.consume(m),y):v(m)}function C(m){return m===null||m===62?te(m):L(m)?(o=C,ne(m)):(e.consume(m),C)}function I(m){return m===null?t(m):m===63?(e.consume(m),A):L(m)?(o=I,ne(m)):(e.consume(m),I)}function A(m){return m===62?te(m):I(m)}function M(m){return ue(m)?(e.consume(m),x):t(m)}function x(m){return m===45||ce(m)?(e.consume(m),x):_(m)}function _(m){return L(m)?(o=_,ne(m)):O(m)?(e.consume(m),_):te(m)}function $(m){return m===45||ce(m)?(e.consume(m),$):m===47||m===62||G(m)?B(m):t(m)}function B(m){return m===47?(e.consume(m),te):m===58||m===95||ue(m)?(e.consume(m),w):L(m)?(o=B,ne(m)):O(m)?(e.consume(m),B):te(m)}function w(m){return m===45||m===46||m===58||m===95||ce(m)?(e.consume(m),w):S(m)}function S(m){return m===61?(e.consume(m),j):L(m)?(o=S,ne(m)):O(m)?(e.consume(m),S):B(m)}function j(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,R):L(m)?(o=j,ne(m)):O(m)?(e.consume(m),j):(e.consume(m),U)}function R(m){return m===i?(e.consume(m),i=void 0,q):m===null?t(m):L(m)?(o=R,ne(m)):(e.consume(m),R)}function U(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||G(m)?B(m):(e.consume(m),U)}function q(m){return m===47||m===62||G(m)?B(m):t(m)}function te(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function ne(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ie}function Ie(m){return O(m)?D(e,Ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):Ce(m)}function Ce(m){return e.enter("htmlTextData"),o(m)}}var yt={name:"labelEnd",resolveAll:Rp,resolveTo:Lp,tokenize:_p},Ap={tokenize:Pp},Np={tokenize:Mp},zp={tokenize:Fp};function Rp(e){let n=-1,t=[];for(;++n<e.length;){let r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ie(e,0,e.length,t),e}function Lp(e,n){let t=e.length,r=0,i,a,o,s;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);let l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,n],["enter",u,n]],s=ae(s,e.slice(a+1,a+r+3)),s=ae(s,[["enter",c,n]]),s=ae(s,De(n.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),n)),s=ae(s,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),s=ae(s,e.slice(o+1)),s=ae(s,[["exit",l,n]]),ie(e,a,e.length,s),e}function _p(e,n,t){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?p(f):(o=r.parser.defined.includes(be(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):t(f)}function l(f){return f===40?e.attempt(Ap,c,o?c:p)(f):f===91?e.attempt(Np,c,o?u:p)(f):o?c(f):p(f)}function u(f){return e.attempt(zp,c,p)(f)}function c(f){return n(f)}function p(f){return a._balanced=!0,t(f)}}function Pp(e,n,t){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return G(p)?kt(e,a)(p):a(p)}function a(p){return p===41?c(p):Xn(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return G(p)?kt(e,l)(p):c(p)}function s(p){return t(p)}function l(p){return p===34||p===39||p===40?Zn(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):c(p)}function u(p){return G(p)?kt(e,c)(p):c(p)}function c(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):t(p)}}function Mp(e,n,t){let r=this;return i;function i(s){return Kn.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function o(s){return t(s)}}function Fp(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}var si={name:"labelStartImage",resolveAll:yt.resolveAll,tokenize:Dp};function Dp(e,n,t){let r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):t(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}var li={name:"labelStartLink",resolveAll:yt.resolveAll,tokenize:Op};function Op(e,n,t){let r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}var dn={name:"lineEnding",tokenize:Bp};function Bp(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),D(e,n,"linePrefix")}}var wt={name:"thematicBreak",tokenize:Up};function Up(e,n,t){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||L(u))?(e.exit("thematicBreak"),n(u)):t(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),O(u)?D(e,s,"whitespace")(u):s(u))}}var ke={continuation:{tokenize:jp},exit:Vp,name:"list",tokenize:qp},$p={partial:!0,tokenize:Wp},Hp={partial:!0,tokenize:Gp};function qp(e,n,t){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(d){let b=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ln(d)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(wt,t,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return t(d)}function l(d){return ln(d)&&++o<10?(e.consume(d),l):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):t(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Oe,r.interrupt?t:c,e.attempt($p,f,p))}function c(d){return r.containerState.initialBlankLine=!0,a++,f(d)}function p(d){return O(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):t(d)}function f(d){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(d)}}function jp(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(Oe,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,D(e,n,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!O(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Hp,n,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,D(e,e.attempt(ke,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Gp(e,n,t){let r=this;return D(e,i,"listItemIndent",r.containerState.size+1);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):t(a)}}function Vp(e){e.exit(this.containerState.type)}function Wp(e,n,t){let r=this;return D(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){let o=r.events[r.events.length-1];return!O(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}var Jn={name:"setextUnderline",resolveTo:Qp,tokenize:Yp};function Qp(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);let o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Yp(e,n,t){let r=this,i;return a;function a(u){let c=r.events.length,p;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){p=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),O(u)?D(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||L(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}var fs={tokenize:Xp};function Xp(e){let n=this,t=e.attempt(Oe,r,e.attempt(this.parser.constructs.flowInitial,i,D(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ei,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}var ms={resolveAll:bs()},hs=xs("string"),gs=xs("text");function xs(e){return{resolveAll:bs(e==="text"?Kp:void 0),tokenize:n};function n(t){let r=this,i=this.parser.constructs[e],a=t.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),l}function l(c){return u(c)?(t.exit("data"),a(c)):(t.consume(c),l)}function u(c){if(c===null)return!0;let p=i[c],f=-1;if(p)for(;++f<p.length;){let d=p[f];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function bs(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function Kp(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){let r=e[t-1][1],i=n.sliceStream(r),a=i.length,o=-1,s=0,l;for(;a--;){let u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(s=0),s){let u={type:t===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}var ui={};oc(ui,{attentionMarkers:()=>od,contentInitial:()=>Jp,disable:()=>ad,document:()=>Zp,flow:()=>td,flowInitial:()=>ed,insideSpan:()=>id,string:()=>nd,text:()=>rd});var Zp={42:ke,43:ke,45:ke,48:ke,49:ke,50:ke,51:ke,52:ke,53:ke,54:ke,55:ke,56:ke,57:ke,62:jn},Jp={91:ti},ed={[-2]:cn,[-1]:cn,32:cn},td={35:ri,42:wt,45:[Jn,wt],60:oi,61:Jn,95:wt,96:Wn,126:Wn},nd={38:Vn,92:Gn},rd={[-5]:dn,[-4]:dn,[-3]:dn,33:si,38:Vn,42:un,60:[Zr,ai],91:li,92:[ni,Gn],93:yt,95:un,96:Jr},id={null:[un,ms]},od={null:[42,95]},ad={null:[]};function ks(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0},i={},a=[],o=[],s=[],l=!0,u={attempt:B(_),check:B($),consume:A,enter:M,exit:x,interrupt:B($,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:N,parser:e,previous:null,sliceSerialize:b,sliceStream:v,write:d},p=n.tokenize.call(c,u),f;return n.resolveAll&&a.push(n),c;function d(R){return o=ae(o,R),C(),o[o.length-1]!==null?[]:(w(n,0),c.events=De(a,c.events,c),c.events)}function b(R,U){return ld(v(R),U)}function v(R){return sd(o,R)}function N(){let{_bufferIndex:R,_index:U,line:q,column:te,offset:ne}=r;return{_bufferIndex:R,_index:U,line:q,column:te,offset:ne}}function y(R){i[R.line]=R.column,j()}function C(){let R;for(;r._index<o.length;){let U=o[r._index];if(typeof U=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<U.length;)I(U.charCodeAt(r._bufferIndex));else I(U)}}function I(R){l=void 0,f=R,p=p(R)}function A(R){L(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,j()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R,l=!0}function M(R,U){let q=U||{};return q.type=R,q.start=N(),c.events.push(["enter",q,c]),s.push(q),q}function x(R){let U=s.pop();return U.end=N(),c.events.push(["exit",U,c]),U}function _(R,U){w(R,U.from)}function $(R,U){U.restore()}function B(R,U){return q;function q(te,ne,Ie){let Ce,m,ye,Re;return Array.isArray(te)?fe(te):"tokenize"in te?fe([te]):h(te);function h(oe){return je;function je(se){let Ge=se!==null&&oe[se],J=se!==null&&oe.null,Nt=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(J)?J:J?[J]:[]];return fe(Nt)(se)}}function fe(oe){return Ce=oe,m=0,oe.length===0?Ie:Me(oe[m])}function Me(oe){return je;function je(se){return Re=S(),ye=oe,oe.partial||(c.currentConstruct=oe),oe.name&&c.parser.constructs.disable.null.includes(oe.name)?Ze(se):oe.tokenize.call(U?Object.assign(Object.create(c),U):c,u,en,Ze)(se)}}function en(oe){return l=!0,R(ye,Re),ne}function Ze(oe){return l=!0,Re.restore(),++m<Ce.length?Me(Ce[m]):Ie}}}function w(R,U){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&ie(c.events,U,c.events.length-U,R.resolve(c.events.slice(U),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function S(){let R=N(),U=c.previous,q=c.currentConstruct,te=c.events.length,ne=Array.from(s);return{from:te,restore:Ie};function Ie(){r=R,c.previous=U,c.currentConstruct=q,c.events.length=te,s=ne,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sd(e,n){let t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex,o;if(t===i)o=[e[t].slice(r,a)];else{if(o=e.slice(t,i),r>-1){let s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ld(e,n){let t=-1,r=[],i;for(;++t<e.length;){let a=e[t],o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
|
-
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function ci(e){let r={constructs:Hn([ui,...(e||{}).extensions||[]]),content:i(ss),defined:[],document:i(us),flow:i(fs),lazy:{},string:i(hs),text:i(gs)};return r;function i(a){return o;function o(s){return ks(r,a,s)}}}function pi(e){for(;!Yn(e););return e}var ys=/[\0\t\n\r]/g;function di(){let e=1,n="",t=!0,r;return i;function i(a,o,s){let l=[],u,c,p,f,d;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),p=0,n="",t&&(a.charCodeAt(0)===65279&&p++,t=void 0);p<a.length;){if(ys.lastIndex=p,u=ys.exec(a),f=u&&u.index!==void 0?u.index:a.length,d=a.charCodeAt(f),!u){n=a.slice(p);break}if(d===10&&p===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<f&&(l.push(a.slice(p,f)),e+=f-p),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&l.push(-5),n&&l.push(n),l.push(null)),l}}var ld=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ws(e){return e.replace(ld,ud)}function ud(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){let i=t.charCodeAt(1),a=i===120||i===88;return qn(t.slice(a?2:1),a?16:10)}return qt(t)||e}var Ts={}.hasOwnProperty;function fi(e,n,t){return typeof n!="string"&&(t=n,n=void 0),cd(t)(pi(ci(t).document().write(di()(e,n,!0))))}function cd(e){let n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(tn),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(zt),blockQuote:a(se),characterEscape:B,characterReference:B,codeFenced:a(Ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ge,o),codeText:a(J,o),codeTextData:B,data:B,codeFlowValue:B,definition:a(Nt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Tn),hardBreakEscape:a(In),hardBreakTrailing:a(In),htmlFlow:a(Rt,o),htmlFlowData:B,htmlText:a(Rt,o),htmlTextData:B,image:a(Ir),label:o,link:a(tn),listItem:a(En),listItemValue:f,listOrdered:a(Cn,p),listUnordered:a(Cn),paragraph:a(vn),reference:h,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(zt),strong:a(Je),thematicBreak:a(Cr)},exit:{atxHeading:l(),atxHeadingSequence:M,autolink:l(),autolinkEmail:je,autolinkProtocol:oe,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:en,characterReference:Ze,codeFenced:l(N),codeFencedFence:v,codeFencedFenceInfo:d,codeFencedFenceMeta:b,codeFlowValue:w,codeIndented:l(y),codeText:l(q),codeTextData:w,data:w,definition:l(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:I,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(R),htmlFlowData:w,htmlText:l(U),htmlTextData:w,image:l(ne),label:Ce,labelText:Ie,lineEnding:S,link:l(te),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:fe,resourceDestinationString:m,resourceTitleString:ye,resource:Re,setextHeading:l($),setextHeadingLineSequence:_,setextHeadingText:x,strong:l(),thematicBreak:l()}};Is(n,(e||{}).mdastExtensions||[]);let t={};return r;function r(T){let z={type:"root",children:[]},H={stack:[z],tokenStack:[],config:n,enter:s,exit:u,buffer:o,resume:c,data:t},V=[],Z=-1;for(;++Z<T.length;)if(T[Z][1].type==="listOrdered"||T[Z][1].type==="listUnordered")if(T[Z][0]==="enter")V.push(Z);else{let we=V.pop();Z=i(T,we,Z)}for(Z=-1;++Z<T.length;){let we=n[T[Z][0]];Ts.call(we,T[Z][1].type)&&we[T[Z][1].type].call(Object.assign({sliceSerialize:T[Z][2].sliceSerialize},H),T[Z][1])}if(H.tokenStack.length>0){let we=H.tokenStack[H.tokenStack.length-1];(we[1]||Ss).call(H,void 0,we[0])}for(z.position={start:lt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:lt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<n.transforms.length;)z=n.transforms[Z](z)||z;return z}function i(T,z,H){let V=z-1,Z=-1,we=!1,Le,xe,ft,et;for(;++V<=H;){let me=T[V];switch(me[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{me[0]==="enter"?Z++:Z--,et=void 0;break}case"lineEndingBlank":{me[0]==="enter"&&(Le&&!et&&!Z&&!ft&&(ft=V),et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:et=void 0}if(!Z&&me[0]==="enter"&&me[1].type==="listItemPrefix"||Z===-1&&me[0]==="exit"&&(me[1].type==="listUnordered"||me[1].type==="listOrdered")){if(Le){let tt=V;for(xe=void 0;tt--;){let Ee=T[tt];if(Ee[1].type==="lineEnding"||Ee[1].type==="lineEndingBlank"){if(Ee[0]==="exit")continue;xe&&(T[xe][1].type="lineEndingBlank",we=!0),Ee[1].type="lineEnding",xe=tt}else if(!(Ee[1].type==="linePrefix"||Ee[1].type==="blockQuotePrefix"||Ee[1].type==="blockQuotePrefixWhitespace"||Ee[1].type==="blockQuoteMarker"||Ee[1].type==="listItemIndent"))break}ft&&(!xe||ft<xe)&&(Le._spread=!0),Le.end=Object.assign({},xe?T[xe][1].start:me[1].end),T.splice(xe||V,0,["exit",Le,me[2]]),V++,H++}if(me[1].type==="listItemPrefix"){let tt={type:"listItem",_spread:!1,start:Object.assign({},me[1].start),end:void 0};Le=tt,T.splice(V,0,["enter",tt,me[2]]),V++,H++,ft=void 0,et=!0}}}return T[z][1]._spread=we,H}function a(T,z){return H;function H(V){s.call(this,T(V),V),z&&z.call(this,V)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,z,H){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([z,H||void 0]),T.position={start:lt(z.start),end:void 0}}function l(T){return z;function z(H){T&&T.call(this,H),u.call(this,H)}}function u(T,z){let H=this.stack.pop(),V=this.tokenStack.pop();if(V)V[0].type!==T.type&&(z?z.call(this,T,V[0]):(V[1]||Ss).call(this,T,V[0]));else throw new Error("Cannot close `"+T.type+"` ("+at({start:T.start,end:T.end})+"): it\u2019s not open");H.position.end=lt(T.end)}function c(){return gt(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(T){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){let T=this.resume(),z=this.stack[this.stack.length-1];z.lang=T}function b(){let T=this.resume(),z=this.stack[this.stack.length-1];z.meta=T}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T.replace(/(\r?\n|\r)$/g,"")}function C(T){let z=this.resume(),H=this.stack[this.stack.length-1];H.label=z,H.identifier=be(this.sliceSerialize(T)).toLowerCase()}function I(){let T=this.resume(),z=this.stack[this.stack.length-1];z.title=T}function A(){let T=this.resume(),z=this.stack[this.stack.length-1];z.url=T}function M(T){let z=this.stack[this.stack.length-1];if(!z.depth){let H=this.sliceSerialize(T).length;z.depth=H}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function _(T){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function B(T){let H=this.stack[this.stack.length-1].children,V=H[H.length-1];(!V||V.type!=="text")&&(V=Lt(),V.position={start:lt(T.start),end:void 0},H.push(V)),this.stack.push(V)}function w(T){let z=this.stack.pop();z.value+=this.sliceSerialize(T),z.position.end=lt(T.end)}function S(T){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let H=z.children[z.children.length-1];H.position.end=lt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(z.type)&&(B.call(this,T),w.call(this,T))}function j(){this.data.atHardBreak=!0}function R(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T}function U(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T}function q(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T}function te(){let T=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=z,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function ne(){let T=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=z,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Ie(T){let z=this.sliceSerialize(T),H=this.stack[this.stack.length-2];H.label=ws(z),H.identifier=be(z).toLowerCase()}function Ce(){let T=this.stack[this.stack.length-1],z=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){let V=T.children;H.children=V}else H.alt=z}function m(){let T=this.resume(),z=this.stack[this.stack.length-1];z.url=T}function ye(){let T=this.resume(),z=this.stack[this.stack.length-1];z.title=T}function Re(){this.data.inReference=void 0}function h(){this.data.referenceType="collapsed"}function fe(T){let z=this.resume(),H=this.stack[this.stack.length-1];H.label=z,H.identifier=be(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Me(T){this.data.characterReferenceType=T.type}function en(T){let z=this.sliceSerialize(T),H=this.data.characterReferenceType,V;H?(V=qn(z,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):V=qt(z);let Z=this.stack[this.stack.length-1];Z.value+=V}function Ze(T){let z=this.stack.pop();z.position.end=lt(T.end)}function oe(T){w.call(this,T);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(T)}function je(T){w.call(this,T);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(T)}function se(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function zt(){return{type:"heading",depth:0,children:[]}}function In(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function Ir(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function Cn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function En(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function vn(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function Lt(){return{type:"text",value:""}}function Cr(){return{type:"thematicBreak"}}}function lt(e){return{line:e.line,column:e.column,offset:e.offset}}function Is(e,n){let t=-1;for(;++t<n.length;){let r=n[t];Array.isArray(r)?Is(e,r):pd(e,r)}}function pd(e,n){let t;for(t in n)if(Ts.call(n,t))switch(t){case"canContainEols":{let r=n[t];r&&e[t].push(...r);break}case"transforms":{let r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{let r=n[t];r&&Object.assign(e[t],r);break}}}function Ss(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+at({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+at({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+at({start:n.start,end:n.end})+") is still open")}function er(e){let n=this;n.parser=t;function t(r){return fi(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function mi(e,n){let t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function hi(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Be=(function(e){if(e==null)return hd;if(typeof e=="function")return tr(e);if(typeof e=="object")return Array.isArray(e)?dd(e):fd(e);if(typeof e=="string")return md(e);throw new Error("Expected function, string, or object as test")});function dd(e){let n=[],t=-1;for(;++t<e.length;)n[t]=Be(e[t]);return tr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function fd(e){let n=e;return tr(t);function t(r){let i=r,a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function md(e){return tr(n);function n(t){return t&&t.type===e}}function tr(e){return n;function n(t,r,i){return!!(gd(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function hd(){return!0}function gd(e){return e!==null&&typeof e=="object"&&"type"in e}var Cs=[],Es=!0,gi=!1,vs="skip";function xi(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;let a=Be(i),o=r?-1:1;s(e,void 0,[])();function s(l,u,c){let p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){let d=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=Cs,b,v,N;if((!n||a(l,u,c[c.length-1]||void 0))&&(d=xd(t(l,c)),d[0]===gi))return d;if("children"in l&&l.children){let y=l;if(y.children&&d[0]!==vs)for(v=(r?y.children.length:-1)+o,N=c.concat(y);v>-1&&v<y.children.length;){let C=y.children[v];if(b=s(C,v,N)(),b[0]===gi)return b;v=typeof b[1]=="number"?b[1]:v+o}}return d}}}function xd(e){return Array.isArray(e)?e:typeof e=="number"?[Es,e]:e==null?Cs:[e]}function bi(e,n,t){let i=Be((t||{}).ignore||[]),a=bd(n),o=-1;for(;++o<a.length;)xi(e,"text",s);function s(u,c){let p=-1,f;for(;++p<c.length;){let d=c[p],b=f?f.children:void 0;if(i(d,b?b.indexOf(d):void 0,f))return;f=d}if(f)return l(u,c)}function l(u,c){let p=c[c.length-1],f=a[o][0],d=a[o][1],b=0,N=p.children.indexOf(u),y=!1,C=[];f.lastIndex=0;let I=f.exec(u.value);for(;I;){let A=I.index,M={index:I.index,input:I.input,stack:[...c,u]},x=d(...I,M);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=A+1:(b!==A&&C.push({type:"text",value:u.value.slice(b,A)}),Array.isArray(x)?C.push(...x):x&&C.push(x),b=A+I[0].length,y=!0),!f.global)break;I=f.exec(u.value)}return y?(b<u.value.length&&C.push({type:"text",value:u.value.slice(b)}),p.children.splice(N,1,...C)):C=[u],N+C.length}}function bd(e){let n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let t=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<t.length;){let i=t[r];n.push([kd(i[0]),yd(i[1])])}return n}function kd(e){return typeof e=="string"?new RegExp(hi(e),"g"):e}function yd(e){return typeof e=="function"?e:function(){return e}}var ki="phrasing",yi=["autolink","link","image","label"];function Si(){return{transforms:[Ed],enter:{literalAutolink:wd,literalAutolinkEmail:wi,literalAutolinkHttp:wi,literalAutolinkWww:wi},exit:{literalAutolink:Cd,literalAutolinkEmail:Id,literalAutolinkHttp:Sd,literalAutolinkWww:Td}}}function Ti(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ki,notInConstruct:yi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ki,notInConstruct:yi},{character:":",before:"[ps]",after:"\\/",inConstruct:ki,notInConstruct:yi}]}}function wd(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wi(e){this.config.enter.autolinkProtocol.call(this,e)}function Sd(e){this.config.exit.autolinkProtocol.call(this,e)}function Td(e){this.config.exit.data.call(this,e);let n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Id(e){this.config.exit.autolinkEmail.call(this,e)}function Cd(e){this.exit(e)}function Ed(e){bi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,vd],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Ad]],{ignore:["link","linkReference"]})}function vd(e,n,t,r,i){let a="";if(!As(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!Nd(t)))return!1;let o=zd(t+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Ad(e,n,t,r){return!As(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Nd(e){let n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function zd(e){let n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")"),i=mi(e,"("),a=mi(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function As(e,n){let t=e.input.charCodeAt(e.index-1);return(e.index===0||Fe(t)||bt(t))&&(!n||t!==47)}Ns.peek=Bd;function Rd(){this.buffer()}function Ld(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _d(){this.buffer()}function Pd(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Md(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=be(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Fd(e){this.exit(e)}function Dd(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=be(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Od(e){this.exit(e)}function Bd(){return"["}function Ns(e,n,t,r){let i=t.createTracker(r),a=i.move("[^"),o=t.enter("footnoteReference"),s=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Ii(){return{enter:{gfmFootnoteCallString:Rd,gfmFootnoteCall:Ld,gfmFootnoteDefinitionLabelString:_d,gfmFootnoteDefinition:Pd},exit:{gfmFootnoteCallString:Md,gfmFootnoteCall:Fd,gfmFootnoteDefinitionLabelString:Dd,gfmFootnoteDefinition:Od}}}function Ci(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Ns},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,a,o){let s=a.createTracker(o),l=s.move("[^"),u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),c(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((n?`
|
|
5
|
-
`:" ")+a.indentLines(a.containerFlow(r,s.current()),n?zs
|
|
6
|
-
`)}function
|
|
4
|
+
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function ci(e){let r={constructs:Hn([ui,...(e||{}).extensions||[]]),content:i(ss),defined:[],document:i(us),flow:i(fs),lazy:{},string:i(hs),text:i(gs)};return r;function i(a){return o;function o(s){return ks(r,a,s)}}}function pi(e){for(;!Yn(e););return e}var ys=/[\0\t\n\r]/g;function di(){let e=1,n="",t=!0,r;return i;function i(a,o,s){let l=[],u,c,p,f,d;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),p=0,n="",t&&(a.charCodeAt(0)===65279&&p++,t=void 0);p<a.length;){if(ys.lastIndex=p,u=ys.exec(a),f=u&&u.index!==void 0?u.index:a.length,d=a.charCodeAt(f),!u){n=a.slice(p);break}if(d===10&&p===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<f&&(l.push(a.slice(p,f)),e+=f-p),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&l.push(-5),n&&l.push(n),l.push(null)),l}}var ud=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ws(e){return e.replace(ud,cd)}function cd(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){let i=t.charCodeAt(1),a=i===120||i===88;return qn(t.slice(a?2:1),a?16:10)}return qt(t)||e}var Ts={}.hasOwnProperty;function fi(e,n,t){return typeof n!="string"&&(t=n,n=void 0),pd(t)(pi(ci(t).document().write(di()(e,n,!0))))}function pd(e){let n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(tn),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(zt),blockQuote:a(se),characterEscape:B,characterReference:B,codeFenced:a(Ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ge,o),codeText:a(J,o),codeTextData:B,data:B,codeFlowValue:B,definition:a(Nt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Tn),hardBreakEscape:a(In),hardBreakTrailing:a(In),htmlFlow:a(Rt,o),htmlFlowData:B,htmlText:a(Rt,o),htmlTextData:B,image:a(Ir),label:o,link:a(tn),listItem:a(En),listItemValue:f,listOrdered:a(Cn,p),listUnordered:a(Cn),paragraph:a(vn),reference:h,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(zt),strong:a(Je),thematicBreak:a(Cr)},exit:{atxHeading:l(),atxHeadingSequence:M,autolink:l(),autolinkEmail:je,autolinkProtocol:oe,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:en,characterReference:Ze,codeFenced:l(N),codeFencedFence:v,codeFencedFenceInfo:d,codeFencedFenceMeta:b,codeFlowValue:w,codeIndented:l(y),codeText:l(q),codeTextData:w,data:w,definition:l(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:I,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(R),htmlFlowData:w,htmlText:l(U),htmlTextData:w,image:l(ne),label:Ce,labelText:Ie,lineEnding:S,link:l(te),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:fe,resourceDestinationString:m,resourceTitleString:ye,resource:Re,setextHeading:l($),setextHeadingLineSequence:_,setextHeadingText:x,strong:l(),thematicBreak:l()}};Is(n,(e||{}).mdastExtensions||[]);let t={};return r;function r(T){let z={type:"root",children:[]},H={stack:[z],tokenStack:[],config:n,enter:s,exit:u,buffer:o,resume:c,data:t},V=[],Z=-1;for(;++Z<T.length;)if(T[Z][1].type==="listOrdered"||T[Z][1].type==="listUnordered")if(T[Z][0]==="enter")V.push(Z);else{let we=V.pop();Z=i(T,we,Z)}for(Z=-1;++Z<T.length;){let we=n[T[Z][0]];Ts.call(we,T[Z][1].type)&&we[T[Z][1].type].call(Object.assign({sliceSerialize:T[Z][2].sliceSerialize},H),T[Z][1])}if(H.tokenStack.length>0){let we=H.tokenStack[H.tokenStack.length-1];(we[1]||Ss).call(H,void 0,we[0])}for(z.position={start:lt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:lt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<n.transforms.length;)z=n.transforms[Z](z)||z;return z}function i(T,z,H){let V=z-1,Z=-1,we=!1,Le,xe,ft,et;for(;++V<=H;){let me=T[V];switch(me[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{me[0]==="enter"?Z++:Z--,et=void 0;break}case"lineEndingBlank":{me[0]==="enter"&&(Le&&!et&&!Z&&!ft&&(ft=V),et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:et=void 0}if(!Z&&me[0]==="enter"&&me[1].type==="listItemPrefix"||Z===-1&&me[0]==="exit"&&(me[1].type==="listUnordered"||me[1].type==="listOrdered")){if(Le){let tt=V;for(xe=void 0;tt--;){let Ee=T[tt];if(Ee[1].type==="lineEnding"||Ee[1].type==="lineEndingBlank"){if(Ee[0]==="exit")continue;xe&&(T[xe][1].type="lineEndingBlank",we=!0),Ee[1].type="lineEnding",xe=tt}else if(!(Ee[1].type==="linePrefix"||Ee[1].type==="blockQuotePrefix"||Ee[1].type==="blockQuotePrefixWhitespace"||Ee[1].type==="blockQuoteMarker"||Ee[1].type==="listItemIndent"))break}ft&&(!xe||ft<xe)&&(Le._spread=!0),Le.end=Object.assign({},xe?T[xe][1].start:me[1].end),T.splice(xe||V,0,["exit",Le,me[2]]),V++,H++}if(me[1].type==="listItemPrefix"){let tt={type:"listItem",_spread:!1,start:Object.assign({},me[1].start),end:void 0};Le=tt,T.splice(V,0,["enter",tt,me[2]]),V++,H++,ft=void 0,et=!0}}}return T[z][1]._spread=we,H}function a(T,z){return H;function H(V){s.call(this,T(V),V),z&&z.call(this,V)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,z,H){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([z,H||void 0]),T.position={start:lt(z.start),end:void 0}}function l(T){return z;function z(H){T&&T.call(this,H),u.call(this,H)}}function u(T,z){let H=this.stack.pop(),V=this.tokenStack.pop();if(V)V[0].type!==T.type&&(z?z.call(this,T,V[0]):(V[1]||Ss).call(this,T,V[0]));else throw new Error("Cannot close `"+T.type+"` ("+at({start:T.start,end:T.end})+"): it\u2019s not open");H.position.end=lt(T.end)}function c(){return gt(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(T){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){let T=this.resume(),z=this.stack[this.stack.length-1];z.lang=T}function b(){let T=this.resume(),z=this.stack[this.stack.length-1];z.meta=T}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T.replace(/(\r?\n|\r)$/g,"")}function C(T){let z=this.resume(),H=this.stack[this.stack.length-1];H.label=z,H.identifier=be(this.sliceSerialize(T)).toLowerCase()}function I(){let T=this.resume(),z=this.stack[this.stack.length-1];z.title=T}function A(){let T=this.resume(),z=this.stack[this.stack.length-1];z.url=T}function M(T){let z=this.stack[this.stack.length-1];if(!z.depth){let H=this.sliceSerialize(T).length;z.depth=H}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function _(T){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function B(T){let H=this.stack[this.stack.length-1].children,V=H[H.length-1];(!V||V.type!=="text")&&(V=Lt(),V.position={start:lt(T.start),end:void 0},H.push(V)),this.stack.push(V)}function w(T){let z=this.stack.pop();z.value+=this.sliceSerialize(T),z.position.end=lt(T.end)}function S(T){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let H=z.children[z.children.length-1];H.position.end=lt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(z.type)&&(B.call(this,T),w.call(this,T))}function j(){this.data.atHardBreak=!0}function R(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T}function U(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T}function q(){let T=this.resume(),z=this.stack[this.stack.length-1];z.value=T}function te(){let T=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=z,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function ne(){let T=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=z,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Ie(T){let z=this.sliceSerialize(T),H=this.stack[this.stack.length-2];H.label=ws(z),H.identifier=be(z).toLowerCase()}function Ce(){let T=this.stack[this.stack.length-1],z=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){let V=T.children;H.children=V}else H.alt=z}function m(){let T=this.resume(),z=this.stack[this.stack.length-1];z.url=T}function ye(){let T=this.resume(),z=this.stack[this.stack.length-1];z.title=T}function Re(){this.data.inReference=void 0}function h(){this.data.referenceType="collapsed"}function fe(T){let z=this.resume(),H=this.stack[this.stack.length-1];H.label=z,H.identifier=be(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Me(T){this.data.characterReferenceType=T.type}function en(T){let z=this.sliceSerialize(T),H=this.data.characterReferenceType,V;H?(V=qn(z,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):V=qt(z);let Z=this.stack[this.stack.length-1];Z.value+=V}function Ze(T){let z=this.stack.pop();z.position.end=lt(T.end)}function oe(T){w.call(this,T);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(T)}function je(T){w.call(this,T);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(T)}function se(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function zt(){return{type:"heading",depth:0,children:[]}}function In(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function Ir(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function Cn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function En(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function vn(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function Lt(){return{type:"text",value:""}}function Cr(){return{type:"thematicBreak"}}}function lt(e){return{line:e.line,column:e.column,offset:e.offset}}function Is(e,n){let t=-1;for(;++t<n.length;){let r=n[t];Array.isArray(r)?Is(e,r):dd(e,r)}}function dd(e,n){let t;for(t in n)if(Ts.call(n,t))switch(t){case"canContainEols":{let r=n[t];r&&e[t].push(...r);break}case"transforms":{let r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{let r=n[t];r&&Object.assign(e[t],r);break}}}function Ss(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+at({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+at({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+at({start:n.start,end:n.end})+") is still open")}function er(e){let n=this;n.parser=t;function t(r){return fi(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function mi(e,n){let t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function hi(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Be=(function(e){if(e==null)return gd;if(typeof e=="function")return tr(e);if(typeof e=="object")return Array.isArray(e)?fd(e):md(e);if(typeof e=="string")return hd(e);throw new Error("Expected function, string, or object as test")});function fd(e){let n=[],t=-1;for(;++t<e.length;)n[t]=Be(e[t]);return tr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function md(e){let n=e;return tr(t);function t(r){let i=r,a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function hd(e){return tr(n);function n(t){return t&&t.type===e}}function tr(e){return n;function n(t,r,i){return!!(xd(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function gd(){return!0}function xd(e){return e!==null&&typeof e=="object"&&"type"in e}var Cs=[],Es=!0,gi=!1,vs="skip";function xi(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;let a=Be(i),o=r?-1:1;s(e,void 0,[])();function s(l,u,c){let p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){let d=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=Cs,b,v,N;if((!n||a(l,u,c[c.length-1]||void 0))&&(d=bd(t(l,c)),d[0]===gi))return d;if("children"in l&&l.children){let y=l;if(y.children&&d[0]!==vs)for(v=(r?y.children.length:-1)+o,N=c.concat(y);v>-1&&v<y.children.length;){let C=y.children[v];if(b=s(C,v,N)(),b[0]===gi)return b;v=typeof b[1]=="number"?b[1]:v+o}}return d}}}function bd(e){return Array.isArray(e)?e:typeof e=="number"?[Es,e]:e==null?Cs:[e]}function bi(e,n,t){let i=Be((t||{}).ignore||[]),a=kd(n),o=-1;for(;++o<a.length;)xi(e,"text",s);function s(u,c){let p=-1,f;for(;++p<c.length;){let d=c[p],b=f?f.children:void 0;if(i(d,b?b.indexOf(d):void 0,f))return;f=d}if(f)return l(u,c)}function l(u,c){let p=c[c.length-1],f=a[o][0],d=a[o][1],b=0,N=p.children.indexOf(u),y=!1,C=[];f.lastIndex=0;let I=f.exec(u.value);for(;I;){let A=I.index,M={index:I.index,input:I.input,stack:[...c,u]},x=d(...I,M);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=A+1:(b!==A&&C.push({type:"text",value:u.value.slice(b,A)}),Array.isArray(x)?C.push(...x):x&&C.push(x),b=A+I[0].length,y=!0),!f.global)break;I=f.exec(u.value)}return y?(b<u.value.length&&C.push({type:"text",value:u.value.slice(b)}),p.children.splice(N,1,...C)):C=[u],N+C.length}}function kd(e){let n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let t=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<t.length;){let i=t[r];n.push([yd(i[0]),wd(i[1])])}return n}function yd(e){return typeof e=="string"?new RegExp(hi(e),"g"):e}function wd(e){return typeof e=="function"?e:function(){return e}}var ki="phrasing",yi=["autolink","link","image","label"];function Si(){return{transforms:[vd],enter:{literalAutolink:Sd,literalAutolinkEmail:wi,literalAutolinkHttp:wi,literalAutolinkWww:wi},exit:{literalAutolink:Ed,literalAutolinkEmail:Cd,literalAutolinkHttp:Td,literalAutolinkWww:Id}}}function Ti(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ki,notInConstruct:yi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ki,notInConstruct:yi},{character:":",before:"[ps]",after:"\\/",inConstruct:ki,notInConstruct:yi}]}}function Sd(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wi(e){this.config.enter.autolinkProtocol.call(this,e)}function Td(e){this.config.exit.autolinkProtocol.call(this,e)}function Id(e){this.config.exit.data.call(this,e);let n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Cd(e){this.config.exit.autolinkEmail.call(this,e)}function Ed(e){this.exit(e)}function vd(e){bi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ad],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Nd]],{ignore:["link","linkReference"]})}function Ad(e,n,t,r,i){let a="";if(!As(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!zd(t)))return!1;let o=Rd(t+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Nd(e,n,t,r){return!As(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function zd(e){let n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Rd(e){let n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")"),i=mi(e,"("),a=mi(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function As(e,n){let t=e.input.charCodeAt(e.index-1);return(e.index===0||Fe(t)||bt(t))&&(!n||t!==47)}Ns.peek=Ud;function Ld(){this.buffer()}function _d(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Pd(){this.buffer()}function Md(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fd(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=be(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Dd(e){this.exit(e)}function Od(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=be(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Bd(e){this.exit(e)}function Ud(){return"["}function Ns(e,n,t,r){let i=t.createTracker(r),a=i.move("[^"),o=t.enter("footnoteReference"),s=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Ii(){return{enter:{gfmFootnoteCallString:Ld,gfmFootnoteCall:_d,gfmFootnoteDefinitionLabelString:Pd,gfmFootnoteDefinition:Md},exit:{gfmFootnoteCallString:Fd,gfmFootnoteCall:Dd,gfmFootnoteDefinitionLabelString:Od,gfmFootnoteDefinition:Bd}}}function Ci(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Ns},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,a,o){let s=a.createTracker(o),l=s.move("[^"),u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),c(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((n?`
|
|
5
|
+
`:" ")+a.indentLines(a.containerFlow(r,s.current()),n?zs:$d))),u(),l}}function $d(e,n,t){return n===0?e:zs(e,n,t)}function zs(e,n,t){return(t?"":" ")+e}var Hd=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Rs.peek=Gd;function Ei(){return{canContainEols:["delete"],enter:{strikethrough:qd},exit:{strikethrough:jd}}}function vi(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hd}],handlers:{delete:Rs}}}function qd(e){this.enter({type:"delete",children:[]},e)}function jd(e){this.exit(e)}function Rs(e,n,t,r){let i=t.createTracker(r),a=t.enter("strikethrough"),o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Gd(){return"~"}function Vd(e){return e.length}function _s(e,n){let t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Vd,a=[],o=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let v=[],N=[],y=-1;for(e[c].length>u&&(u=e[c].length);++y<e[c].length;){let C=Wd(e[c][y]);if(t.alignDelimiters!==!1){let I=i(C);N[y]=I,(l[y]===void 0||I>l[y])&&(l[y]=I)}v.push(C)}o[c]=v,s[c]=N}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<u;)a[p]=Ls(r[p]);else{let v=Ls(r);for(;++p<u;)a[p]=v}p=-1;let f=[],d=[];for(;++p<u;){let v=a[p],N="",y="";v===99?(N=":",y=":"):v===108?N=":":v===114&&(y=":");let C=t.alignDelimiters===!1?1:Math.max(1,l[p]-N.length-y.length),I=N+"-".repeat(C)+y;t.alignDelimiters!==!1&&(C=N.length+C+y.length,C>l[p]&&(l[p]=C),d[p]=C),f[p]=I}o.splice(1,0,f),s.splice(1,0,d),c=-1;let b=[];for(;++c<o.length;){let v=o[c],N=s[c];p=-1;let y=[];for(;++p<u;){let C=v[p]||"",I="",A="";if(t.alignDelimiters!==!1){let M=l[p]-(N[p]||0),x=a[p];x===114?I=" ".repeat(M):x===99?M%2?(I=" ".repeat(M/2+.5),A=" ".repeat(M/2-.5)):(I=" ".repeat(M/2),A=I):A=" ".repeat(M)}t.delimiterStart!==!1&&!p&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&C==="")&&(t.delimiterStart!==!1||p)&&y.push(" "),t.alignDelimiters!==!1&&y.push(I),y.push(C),t.alignDelimiters!==!1&&y.push(A),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||p!==u-1)&&y.push("|")}b.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return b.join(`
|
|
6
|
+
`)}function Wd(e){return e==null?"":String(e)}function Ls(e){let n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}var Ai=Be(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ps(e,n,t,r){let i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);let o=t.indentLines(t.containerFlow(e,a.current()),Qd);return i(),o}function Qd(e,n,t){return">"+(t?"":" ")+e}function Fs(e,n){return Ms(e,n.inConstruct,!0)&&!Ms(e,n.notInConstruct,!1)}function Ms(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Ni(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;){let a=t.unsafe[i];if(a.character===`
|
|
7
7
|
`&&!a.before&&!a.after&&Fs(t.stack,a))return/[\t ]/.test(r.before)?"":" "}return`\\
|
|
8
|
-
`}function Ds(e,n){let t=String(e),r=t.indexOf(n),i=r,a=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+n.length,r=t.indexOf(n,i);return o}function Os(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Bs(e){let n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Us(e,n,t,r){let i=Bs(t),a=e.value||"";if(Os(e,t)){let p=t.enter("codeIndented"),f=t.indentLines(a,
|
|
8
|
+
`}function Ds(e,n){let t=String(e),r=t.indexOf(n),i=r,a=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+n.length,r=t.indexOf(n,i);return o}function Os(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Bs(e){let n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Us(e,n,t,r){let i=Bs(t),a=e.value||"";if(Os(e,t)){let p=t.enter("codeIndented"),f=t.indentLines(a,Yd);return p(),f}let o=t.createTracker(r),s=i.repeat(Math.max(Ds(a,i)+1,3)),l=t.enter("codeFenced"),u=i==="`"?"GraveAccent":"Tilde",c=o.move(s);if(e.lang){let p=t.enter(`codeFencedLang${u}`);c+=o.move(t.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),p()}if(e.lang&&e.meta){let p=t.enter(`codeFencedMeta${u}`);c+=o.move(" "),c+=o.move(t.safe(e.meta,{before:c,after:`
|
|
9
9
|
`,encode:["`"],...o.current()})),p()}return c+=o.move(`
|
|
10
10
|
`),a&&(c+=o.move(a+`
|
|
11
|
-
`)),c+=o.move(s),l(),c}function
|
|
12
|
-
`,...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),o(),u}function Hs(e){let n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}nr.attention=
|
|
11
|
+
`)),c+=o.move(s),l(),c}function Yd(e,n,t){return(t?"":" ")+e}function Gt(e){let n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function $s(e,n,t,r){let i=Gt(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("definition"),s=t.enter("label"),l=t.createTracker(r),u=l.move("[");return u+=l.move(t.safe(t.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":`
|
|
12
|
+
`,...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),o(),u}function Hs(e){let n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}nr.attention=Xd;nr.peek=Kd;function nr(e,n,t,r){let i=t.enter("phrasing"),a=t.containerPhrasing({type:"root",children:[e]},r);return i(),a}function Xd(e,n){return{construct:"emphasis",markers:Hs(n)==="*"?["*","_"]:["_","*"],sizes:[1]}}function Kd(e,n,t){return t.options.emphasis||"*"}function qs(e){return"&#x"+e.toString(16).toUpperCase()+";"}var Gs=[],rr=!0,ut=!1,fn="skip";function ir(e,n,t,r){if(!e||typeof e!="object")throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,l;if(typeof t=="function"||t&&typeof t=="object"?(a=n,o=t,r&&(i=!1)):(o=n,t&&(i=!1)),typeof o=="function")s=o;else if(o&&typeof o=="object"){if(!(o.enter===null||o.enter===void 0))if(typeof o.enter=="function")s=o.enter;else throw new Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor");if(typeof o.exit=="function")l=o.exit;else throw new Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw new Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let u=Be(a),c=i?1:-1;p(e,void 0,[])();function p(f,d,b){let v=f&&typeof f=="object"?f:{};if(typeof v.type=="string"){let y=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(N,"name",{value:"node ("+(f.type+(y?"<"+y+">":""))+")"})}return N;function N(){let y=!a||u(f,d,b[b.length-1]||void 0),C=Gs;if(s&&y&&(C=js(s(f,b,d)),C[0]===ut))return C;if("children"in f&&f.children){let I=f;if(I.children&&C[0]!==fn){let A=(i?-1:I.children.length)+c,M=[...b,I];for(;A>-1&&A<I.children.length;){let x=I.children[A],_=p(x,A,M)();if(_[0]===ut)return _;A=typeof _[1]=="number"?_[1]:A+c}}}if(l&&y){let I=js(l(f,b,d));if(I[0]===fn)throw new Error("Unexpected value `"+I[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(I[0]===ut||typeof I[1]=="number")return I}return C}}}function js(e){return Array.isArray(e)?e:typeof e=="number"?[rr,e]:e==null?Gs:[e]}function Ri(e,n,t,r){let i,a,o;typeof t=="function"||t&&typeof t=="object"?(i=n,a=t,o=r):(a=n,o=t),typeof a=="function"?ir(e,i,zi(a),o):ir(e,i,Zd(a),o)}function Zd(e){return!e||typeof e!="object"?e:{enter:typeof e.enter=="function"?zi(e.enter):e.enter,exit:typeof e.exit=="function"?zi(e.exit):e.exit}}function zi(e){return n;function n(t,r,i){return e(t,i,r[r.length-1])}}function Vs(e,n){let t=!1;return Ri(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,ut}),!!((!e.depth||e.depth<3)&>(e)&&(n.options.setext||t))}function Ws(e,n,t,r){let i=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(r);if(Vs(e,t)){let p=t.enter("headingSetext"),f=t.enter("phrasing"),d=t.containerPhrasing(e,{...a.current(),before:`
|
|
13
13
|
`,after:`
|
|
14
14
|
`});return f(),p(),d+`
|
|
15
15
|
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
16
16
|
`))+1))}let o="#".repeat(i),s=t.enter("headingAtx"),l=t.enter("phrasing");a.move(o+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
|
|
17
|
-
`,...a.current()}),c=u.charCodeAt(0);return(c===9||c===32)&&(u=qs(c)+u.slice(1)),u=u?o+" "+u:o,t.options.closeAtx&&(u+=" "+o),l(),s(),u}Li.peek=
|
|
17
|
+
`,...a.current()}),c=u.charCodeAt(0);return(c===9||c===32)&&(u=qs(c)+u.slice(1)),u=u?o+" "+u:o,t.options.closeAtx&&(u+=" "+o),l(),s(),u}Li.peek=Jd;function Li(e){return e.value||""}function Jd(){return"<"}_i.peek=ef;function _i(e,n,t,r){let i=Gt(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("image"),s=t.enter("label"),l=t.createTracker(r),u=l.move("![");return u+=l.move(t.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),o(),u}function ef(){return"!"}Pi.peek=tf;function Pi(e,n,t,r){let i=e.referenceType,a=t.enter("imageReference"),o=t.enter("label"),s=t.createTracker(r),l=s.move("!["),u=t.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();let c=t.stack;t.stack=c.filter(function(f){return f!=="phrasing"}),o=t.enter("reference");let p=t.safe(t.associationId(e),{before:l,after:"]",...s.current()});return o(),t.stack=c,a(),i==="full"||!u||u!==p?l+=s.move(p+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function tf(){return"!"}Mi.peek=nf;function Mi(e,n,t){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<t.unsafe.length;){let o=t.unsafe[a],s=t.compilePattern(o);if(!o.atBreak)continue;let l;for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function nf(){return"`"}function Fi(e,n){let t=gt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Di.peek=rf;function Di(e,n,t,r){let i=Gt(t),a=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);if(Fi(e,t)){let c=t.stack;t.stack=c.filter(function(d){return d!=="phrasing"});let p=t.enter("autolink"),f=o.move("<");return f+=o.move(t.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),p(),t.stack=c,f}let s=t.enter("link"),l=t.enter("label"),u=o.move("[");return u+=o.move(t.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(t.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=t.enter("destinationRaw"),u+=o.move(t.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=t.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(t.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),s(),u}function rf(e,n,t){return Fi(e,t)?"<":"["}Oi.peek=of;function Oi(e,n,t,r){let i=e.referenceType,a=t.enter("linkReference"),o=t.enter("label"),s=t.createTracker(r),l=s.move("["),u=t.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();let c=t.stack;t.stack=c.filter(function(f){return f!=="phrasing"}),o=t.enter("reference");let p=t.safe(t.associationId(e),{before:l,after:"]",...s.current()});return o(),t.stack=c,a(),i==="full"||!u||u!==p?l+=s.move(p+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function of(){return"["}function Vt(e){let n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Qs(e){let n=Vt(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Ys(e){let n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function or(e){let n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Xs(e,n,t,r){let i=t.enter("list"),a=t.bulletCurrent,o=e.ordered?Ys(t):Vt(t),s=e.ordered?o==="."?")":".":Qs(t),l=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(l=!0),or(t)===o&&c){let p=-1;for(;++p<e.children.length;){let f=e.children[p];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),t.bulletCurrent=o;let u=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=a,i(),u}function Ks(e){let n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Zs(e,n,t,r){let i=Ks(t),a=t.bulletCurrent||Vt(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=t.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,s.current()),c);return l(),u;function c(p,f,d){return f?(d?"":" ".repeat(o))+p:(d?a:a+" ".repeat(o-a.length))+p}}function Js(e,n,t,r){let i=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,r);return a(),i(),o}function el(e,n,t,r){if(!e.children.some(function(s){return Ai(s)}))return t.containerFlow(e,r);let a=t.enter("phrasing"),o=t.containerPhrasing(e,r);return a(),o}function tl(e){let n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}ar.attention=af;ar.peek=sf;function ar(e,n,t,r){let i=t.enter("phrasing"),a=t.containerPhrasing({type:"root",children:[e]},r);return i(),a}function af(e,n){return{construct:"strong",markers:tl(n)==="*"?["*","_"]:["_","*"],sizes:[2]}}function sf(e,n,t){return t.options.strong||"*"}function nl(e,n,t,r){let i=n?n.children:[],a=i.indexOf(e);return t.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function rl(e){let n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function il(e,n,t){let r=(or(t)+(t.options.ruleSpaces?" ":"")).repeat(rl(t));return t.options.ruleSpaces?r.slice(0,-1):r}var ct={blockquote:Ps,break:Ni,code:Us,definition:$s,emphasis:nr,hardBreak:Ni,heading:Ws,html:Li,image:_i,imageReference:Pi,inlineCode:Mi,link:Di,linkReference:Oi,list:Xs,listItem:Zs,paragraph:Js,root:el,strong:ar,text:nl,thematicBreak:il};function Ui(){return{enter:{table:lf,tableData:ol,tableHeader:ol,tableRow:cf},exit:{codeText:pf,table:uf,tableData:Bi,tableHeader:Bi,tableRow:Bi}}}function lf(e){let n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function uf(e){this.exit(e),this.data.inTable=void 0}function cf(e){this.enter({type:"tableRow",children:[]},e)}function Bi(e){this.exit(e)}function ol(e){this.enter({type:"tableCell",children:[]},e)}function pf(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,df));let t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function df(e,n){return n==="|"?n:e}function $i(e){let n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
18
18
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:l,tableRow:s}};function o(d,b,v,N){return u(c(d,v,N),d.align)}function s(d,b,v,N){let y=p(d,v,N),C=u([y]);return C.slice(0,C.indexOf(`
|
|
19
|
-
`))}function l(d,b,v,N){let y=v.enter("tableCell"),C=v.enter("phrasing"),I=v.containerPhrasing(d,{...N,before:a,after:a});return C(),y(),I}function u(d,b){return _s(d,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function c(d,b,v){let N=d.children,y=-1,C=[],I=b.enter("table");for(;++y<N.length;)C[y]=p(N[y],b,v);return I(),C}function p(d,b,v){let N=d.children,y=-1,C=[],I=b.enter("tableRow");for(;++y<N.length;)C[y]=l(N[y],d,b,v);return I(),C}function f(d,b,v){let N=ct.inlineCode(d,b,v);return v.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function Hi(){return{exit:{taskListCheckValueChecked:al,taskListCheckValueUnchecked:al,paragraph:df}}}function qi(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ff}}}function al(e){let n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function df(e){let n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){let t=this.stack[this.stack.length-1];t.type;let r=t.children[0];if(r&&r.type==="text"){let i=n.children,a=-1,o;for(;++a<i.length;){let s=i[a];if(s.type==="paragraph"){o=s;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ff(e,n,t,r){let i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=t.createTracker(r);a&&s.move(o);let l=ct.listItem(e,n,t,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function ji(){return[Si(),Ii(),Ei(),Ui(),Hi()]}function Gi(e){return{extensions:[Ti(),Ci(e),vi(),$i(e),qi()]}}var mf={tokenize:kf,partial:!0},sl={tokenize:yf,partial:!0},ll={tokenize:wf,partial:!0},ul={tokenize:Sf,partial:!0},hf={tokenize:Tf,partial:!0},cl={name:"wwwAutolink",tokenize:xf,previous:dl},pl={name:"protocolAutolink",tokenize:bf,previous:fl},Ye={name:"emailAutolink",tokenize:gf,previous:ml},Ue={};function Wi(){return{text:Ue}}var St=48;for(;St<123;)Ue[St]=Ye,St++,St===58?St=65:St===91&&(St=97);Ue[43]=Ye;Ue[45]=Ye;Ue[46]=Ye;Ue[95]=Ye;Ue[72]=[Ye,pl];Ue[104]=[Ye,pl];Ue[87]=[Ye,cl];Ue[119]=[Ye,cl];function gf(e,n,t){let r=this,i,a;return o;function o(p){return!Vi(p)||!ml.call(r,r.previous)||Qi(r.events)?t(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return Vi(p)?(e.consume(p),s):p===64?(e.consume(p),l):t(p)}function l(p){return p===46?e.check(hf,c,u)(p):p===45||p===95||ce(p)?(a=!0,e.consume(p),l):c(p)}function u(p){return e.consume(p),i=!0,l}function c(p){return a&&i&&ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(p)):t(p)}}function xf(e,n,t){let r=this;return i;function i(o){return o!==87&&o!==119||!dl.call(r,r.previous)||Qi(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mf,e.attempt(sl,e.attempt(ll,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function bf(e,n,t){let r=this,i="",a=!1;return o;function o(p){return(p===72||p===104)&&fl.call(r,r.previous)&&!Qi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),e.consume(p),s):t(p)}function s(p){if(ue(p)&&i.length<5)return i+=String.fromCodePoint(p),e.consume(p),s;if(p===58){let f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(p),l}return t(p)}function l(p){return p===47?(e.consume(p),a?u:(a=!0,l)):t(p)}function u(p){return p===null||xt(p)||G(p)||Fe(p)||bt(p)?t(p):e.attempt(sl,e.attempt(ll,c),t)(p)}function c(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(p)}}function kf(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function yf(e,n,t){let r,i,a;return o;function o(u){return u===46||u===95?e.check(ul,l,s)(u):u===null||G(u)||Fe(u)||u!==45&&bt(u)?l(u):(a=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!a?t(u):n(u)}}function wf(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ul,n,a)(o):o===null||G(o)||Fe(o)?n(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function Sf(e,n,t){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||G(s)||Fe(s)?n(s):t(s)}function i(s){return s===null||s===40||s===91||G(s)||Fe(s)?n(s):r(s)}function a(s){return ue(s)?o(s):t(s)}function o(s){return s===59?(e.consume(s),r):ue(s)?(e.consume(s),o):t(s)}}function Tf(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return ce(a)?t(a):n(a)}}function dl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function fl(e){return!ue(e)}function ml(e){return!(e===47||Vi(e))}function Vi(e){return e===43||e===45||e===46||e===95||ce(e)}function Qi(e){let n=e.length,t=!1;for(;n--;){let r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}var If={tokenize:Rf,partial:!0};function Yi(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Af,continuation:{tokenize:Nf},exit:zf}},text:{91:{name:"gfmFootnoteCall",tokenize:vf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Cf,resolveTo:Ef}}}}function Cf(e,n,t){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return t(l);let u=be(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?t(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),n(l))}}function Ef(e,n){let t=e.length,r;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){r=e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",a,n],["exit",a,n],["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...l),e}function vf(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),l}function l(p){return p!==94?t(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(a>999||p===93&&!o||p===null||p===91||G(p))return t(p);if(p===93){e.exit("chunkString");let f=e.exit("gfmFootnoteCallString");return i.includes(be(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(p)}return G(p)||(o=!0),a++,e.consume(p),p===92?c:u}function c(p){return p===91||p===92||p===93?(e.consume(p),a++,u):u(p)}}function Af(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):t(b)}function c(b){if(o>999||b===93&&!s||b===null||b===91||G(b))return t(b);if(b===93){e.exit("chunkString");let v=e.exit("gfmFootnoteDefinitionLabelString");return a=be(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return G(b)||(s=!0),o++,e.consume(b),b===92?p:c}function p(b){return b===91||b===92||b===93?(e.consume(b),o++,c):c(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),D(e,d,"gfmFootnoteDefinitionWhitespace")):t(b)}function d(b){return n(b)}}function Nf(e,n,t){return e.check(Oe,n,e.attempt(If,n,t))}function zf(e){e.exit("gfmFootnoteDefinition")}function Rf(e,n,t){let r=this;return D(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function Xi(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",p,s]],d=s.parser.constructs.insideSpan.null;d&&ie(f,f.length,0,De(d,o.slice(u+1,l),s)),ie(f,f.length,0,[["exit",p,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),ie(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){let u=this.previous,c=this.events,p=0;return f;function f(b){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(b):(o.enter("strikethroughSequenceTemporary"),d(b))}function d(b){let v=jt(u);if(b===126)return p>1?l(b):(o.consume(b),p++,d);if(p<2&&!t)return l(b);let N=o.exit("strikethroughSequenceTemporary"),y=jt(b);return N._open=!y||y===2&&!!v,N._close=!v||v===2&&!!y,s(b)}}}var sr=class{constructor(){this.map=[]}add(n,t,r){Lf(this,n,t,r)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length,r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(let a of i)n.push(a);i=r.pop()}this.map.length=0}};function Lf(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function hl(e,n){let t=!1,r=[];for(;n<e.length;){let i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){let a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Ki(){return{flow:{null:{name:"table",tokenize:_f,resolveAll:Pf}}}}function _f(e,n,t){let r=this,i=0,a=0,o;return s;function s(w){let S=r.events.length-1;for(;S>-1;){let U=r.events[S][1].type;if(U==="lineEnding"||U==="linePrefix")S--;else break}let j=S>-1?r.events[S][1].type:null,R=j==="tableHead"||j==="tableRow"?x:l;return R===x&&r.parser.lazy[r.now().line]?t(w):R(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(o=!0,a+=1),c(w)}function c(w){return w===null?t(w):L(w)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),d):t(w):O(w)?D(e,c,"whitespace")(w):(a+=1,o&&(o=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),p(w)))}function p(w){return w===null||w===124||G(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?f:p)}function f(w){return w===92||w===124?(e.consume(w),p):p(w)}function d(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(w):(e.enter("tableDelimiterRow"),o=!1,O(w)?D(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):b(w))}function b(w){return w===45||w===58?N(w):w===124?(o=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),v):M(w)}function v(w){return O(w)?D(e,N,"whitespace")(w):N(w)}function N(w){return w===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):w===45?(a+=1,y(w)):w===null||L(w)?A(w):M(w)}function y(w){return w===45?(e.enter("tableDelimiterFiller"),C(w)):M(w)}function C(w){return w===45?(e.consume(w),C):w===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(w))}function I(w){return O(w)?D(e,A,"whitespace")(w):A(w)}function A(w){return w===124?b(w):w===null||L(w)?!o||i!==a?M(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(w)):M(w)}function M(w){return t(w)}function x(w){return e.enter("tableRow"),_(w)}function _(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),_):w===null||L(w)?(e.exit("tableRow"),n(w)):O(w)?D(e,_,"whitespace")(w):(e.enter("data"),$(w))}function $(w){return w===null||w===124||G(w)?(e.exit("data"),_(w)):(e.consume(w),w===92?B:$)}function B(w){return w===92||w===124?(e.consume(w),$):$(w)}}function Pf(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,p,f=new sr;for(;++t<e.length;){let d=e[t],b=d[1];d[0]==="enter"?b.type==="tableHead"?(s=!1,l!==0&&(gl(f,n,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",u,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,p=void 0,a=[0,0,0,0],o=[0,t+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",c,n]])),i=b.type==="tableDelimiterRow"?2:c?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],p=lr(f,n,a,i,void 0,p),a=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],p=lr(f,n,a,i,void 0,p)),a=o,o=[a[1],t,0,0])):b.type==="tableHead"?(s=!0,l=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=t,a[1]!==0?(o[0]=o[1],p=lr(f,n,a,i,t,p)):o[1]!==0&&(p=lr(f,n,o,i,t,p)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(l!==0&&gl(f,n,l,u,c),f.consume(n.events),t=-1;++t<n.events.length;){let d=n.events[t];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=hl(n.events,t))}return e}function lr(e,n,t,r,i,a){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";t[0]!==0&&(a.end=Object.assign({},Wt(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));let l=Wt(n.events,t[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){let u=Wt(n.events,t[2]),c=Wt(n.events,t[3]),p={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(t[2],0,[["enter",p,n]]),r!==2){let f=n.events[t[2]],d=n.events[t[3]];if(f[1].end=Object.assign({},d[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){let b=t[2]+1,v=t[3]-t[2]-1;e.add(b,v,[])}}e.add(t[3]+1,0,[["exit",p,n]])}return i!==void 0&&(a.end=Object.assign({},Wt(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function gl(e,n,t,r,i){let a=[],o=Wt(n.events,t);i&&(i.end=Object.assign({},o),a.push(["exit",i,n])),r.end=Object.assign({},o),a.push(["exit",r,n]),e.add(t+1,0,a)}function Wt(e,n){let t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}var Mf={name:"tasklistCheck",tokenize:Ff};function Zi(){return{text:{91:Mf}}}function Ff(e,n,t){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return G(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):t(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):t(l)}function s(l){return L(l)?n(l):O(l)?e.check({tokenize:Df},n,t)(l):t(l)}}function Df(e,n,t){return D(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function xl(e){return Hn([Wi(),Yi(),Xi(e),Ki(),Zi()])}var Of={};function ur(e){let n=this,t=e||Of,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(xl(t)),a.push(ji()),o.push(Gi(t))}var Pe={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Tt={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var $e={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var cr=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],pr=[12288,12288,65281,65376,65504,65510],dr=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],fr=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],mn=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Qt=(e,n)=>{let t=0,r=Math.floor(e.length/2)-1;for(;t<=r;){let i=Math.floor((t+r)/2),a=i*2;if(n<e[a])r=i-1;else if(n>e[a+1])t=i+1;else return!0}return!1};var Bf=cr[0],Uf=cr.at(-1),$f=pr[0],Hf=pr.at(-1),qf=dr[0],jf=dr.at(-1),Gf=fr[0],Vf=fr.at(-1),Wf=mn[0],Qf=mn.at(-1),bl=19968,[Yf,Xf]=Kf(mn);function Kf(e){let n=e[0],t=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(bl>=i&&bl<=a)return[i,a];a-i>t-n&&(n=i,t=a)}return[n,t]}var kl=e=>e<Bf||e>Uf?!1:Qt(cr,e),yl=e=>e<$f||e>Hf?!1:Qt(pr,e),Zf=e=>e<qf||e>jf?!1:Qt(dr,e),Jf=e=>e<Gf||e>Vf?!1:Qt(fr,e),wl=e=>e>=Yf&&e<=Xf?!0:e<Wf||e>Qf?!1:Qt(mn,e);function Sl(e){return kl(e)?"ambiguous":yl(e)?"fullwidth":Zf(e)?"halfwidth":Jf(e)?"narrow":wl(e)?"wide":"neutral"}function em(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Tl(e){return em(e),Sl(e)}function tm(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Il(e){if(!e||e<4352)return!1;switch(Tl(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!tm(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function Cl(e,n){return n!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function El(e){return e!==null&&e>=65024&&e<=65038}var vl=Nl(/\p{P}|\p{S}/u),Al=Nl(/\s/);function Nl(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCodePoint(t))}}function Yt(e){return!!(e&Tt.characterGroupWhitespace)}function mr(e){return(e&Se.cjkPunctuation)===Tt.characterGroupPunctuation}function Ji(e){return!!(e&Se.cjk)}function eo(e){return!!(e&Se.cjkOrIvs)}function to(e){return e===Se.nonEmojiGeneralUseVS}function hr(e){return!!(e&Se.spaceOrPunctuation)}var Se;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(Se||(Se={}));function hn(e){if(e===Pe.eof||G(e)||Al(e))return Tt.characterGroupWhitespace;let n=0;if(e>=4352){if(El(e))return Se.nonEmojiGeneralUseVS;switch(Il(e)){case null:return Se.ivs;case!0:n|=Se.cjk;break}}return vl(e)&&(n|=Tt.characterGroupPunctuation),n}function no(e,n,t){if(!to(e))return e;let r=n(),i=hn(r);return!r||Yt(i)?e:Cl(r,t)?Se.cjkPunctuation:nm(i)}function nm(e){return e&~Se.ivs}function ro(e){return!!(e&&e>=55296&&e<=56319)}function io(e){return!!(e&&e>=56320&&e<=57343)}function oo(e,n,t){if(n._bufferIndex<2)return e;let r=t({start:{...n,_bufferIndex:n._bufferIndex-2},end:n}).codePointAt(0);return r&&r>=65536?r:e}function zl(e,n,t){let r=e>=65536?2:1;if(n._bufferIndex<1+r)return null;let i=n._bufferIndex-r-2,a=t({start:{...n,_bufferIndex:i>=0?i:0},end:{...n,_bufferIndex:n._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}var ao=class{cachedValue=void 0;constructor(e,n,t){this.previousCode=e,this.nowPoint=n,this.sliceSerialize=t}value(){return this.cachedValue===void 0&&(this.cachedValue=zl(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function so(e,n,t){let r=t({start:n,end:{...n,_bufferIndex:n._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}var gr={name:"attention",resolveAll:rm,tokenize:im};function rm(e,n){let t=-1,r,i,a,o,s,l,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;let p={...e[r][1].end},f={...e[t][1].start};Rl(p,-l),Rl(f,l),o={type:l>1?$e.strongSequence:$e.emphasisSequence,start:p,end:{...e[r][1].end}},s={type:l>1?$e.strongSequence:$e.emphasisSequence,start:{...e[t][1].start},end:f},a={type:l>1?$e.strongText:$e.emphasisText,start:{...e[r][1].end},end:{...e[t][1].start}},i={type:l>1?$e.strong:$e.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[t][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ae(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ae(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),n.parser.constructs.insideSpan.null,u=ae(u,De(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ae(u,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=ae(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,ie(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function im(e,n){let t=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,o=io(a)?oo(a,r(),i):a,s=hn(o),l=new ao(o,r(),i),u=no(s,l.value.bind(l),o),c;return p;function p(d){return d===Pe.asterisk||Pe.underscore,c=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===c)return e.consume(d),f;let b=e.exit("attentionSequence"),v=hn(ro(d)?so(d,r(),i):d);let N=mr(u),y=N||Yt(u),C=mr(v),I=C||Yt(v),A=eo(u),M=!I||C&&(y||A)||t.includes(d),x=!y||N&&(I||Ji(v))||t.includes(o);return b._open=!!(c===Pe.asterisk?M:M&&(hr(u)||!x)),b._close=!!(c===Pe.asterisk?x:x&&(hr(v)||!M)),n(d)}}function Rl(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}function Ll(){return{text:{[Pe.asterisk]:gr,[Pe.underscore]:gr},insideSpan:{null:[gr]}}}function _l(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(Ll())}var Pl=["yellow","green","blue","pink","orange","purple"],lo="yellow";var ve={1:{mobile:14,desktop:14,tailwind:"text-sm",lineHeight:1.7,tailwindLineHeight:"leading-[1.7]",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:6},2:{mobile:16,desktop:18,tailwind:"text-base md:text-lg",lineHeight:1.625,tailwindLineHeight:"leading-relaxed",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:8},3:{mobile:24,desktop:30,tailwind:"text-2xl md:text-3xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:10},4:{mobile:30,desktop:36,tailwind:"text-3xl md:text-4xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:11},5:{mobile:36,desktop:48,tailwind:"text-4xl lg:text-5xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:12},6:{mobile:48,desktop:60,tailwind:"text-5xl lg:text-6xl",lineHeight:1.2,tailwindLineHeight:"leading-[1.2]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:14},7:{mobile:60,desktop:72,tailwind:"text-6xl lg:text-7xl",lineHeight:1.15,tailwindLineHeight:"leading-[1.15]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:16},8:{mobile:72,desktop:96,tailwind:"text-7xl lg:text-8xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:18},9:{mobile:96,desktop:128,tailwind:"text-8xl lg:text-9xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:20}},Ae=Object.keys(ve).map(Number),om=Math.min(...Ae),am=Math.max(...Ae),U0=Object.fromEntries(Ae.map(e=>[e,`Level ${e}`]));var Ml=Object.fromEntries(Ae.map(e=>[e,`${ve[e].tailwind} ${ve[e].tailwindLineHeight}`])),$0=Object.fromEntries(Ae.map(e=>[e,{mobile:ve[e].mobile,desktop:ve[e].desktop}])),H0=Object.fromEntries(Ae.map(e=>[e,ve[e].lineHeight])),q0=Object.fromEntries(Ae.map(e=>[e,ve[e].tailwindLineHeight])),j0=Object.fromEntries(Ae.map(e=>[e,ve[e].fontWeight])),G0=Object.fromEntries(Ae.map(e=>[e,ve[e].tailwindFontWeight])),V0=Object.fromEntries(Ae.map(e=>[e,ve[e].letterSpacing])),W0=Object.fromEntries(Ae.map(e=>[e,ve[e].tailwindTracking])),Q0=Object.fromEntries(Ae.map(e=>[e,ve[e].dotSize]));function Fl(e){return typeof e=="number"&&e>=om&&e<=am}var Y0=Object.fromEntries(Ae.map(e=>[e,ve[e].mobile]));var sm=["gray","red","yellow","green","blue","purple"],Dl=new Set(sm),uo=new Set(Pl),lm=["normal"],um=new Set(lm);function Ol(e){let n=null,t=null,r=null,i=null,a=null;for(let o of e.split(";")){let[s,l]=o.split("=");if(s==="c"&&Dl.has(l))n=l;else if(s==="bg"&&Dl.has(l))t=l;else if(s==="fs"&&um.has(l))r=l;else if(s==="hl"&&uo.has(l))i=l;else if(s==="sz"){let u=parseInt(l,10);Fl(u)&&(a=u)}}return{textId:n,bgId:t,fontStyle:r,highlightId:i,size:a}}function cm(e){let n=[];return e.textId&&n.push(`c=${e.textId}`),e.bgId&&n.push(`bg=${e.bgId}`),e.highlightId&&n.push(`hl=${e.highlightId}`),e.size&&n.push(`sz=${e.size}`),e.fontStyle&&n.push(`fs=${e.fontStyle}`),n.length>0?n.join(";"):null}function xr(...e){let n={textId:null,bgId:null,fontStyle:null,highlightId:null,size:null};for(let t of e){if(!t)continue;let r=Ol(t);r.textId&&(n.textId=r.textId),r.bgId&&(n.bgId=r.bgId),r.fontStyle&&(n.fontStyle=r.fontStyle),r.highlightId&&(n.highlightId=r.highlightId),r.size&&(n.size=r.size)}return cm(n)}function Bl(e){let{textId:n,bgId:t,fontStyle:r,highlightId:i,size:a}=Ol(e),o=[];return n&&o.push(`color: var(--color-text-${n})`),i?(o.push(`background-color: var(--highlight-${i})`),o.push("border-radius: 2px"),o.push("padding: 0 2px")):t&&(o.push(`background-color: var(--color-bg-${t})`),o.push("border-radius: 2px"),o.push("padding: 0 2px")),r&&o.push(`font-style: ${r}`),{style:o.length>0?o.join("; "):null,className:a?Ml[a]:null}}function Ul(e){return pm(e,dm)}function pm(e,n){return e.split(/(```[\s\S]*?```)/).map((r,i)=>i%2===1?r:n(r)).join("")}function dm(e){let n=e;return n=n.replace(/\{size:([1-9])\}\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}\{\/size\}/g,(t,r,i,a)=>{let o=xr(i,`sz=${r}`);return o?`{s:${o}}${a}{/s}`:a}),n=n.replace(/\{size:([1-9])\}([\s\S]*?)\{\/size\}/g,(t,r,i)=>i.includes("{s:")?i.replace(/\{s:([a-z0-9=;]+)\}/g,(a,o)=>`{s:${xr(o,`sz=${r}`)??o}}`):`{s:sz=${r}}${i}{/s}`),n=n.replace(/\{s:([a-z0-9=;]+)\}==(?:\{(\w+)\})?([^=]+)==\{\/s\}/g,(t,r,i,a)=>{let o=i&&uo.has(i)?i:lo,s=xr(r,`hl=${o}`);return s?`{s:${s}}${a}{/s}`:a}),n=n.replace(/==(?:\{(\w+)\})?([^=]+)==/g,(t,r,i)=>{let a=r&&uo.has(r)?r:lo;return i.includes("{s:")?i.replace(/\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}/g,(o,s,l)=>{let u=xr(s,`hl=${a}`);return u?`{s:${u}}${l}{/s}`:l}):`{s:hl=${a}}${i}{/s}`}),n}var fm=["full","large","half","small"],mm=["left","center","right"],Xt="full",co="center";var hm=2,gm=new Set(fm),xm=new Set(mm);function It(e){return typeof e=="string"&&gm.has(e)}function Ct(e){return typeof e=="string"&&xm.has(e)}function bm(e){return e===2||e===3}function $l(e){let n=e?parseInt(e,10):NaN;return bm(n)?n:hm}var km={full:"w-full",large:"w-3/4",half:"w-1/2",small:"w-1/3"},ym={left:"mr-auto",center:"mx-auto",right:"ml-auto"},Hl={2:"grid-cols-1 @vp-sm/article:grid-cols-2",3:"grid-cols-1 @vp-sm/article:grid-cols-3"},gn={size:Xt,align:co};function po(e){let n=Xt,t=co;if(!e)return{size:n,align:t};for(let r of e.trim().split(/\s+/)){let i=r.indexOf("=");if(i<=0)continue;let a=r.slice(0,i),o=r.slice(i+1);a==="size"&&It(o)?n=o:a==="align"&&Ct(o)&&(t=o)}return{size:n,align:t}}function ql(e){if(e.size===Xt)return null;let n=[`size=${e.size}`];return e.align!==co&&n.push(`align=${e.align}`),n.join(" ")}function jl(e){let n=km[e.size];return e.size===Xt?n:`${n} ${ym[e.align]}`}var wm=/^!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)(?:\{([^}]*)\})?\s*$/;function Gl(e){let n=wm.exec(e.trim());return n?{alt:n[1]??"",src:n[2],layout:po(n[4])}:null}var Sm=/^\{([^}]*)\}/;function Tm(e){for(let n of e.trim().split(/\s+/)){let t=n.indexOf("=");if(t<=0)continue;let r=n.slice(0,t),i=n.slice(t+1);if(r==="size"&&It(i)||r==="align"&&Ct(i)||r==="width"&&/^\d+$/.test(i))return!0}return!1}function Vl(e){if(!e.children||e.children.length===0)return;for(let r of e.children)Vl(r);if(e.type!=="paragraph")return;let n=e.children,t=[];for(let r=0;r<n.length;r++){let i=n[r],a=n[r+1];if(i.type==="image"&&a&&a.type==="text"&&typeof a.value=="string"){let o=Sm.exec(a.value);if(o&&Tm(o[1]??"")){let s=po(o[1]);s.size!==Xt&&(i.data=i.data??{},i.data.hProperties={...i.data.hProperties??{},"data-size":s.size,"data-align":s.align}),t.push(i);let l=a.value.slice(o[0].length);l.trim()&&t.push({...a,value:l}),r+=1;continue}}t.push(i)}e.children=t}function Wl(){return e=>{Vl(e)}}var Im=/\{s:([a-z0-9=;]+)\}/,Ql="{/s}";var Cm={open:e=>{let n=Im.exec(e);return n?{index:n.index,length:n[0].length,params:n[1]}:null},close:e=>{let n=e.indexOf(Ql);return n===-1?null:{index:n,length:Ql.length}},build:(e,n)=>({type:"inlineStyle",params:n??"",children:e})},Em={open:e=>{let n=e.indexOf("++");return n===-1||/^\s|^$/.test(e.slice(n+2))?null:{index:n,length:2}},close:e=>{let n=e.indexOf("++");return n===-1?null:{index:n,length:2}},build:e=>({type:"underline",children:e})};function Et(e){return{type:"text",value:e}}function xn(e){return e.type==="text"&&typeof e.value=="string"}function Yl(e,n){let t=[],r=0;for(;r<e.length;){let i=e[r];if(!xn(i)){t.push(i),r+=1;continue}let a=n.open(i.value);if(!a){t.push(i),r+=1;continue}let o=i.value.slice(0,a.index),s=i.value.slice(a.index+a.length),l=[],u=null,c=n.close(s);if(c)c.index>0&&l.push(Et(s.slice(0,c.index))),u={nodeIndex:r,rest:s.slice(c.index+c.length)};else{s&&l.push(Et(s));for(let p=r+1;p<e.length;p++){let f=e[p];if(!xn(f)){l.push(f);continue}let d=n.close(f.value);if(!d){l.push(f);continue}d.index>0&&l.push(Et(f.value.slice(0,d.index))),u={nodeIndex:p,rest:f.value.slice(d.index+d.length)};break}}if(!u||l.every(p=>xn(p)&&!p.value.trim())){t.push(Et(o+i.value.slice(a.index,a.index+a.length))),e=[Et(s),...e.slice(r+1)],r=0;continue}o&&t.push(Et(o)),t.push(n.build(Xl(l),a.params)),e=[Et(u.rest),...e.slice(u.nodeIndex+1)],r=0}return t.filter(i=>!(xn(i)&&i.value===""))}function Xl(e){return Yl(Yl(e,Cm),Em)}function Kl(e){if(e.children){for(let n of e.children)Kl(n);e.children.some(xn)&&(e.children=Xl(e.children))}}function Zl(e){Kl(e)}var vm=/^:::([a-zA-Z][\w-]*)\b(.*)$/,Am=/^:::[ \t]*$/;function Jl(e){let n=e.split(`
|
|
19
|
+
`))}function l(d,b,v,N){let y=v.enter("tableCell"),C=v.enter("phrasing"),I=v.containerPhrasing(d,{...N,before:a,after:a});return C(),y(),I}function u(d,b){return _s(d,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function c(d,b,v){let N=d.children,y=-1,C=[],I=b.enter("table");for(;++y<N.length;)C[y]=p(N[y],b,v);return I(),C}function p(d,b,v){let N=d.children,y=-1,C=[],I=b.enter("tableRow");for(;++y<N.length;)C[y]=l(N[y],d,b,v);return I(),C}function f(d,b,v){let N=ct.inlineCode(d,b,v);return v.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function Hi(){return{exit:{taskListCheckValueChecked:al,taskListCheckValueUnchecked:al,paragraph:ff}}}function qi(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:mf}}}function al(e){let n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function ff(e){let n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){let t=this.stack[this.stack.length-1];t.type;let r=t.children[0];if(r&&r.type==="text"){let i=n.children,a=-1,o;for(;++a<i.length;){let s=i[a];if(s.type==="paragraph"){o=s;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function mf(e,n,t,r){let i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=t.createTracker(r);a&&s.move(o);let l=ct.listItem(e,n,t,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function ji(){return[Si(),Ii(),Ei(),Ui(),Hi()]}function Gi(e){return{extensions:[Ti(),Ci(e),vi(),$i(e),qi()]}}var hf={tokenize:yf,partial:!0},sl={tokenize:wf,partial:!0},ll={tokenize:Sf,partial:!0},ul={tokenize:Tf,partial:!0},gf={tokenize:If,partial:!0},cl={name:"wwwAutolink",tokenize:bf,previous:dl},pl={name:"protocolAutolink",tokenize:kf,previous:fl},Ye={name:"emailAutolink",tokenize:xf,previous:ml},Ue={};function Wi(){return{text:Ue}}var St=48;for(;St<123;)Ue[St]=Ye,St++,St===58?St=65:St===91&&(St=97);Ue[43]=Ye;Ue[45]=Ye;Ue[46]=Ye;Ue[95]=Ye;Ue[72]=[Ye,pl];Ue[104]=[Ye,pl];Ue[87]=[Ye,cl];Ue[119]=[Ye,cl];function xf(e,n,t){let r=this,i,a;return o;function o(p){return!Vi(p)||!ml.call(r,r.previous)||Qi(r.events)?t(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return Vi(p)?(e.consume(p),s):p===64?(e.consume(p),l):t(p)}function l(p){return p===46?e.check(gf,c,u)(p):p===45||p===95||ce(p)?(a=!0,e.consume(p),l):c(p)}function u(p){return e.consume(p),i=!0,l}function c(p){return a&&i&&ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(p)):t(p)}}function bf(e,n,t){let r=this;return i;function i(o){return o!==87&&o!==119||!dl.call(r,r.previous)||Qi(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hf,e.attempt(sl,e.attempt(ll,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function kf(e,n,t){let r=this,i="",a=!1;return o;function o(p){return(p===72||p===104)&&fl.call(r,r.previous)&&!Qi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),e.consume(p),s):t(p)}function s(p){if(ue(p)&&i.length<5)return i+=String.fromCodePoint(p),e.consume(p),s;if(p===58){let f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(p),l}return t(p)}function l(p){return p===47?(e.consume(p),a?u:(a=!0,l)):t(p)}function u(p){return p===null||xt(p)||G(p)||Fe(p)||bt(p)?t(p):e.attempt(sl,e.attempt(ll,c),t)(p)}function c(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(p)}}function yf(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function wf(e,n,t){let r,i,a;return o;function o(u){return u===46||u===95?e.check(ul,l,s)(u):u===null||G(u)||Fe(u)||u!==45&&bt(u)?l(u):(a=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!a?t(u):n(u)}}function Sf(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ul,n,a)(o):o===null||G(o)||Fe(o)?n(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function Tf(e,n,t){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||G(s)||Fe(s)?n(s):t(s)}function i(s){return s===null||s===40||s===91||G(s)||Fe(s)?n(s):r(s)}function a(s){return ue(s)?o(s):t(s)}function o(s){return s===59?(e.consume(s),r):ue(s)?(e.consume(s),o):t(s)}}function If(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return ce(a)?t(a):n(a)}}function dl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function fl(e){return!ue(e)}function ml(e){return!(e===47||Vi(e))}function Vi(e){return e===43||e===45||e===46||e===95||ce(e)}function Qi(e){let n=e.length,t=!1;for(;n--;){let r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}var Cf={tokenize:Lf,partial:!0};function Yi(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Nf,continuation:{tokenize:zf},exit:Rf}},text:{91:{name:"gfmFootnoteCall",tokenize:Af},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ef,resolveTo:vf}}}}function Ef(e,n,t){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return t(l);let u=be(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?t(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),n(l))}}function vf(e,n){let t=e.length,r;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){r=e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",a,n],["exit",a,n],["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...l),e}function Af(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),l}function l(p){return p!==94?t(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(a>999||p===93&&!o||p===null||p===91||G(p))return t(p);if(p===93){e.exit("chunkString");let f=e.exit("gfmFootnoteCallString");return i.includes(be(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(p)}return G(p)||(o=!0),a++,e.consume(p),p===92?c:u}function c(p){return p===91||p===92||p===93?(e.consume(p),a++,u):u(p)}}function Nf(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):t(b)}function c(b){if(o>999||b===93&&!s||b===null||b===91||G(b))return t(b);if(b===93){e.exit("chunkString");let v=e.exit("gfmFootnoteDefinitionLabelString");return a=be(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return G(b)||(s=!0),o++,e.consume(b),b===92?p:c}function p(b){return b===91||b===92||b===93?(e.consume(b),o++,c):c(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),D(e,d,"gfmFootnoteDefinitionWhitespace")):t(b)}function d(b){return n(b)}}function zf(e,n,t){return e.check(Oe,n,e.attempt(Cf,n,t))}function Rf(e){e.exit("gfmFootnoteDefinition")}function Lf(e,n,t){let r=this;return D(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function Xi(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",p,s]],d=s.parser.constructs.insideSpan.null;d&&ie(f,f.length,0,De(d,o.slice(u+1,l),s)),ie(f,f.length,0,[["exit",p,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),ie(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){let u=this.previous,c=this.events,p=0;return f;function f(b){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(b):(o.enter("strikethroughSequenceTemporary"),d(b))}function d(b){let v=jt(u);if(b===126)return p>1?l(b):(o.consume(b),p++,d);if(p<2&&!t)return l(b);let N=o.exit("strikethroughSequenceTemporary"),y=jt(b);return N._open=!y||y===2&&!!v,N._close=!v||v===2&&!!y,s(b)}}}var sr=class{constructor(){this.map=[]}add(n,t,r){_f(this,n,t,r)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length,r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(let a of i)n.push(a);i=r.pop()}this.map.length=0}};function _f(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function hl(e,n){let t=!1,r=[];for(;n<e.length;){let i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){let a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Ki(){return{flow:{null:{name:"table",tokenize:Pf,resolveAll:Mf}}}}function Pf(e,n,t){let r=this,i=0,a=0,o;return s;function s(w){let S=r.events.length-1;for(;S>-1;){let U=r.events[S][1].type;if(U==="lineEnding"||U==="linePrefix")S--;else break}let j=S>-1?r.events[S][1].type:null,R=j==="tableHead"||j==="tableRow"?x:l;return R===x&&r.parser.lazy[r.now().line]?t(w):R(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(o=!0,a+=1),c(w)}function c(w){return w===null?t(w):L(w)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),d):t(w):O(w)?D(e,c,"whitespace")(w):(a+=1,o&&(o=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),p(w)))}function p(w){return w===null||w===124||G(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?f:p)}function f(w){return w===92||w===124?(e.consume(w),p):p(w)}function d(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(w):(e.enter("tableDelimiterRow"),o=!1,O(w)?D(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):b(w))}function b(w){return w===45||w===58?N(w):w===124?(o=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),v):M(w)}function v(w){return O(w)?D(e,N,"whitespace")(w):N(w)}function N(w){return w===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):w===45?(a+=1,y(w)):w===null||L(w)?A(w):M(w)}function y(w){return w===45?(e.enter("tableDelimiterFiller"),C(w)):M(w)}function C(w){return w===45?(e.consume(w),C):w===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(w))}function I(w){return O(w)?D(e,A,"whitespace")(w):A(w)}function A(w){return w===124?b(w):w===null||L(w)?!o||i!==a?M(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(w)):M(w)}function M(w){return t(w)}function x(w){return e.enter("tableRow"),_(w)}function _(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),_):w===null||L(w)?(e.exit("tableRow"),n(w)):O(w)?D(e,_,"whitespace")(w):(e.enter("data"),$(w))}function $(w){return w===null||w===124||G(w)?(e.exit("data"),_(w)):(e.consume(w),w===92?B:$)}function B(w){return w===92||w===124?(e.consume(w),$):$(w)}}function Mf(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,p,f=new sr;for(;++t<e.length;){let d=e[t],b=d[1];d[0]==="enter"?b.type==="tableHead"?(s=!1,l!==0&&(gl(f,n,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",u,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,p=void 0,a=[0,0,0,0],o=[0,t+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",c,n]])),i=b.type==="tableDelimiterRow"?2:c?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],p=lr(f,n,a,i,void 0,p),a=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],p=lr(f,n,a,i,void 0,p)),a=o,o=[a[1],t,0,0])):b.type==="tableHead"?(s=!0,l=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=t,a[1]!==0?(o[0]=o[1],p=lr(f,n,a,i,t,p)):o[1]!==0&&(p=lr(f,n,o,i,t,p)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(l!==0&&gl(f,n,l,u,c),f.consume(n.events),t=-1;++t<n.events.length;){let d=n.events[t];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=hl(n.events,t))}return e}function lr(e,n,t,r,i,a){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";t[0]!==0&&(a.end=Object.assign({},Wt(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));let l=Wt(n.events,t[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){let u=Wt(n.events,t[2]),c=Wt(n.events,t[3]),p={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(t[2],0,[["enter",p,n]]),r!==2){let f=n.events[t[2]],d=n.events[t[3]];if(f[1].end=Object.assign({},d[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){let b=t[2]+1,v=t[3]-t[2]-1;e.add(b,v,[])}}e.add(t[3]+1,0,[["exit",p,n]])}return i!==void 0&&(a.end=Object.assign({},Wt(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function gl(e,n,t,r,i){let a=[],o=Wt(n.events,t);i&&(i.end=Object.assign({},o),a.push(["exit",i,n])),r.end=Object.assign({},o),a.push(["exit",r,n]),e.add(t+1,0,a)}function Wt(e,n){let t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}var Ff={name:"tasklistCheck",tokenize:Df};function Zi(){return{text:{91:Ff}}}function Df(e,n,t){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return G(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):t(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):t(l)}function s(l){return L(l)?n(l):O(l)?e.check({tokenize:Of},n,t)(l):t(l)}}function Of(e,n,t){return D(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function xl(e){return Hn([Wi(),Yi(),Xi(e),Ki(),Zi()])}var Bf={};function ur(e){let n=this,t=e||Bf,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(xl(t)),a.push(ji()),o.push(Gi(t))}var Pe={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Tt={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var $e={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var cr=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],pr=[12288,12288,65281,65376,65504,65510],dr=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],fr=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],mn=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Qt=(e,n)=>{let t=0,r=Math.floor(e.length/2)-1;for(;t<=r;){let i=Math.floor((t+r)/2),a=i*2;if(n<e[a])r=i-1;else if(n>e[a+1])t=i+1;else return!0}return!1};var Uf=cr[0],$f=cr.at(-1),Hf=pr[0],qf=pr.at(-1),jf=dr[0],Gf=dr.at(-1),Vf=fr[0],Wf=fr.at(-1),Qf=mn[0],Yf=mn.at(-1),bl=19968,[Xf,Kf]=Zf(mn);function Zf(e){let n=e[0],t=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(bl>=i&&bl<=a)return[i,a];a-i>t-n&&(n=i,t=a)}return[n,t]}var kl=e=>e<Uf||e>$f?!1:Qt(cr,e),yl=e=>e<Hf||e>qf?!1:Qt(pr,e),Jf=e=>e<jf||e>Gf?!1:Qt(dr,e),em=e=>e<Vf||e>Wf?!1:Qt(fr,e),wl=e=>e>=Xf&&e<=Kf?!0:e<Qf||e>Yf?!1:Qt(mn,e);function Sl(e){return kl(e)?"ambiguous":yl(e)?"fullwidth":Jf(e)?"halfwidth":em(e)?"narrow":wl(e)?"wide":"neutral"}function tm(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Tl(e){return tm(e),Sl(e)}function nm(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Il(e){if(!e||e<4352)return!1;switch(Tl(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!nm(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function Cl(e,n){return n!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function El(e){return e!==null&&e>=65024&&e<=65038}var vl=Nl(/\p{P}|\p{S}/u),Al=Nl(/\s/);function Nl(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCodePoint(t))}}function Yt(e){return!!(e&Tt.characterGroupWhitespace)}function mr(e){return(e&Se.cjkPunctuation)===Tt.characterGroupPunctuation}function Ji(e){return!!(e&Se.cjk)}function eo(e){return!!(e&Se.cjkOrIvs)}function to(e){return e===Se.nonEmojiGeneralUseVS}function hr(e){return!!(e&Se.spaceOrPunctuation)}var Se;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(Se||(Se={}));function hn(e){if(e===Pe.eof||G(e)||Al(e))return Tt.characterGroupWhitespace;let n=0;if(e>=4352){if(El(e))return Se.nonEmojiGeneralUseVS;switch(Il(e)){case null:return Se.ivs;case!0:n|=Se.cjk;break}}return vl(e)&&(n|=Tt.characterGroupPunctuation),n}function no(e,n,t){if(!to(e))return e;let r=n(),i=hn(r);return!r||Yt(i)?e:Cl(r,t)?Se.cjkPunctuation:rm(i)}function rm(e){return e&~Se.ivs}function ro(e){return!!(e&&e>=55296&&e<=56319)}function io(e){return!!(e&&e>=56320&&e<=57343)}function oo(e,n,t){if(n._bufferIndex<2)return e;let r=t({start:{...n,_bufferIndex:n._bufferIndex-2},end:n}).codePointAt(0);return r&&r>=65536?r:e}function zl(e,n,t){let r=e>=65536?2:1;if(n._bufferIndex<1+r)return null;let i=n._bufferIndex-r-2,a=t({start:{...n,_bufferIndex:i>=0?i:0},end:{...n,_bufferIndex:n._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}var ao=class{cachedValue=void 0;constructor(e,n,t){this.previousCode=e,this.nowPoint=n,this.sliceSerialize=t}value(){return this.cachedValue===void 0&&(this.cachedValue=zl(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function so(e,n,t){let r=t({start:n,end:{...n,_bufferIndex:n._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}var gr={name:"attention",resolveAll:im,tokenize:om};function im(e,n){let t=-1,r,i,a,o,s,l,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;let p={...e[r][1].end},f={...e[t][1].start};Rl(p,-l),Rl(f,l),o={type:l>1?$e.strongSequence:$e.emphasisSequence,start:p,end:{...e[r][1].end}},s={type:l>1?$e.strongSequence:$e.emphasisSequence,start:{...e[t][1].start},end:f},a={type:l>1?$e.strongText:$e.emphasisText,start:{...e[r][1].end},end:{...e[t][1].start}},i={type:l>1?$e.strong:$e.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[t][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ae(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ae(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),n.parser.constructs.insideSpan.null,u=ae(u,De(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ae(u,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=ae(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,ie(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function om(e,n){let t=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,o=io(a)?oo(a,r(),i):a,s=hn(o),l=new ao(o,r(),i),u=no(s,l.value.bind(l),o),c;return p;function p(d){return d===Pe.asterisk||Pe.underscore,c=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===c)return e.consume(d),f;let b=e.exit("attentionSequence"),v=hn(ro(d)?so(d,r(),i):d);let N=mr(u),y=N||Yt(u),C=mr(v),I=C||Yt(v),A=eo(u),M=!I||C&&(y||A)||t.includes(d),x=!y||N&&(I||Ji(v))||t.includes(o);return b._open=!!(c===Pe.asterisk?M:M&&(hr(u)||!x)),b._close=!!(c===Pe.asterisk?x:x&&(hr(v)||!M)),n(d)}}function Rl(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}function Ll(){return{text:{[Pe.asterisk]:gr,[Pe.underscore]:gr},insideSpan:{null:[gr]}}}function _l(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(Ll())}var Pl=["yellow","green","blue","pink","orange","purple"],lo="yellow";var ve={1:{mobile:14,desktop:14,tailwind:"text-sm",lineHeight:1.7,tailwindLineHeight:"leading-[1.7]",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:6},2:{mobile:16,desktop:18,tailwind:"text-base md:text-lg",lineHeight:1.625,tailwindLineHeight:"leading-relaxed",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:8},3:{mobile:24,desktop:30,tailwind:"text-2xl md:text-3xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:10},4:{mobile:30,desktop:36,tailwind:"text-3xl md:text-4xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:11},5:{mobile:36,desktop:48,tailwind:"text-4xl lg:text-5xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:12},6:{mobile:48,desktop:60,tailwind:"text-5xl lg:text-6xl",lineHeight:1.2,tailwindLineHeight:"leading-[1.2]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:14},7:{mobile:60,desktop:72,tailwind:"text-6xl lg:text-7xl",lineHeight:1.15,tailwindLineHeight:"leading-[1.15]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:16},8:{mobile:72,desktop:96,tailwind:"text-7xl lg:text-8xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:18},9:{mobile:96,desktop:128,tailwind:"text-8xl lg:text-9xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:20}},Ae=Object.keys(ve).map(Number),am=Math.min(...Ae),sm=Math.max(...Ae),H0=Object.fromEntries(Ae.map(e=>[e,`Level ${e}`]));var Ml=Object.fromEntries(Ae.map(e=>[e,`${ve[e].tailwind} ${ve[e].tailwindLineHeight}`])),q0=Object.fromEntries(Ae.map(e=>[e,{mobile:ve[e].mobile,desktop:ve[e].desktop}])),j0=Object.fromEntries(Ae.map(e=>[e,ve[e].lineHeight])),G0=Object.fromEntries(Ae.map(e=>[e,ve[e].tailwindLineHeight])),V0=Object.fromEntries(Ae.map(e=>[e,ve[e].fontWeight])),W0=Object.fromEntries(Ae.map(e=>[e,ve[e].tailwindFontWeight])),Q0=Object.fromEntries(Ae.map(e=>[e,ve[e].letterSpacing])),Y0=Object.fromEntries(Ae.map(e=>[e,ve[e].tailwindTracking])),X0=Object.fromEntries(Ae.map(e=>[e,ve[e].dotSize]));function Fl(e){return typeof e=="number"&&e>=am&&e<=sm}var K0=Object.fromEntries(Ae.map(e=>[e,ve[e].mobile]));var lm=["gray","red","yellow","green","blue","purple"],Dl=new Set(lm),uo=new Set(Pl),um=["normal"],cm=new Set(um);function Ol(e){let n=null,t=null,r=null,i=null,a=null;for(let o of e.split(";")){let[s,l]=o.split("=");if(s==="c"&&Dl.has(l))n=l;else if(s==="bg"&&Dl.has(l))t=l;else if(s==="fs"&&cm.has(l))r=l;else if(s==="hl"&&uo.has(l))i=l;else if(s==="sz"){let u=parseInt(l,10);Fl(u)&&(a=u)}}return{textId:n,bgId:t,fontStyle:r,highlightId:i,size:a}}function pm(e){let n=[];return e.textId&&n.push(`c=${e.textId}`),e.bgId&&n.push(`bg=${e.bgId}`),e.highlightId&&n.push(`hl=${e.highlightId}`),e.size&&n.push(`sz=${e.size}`),e.fontStyle&&n.push(`fs=${e.fontStyle}`),n.length>0?n.join(";"):null}function xr(...e){let n={textId:null,bgId:null,fontStyle:null,highlightId:null,size:null};for(let t of e){if(!t)continue;let r=Ol(t);r.textId&&(n.textId=r.textId),r.bgId&&(n.bgId=r.bgId),r.fontStyle&&(n.fontStyle=r.fontStyle),r.highlightId&&(n.highlightId=r.highlightId),r.size&&(n.size=r.size)}return pm(n)}function Bl(e){let{textId:n,bgId:t,fontStyle:r,highlightId:i,size:a}=Ol(e),o=[];return n&&o.push(`color: var(--color-text-${n})`),i?(o.push(`background-color: var(--highlight-${i})`),o.push("border-radius: 2px"),o.push("padding: 0 2px")):t&&(o.push(`background-color: var(--color-bg-${t})`),o.push("border-radius: 2px"),o.push("padding: 0 2px")),r&&o.push(`font-style: ${r}`),{style:o.length>0?o.join("; "):null,className:a?Ml[a]:null}}function Ul(e){return dm(e,fm)}function dm(e,n){return e.split(/(```[\s\S]*?```)/).map((r,i)=>i%2===1?r:n(r)).join("")}function fm(e){let n=e;return n=n.replace(/\{size:([1-9])\}\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}\{\/size\}/g,(t,r,i,a)=>{let o=xr(i,`sz=${r}`);return o?`{s:${o}}${a}{/s}`:a}),n=n.replace(/\{size:([1-9])\}([\s\S]*?)\{\/size\}/g,(t,r,i)=>i.includes("{s:")?i.replace(/\{s:([a-z0-9=;]+)\}/g,(a,o)=>`{s:${xr(o,`sz=${r}`)??o}}`):`{s:sz=${r}}${i}{/s}`),n=n.replace(/\{s:([a-z0-9=;]+)\}==(?:\{(\w+)\})?([^=]+)==\{\/s\}/g,(t,r,i,a)=>{let o=i&&uo.has(i)?i:lo,s=xr(r,`hl=${o}`);return s?`{s:${s}}${a}{/s}`:a}),n=n.replace(/==(?:\{(\w+)\})?([^=]+)==/g,(t,r,i)=>{let a=r&&uo.has(r)?r:lo;return i.includes("{s:")?i.replace(/\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}/g,(o,s,l)=>{let u=xr(s,`hl=${a}`);return u?`{s:${u}}${l}{/s}`:l}):`{s:hl=${a}}${i}{/s}`}),n}var mm=["full","large","half","small"],hm=["left","center","right"],Xt="full",co="center";var gm=2,xm=new Set(mm),bm=new Set(hm);function It(e){return typeof e=="string"&&xm.has(e)}function Ct(e){return typeof e=="string"&&bm.has(e)}function km(e){return e===2||e===3}function $l(e){let n=e?parseInt(e,10):NaN;return km(n)?n:gm}var ym={full:"w-full",large:"w-3/4",half:"w-1/2",small:"w-1/3"},wm={left:"mr-auto",center:"mx-auto",right:"ml-auto"},Hl={2:"grid-cols-1 @vp-sm/article:grid-cols-2",3:"grid-cols-1 @vp-sm/article:grid-cols-3"},gn={size:Xt,align:co};function po(e){let n=Xt,t=co;if(!e)return{size:n,align:t};for(let r of e.trim().split(/\s+/)){let i=r.indexOf("=");if(i<=0)continue;let a=r.slice(0,i),o=r.slice(i+1);a==="size"&&It(o)?n=o:a==="align"&&Ct(o)&&(t=o)}return{size:n,align:t}}function ql(e){if(e.size===Xt)return null;let n=[`size=${e.size}`];return e.align!==co&&n.push(`align=${e.align}`),n.join(" ")}function jl(e){let n=ym[e.size];return e.size===Xt?n:`${n} ${wm[e.align]}`}var Sm=/^!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)(?:\{([^}]*)\})?\s*$/;function Gl(e){let n=Sm.exec(e.trim());return n?{alt:n[1]??"",src:n[2],layout:po(n[4])}:null}var Tm=/^\{([^}]*)\}/;function Im(e){for(let n of e.trim().split(/\s+/)){let t=n.indexOf("=");if(t<=0)continue;let r=n.slice(0,t),i=n.slice(t+1);if(r==="size"&&It(i)||r==="align"&&Ct(i)||r==="width"&&/^\d+$/.test(i))return!0}return!1}function Vl(e){if(!e.children||e.children.length===0)return;for(let r of e.children)Vl(r);if(e.type!=="paragraph")return;let n=e.children,t=[];for(let r=0;r<n.length;r++){let i=n[r],a=n[r+1];if(i.type==="image"&&a&&a.type==="text"&&typeof a.value=="string"){let o=Tm.exec(a.value);if(o&&Im(o[1]??"")){let s=po(o[1]);s.size!==Xt&&(i.data=i.data??{},i.data.hProperties={...i.data.hProperties??{},"data-size":s.size,"data-align":s.align}),t.push(i);let l=a.value.slice(o[0].length);l.trim()&&t.push({...a,value:l}),r+=1;continue}}t.push(i)}e.children=t}function Wl(){return e=>{Vl(e)}}var Cm=/\{s:([a-z0-9=;]+)\}/,Ql="{/s}";var Em={open:e=>{let n=Cm.exec(e);return n?{index:n.index,length:n[0].length,params:n[1]}:null},close:e=>{let n=e.indexOf(Ql);return n===-1?null:{index:n,length:Ql.length}},build:(e,n)=>({type:"inlineStyle",params:n??"",children:e})},vm={open:e=>{let n=e.indexOf("++");return n===-1||/^\s|^$/.test(e.slice(n+2))?null:{index:n,length:2}},close:e=>{let n=e.indexOf("++");return n===-1?null:{index:n,length:2}},build:e=>({type:"underline",children:e})};function Et(e){return{type:"text",value:e}}function xn(e){return e.type==="text"&&typeof e.value=="string"}function Yl(e,n){let t=[],r=0;for(;r<e.length;){let i=e[r];if(!xn(i)){t.push(i),r+=1;continue}let a=n.open(i.value);if(!a){t.push(i),r+=1;continue}let o=i.value.slice(0,a.index),s=i.value.slice(a.index+a.length),l=[],u=null,c=n.close(s);if(c)c.index>0&&l.push(Et(s.slice(0,c.index))),u={nodeIndex:r,rest:s.slice(c.index+c.length)};else{s&&l.push(Et(s));for(let p=r+1;p<e.length;p++){let f=e[p];if(!xn(f)){l.push(f);continue}let d=n.close(f.value);if(!d){l.push(f);continue}d.index>0&&l.push(Et(f.value.slice(0,d.index))),u={nodeIndex:p,rest:f.value.slice(d.index+d.length)};break}}if(!u||l.every(p=>xn(p)&&!p.value.trim())){t.push(Et(o+i.value.slice(a.index,a.index+a.length))),e=[Et(s),...e.slice(r+1)],r=0;continue}o&&t.push(Et(o)),t.push(n.build(Xl(l),a.params)),e=[Et(u.rest),...e.slice(u.nodeIndex+1)],r=0}return t.filter(i=>!(xn(i)&&i.value===""))}function Xl(e){return Yl(Yl(e,Em),vm)}function Kl(e){if(e.children){for(let n of e.children)Kl(n);e.children.some(xn)&&(e.children=Xl(e.children))}}function Zl(e){Kl(e)}var Am=/^:::([a-zA-Z][\w-]*)\b(.*)$/,Nm=/^:::[ \t]*$/;function Jl(e){let n=e.split(`
|
|
20
20
|
`),t=[],r=[],i=()=>{r.length!==0&&(t.push({kind:"markdown",value:r.join(`
|
|
21
|
-
`)}),r=[])};for(let a=0;a<n.length;a++){let o=n[a]??"",s=
|
|
22
|
-
`)}),a=c}return i(),t.length>0?t:[{kind:"markdown",value:e}]}var
|
|
23
|
-
`)&&a.push({type:"paragraph",children:[]});continue}let s=
|
|
21
|
+
`)}),r=[])};for(let a=0;a<n.length;a++){let o=n[a]??"",s=Am.exec(o);if(!s){r.push(o);continue}if((s[2]??"").includes(":::")){i(),t.push({kind:"directive",name:s[1],value:o});continue}let u=[o],c=-1;for(let p=a+1;p<n.length;p++)if(u.push(n[p]??""),Nm.test(n[p]??"")){c=p;break}if(c===-1){r.push(o);continue}i(),t.push({kind:"directive",name:s[1],value:u.join(`
|
|
22
|
+
`)}),a=c}return i(),t.length>0?t:[{kind:"markdown",value:e}]}var zm=/(```[\s\S]*?```|`[^`\n]*`)/g;function fo(e,n){return e.split(zm).map((r,i)=>i%2===1?r:n(r)).join("")}function eu(e,n={underscore:!0}){let t=!1,r=n.underscore?/\\\\([*_~+#])/g:/\\\\([*~+#])/g;return{text:fo(e,a=>a.replace(r,(o,s)=>(t=!0,s))),changed:t}}var tu="\uE000";function nu(e){return fo(e,n=>{let t=[];return n.replace(/!?\[[^\]]*\]\([^)\n]*\)/g,a=>(t.push(a),`\uE001${t.length-1}\uE001`)).replace(/\\_/g,"_").replaceAll("_",tu).replace(/\uE001(\d+)\uE001/g,(a,o)=>t[Number(o)]??"")})}function br(e){return e.replaceAll(tu,"_")}function mo(e){typeof e.value=="string"&&(e.value=br(e.value)),typeof e.url=="string"&&(e.url=br(e.url)),typeof e.alt=="string"&&(e.alt=br(e.alt)),typeof e.title=="string"&&(e.title=br(e.title));for(let n of e.children??[])mo(n)}var Rm=(e,n,t,r)=>{let i=ct.image(e,n,t,r),a=e.data?.hProperties,o=a?.["data-size"],s=a?.["data-align"];if(!It(o))return i;let l=ql({size:o,align:Ct(s)?s:gn.align});return l?`${i}{${l}}`:i};Rm.peek=ct.image.peek;function Lm(){return Kr().use(er).use(ur).use(_l)}function _m(e,n){let t=n==="inline"||n==="body"?nu(e):e,i=Lm().parse(t);return Wl()(i),Zl(i),(n==="inline"||n==="body")&&mo(i),i}function vt(e,n){let t=Ul(e),r=eu(t,{underscore:n!=="inline"&&n!=="body"}),i=Jl(r.text),a=[];for(let o of i){if(o.kind==="directive"){a.push({type:"kanorioDirective",name:o.name,raw:o.value});continue}if(!o.value.trim()){o.value.includes(`
|
|
23
|
+
`)&&a.push({type:"paragraph",children:[]});continue}let s=_m(o.value,n);a.push(...s.children??[])}return{tree:{type:"root",children:a},escapesCollapsed:r.changed}}var ho=W(Ft());var re=W(K());function Pm(e){if(!e)return{};let n=Bl(e),t={};if(n.style)for(let i of n.style.split(";")){let a=i.indexOf(":");if(a===-1)continue;let o=i.slice(0,a).trim().replace(/-([a-z])/g,(l,u)=>u.toUpperCase()),s=i.slice(a+1).trim();o&&s&&(t[o]=s)}let r;return t.backgroundColor&&!t.color&&(t.color=t.backgroundColor.includes("--highlight-")?"var(--highlight-fg, inherit)":"var(--site-base-fg, inherit)",r="[&_a]:text-inherit"),{className:[n.className,r].filter(Boolean).join(" ")||void 0,style:n.style?t:void 0}}function Kt(e,n,t={}){return(e??[]).map((r,i)=>{let a=`${n}-${i}`,o=()=>Kt(r.children,a,t);if(r.type==="text")return(0,re.jsx)(ho.default.Fragment,{children:r.value},a);if(r.type==="strong")return(0,re.jsx)("strong",{children:o()},a);if(r.type==="emphasis")return(0,re.jsx)("em",{children:o()},a);if(r.type==="delete")return(0,re.jsx)("del",{children:o()},a);if(r.type==="underline")return(0,re.jsx)("u",{children:o()},a);if(r.type==="inlineCode")return(0,re.jsx)("code",{className:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-zinc-100 rounded px-1.5 py-0.5 font-mono text-sm",children:r.value},a);if(r.type==="inlineStyle"){let s=Pm(r.params);return(0,re.jsx)("span",{className:s.className,style:s.style,children:o()},a)}if(r.type==="break")return(0,re.jsx)("br",{},a);if(r.type==="link"){if(t.link)return t.link(r,a,o());let s=r.url??"";return $t(s)?(0,re.jsx)("a",{href:s,...On(s)?{target:"_blank",rel:"noopener noreferrer"}:{},className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] underline font-medium hover:opacity-80 break-words",children:o()},a):(0,re.jsx)("span",{children:o()},a)}return r.type==="image"?t.image?t.image(r,a):null:r.children?(0,re.jsx)(ho.default.Fragment,{children:o()},a):null})}function ru(e,n,t){let r=e.children??[],[i,...a]=r;return i?.type==="paragraph"?(0,re.jsxs)("li",{children:[Kt(i.children,n),a.length>0&&t(a)]},n):(0,re.jsx)("li",{children:t(r)},n)}function kr(e){return(e??[]).map((n,t)=>{let r=`b-${t}`;return n.type==="paragraph"?(0,re.jsx)("p",{className:"break-words",children:Kt(n.children,r)},r):n.type==="list"&&n.ordered?(0,re.jsx)("ol",{className:"list-decimal list-outside pl-6 space-y-1 break-words",children:(n.children??[]).map((i,a)=>ru(i,`${r}-${a}`,kr))},r):n.type==="list"?(0,re.jsx)("ul",{className:"list-disc list-outside pl-6 space-y-1 break-words",children:(n.children??[]).map((i,a)=>ru(i,`${r}-${a}`,kr))},r):n.type==="blockquote"?(0,re.jsx)("blockquote",{className:"border-l-4 border-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] pl-4 italic text-[var(--site-fg-muted,#71717a)]",children:kr(n.children)},r):n.type==="code"?(0,re.jsx)("pre",{className:"bg-zinc-100 dark:bg-zinc-800 rounded-[var(--site-radius-lg,0.5rem)] p-4 font-mono text-sm leading-6 overflow-x-auto whitespace-pre-wrap text-zinc-700 dark:text-zinc-300",children:(0,re.jsx)("code",{children:n.value})},r):null})}function iu({content:e,profile:n,className:t,blockClassName:r="space-y-2"}){if(!e)return null;let i=ot(vt(e,n).tree,n);if(n==="inline"){let a=i.tree.children?.[0];return(0,re.jsx)(re.Fragment,{children:Kt(a?.children,"i")})}return i.tree.children?.length?(0,re.jsx)("div",{className:E("site-body-text break-words min-w-0",r,t),children:kr(i.tree.children)}):null}var pt={h1:"text-[length:var(--heading-h1-size,36px)] @vp-lg/article:text-[length:var(--heading-h1-size-lg,48px)] leading-[var(--heading-h1-lh,1.25)] font-[number:var(--heading-h1-fw,700)] tracking-[var(--heading-h1-ls,-0.025em)]",h2:"text-[length:var(--heading-h2-size,30px)] @vp-md/article:text-[length:var(--heading-h2-size-lg,36px)] leading-[var(--heading-h2-lh,1.25)] font-[number:var(--heading-h2-fw,700)] tracking-[var(--heading-h2-ls,0em)]",h3:"text-[length:var(--heading-h3-size,24px)] @vp-md/article:text-[length:var(--heading-h3-size-lg,30px)] leading-[var(--heading-h3-lh,1.25)] font-[number:var(--heading-h3-fw,700)] tracking-[var(--heading-h3-ls,0em)]",h4:"text-[length:var(--heading-h4-size,22px)] @vp-md/article:text-[length:var(--heading-h4-size-lg,27px)] leading-[var(--heading-h4-lh,1.3)] font-[number:var(--heading-h4-fw,600)] tracking-[var(--heading-h4-ls,0em)]",h5:"text-[length:var(--heading-h5-size,20px)] @vp-md/article:text-[length:var(--heading-h5-size-lg,24px)] leading-[var(--heading-h5-lh,1.4)] font-[number:var(--heading-h5-fw,600)] tracking-[var(--heading-h5-ls,0em)]",h6:"text-[length:var(--heading-h6-size,18px)] @vp-md/article:text-[length:var(--heading-h6-size-lg,21px)] leading-[var(--heading-h6-lh,1.5)] font-[number:var(--heading-h6-fw,500)] tracking-[var(--heading-h6-ls,0em)]",body:"text-[length:var(--body-size,16px)] @vp-md/article:text-[length:var(--body-size-lg,18px)] leading-[var(--body-lh,1.625)] font-[number:var(--body-fw,400)] tracking-[var(--body-ls,0em)]"};var X=W(K());function su(e){return e?e.type==="text"?e.value??"":(e.children??[]).map(su).join(""):""}var Mm={link(e,n,t){let r=e.url??"";return $t(r)?(0,X.jsx)("a",{href:r,className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] underline font-medium hover:opacity-80",...On(r)?{target:"_blank",rel:"noopener noreferrer"}:{},children:t},n):(0,X.jsx)("span",{className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] font-medium",children:t},n)},image(e,n){let t=e.data?.hProperties?.["data-size"],r=e.data?.hProperties?.["data-align"],i={size:It(t)?t:gn.size,align:Ct(r)?r:gn.align};return(0,X.jsx)(Mn,{src:e.url??"",responsive:!0,explicitAlt:e.alt??void 0,altType:"article-image",title:e.title??void 0,className:`block rounded-[var(--site-radius-media)] my-5 h-auto ${jl(i)}`},n)}};function dt(e,n){return Kt(e,n,Mm)}function lu(e){return e?e.type==="text"||e.type==="inlineCode"?e.value??"":e.type==="image"?e.alt??"":e.type==="break"?" ":e.type==="html"?"":(e.children??[]).map(lu).join(""):""}function Fm(e){for(let n of e){let t=(n.children??[]).map(r=>lu(r).replace(/\s+/g," ").trim()).filter(Boolean);if(t.length>0)return t.join(", ")}return""}function Dm(e,n){let t=e.children??[],[r,...i]=t,a=Fm(t);return(0,X.jsx)("div",{className:"article-table-scroll overflow-x-auto focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--site-accent-text,var(--brand-text,var(--brand-color,#FF5733)))]",tabIndex:0,...a?{role:"region","aria-label":a}:{},children:(0,X.jsxs)("table",{children:[r&&(0,X.jsx)("thead",{children:(0,X.jsx)("tr",{children:(r.children??[]).map((o,s)=>(0,X.jsx)("th",{children:dt(o.children,`${n}-h-${s}`)},s))})}),(0,X.jsx)("tbody",{children:i.map((o,s)=>(0,X.jsx)("tr",{children:(o.children??[]).map((l,u)=>(0,X.jsx)("td",{children:dt(l.children,`${n}-${s}-${u}`)},u))},s))})]})},n)}function ou(e,n,t){return e.map((r,i)=>{let a=`${n}-${i}`,o=typeof r.checked=="boolean",s=(r.children??[]).flatMap(u=>u.type==="paragraph"?u.children??[]:[]),l=(r.children??[]).filter(u=>u.type!=="paragraph");return o?(0,X.jsxs)("li",{className:"flex items-start gap-2",children:[(0,X.jsx)("span",{role:"checkbox","aria-checked":r.checked??!1,"aria-disabled":"true",className:"mt-1.5 inline-block size-4 shrink-0 rounded-sm border text-center text-xs leading-4 "+Ca,children:r.checked?"\u2713":""}),(0,X.jsx)("span",{children:dt(s,a)})]},a):(0,X.jsxs)("li",{children:[dt(s,a),l.length>0&&go(l,t)]},a)})}function go(e,n){return(e??[]).map((t,r)=>{let i=`a-${r}`;if(t.type==="paragraph")return(0,X.jsx)("p",{className:`${pt.body} mb-4 ${mt}`,children:dt(t.children,i)},i);if(t.type==="heading"){let a=t.depth===1?2:t.depth??2,o=n(su(t)),s=`h${a}`,l=`h${a}`,u=a<=3?`${pt[l]} ${a===2?"mt-8 mb-4":"mt-6 mb-3"} text-[var(--site-fg,#18181b)] scroll-mt-24`:`${pt[l]} mt-5 mb-2 text-[var(--site-fg,#18181b)]`;return(0,X.jsx)(s,{id:o,className:u,children:dt(t.children,i)},i)}if(t.type==="list"&&t.ordered)return(0,X.jsx)("ol",{className:`list-decimal list-outside pl-6 space-y-2 my-5 ${pt.body} ${mt}`,children:ou(t.children??[],i,n)},i);if(t.type==="list"){let a=(t.children??[]).some(o=>typeof o.checked=="boolean");return(0,X.jsx)("ul",{className:a?`list-none pl-0 space-y-2 my-5 ${pt.body} ${mt}`:`list-disc list-outside pl-6 space-y-2 my-5 ${pt.body} ${mt}`,children:ou(t.children??[],i,n)},i)}return t.type==="blockquote"?(0,X.jsx)("blockquote",{className:`border-l-4 border-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] pl-4 italic ${pt.body} text-[var(--site-fg-muted,#71717a)] my-5`,children:go(t.children,n)},i):t.type==="code"?(0,X.jsx)("pre",{className:"bg-zinc-100 dark:bg-zinc-800 rounded-[var(--site-radius-lg)] p-4 font-mono text-sm leading-6 my-5 overflow-x-auto whitespace-pre-wrap text-zinc-700 dark:text-zinc-300",children:(0,X.jsx)("code",{children:t.value})},i):t.type==="thematicBreak"?(0,X.jsx)("hr",{className:"my-6 border-[var(--site-border,#e4e4e7)]"},i):t.type==="table"?Dm(t,i):t.type==="image"||t.type==="link"?(0,X.jsx)(au.default.Fragment,{children:dt([t],i)},i):null})}function uu({content:e}){let t=ot(vt(e,"article").tree,"article").tree.children?.find(r=>r.type==="paragraph");return(0,X.jsx)(X.Fragment,{children:dt(t?.children,"ai")})}function bn(e,n){let t=ot(vt(e,"article").tree,"article");return t.tree.children?.length?(0,X.jsx)(X.Fragment,{children:go(t.tree.children,n)}):null}function yr({content:e,assignId:n}){return(0,X.jsx)(X.Fragment,{children:bn(e,n)})}function cu(e){return e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\p{L}\p{N}-]/gu,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function xo(e){if(e.type==="inlineCode"||e.type==="code"||e.type==="text")return e.value??"";if(e.type==="image")return e.alt??"";if(e.type==="break")return`
|
|
24
24
|
`;if(e.type==="kanorioDirective")return"";let n=(e.children??[]).map(xo).join("");return e.type==="paragraph"||e.type==="heading"||e.type==="listItem"||e.type==="blockquote"?n:e.type==="list"||e.type==="root"||e.type==="table"?(e.children??[]).map(xo).filter(t=>t.trim()).join(e.type==="root"?`
|
|
25
|
-
`:" "):n}function
|
|
25
|
+
`:" "):n}function pu(e,n="body"){if(!e)return"";let t=vt(e,n),r=ot(t.tree,n==="inline"?"inline":"body"),i=xo(r.tree).replace(/[ \t]+\n/g,`
|
|
26
26
|
`).replace(/\n{3,}/g,`
|
|
27
27
|
|
|
28
|
-
`);return n==="inline"||n==="plain"?i.replace(/\s+/g," ").trim():i.trim()}function
|
|
29
|
-
`:t)}function kn(e){let n=new Map;
|
|
28
|
+
`);return n==="inline"||n==="plain"?i.replace(/\s+/g," ").trim():i.trim()}function du(e,n){return pu(e,"inline")}var bo=/:::gallery(?:[ \t]+cols="(\d)")?[ \t]*\n([\s\S]*?)\n?:::/g,ko=/:::cta[ \t]*([^\n]*)\n([\s\S]*?)\n:::/g,yo=/:::cta[ \t]+([^\n]+?):::/g,wo=/:::faq\s+([\s\S]+?):::/g,So=/:::embed\s+url="([^"]+)"(?:\s+type="([^"]+)")?:::/g,To=/:::audio\s+src="([^"]+)"(?:\s+title="([^"]*)")?:::/g,Io=/:::pdf\s+((?:[a-zA-Z][\w-]*="(?:\\.|[^"\\])*"\s*)+):::/g,Co=/:::file\s+((?:[a-zA-Z][\w-]*="(?:\\.|[^"\\])*"\s*)+):::/g,Eo=/:::toggle(?:\s+title="([^"]*)")?\n([\s\S]*?)\n:::/g,vo=/:::callout([ \t]+[^\n]*)?\n([\s\S]*?)\n:::/g,Om=/:::media\s+type="[^"]+":::/g;function wr(e){return e.replace(/\u201C/g,'"').replace(/\u201D/g,'"').replace(/\u2018/g,"'").replace(/\u2019/g,"'")}var fu=/\s*([a-zA-Z][\w-]*)="((?:\\.|[^"\\])*)"/g;function Bm(e){return e.replace(/\\(["\\n])/g,(n,t)=>t==="n"?`
|
|
29
|
+
`:t)}function kn(e){let n=new Map;fu.lastIndex=0;let t;for(;(t=fu.exec(e))!==null;)n.set(t[1],Bm(t[2]));return n}function Um(e,n){let t=kn(wr(e)),r=t.get("slug"),i=t.get("button"),a=t.get("url"),o=n.trim();return r?{type:"preset",slug:r,content:o}:i&&a?{type:"custom",buttonText:i,href:a,content:o}:o?{type:"custom",content:o,buttonText:i,href:a}:null}function $m(e){let n=kn(wr(e)),t=n.get("slug"),r=n.get("title"),i=n.get("subtitle"),a=n.get("button"),o=n.get("url"),s=[];r&&s.push(`**${r}**`),i&&s.push(i);let l=s.join(`
|
|
30
30
|
|
|
31
|
-
`);return r&&a&&o?{type:"custom",content:l,buttonText:a,href:o}:t&&!r?{type:"preset",slug:t,content:l}:null}function
|
|
32
|
-
`),r=t>=0?n.slice(0,t):n,i=!r.trimStart().startsWith("##"),a=i&&r.trim().match(/title="([^"]*)"/)?.[1]?.trim()||void 0,o=i?t>=0?n.slice(t+1):"":n,s=
|
|
33
|
-
`)){let c=Gl(u);c&&l.push({src:c.src,alt:c.alt})}l.length>0&&n.push({type:"gallery",config:{cols:s,items:l}}),t=bo.lastIndex}let a=e.slice(t);return a&&n.push({type:"markdown",value:a}),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function Vm(e){let n=[],t=0;So.lastIndex=0;let r;for(;(r=So.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=r[1],s=r[2]||"generic";n.push({type:"embed",config:{url:o,embedType:s}}),t=So.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Wm(e){let n=[],t=0;To.lastIndex=0;let r;for(;(r=To.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=r[1],s=r[2]||void 0;n.push({type:"audio",config:{src:o,title:s}}),t=To.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Qm(e){let n=[],t=0;Io.lastIndex=0;let r;for(;(r=Io.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=kn(r[1]??""),s=o.get("src");if(s){let l=Number.parseInt(o.get("pages")??"",10),u=o.get("display");n.push({type:"pdf",config:{src:s,title:o.get("title")||void 0,pageCount:Number.isFinite(l)&&l>0?l:void 0,thumbnailUrl:o.get("thumb")||void 0,assetId:o.get("asset")||void 0,display:u==="card"?"card":void 0}})}t=Io.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Ym(e){let n=[],t=0,r=!1;Co.lastIndex=0;let i;for(;(i=Co.exec(e))!==null;){r=!0;let o=e.slice(t,i.index);o&&n.push({type:"markdown",value:o});let s=kn(i[1]??""),l=s.get("asset"),u=s.get("name");if(l&&u){let c=Number.parseInt(s.get("size")??"",10);n.push({type:"file",config:{assetId:l,name:u,size:Number.isFinite(c)&&c>0?c:void 0,mimeType:s.get("type")||void 0}})}t=Co.lastIndex}let a=e.slice(t);return a&&n.push({type:"markdown",value:a}),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function fu(e){let n=[],t=0;yo.lastIndex=0;let r;for(;(r=yo.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=Bm(r[1]);o&&n.push({type:"cta",config:o}),t=yo.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n}function Xm(e){let n=[],t=0,r=!1;ko.lastIndex=0;let i;for(;(i=ko.exec(e))!==null;){r=!0;let o=e.slice(t,i.index);o&&n.push(...fu(o));let s=Om(i[1]??"",i[2]??"");s&&n.push({type:"cta",config:s}),t=ko.lastIndex}let a=e.slice(t);return a&&n.push(...fu(a)),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function mu(e){if(e=e.replace(Fm,""),!e.trim())return[];let n=[],t=0;wo.lastIndex=0;let r,i=[Hm,jm,Gm,Vm,Wm,Qm,Ym,Xm],a=o=>{if(!o)return;let s=(l,u)=>{let c=i[u];if(!c){l.trim()&&n.push({type:"markdown",value:l});return}for(let p of c(l))p.type==="markdown"?s(p.value,u+1):n.push(p)};s(o,0)};for(;(r=wo.exec(e))!==null;){let o=e.slice(t,r.index);a(o);let s=$m(r[1]);s&&n.push({type:"faq",config:s}),t=wo.lastIndex}return a(e.slice(t)),n}function Km(e){return uu(e)}function Zm(e){return pu(e,{underscoreEmphasis:!0})}function Zt(){let e=new Set;return n=>{let t=Zm(n),r=Km(t);if(e.has(r)){let i=1;for(;e.has(`${r}-${i}`);)i++;r=`${r}-${i}`}return e.add(r),r}}var yn={container:"site-card-scope rounded-[var(--site-radius-card)] bg-zinc-100 dark:bg-zinc-800 p-8 shadow-lg text-center",content:"text-zinc-700 dark:text-zinc-200 leading-relaxed [&_p]:my-1.5 [&_strong]:text-zinc-900 dark:[&_strong]:text-zinc-50 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:text-left [&_ul]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:text-left [&_ol]:my-2 [&_a]:text-[var(--brand-text,var(--brand-color))] [&_a]:underline",contentSpacing:"mb-6",button:"inline-flex items-center justify-center gap-2 rounded-[var(--site-radius-button)] bg-[var(--brand-color)] px-6 @vp-md/article:px-8 py-3 min-h-[44px] text-base font-bold text-[var(--brand-foreground)] shadow-md transition-all duration-200 hover:scale-[1.02] hover:shadow-lg active:scale-[0.98]"};var Jt=W(K());function hu({config:e,presets:n}){let t,r;if(e.type==="preset"){let s=e.slug?n?.[e.slug]:void 0;s&&(t=s.label,r=s.href)}else t=e.buttonText,r=e.href;let i=!!e.content?.trim(),a=!!(t&&r);if(!i&&!a)return null;let o=r?/^https?:\/\//.test(r):!1;return(0,Jt.jsxs)("div",{className:yn.container,children:[i&&(0,Jt.jsx)("div",{className:`${yn.content}${a?` ${yn.contentSpacing}`:""}`,children:(0,Jt.jsx)(yr,{content:e.content,assignId:Zt()})}),a&&r&&(0,Jt.jsx)("a",{href:r,className:yn.button,"data-cta-track":"","data-cta-button-name":t,"data-cta-element-id":"blog-article-cta",...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:t})]})}var Ne=W(K());function gu({config:e}){if(e.items.length===0)return null;let n=Zt();return(0,Ne.jsxs)("section",{className:"my-6 space-y-4",children:[e.title&&(0,Ne.jsx)("h2",{className:"text-2xl font-bold text-[var(--site-fg,#18181b)] mb-2",children:e.title}),e.items.map((t,r)=>(0,Ne.jsxs)("div",{className:"my-4",children:[(0,Ne.jsxs)("div",{className:"flex items-start gap-2 text-[var(--site-fg,#18181b)]",children:[(0,Ne.jsx)("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-emerald-100 dark:bg-emerald-900/40 flex items-center justify-center text-emerald-700 dark:text-emerald-300 text-[10px] font-bold",children:"Q"}),(0,Ne.jsx)("span",{className:"flex-1 min-w-0",children:(0,Ne.jsx)(lu,{content:t.question})})]}),(0,Ne.jsxs)("div",{className:"mt-1 flex items-start gap-2",children:[(0,Ne.jsx)("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-blue-100 dark:bg-blue-900/40 flex items-center justify-center text-blue-700 dark:text-blue-300 text-[10px] font-bold",children:"A"}),(0,Ne.jsx)("div",{className:"flex-1 min-w-0 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:(0,Ne.jsx)(yr,{content:t.answer,assignId:n})})]})]},r))]})}var Jm="media.kanorio.com",eh=/\.(mp4|webm|mov)$/i;function xu(e){try{let n=new URL(e);return n.hostname===Jm&&eh.test(n.pathname)}catch{return!1}}function bu(e,n){switch(n){case"youtube":{let t=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);return t?`https://www.youtube.com/embed/${t[1]}`:null}case"vimeo":{let t=e.match(/vimeo\.com\/(?:video\/)?(\d+)/);return t?`https://player.vimeo.com/video/${t[1]}`:null}case"figma":return e.includes("embed")?e:`https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(e)}`;case"codepen":{let t=e.match(/codepen\.io\/([^/]+)\/(?:pen|full)\/([^/?]+)/);return t?`https://codepen.io/${t[1]}/embed/${t[2]}?default-tab=result`:null}case"google-maps":return e.includes("/embed")?e:null;default:return e}}var Xe=W(K()),th=Fn(()=>import("./VideoPlayer-LNS7XJ4C.js").then(e=>e.VideoPlayer),({failed:e})=>(0,Xe.jsx)("div",{className:"aspect-video w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":e?void 0:"true"}));function ku({url:e,embedType:n}){let{ui:t}=fa(),r=it({url:e});if(xu(e))return(0,Xe.jsx)("div",{className:"my-6 not-prose",children:(0,Xe.jsx)(th,{src:e,hlsSrc:r?.hls,thumbnails:r?.thumbnails,streamingPartial:r?.streamingPartial,captions:r?.captions,chapters:r?.chapters,storageKey:e,poster:r?.cover})});let i=bu(e,n);return i?(0,Xe.jsx)("div",{className:"my-6 rounded-[var(--site-radius-media)] overflow-hidden",children:(0,Xe.jsx)("div",{className:"aspect-video bg-zinc-900",children:(0,Xe.jsx)("iframe",{src:i,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy"})})}):(0,Xe.jsx)("div",{className:"my-6 p-4 rounded-[var(--site-radius-media)] border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50",children:(0,Xe.jsx)("p",{className:"text-sm text-zinc-500 dark:text-zinc-400",children:ha(t.embedLoadFailed,{url:e})})})}var Sr=W(K()),nh=Fn(()=>import("./AudioPlayer-DKUAB5KE.js").then(e=>e.AudioPlayer),({failed:e})=>(0,Sr.jsx)("div",{className:"h-20 w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":e?void 0:"true"}));function yu({src:e,title:n}){let t=n||e.split("/").pop()?.replace(/\.[^.]+$/,"")||"",r=it({url:e});return(0,Sr.jsx)("div",{className:"my-6 not-prose",children:(0,Sr.jsx)(nh,{src:e,title:t,storageKey:e,coverImage:r?.cover,captions:r?.captions,chapters:r?.chapters})})}var Ao=W(K());function No(e,n,t,r){if(!n)return"";let i=`${e??""}/api/public/sites/${encodeURIComponent(n)}/assets/${encodeURIComponent(t)}/download`;return r?`${i}?name=${encodeURIComponent(r)}`:i}function wu({assetId:e,name:n,size:t,mimeType:r,apiBase:i,websiteId:a}){let o=it({assetId:e}),s=ga(n,o);return(0,Ao.jsx)("div",{className:"my-6 not-prose",children:(0,Ao.jsx)(ya,{name:s,size:o?.size??t,mimeType:o?.mime??r,href:No(i,a,e,s)})})}var zo=W(K());function Su({src:e,title:n,pageCount:t,thumbnailUrl:r,assetId:i,display:a,apiBase:o,websiteId:s}){let l=it({url:e,assetId:i}),{protection:u}=xa(),c=n||e.split("/").pop()?.replace(/\.[^.]+$/,"")||void 0,p=i&&No(o,s,i,c)||e;return(0,zo.jsx)("div",{className:"my-6 not-prose",children:(0,zo.jsx)(ba,{src:e,thumbnailUrl:l?.cover??r,thumbnailAlt:c,fileName:c,pageCount:l?.pages??t,allowDownload:u.allowDownload,downloadUrl:p,variant:a==="card"?"card":"preview"})})}var Cu=W(Ft());var Iu=W(K());function Tu({content:e}){return(0,Iu.jsx)(iu,{content:e,profile:"inline"})}var Ke=W(K());function Eu({title:e,children:n,defaultOpen:t=!0}){let[r,i]=(0,Cu.useState)(t);return(0,Ke.jsxs)("div",{className:"toggle-block my-4",children:[(0,Ke.jsxs)("button",{type:"button",onClick:()=>i(!r),className:"flex items-start gap-1 w-full text-left",children:[(0,Ke.jsx)("span",{className:"shrink-0 mt-1 p-0.5 rounded transition-colors "+Ia,children:(0,Ke.jsx)(Dt,{className:`w-4 h-4 ${Ta} transition-transform ${r?"":"-rotate-90"}`})}),(0,Ke.jsx)("span",{className:"flex-1 min-w-0 "+mt,children:(0,Ke.jsx)(Tu,{content:e})})]}),r&&(0,Ke.jsx)("div",{className:"pl-6 [&>*:last-child]:mb-0",children:n})]})}var Ro=W(K());function vu({config:e}){return e.items.length===0?null:(0,Ro.jsx)("div",{className:`my-5 grid items-start gap-3 ${Hl[e.cols]}`,"data-gallery-cols":e.cols,children:e.items.map((n,t)=>(0,Ro.jsx)(Mn,{src:n.src,responsive:!0,sizes:`(min-width: 1024px) ${Math.round(60/e.cols)}vw, (min-width: 640px) ${Math.round(100/e.cols)}vw, 100vw`,alt:n.alt,className:"block h-auto w-full rounded-[var(--site-radius-media)]"},`${n.src}-${t}`))})}var Tr=W(K()),Au={info:"var(--brand-color, #2563eb)",tip:"#16a34a",warning:"#d97706",danger:"#dc2626"};function Nu({tone:e,title:n,children:t}){let r={borderRadius:"var(--site-radius-card, 12px)",borderLeft:`4px solid ${Au[e]}`,background:"var(--site-card-bg, color-mix(in srgb, currentColor 6%, transparent))"};return(0,Tr.jsxs)("aside",{className:"callout-block site-card-scope my-6 px-5 py-4 [&>*:last-child]:mb-0","data-callout-tone":e,style:r,children:[n&&(0,Tr.jsx)("p",{className:"mb-1.5 font-semibold",style:{color:Au[e]},children:n}),t]})}var he=W(K());function rh(e){let n=[];for(let t of e){let r=n[n.length-1];t.type==="faq"&&r&&r.type==="faq"?n[n.length-1]={type:"faq",config:{title:r.config.title,items:[...r.config.items,...t.config.items]}}:n.push(t)}return n}var zu=`
|
|
31
|
+
`);return r&&a&&o?{type:"custom",content:l,buttonText:a,href:o}:t&&!r?{type:"preset",slug:t,content:l}:null}function Hm(e){let n=e.trim();if(!n)return[];let t=[],r=/^##\s+(.+)$/gm,i,a=null,o=0;for(;(i=r.exec(n))!==null;){let s=i[1].trim(),l=i.index+i[0].length,u=i.index;a!==null&&t.push({question:a,answer:n.slice(o,u).trim()}),a=s,o=l}return a!==null&&t.push({question:a,answer:n.slice(o).trim()}),t}function qm(e){let n=wr(e),t=n.indexOf(`
|
|
32
|
+
`),r=t>=0?n.slice(0,t):n,i=!r.trimStart().startsWith("##"),a=i&&r.trim().match(/title="([^"]*)"/)?.[1]?.trim()||void 0,o=i?t>=0?n.slice(t+1):"":n,s=Hm(o);return s.length===0?null:{title:a,items:s}}function jm(e){let n=[],t=0;Eo.lastIndex=0;let r;for(;(r=Eo.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=r[1]||"Toggle",s=r[2]?.trim()||"";n.push({type:"toggle",config:{title:o,content:s}}),t=Eo.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Gm(e){let n=(e??"info").trim().toLowerCase();return n==="warning"||n==="warn"?"warning":n==="tip"||n==="important"||n==="success"?"tip":n==="danger"||n==="error"||n==="caution"?"danger":"info"}function Vm(e){let n=[],t=0,r=!1;vo.lastIndex=0;let i;for(;(i=vo.exec(e))!==null;){r=!0;let o=e.slice(t,i.index);o&&n.push({type:"markdown",value:o});let s=kn(wr(i[1]??"")),l=Gm(s.get("tone")??s.get("type")),u=s.get("title")?.trim()||void 0,c=(i[2]??"").trim();(c||u)&&n.push({type:"callout",config:{tone:l,...u?{title:u}:{},content:c}}),t=vo.lastIndex}let a=e.slice(t);return a&&n.push({type:"markdown",value:a}),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function Wm(e){let n=[],t=0,r=!1;bo.lastIndex=0;let i;for(;(i=bo.exec(e))!==null;){r=!0;let o=e.slice(t,i.index);o&&n.push({type:"markdown",value:o});let s=$l(i[1]),l=[];for(let u of(i[2]??"").split(`
|
|
33
|
+
`)){let c=Gl(u);c&&l.push({src:c.src,alt:c.alt})}l.length>0&&n.push({type:"gallery",config:{cols:s,items:l}}),t=bo.lastIndex}let a=e.slice(t);return a&&n.push({type:"markdown",value:a}),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function Qm(e){let n=[],t=0;So.lastIndex=0;let r;for(;(r=So.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=r[1],s=r[2]||"generic";n.push({type:"embed",config:{url:o,embedType:s}}),t=So.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Ym(e){let n=[],t=0;To.lastIndex=0;let r;for(;(r=To.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=r[1],s=r[2]||void 0;n.push({type:"audio",config:{src:o,title:s}}),t=To.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Xm(e){let n=[],t=0;Io.lastIndex=0;let r;for(;(r=Io.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=kn(r[1]??""),s=o.get("src");if(s){let l=Number.parseInt(o.get("pages")??"",10),u=o.get("display");n.push({type:"pdf",config:{src:s,title:o.get("title")||void 0,pageCount:Number.isFinite(l)&&l>0?l:void 0,thumbnailUrl:o.get("thumb")||void 0,assetId:o.get("asset")||void 0,display:u==="card"?"card":void 0}})}t=Io.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n.length===0&&n.push({type:"markdown",value:e}),n}function Km(e){let n=[],t=0,r=!1;Co.lastIndex=0;let i;for(;(i=Co.exec(e))!==null;){r=!0;let o=e.slice(t,i.index);o&&n.push({type:"markdown",value:o});let s=kn(i[1]??""),l=s.get("asset"),u=s.get("name");if(l&&u){let c=Number.parseInt(s.get("size")??"",10);n.push({type:"file",config:{assetId:l,name:u,size:Number.isFinite(c)&&c>0?c:void 0,mimeType:s.get("type")||void 0}})}t=Co.lastIndex}let a=e.slice(t);return a&&n.push({type:"markdown",value:a}),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function mu(e){let n=[],t=0;yo.lastIndex=0;let r;for(;(r=yo.exec(e))!==null;){let a=e.slice(t,r.index);a&&n.push({type:"markdown",value:a});let o=$m(r[1]);o&&n.push({type:"cta",config:o}),t=yo.lastIndex}let i=e.slice(t);return i&&n.push({type:"markdown",value:i}),n}function Zm(e){let n=[],t=0,r=!1;ko.lastIndex=0;let i;for(;(i=ko.exec(e))!==null;){r=!0;let o=e.slice(t,i.index);o&&n.push(...mu(o));let s=Um(i[1]??"",i[2]??"");s&&n.push({type:"cta",config:s}),t=ko.lastIndex}let a=e.slice(t);return a&&n.push(...mu(a)),n.length===0&&!r&&n.push({type:"markdown",value:e}),n}function hu(e){if(e=e.replace(Om,""),!e.trim())return[];let n=[],t=0;wo.lastIndex=0;let r,i=[jm,Vm,Wm,Qm,Ym,Xm,Km,Zm],a=o=>{if(!o)return;let s=(l,u)=>{let c=i[u];if(!c){l.trim()&&n.push({type:"markdown",value:l});return}for(let p of c(l))p.type==="markdown"?s(p.value,u+1):n.push(p)};s(o,0)};for(;(r=wo.exec(e))!==null;){let o=e.slice(t,r.index);a(o);let s=qm(r[1]);s&&n.push({type:"faq",config:s}),t=wo.lastIndex}return a(e.slice(t)),n}function Jm(e){return cu(e)}function eh(e){return du(e,{underscoreEmphasis:!0})}function Zt(){let e=new Set;return n=>{let t=eh(n),r=Jm(t);if(e.has(r)){let i=1;for(;e.has(`${r}-${i}`);)i++;r=`${r}-${i}`}return e.add(r),r}}var yn={container:"site-card-scope rounded-[var(--site-radius-card)] bg-zinc-100 dark:bg-zinc-800 p-8 shadow-lg text-center",content:"text-zinc-700 dark:text-zinc-200 leading-relaxed [&_p]:my-1.5 [&_strong]:text-zinc-900 dark:[&_strong]:text-zinc-50 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:text-left [&_ul]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:text-left [&_ol]:my-2 [&_a]:text-[var(--brand-text,var(--brand-color))] [&_a]:underline",contentSpacing:"mb-6",button:"inline-flex items-center justify-center gap-2 rounded-[var(--site-radius-button)] bg-[var(--brand-color)] px-6 @vp-md/article:px-8 py-3 min-h-[44px] text-base font-bold text-[var(--brand-foreground)] shadow-md transition-all duration-200 hover:scale-[1.02] hover:shadow-lg active:scale-[0.98]"};var Jt=W(K());function gu({config:e,presets:n}){let t,r;if(e.type==="preset"){let s=e.slug?n?.[e.slug]:void 0;s&&(t=s.label,r=s.href)}else t=e.buttonText,r=e.href;let i=!!e.content?.trim(),a=!!(t&&r);if(!i&&!a)return null;let o=r?/^https?:\/\//.test(r):!1;return(0,Jt.jsxs)("div",{className:yn.container,children:[i&&(0,Jt.jsx)("div",{className:`${yn.content}${a?` ${yn.contentSpacing}`:""}`,children:(0,Jt.jsx)(yr,{content:e.content,assignId:Zt()})}),a&&r&&(0,Jt.jsx)("a",{href:r,className:yn.button,"data-cta-track":"","data-cta-button-name":t,"data-cta-element-id":"blog-article-cta",...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:t})]})}var Ne=W(K());function xu({config:e}){if(e.items.length===0)return null;let n=Zt();return(0,Ne.jsxs)("section",{className:"my-6 space-y-4",children:[e.title&&(0,Ne.jsx)("h2",{className:"text-2xl font-bold text-[var(--site-fg,#18181b)] mb-2",children:e.title}),e.items.map((t,r)=>(0,Ne.jsxs)("div",{className:"my-4",children:[(0,Ne.jsxs)("div",{className:"flex items-start gap-2 text-[var(--site-fg,#18181b)]",children:[(0,Ne.jsx)("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-emerald-100 dark:bg-emerald-900/40 flex items-center justify-center text-emerald-700 dark:text-emerald-300 text-[10px] font-bold",children:"Q"}),(0,Ne.jsx)("span",{className:"flex-1 min-w-0",children:(0,Ne.jsx)(uu,{content:t.question})})]}),(0,Ne.jsxs)("div",{className:"mt-1 flex items-start gap-2",children:[(0,Ne.jsx)("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-blue-100 dark:bg-blue-900/40 flex items-center justify-center text-blue-700 dark:text-blue-300 text-[10px] font-bold",children:"A"}),(0,Ne.jsx)("div",{className:"flex-1 min-w-0 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:(0,Ne.jsx)(yr,{content:t.answer,assignId:n})})]})]},r))]})}var th="media.kanorio.com",nh=/\.(mp4|webm|mov)$/i;function bu(e){try{let n=new URL(e);return n.hostname===th&&nh.test(n.pathname)}catch{return!1}}function ku(e,n){switch(n){case"youtube":{let t=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);return t?`https://www.youtube.com/embed/${t[1]}`:null}case"vimeo":{let t=e.match(/vimeo\.com\/(?:video\/)?(\d+)/);return t?`https://player.vimeo.com/video/${t[1]}`:null}case"figma":return e.includes("embed")?e:`https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(e)}`;case"codepen":{let t=e.match(/codepen\.io\/([^/]+)\/(?:pen|full)\/([^/?]+)/);return t?`https://codepen.io/${t[1]}/embed/${t[2]}?default-tab=result`:null}case"google-maps":return e.includes("/embed")?e:null;default:return e}}var Xe=W(K()),rh=Fn(()=>import("./VideoPlayer-LNS7XJ4C.js").then(e=>e.VideoPlayer),({failed:e})=>(0,Xe.jsx)("div",{className:"aspect-video w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":e?void 0:"true"}));function yu({url:e,embedType:n}){let{ui:t}=fa(),r=it({url:e});if(bu(e))return(0,Xe.jsx)("div",{className:"my-6 not-prose",children:(0,Xe.jsx)(rh,{src:e,hlsSrc:r?.hls,thumbnails:r?.thumbnails,streamingPartial:r?.streamingPartial,captions:r?.captions,chapters:r?.chapters,storageKey:e,poster:r?.cover})});let i=ku(e,n);return i?(0,Xe.jsx)("div",{className:"my-6 rounded-[var(--site-radius-media)] overflow-hidden",children:(0,Xe.jsx)("div",{className:"aspect-video bg-zinc-900",children:(0,Xe.jsx)("iframe",{src:i,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy"})})}):(0,Xe.jsx)("div",{className:"my-6 p-4 rounded-[var(--site-radius-media)] border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50",children:(0,Xe.jsx)("p",{className:"text-sm text-zinc-500 dark:text-zinc-400",children:ha(t.embedLoadFailed,{url:e})})})}var Sr=W(K()),ih=Fn(()=>import("./AudioPlayer-DKUAB5KE.js").then(e=>e.AudioPlayer),({failed:e})=>(0,Sr.jsx)("div",{className:"h-20 w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":e?void 0:"true"}));function wu({src:e,title:n}){let t=n||e.split("/").pop()?.replace(/\.[^.]+$/,"")||"",r=it({url:e});return(0,Sr.jsx)("div",{className:"my-6 not-prose",children:(0,Sr.jsx)(ih,{src:e,title:t,storageKey:e,coverImage:r?.cover,captions:r?.captions,chapters:r?.chapters})})}var Ao=W(K());function No(e,n,t,r){if(!n)return"";let i=`${e??""}/api/public/sites/${encodeURIComponent(n)}/assets/${encodeURIComponent(t)}/download`;return r?`${i}?name=${encodeURIComponent(r)}`:i}function Su({assetId:e,name:n,size:t,mimeType:r,apiBase:i,websiteId:a}){let o=it({assetId:e}),s=ga(n,o);return(0,Ao.jsx)("div",{className:"my-6 not-prose",children:(0,Ao.jsx)(ya,{name:s,size:o?.size??t,mimeType:o?.mime??r,href:No(i,a,e,s)})})}var zo=W(K());function Tu({src:e,title:n,pageCount:t,thumbnailUrl:r,assetId:i,display:a,apiBase:o,websiteId:s}){let l=it({url:e,assetId:i}),{protection:u}=xa(),c=n||e.split("/").pop()?.replace(/\.[^.]+$/,"")||void 0,p=i&&No(o,s,i,c)||e;return(0,zo.jsx)("div",{className:"my-6 not-prose",children:(0,zo.jsx)(ba,{src:e,thumbnailUrl:l?.cover??r,thumbnailAlt:c,fileName:c,pageCount:l?.pages??t,allowDownload:u.allowDownload,downloadUrl:p,variant:a==="card"?"card":"preview"})})}var Eu=W(Ft());var Cu=W(K());function Iu({content:e}){return(0,Cu.jsx)(iu,{content:e,profile:"inline"})}var Ke=W(K());function vu({title:e,children:n,defaultOpen:t=!0}){let[r,i]=(0,Eu.useState)(t);return(0,Ke.jsxs)("div",{className:"toggle-block my-4",children:[(0,Ke.jsxs)("button",{type:"button",onClick:()=>i(!r),className:"flex items-start gap-1 w-full text-left",children:[(0,Ke.jsx)("span",{className:"shrink-0 mt-1 p-0.5 rounded transition-colors "+Ia,children:(0,Ke.jsx)(Dt,{className:`w-4 h-4 ${Ta} transition-transform ${r?"":"-rotate-90"}`})}),(0,Ke.jsx)("span",{className:"flex-1 min-w-0 "+mt,children:(0,Ke.jsx)(Iu,{content:e})})]}),r&&(0,Ke.jsx)("div",{className:"pl-6 [&>*:last-child]:mb-0",children:n})]})}var Ro=W(K());function Au({config:e}){return e.items.length===0?null:(0,Ro.jsx)("div",{className:`my-5 grid items-start gap-3 ${Hl[e.cols]}`,"data-gallery-cols":e.cols,children:e.items.map((n,t)=>(0,Ro.jsx)(Mn,{src:n.src,responsive:!0,sizes:`(min-width: 1024px) ${Math.round(60/e.cols)}vw, (min-width: 640px) ${Math.round(100/e.cols)}vw, 100vw`,alt:n.alt,className:"block h-auto w-full rounded-[var(--site-radius-media)]"},`${n.src}-${t}`))})}var Tr=W(K()),Nu={info:"var(--brand-color, #2563eb)",tip:"#16a34a",warning:"#d97706",danger:"#dc2626"};function zu({tone:e,title:n,children:t}){let r={borderRadius:"var(--site-radius-card, 12px)",borderLeft:`4px solid ${Nu[e]}`,background:"var(--site-card-bg, color-mix(in srgb, currentColor 6%, transparent))"};return(0,Tr.jsxs)("aside",{className:"callout-block site-card-scope my-6 px-5 py-4 [&>*:last-child]:mb-0","data-callout-tone":e,style:r,children:[n&&(0,Tr.jsx)("p",{className:"mb-1.5 font-semibold",style:{color:Nu[e]},children:n}),t]})}var he=W(K());function oh(e){let n=[];for(let t of e){let r=n[n.length-1];t.type==="faq"&&r&&r.type==="faq"?n[n.length-1]={type:"faq",config:{title:r.config.title,items:[...r.config.items,...t.config.items]}}:n.push(t)}return n}var Ru=`
|
|
34
34
|
--highlight-yellow: rgb(113, 63, 18);
|
|
35
35
|
--highlight-green: rgb(20, 83, 45);
|
|
36
36
|
--highlight-blue: rgb(30, 58, 138);
|
|
@@ -38,7 +38,7 @@ import{a as Pn}from"./chunk-KDNGDR64.js";import"./chunk-D7K3YCBR.js";import{a as
|
|
|
38
38
|
--highlight-orange: rgb(124, 45, 18);
|
|
39
39
|
--highlight-purple: rgb(76, 29, 149);
|
|
40
40
|
--highlight-fg: rgb(250, 250, 250);
|
|
41
|
-
`,
|
|
41
|
+
`,ah=`
|
|
42
42
|
.article-body {
|
|
43
43
|
--highlight-yellow: rgb(254, 249, 195);
|
|
44
44
|
--highlight-green: rgb(187, 247, 208);
|
|
@@ -51,7 +51,7 @@ import{a as Pn}from"./chunk-KDNGDR64.js";import"./chunk-D7K3YCBR.js";import{a as
|
|
|
51
51
|
/* Dark set by hand (account theme) and sites fixed to dark */
|
|
52
52
|
.dark .article-body,
|
|
53
53
|
html:has(.site-renderer-root[data-color-scheme="dark"]) .article-body {
|
|
54
|
-
${
|
|
54
|
+
${Ru}
|
|
55
55
|
}
|
|
56
56
|
/* Sites fixed to light: force the light variables over an outer html.dark */
|
|
57
57
|
html:has(.site-renderer-root[data-color-scheme="light"]) .article-body {
|
|
@@ -66,10 +66,10 @@ html:has(.site-renderer-root[data-color-scheme="light"]) .article-body {
|
|
|
66
66
|
@media (prefers-color-scheme: dark) {
|
|
67
67
|
/* Follow the system setting, except on sites fixed to light */
|
|
68
68
|
html.system:not(:has(.site-renderer-root[data-color-scheme="light"])) .article-body {
|
|
69
|
-
${
|
|
69
|
+
${Ru}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,sh=`
|
|
73
73
|
/* A table wider than the column scrolls inside its wrapper instead of widening the page. The wrapper carries the vertical
|
|
74
74
|
margin, so the scrollbar sits right under the table. */
|
|
75
75
|
.article-body .article-table-scroll {
|
|
@@ -127,5 +127,5 @@ html:has(.site-renderer-root[data-color-scheme="light"]) .article-body {
|
|
|
127
127
|
.article-body pre:empty::after, .article-body pre code:empty::after {
|
|
128
128
|
content: "\\00a0";
|
|
129
129
|
}
|
|
130
|
-
`;function Lu({content:e,ctaPresets:n,apiBase:t,websiteId:r}){let i=rh(mu(e)),a=Zt();return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("style",{dangerouslySetInnerHTML:{__html:`${ih}${oh}`}}),(0,he.jsx)("div",{className:"article-body max-w-none [&>*:first-child]:mt-0 [&>*:first-child>*:first-child]:mt-0",children:i.map((o,s)=>o.type==="cta"?(0,he.jsx)(hu,{config:o.config,presets:n},s):o.type==="faq"?(0,he.jsx)(gu,{config:o.config},s):o.type==="embed"?(0,he.jsx)(ku,{url:o.config.url,embedType:o.config.embedType},s):o.type==="audio"?(0,he.jsx)(yu,{src:o.config.src,title:o.config.title},s):o.type==="pdf"?(0,he.jsx)(Su,{src:o.config.src,title:o.config.title,pageCount:o.config.pageCount,thumbnailUrl:o.config.thumbnailUrl,assetId:o.config.assetId,display:o.config.display,apiBase:t,websiteId:r},s):o.type==="file"?(0,he.jsx)(wu,{assetId:o.config.assetId,name:o.config.name,size:o.config.size,mimeType:o.config.mimeType,apiBase:t,websiteId:r},s):o.type==="gallery"?(0,he.jsx)(vu,{config:o.config},s):o.type==="toggle"?(0,he.jsx)(Eu,{title:o.config.title,children:bn(o.config.content,a)},s):o.type==="callout"?(0,he.jsx)(Nu,{tone:o.config.tone,title:o.config.title,children:bn(o.config.content,a)},s):(0,he.jsx)(Ru.Fragment,{children:bn(o.value,a)},s))})]})}function Lo(e){let n=new Map,t=null;for(let r of e.leaves){let i=r.countsTowardCompletion!==!1;t&&i&&!r.isPreview&&n.set(r.id,t),!(t||!i||e.completedUnitIds.has(r.id))&&(e.requireSequential||r.isPrerequisite)&&(t=r.id)}return n}function _o(e){let n=new Map;for(let o of e){let s=n.get(o.parentId)??[];s.push(o),n.set(o.parentId,s)}let t=o=>[...o].sort((s,l)=>s.order-l.order),r=t(n.get(null)??[]),i=[],a=[];for(let o of r){let s=n.get(o.id);s&&s.length>0?i.push({chapter:o,units:t(s)}):o.kind!=="chapter"?a.push(o):i.push({chapter:o,units:[]})}return a.length>0&&i.unshift({chapter:null,units:a}),i}function ah(e){return _o(e).flatMap(n=>n.units)}function Po(e){let n=ah(e);return n.find(t=>t.access.granted&&t.progress!=="completed")??n.find(t=>t.access.granted)??null}var g=W(K()),_u="kanorio:autoplay-next",Pu="kanorio:transcript-open";function sh(e){let n=(e??[]).flatMap(t=>t.kind==="captions"&&t.locale?[{locale:t.locale,url:t.url,source:t.source??"ai",edited:t.edited??!1}]:[]);return n.length>0?n:void 0}function ge(e,n){return e.replace(/\{(\w+)\}/g,(t,r)=>String(n[r]??""))}function lh(e,n,t){try{return new Intl.DateTimeFormat(n??void 0,{dateStyle:"medium",timeStyle:"short",timeZone:t??void 0}).format(new Date(e))}catch{return e}}function uh(e,n,t){try{return new Intl.DateTimeFormat(n??void 0,{dateStyle:"medium",timeZone:t??void 0}).format(new Date(e))}catch{return e}}function ch(e,n){let t=/^\s*#\s+(.+?)\s*(?:\n|$)/.exec(e);return t&&n&&t[1].trim()===n.trim()?e.slice(t[0].length):e}var At="bg-[var(--site-surface,#ffffff)]",Te="border-[var(--site-border,rgba(0,0,0,0.1))]",de="text-[var(--site-fg-muted,#71717a)]",qe="text-[var(--site-fg,#18181b)]",He=`inline-flex min-h-11 items-center justify-center gap-1.5 rounded-[var(--site-radius-button,0.5rem)] border border-[var(--site-border,rgba(0,0,0,0.15))] px-3.5 text-sm ${qe} disabled:opacity-40`,Mu="inline-flex min-h-11 items-center justify-center gap-1.5 rounded-[var(--site-radius-button,0.5rem)] px-4 text-sm font-medium text-[var(--brand-foreground,#ffffff)] disabled:opacity-40",wn=`inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-[var(--site-radius-button,0.5rem)] ${de} hover:bg-black/5 dark:hover:bg-white/10`;function Sn(e){let n=encodeURIComponent(e.id);switch(e.provider){case"youtube":return`https://www.youtube-nocookie.com/embed/${n}`;case"vimeo":return`https://player.vimeo.com/video/${n}`;case"loom":return`https://www.loom.com/embed/${n}`;default:return null}}var ph=2e4,dh=2.5,Mo=class{sessionId;runStart=null;lastTime=0;rate=1;pending=[];seekTargets=[];stallStartedAt=null;stallCount=0;stallMs=0;startupMs=null;startupSent=!1;playRequestedAt=null;rendition=null;renditionSent=null;duration=0;constructor(){this.sessionId=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s_${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}get position(){return this.lastTime}closeRun(){this.runStart!==null&&this.lastTime-this.runStart>=.2&&this.pending.push([this.runStart,this.lastTime,this.rate]),this.runStart=null}timeUpdate(n,t){t>0&&(this.duration=t),this.runStart===null?this.runStart=n:Math.abs(n-this.lastTime)>dh&&(this.closeRun(),this.runStart=n),this.lastTime=n}event(n){switch(n.type){case"play":this.playRequestedAt===null&&this.startupMs===null&&(this.playRequestedAt=Date.now());break;case"started":this.playRequestedAt!==null&&this.startupMs===null&&(this.startupMs=Date.now()-this.playRequestedAt);break;case"pause":case"ended":this.closeRun(),this.lastTime=n.time;break;case"seeked":this.closeRun(),this.seekTargets.push(Math.floor(n.time)),this.lastTime=n.time,this.runStart=null;break;case"ratechange":this.closeRun(),this.rate=n.rate>0?n.rate:1;break;case"waiting":this.stallStartedAt===null&&(this.stallStartedAt=Date.now());break;case"playing":if(this.stallStartedAt!==null){let t=Date.now()-this.stallStartedAt;this.stallStartedAt=null,(this.startupMs!==null||this.playRequestedAt===null)&&(this.stallCount+=1,this.stallMs+=t)}break;case"quality":n.height&&(this.rendition=this.rendition===null?n.height:Math.min(this.rendition,n.height));break}}flush(n){n?this.closeRun():this.runStart!==null&&this.lastTime-this.runStart>=.2&&(this.pending.push([this.runStart,this.lastTime,this.rate]),this.runStart=this.lastTime);let t=this.stallCount>0||this.startupMs!==null&&!this.startupSent||this.rendition!==null&&this.rendition!==this.renditionSent;if(this.pending.length===0&&this.seekTargets.length===0&&!t)return null;let r={sessionId:this.sessionId,segments:this.pending,positionSeconds:this.lastTime,...this.duration>0?{durationSeconds:this.duration}:{},...this.seekTargets.length?{seekTargets:this.seekTargets}:{},...this.stallCount>0?{stallCount:this.stallCount,stallMs:this.stallMs}:{},...this.startupMs!==null&&!this.startupSent?{startupMs:this.startupMs}:{},...this.rendition!==null&&this.rendition!==this.renditionSent?{rendition:this.rendition}:{},device:Na({width:typeof window<"u"?window.innerWidth:1280,coarsePointer:typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)").matches:!1})};return this.pending=[],this.seekTargets=[],this.stallCount=0,this.stallMs=0,this.startupMs!==null&&(this.startupSent=!0),this.rendition!==null&&(this.renditionSent=this.rendition),r}};function fh({tree:e,client:n,labels:t,locale:r,timeZone:i,initialUnitId:a,onUnitChange:o,layout:s="embedded",backHref:l,backLabel:u,className:c,captionLocale:p,onCaptionChange:f}){let d=s==="page",b=d?"header":"div",v=d?"main":"div",N=d?"aside":"div",y=d?"nav":"div",C=e.structure==="DOWNLOAD",I=(0,P.useMemo)(()=>_o(e.units),[e.units]),A=(0,P.useMemo)(()=>I.flatMap(k=>k.units),[I]),[M,x]=(0,P.useState)(()=>Object.fromEntries(e.units.map(k=>[k.id,k.progress]))),[_,$]=(0,P.useState)(e.progress),[B,w]=(0,P.useState)(()=>((a?e.units.find(F=>F.id===a):null)??Po(e.units))?.id??null),S=A.find(k=>k.id===B)??null,j=S?A.findIndex(k=>k.id===S.id):-1,[R]=(0,P.useState)(()=>e.units.some(k=>k.progress!=="not_started")?Po(e.units)?.id??null:null),[U,q]=(0,P.useState)(!0),[te,ne]=(0,P.useState)(!1),[Ie,Ce]=(0,P.useState)(()=>new Set),[m,ye]=(0,P.useState)(!1),[Re,h]=(0,P.useState)(0),[fe,Me]=(0,P.useState)(null),[en,Ze]=(0,P.useState)(!1),oe=(0,P.useMemo)(()=>new Set(Object.entries(M).filter(([,k])=>k==="completed").map(([k])=>k)),[M]),je=(0,P.useMemo)(()=>Lo({leaves:A.map(k=>({id:k.id,isPreview:k.isPreview,countsTowardCompletion:k.countsTowardCompletion,isPrerequisite:k.isPrerequisite})),completedUnitIds:oe,requireSequential:!!e.settings?.requireSequential}),[A,oe,e.settings?.requireSequential]),se=(0,P.useCallback)(k=>k.access.granted||k.access.reason==="prerequisite"&&!je.has(k.id),[je]),Ge=k=>A.find(F=>F.id===(je.get(k.id)??k.access.lockedByUnitId))?.title||"",[J,Nt]=(0,P.useState)(null),[Tn,zt]=(0,P.useState)(null),[In,Rt]=(0,P.useState)(!1),[Ir,tn]=(0,P.useState)(!1);(0,P.useEffect)(()=>{try{tn(window.localStorage.getItem(Pu)==="1")}catch{}},[]);let Cn=k=>{tn(k);try{window.localStorage.setItem(Pu,k?"1":"0")}catch{}},[En,vn]=(0,P.useState)(null),[Je,Lt]=(0,P.useState)({unitId:"",status:"loading",data:null}),[Cr,T]=(0,P.useState)(0),[z,H]=(0,P.useState)(-1),[V,Z]=(0,P.useState)(null),we=(0,P.useRef)([]);we.current=Je.status==="ready"&&Je.data&&Je.unitId===B?Je.data.segments:[];let Le=!!(S&&(S.kind==="video"||S.kind==="audio")&&J&&n.getTranscript);(0,P.useEffect)(()=>{if(!Le||!S||!n.getTranscript)return;let k=!1,F=S.id;Lt({unitId:F,status:"loading",data:null}),H(-1);let Q=En??p??r??null;return n.getTranscript(F,Q).then(le=>{k||(le.ok?Lt({unitId:F,status:"ready",data:le}):Lt({unitId:F,status:le.code==="NO_TRANSCRIPT"||le.code==="NO_FILE"?"unavailable":"error",data:null}))}).catch(()=>{k||Lt({unitId:F,status:"error",data:null})}),()=>{k=!0}},[Le,S?.id,En,Cr]);let xe=S&&Je.unitId===S.id?Je:null,ft=Le&&xe!==null&&(xe.status==="ready"||xe.status==="error");(0,P.useEffect)(()=>vn(null),[B]);let[et,me]=(0,P.useState)({}),[tt,Ee]=(0,P.useState)(null),[Fu,Fo]=(0,P.useState)(!1);(0,P.useEffect)(()=>{me({}),Ee(null)},[B]);let[_t,Do]=(0,P.useState)(!1);(0,P.useEffect)(()=>{try{Do(window.localStorage.getItem(_u)==="1")}catch{}},[]);let Du=k=>{Do(k);try{window.localStorage.setItem(_u,k?"1":"0")}catch{}},[Oo,Ou]=(0,P.useState)(e.certificate??null),[Bo,Uo]=(0,P.useState)(!1),$o=async()=>{Uo(!0);try{let k=await n.getCertificate(e.id);k.ok&&(Ou(F=>({enabled:!0,serial:k.certificate.serial,issuedAt:k.certificate.issuedAt,...F?{}:{}})),window.open(k.certificate.url,"_blank","noopener,noreferrer"))}finally{Uo(!1)}},Er=(0,P.useRef)(0),An=(0,P.useRef)(null),vr=(0,P.useRef)(null),Pt=(0,P.useCallback)(k=>((vr.current!==k||!An.current)&&(An.current=new Mo,vr.current=k),An.current),[]),nn=(0,P.useCallback)(k=>{w(k),ne(!1),o?.(k)},[o]);(0,P.useEffect)(()=>{let k=S?.parentId;k&&Ce(F=>{if(!F.has(k))return F;let Q=new Set(F);return Q.delete(k),Q})},[S?.parentId,B]);let Ho=(0,P.useRef)(!!e.progress?.completed),[Bu,qo]=(0,P.useState)(!1);(0,P.useEffect)(()=>{let k=!!_?.completed;k&&!Ho.current&&qo(!0),Ho.current=k},[_?.completed]),(0,P.useEffect)(()=>{if(Nt(null),zt(null),Ze(!1),Rt(!1),!S||!se(S)||!S.hasFile)return;let k=!1;return Rt(!0),n.openUnit(S.id,"read").then(F=>{k||(F.ok?Nt(F):zt(F.code))}).catch(()=>{k||zt("NETWORK")}).finally(()=>{k||Rt(!1)}),()=>{k=!0}},[S,n,se,Re]);let Mt=(0,P.useCallback)(async(k,F,Q)=>{if(!C)try{let le=await n.reportProgress({unitId:k,reports:[F],...Q?.lite?{lite:!0}:{}});le.ok&&(x(rt=>({...rt,[k]:le.unit})),le.deliverable&&$({percent:le.deliverable.percent,completed:le.deliverable.completed,completedAt:le.deliverable.completedAt??null}))}catch{}},[n,C]),nt=(0,P.useCallback)((k,F)=>{let Q=An.current;if(!Q||vr.current!==k)return;let le=Q.flush(F!=="heartbeat");le&&(Er.current=Date.now(),Mt(k,le,{lite:F==="heartbeat"}))},[Mt]),Uu=(0,P.useCallback)((k,F)=>{if(!S)return;Pt(S.id).timeUpdate(k,F);let Q=we.current;if(Q.length>0){let rt=va(Q,k);H(zn=>zn===rt?zn:rt)}Date.now()-Er.current<ph||nt(S.id,"heartbeat")},[S,Pt,nt]),$u=(0,P.useCallback)(k=>{S&&(Pt(S.id).event(k),(k.type==="pause"||k.type==="seeked")&&nt(S.id,"event"))},[S,Pt,nt]),Hu=(0,P.useCallback)(()=>{if(!S)return;let k=Pt(S.id),F=k.flush(!0)??{sessionId:k.sessionId,positionSeconds:k.position,...k.duration>0?{durationSeconds:k.duration}:{}};if(Er.current=Date.now(),Mt(S.id,{...F,completed:!0}),_t){let Q=A[j+1];Q&&se(Q)&&window.setTimeout(()=>nn(Q.id),800)}},[S,Pt,Mt,_t,A,j,se,nn]),qu=async()=>{if(S){Fo(!0);try{let k=await n.submitQuiz({unitId:S.id,answers:et});k.ok&&(Ee(k),x(F=>({...F,[S.id]:k.unit})),$({percent:k.deliverable.percent,completed:k.deliverable.completed,completedAt:k.deliverable.completedAt??null}))}finally{Fo(!1)}}},ju=!!S&&(S.kind==="video"||S.kind==="audio"||!!(J?.mimeType&&(J.mimeType.startsWith("video/")||J.mimeType.startsWith("audio/")))),Ar=S?M[S.id]??S.progress:"not_started",Gu=!!S&&!C&&se(S)&&!ju&&Ar!=="completed";(0,P.useEffect)(()=>{if(!S)return;let k=S.id,F=()=>nt(k,"final"),Q=()=>{document.visibilityState==="hidden"&&nt(k,"event")};return window.addEventListener("pagehide",F),document.addEventListener("visibilitychange",Q),()=>{window.removeEventListener("pagehide",F),document.removeEventListener("visibilitychange",Q),nt(k,"final")}},[S,nt]),(0,P.useEffect)(()=>{!S||C||!se(S)||S.kind==="video"||S.kind==="audio"||(M[S.id]??S.progress)==="not_started"&&Mt(S.id,{opened:!0})},[S?.id,C]);let Vu=k=>{if(C||(M[k.id]??k.progress)==="completed")return;let Q=typeof k.lastPosition=="number"?k.lastPosition:k.positionSeconds;return Q>5?Q:void 0},Nr=k=>{let F=A[j+k];F&&se(F)&&nn(F.id)},jo=async k=>{let F=await n.openUnit(k,"download");F.ok&&window.open(F.url,"_blank","noopener,noreferrer")},Wu=()=>{S&&jo(S.id)},Qu=async(k,F)=>{if(fe)return;Me(F),Ze(!1);let Q=await n.openUnit(k,"download",{attachmentId:F}).catch(()=>({ok:!1,code:"NETWORK"}));Me(null),Q.ok?window.open(Q.url,"_blank","noopener,noreferrer"):Ze(!0)},ze=j>=0?A[j+1]??null:null,Go=j>0?A[j-1]:null,zr=Gu&&S?.kind!=="quiz",Yu=()=>!ze||!S?!1:ze.access.granted?!0:ze.access.reason!=="prerequisite"?!1:!Lo({leaves:A.map(F=>({id:F.id,isPreview:F.isPreview,countsTowardCompletion:F.countsTowardCompletion,isPrerequisite:F.isPrerequisite})),completedUnitIds:new Set([...oe,S.id]),requireSequential:!!e.settings?.requireSequential}).has(ze.id),[Vo,Wo]=(0,P.useState)(!1),Xu=async()=>{if(!(!S||Vo)){Wo(!0);try{let k=Yu();await Mt(S.id,{completed:!0}),ze&&k&&nn(ze.id)}finally{Wo(!1)}}},Qo=!!(ze&&se(ze)),Ku=!!(ze&&!Qo&&!zr&&Ar!=="completed"&&ze.access.reason==="prerequisite"),Nn=zr?{label:ze?t.completeAndContinue:t.markComplete,onClick:()=>{Xu()},disabled:Vo,icon:!0}:{label:t.nextUnit,onClick:()=>Nr(1),disabled:!Qo,icon:!1},Zu=zr||!!ze,Ju=k=>k.duration?ge(t.minutes,{count:Math.max(1,Math.round(k.duration/60))}):k.pageCount?ge(t.pages,{count:k.pageCount}):null,ec=k=>Ce(F=>{let Q=new Set(F);return Q.has(k)?Q.delete(k):Q.add(k),Q}),Yo=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:E("shrink-0 border-b px-4 py-2",Te),children:[(0,g.jsxs)("div",{className:"flex min-h-10 items-center justify-between gap-2",children:[(0,g.jsxs)("div",{className:"min-w-0",children:[e.authors&&e.authors.length>0&&(0,g.jsx)(Ea,{authors:e.authors,className:"mb-1.5"}),(0,g.jsxs)("p",{className:E("text-xs",de),children:[ge(t.unitsCount,{count:A.length}),_&&!C?` \xB7 ${ge(t.progress,{percent:_.percent})}`:""]})]}),!C&&A.length>1&&(0,g.jsx)("button",{type:"button",onClick:()=>ye(k=>!k),"aria-expanded":m,"aria-label":t.settings,title:t.settings,className:E(wn,"-mr-2"),children:(0,g.jsx)(pa,{className:"h-4 w-4","aria-hidden":"true"})})]}),m&&(0,g.jsxs)("button",{type:"button",role:"switch","aria-checked":_t,onClick:()=>Du(!_t),className:E("flex min-h-10 w-full items-center justify-between gap-3 text-left text-sm",qe),children:[t.autoplayNext,(0,g.jsx)("span",{"aria-hidden":!0,className:E("relative inline-flex h-5 w-9 shrink-0 rounded-full transition",_t?"bg-[var(--brand-color,#18181b)]":"bg-black/20 dark:bg-white/25"),children:(0,g.jsx)("span",{className:E("absolute top-0.5 h-4 w-4 rounded-full bg-white transition",_t?"left-[18px]":"left-0.5")})})]}),Oo?.enabled&&_?.completed&&(0,g.jsxs)("button",{type:"button",onClick:()=>{$o()},disabled:Bo,className:E(He,"my-2 w-full"),children:[(0,g.jsx)(Rn,{className:"h-4 w-4","aria-hidden":"true"})," ",t.certificateDownload]})]}),(0,g.jsxs)(y,{role:d?void 0:"navigation","aria-label":t.outline,className:"min-h-0 flex-1 overflow-y-auto p-2",children:[A.length===0&&(0,g.jsx)("p",{className:E("p-3 text-sm",de),children:t.noUnits}),I.map((k,F)=>{let Q=k.chapter?.id??null,le=Q?Ie.has(Q):!1,rt=k.units.filter(ee=>ee.countsTowardCompletion!==!1),zn=rt.filter(ee=>(M[ee.id]??ee.progress)==="completed").length;return(0,g.jsxs)("div",{className:"mb-1",children:[k.chapter&&(0,g.jsxs)("button",{type:"button",onClick:()=>ec(k.chapter.id),"aria-expanded":!le,className:E("flex w-full items-start gap-2 rounded-lg px-2 py-2 text-left text-sm font-semibold hover:bg-black/[0.03] dark:hover:bg-white/[0.06]",qe),children:[(0,g.jsx)(Dt,{className:E("mt-0.5 h-4 w-4 shrink-0 transition-transform",de,le&&"-rotate-90"),"aria-hidden":"true"}),(0,g.jsx)("span",{className:"min-w-0 flex-1",children:k.chapter.title}),!C&&rt.length>0&&(0,g.jsxs)("span",{className:E("shrink-0 text-xs font-normal tabular-nums",de),children:[zn,"/",rt.length]})]}),!le&&(0,g.jsx)("ul",{className:"space-y-0.5",children:k.units.map(ee=>{let Lr=M[ee.id]??ee.progress,Zo=ee.id===B,Ve=!se(ee),_r=C&&!Ve&&ee.allowDownload&&ee.hasFile,nc=Ju(ee),Jo=Ve&&ee.access.reason==="not_released"&&ee.access.availableAt?ge(t.unlocksAt,{date:lh(ee.access.availableAt,r,i)}):Ve&&ee.access.reason==="prerequisite"?ge(t.lockedBy,{title:Ge(ee)}):Ve?t.locked:null,ea=[ee.countsTowardCompletion===!1&&!C?t.optional:null,ee.isPreview&&!Ve?t.preview:null,nc].filter(Boolean);return(0,g.jsxs)("li",{className:E(_r&&"flex items-start gap-1"),children:[(0,g.jsxs)("button",{type:"button",disabled:Ve,"aria-current":Zo?"true":void 0,onClick:()=>nn(ee.id),className:E("flex w-full items-start gap-2.5 rounded-lg px-2 py-2 text-left text-sm transition",Zo?"bg-black/5 font-medium dark:bg-white/10":"hover:bg-black/[0.03] dark:hover:bg-white/[0.06]",Ve&&"cursor-not-allowed opacity-60",_r&&"min-w-0 flex-1"),children:[(0,g.jsx)("span",{className:E("mt-0.5 shrink-0",de),children:Ve?(0,g.jsx)(sa,{className:"h-4 w-4"}):C?(0,g.jsx)(Ln,{className:"h-4 w-4"}):Lr==="completed"?(0,g.jsx)(Ot,{className:"h-4 w-4 text-emerald-600"}):Lr==="in-progress"?(0,g.jsx)(ra,{className:"h-4 w-4"}):(0,g.jsx)(oa,{className:"h-4 w-4"})}),(0,g.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,g.jsx)("span",{className:E("line-clamp-2",qe),children:ee.title||ee.kind}),ea.length>0&&(0,g.jsx)("span",{className:E("block text-xs",de),children:ea.join(" \xB7 ")}),Jo&&(0,g.jsx)("span",{className:E("block text-xs",de),children:Jo}),ee.id===R&&!Ve&&Lr!=="completed"&&(0,g.jsx)("span",{className:"block text-xs font-normal text-[var(--site-accent-text,var(--brand-color,#18181b))]",children:t.lastViewed})]})]}),_r&&(0,g.jsx)("button",{type:"button",onClick:()=>{jo(ee.id)},"aria-label":`${t.download}: ${ee.title||ee.kind}`,title:t.download,className:E(wn,"mt-0.5 h-9 w-9"),children:(0,g.jsx)(Bt,{className:"h-4 w-4"})})]},ee.id)})})]},Q??`loose-${F}`)})]})]}),Xo=!!S&&(S.kind==="video"||S.kind==="audio"||!!(S.embed&&Sn(S.embed))),Ko=S?(0,g.jsxs)("div",{children:[(0,g.jsx)("h2",{className:E("text-lg font-bold sm:text-xl",qe),children:S.title||S.kind}),S.description&&(0,g.jsx)("p",{className:E("mt-1 text-sm",de),children:S.description})]}):null,tc=S?S.embed&&Sn(S.embed)?(0,g.jsx)("div",{className:"aspect-video w-full overflow-hidden rounded-[var(--site-radius-media,0.75rem)] bg-black",children:(0,g.jsx)("iframe",{title:S.title??S.kind,src:Sn(S.embed),className:"h-full w-full",allow:"accelerometer; autoplay; encrypted-media; picture-in-picture",allowFullScreen:!0})}):S.kind==="quiz"?(0,g.jsx)(hh,{body:S.body,summary:S.quiz??null,answers:et,result:tt,busy:Fu,labels:t,onAnswer:(k,F)=>me(Q=>({...Q,[k]:F})),onSubmit:()=>{qu()},onRetry:()=>{me({}),Ee(null)}}):S.kind==="text"?(0,g.jsx)(Sa,{facts:S.body?.mediaFacts,children:(0,g.jsx)("div",{className:"max-w-none",children:(0,g.jsx)(Lu,{content:ch(typeof S.body?.markdown=="string"?S.body.markdown:"",S.title)})})}):In?(0,g.jsx)("div",{className:"aspect-video w-full animate-pulse rounded-[var(--site-radius-media,0.75rem)] bg-black/5 dark:bg-white/10"}):Tn&&Tn!=="NO_FILE"?(0,g.jsxs)("div",{role:"alert",className:E("flex flex-col items-center gap-3 rounded-[var(--site-radius-media,0.75rem)] border border-dashed px-4 py-10 text-center text-sm",Te,de),children:[(0,g.jsx)("p",{children:t.loadError}),(0,g.jsxs)("button",{type:"button",onClick:()=>h(k=>k+1),className:He,children:[(0,g.jsx)(_n,{className:"h-4 w-4","aria-hidden":"true"})," ",t.retry]})]}):J?(0,g.jsx)(wa,{src:J.url,hlsSrc:J.renditions?.find(k=>k.kind==="hls")?.url,thumbnails:J.thumbnails??J.renditions?.find(k=>k.kind==="thumbnails")?.url,streamingPartial:J.streaming==="partial",captions:sh(J.renditions),captionLocale:p,onCaptionChange:f,thumbnailUrl:J.poster??void 0,mimeType:J.mimeType??"application/octet-stream",title:J.title??S.title??void 0,fileName:J.fileName,pageCount:S.pageCount??void 0,storageKey:`unit:${S.id}`,startTime:Vu(S),seekTo:V,chapters:J.renditions?.find(k=>k.kind==="chapters")?.url,allowDownload:J.allowDownload,downloadUrl:J.allowDownload?J.url:void 0,onTimeUpdate:Uu,onComplete:Hu,onPlaybackEvent:$u},S.id):(0,g.jsx)("div",{className:E("rounded-[var(--site-radius-media,0.75rem)] border border-dashed px-4 py-10 text-center text-sm",Te,de),children:t.unitEmpty}):null,Rr=Zu?(0,g.jsxs)("button",{type:"button",onClick:Nn.onClick,disabled:Nn.disabled,className:E(Mu,"min-w-0"),style:{backgroundColor:"var(--brand-color,#18181b)"},children:[Nn.icon&&(0,g.jsx)(Ot,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),(0,g.jsx)("span",{className:"truncate",children:Nn.label})]}):null;return(0,g.jsxs)("div",{className:E("flex flex-col",d?"h-dvh bg-[var(--site-surface-muted,#f4f4f5)]":E("overflow-hidden rounded-[var(--site-radius-card,1rem)] border",Te,At),c),children:[(0,g.jsxs)(b,{className:E("flex h-14 shrink-0 items-center gap-1 border-b px-2 sm:px-3",Te,At),children:[l&&(0,g.jsx)("a",{href:l,"aria-label":u,title:u,className:wn,children:(0,g.jsx)(ta,{className:"h-5 w-5","aria-hidden":"true"})}),(0,g.jsx)("button",{type:"button",onClick:()=>q(k=>!k),"aria-expanded":U,"aria-label":U?t.hideOutline:t.showOutline,title:U?t.hideOutline:t.showOutline,className:E(wn,"hidden lg:inline-flex"),children:(0,g.jsx)(la,{className:"h-5 w-5","aria-hidden":"true"})}),(0,g.jsx)("p",{className:E("min-w-0 flex-1 truncate px-1 text-sm font-semibold sm:text-base",qe),children:e.title}),_&&!C&&(0,g.jsxs)("div",{className:"flex shrink-0 items-center gap-2 pr-1","aria-label":ge(t.progress,{percent:_.percent}),children:[(0,g.jsx)("div",{className:"hidden h-1.5 w-24 overflow-hidden rounded-full bg-black/5 sm:block dark:bg-white/10",children:(0,g.jsx)("div",{className:"h-full rounded-full",style:{width:`${_.percent}%`,backgroundColor:"var(--brand-color,#18181b)"}})}),(0,g.jsxs)("span",{className:E("text-xs tabular-nums",de),children:[_.percent,"%"]})]})]}),(0,g.jsxs)("div",{className:E("flex min-h-0 flex-1",!d&&"lg:max-h-[80vh]"),children:[U&&(0,g.jsx)(N,{className:E("hidden w-80 shrink-0 flex-col border-r lg:flex",Te,At),children:Yo}),(0,g.jsx)(v,{className:"min-w-0 flex-1 overflow-y-auto",children:(0,g.jsx)("div",{className:E("mx-auto w-full max-w-4xl px-4 py-5 sm:px-6 lg:py-8",d&&"pb-24 lg:pb-8"),children:S?(0,g.jsxs)("div",{className:"space-y-4",children:[Bu&&(0,g.jsxs)("div",{className:E("flex flex-col items-center gap-3 rounded-[var(--site-radius-card,1rem)] border p-6 text-center",Te,At),role:"status",children:[(0,g.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full",style:{backgroundColor:"var(--brand-color,#18181b)",color:"var(--brand-foreground,#ffffff)"},children:(0,g.jsx)(Rn,{className:"h-6 w-6","aria-hidden":"true"})}),(0,g.jsxs)("div",{children:[(0,g.jsx)("p",{className:E("text-lg font-bold",qe),children:t.courseCompletedTitle}),_?.completedAt&&(0,g.jsx)("p",{className:E("mt-1 text-sm",de),children:ge(t.courseCompletedOn,{date:uh(_.completedAt,r,i)})})]}),(0,g.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[Oo?.enabled&&(0,g.jsxs)("button",{type:"button",onClick:()=>{$o()},disabled:Bo,className:Mu,style:{backgroundColor:"var(--brand-color,#18181b)"},children:[(0,g.jsx)(Rn,{className:"h-4 w-4","aria-hidden":"true"})," ",t.certificateDownload]}),l&&u&&(0,g.jsx)("a",{href:l,className:He,children:u}),(0,g.jsx)("button",{type:"button",onClick:()=>qo(!1),className:He,children:t.keepBrowsing})]})]}),!Xo&&Ko,tc,Xo&&Ko,ft&&S&&xe&&(0,g.jsx)(Aa,{labels:t,open:Ir,onToggle:Cn,status:xe.status==="ready"?"ready":"error",data:xe.data,activeIndex:z,onSeek:k=>Z({time:k,nonce:Date.now()}),onLocaleChange:k=>vn(k),onRetry:()=>T(k=>k+1),uiLocale:r??"en",fileName:S.title||J?.fileName||"transcript"}),S.attachments&&S.attachments.length>0&&(0,g.jsxs)("div",{role:"group","aria-label":t.attachments,children:[(0,g.jsx)("h3",{className:E("mb-2 text-sm font-semibold",qe),children:t.attachments}),(0,g.jsx)("ul",{className:E("divide-y rounded-[var(--site-radius-card,0.75rem)] border",Te,At),children:S.attachments.map(k=>(0,g.jsxs)("li",{className:E("flex min-h-14 items-center gap-3 px-3 py-2",Te),children:[(0,g.jsx)(ua,{className:E("h-4 w-4 shrink-0",de),"aria-hidden":"true"}),(0,g.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,g.jsx)("span",{className:E("block break-words text-sm font-medium",qe),children:k.fileName}),k.bytes!=null&&(0,g.jsx)("span",{className:E("block text-xs",de),children:ka(k.bytes,{locale:r??"en"})})]}),(0,g.jsxs)("button",{type:"button",onClick:()=>{Qu(S.id,k.id)},disabled:fe!==null,"aria-label":ge(t.downloadFile,{name:k.fileName}),className:E(He,"shrink-0"),children:[(0,g.jsx)(Bt,{className:E("h-4 w-4",fe===k.id&&"animate-pulse"),"aria-hidden":"true"})," ",(0,g.jsx)("span",{className:"hidden sm:inline",children:t.download})]})]},k.id))}),en&&(0,g.jsx)("p",{role:"alert",className:"mt-2 text-sm text-red-600 dark:text-red-400",children:t.loadError})]}),(0,g.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[S.allowDownload&&S.hasFile&&(0,g.jsxs)("button",{type:"button",onClick:Wu,className:He,children:[(0,g.jsx)(Bt,{className:"h-4 w-4","aria-hidden":"true"})," ",t.download]}),S.embed&&Sn(S.embed)&&(0,g.jsxs)("a",{href:Sn(S.embed).replace("/embed/","/watch?v="),target:"_blank",rel:"noopener noreferrer",className:E("inline-flex min-h-11 items-center gap-1.5 text-sm underline underline-offset-4",de),children:[(0,g.jsx)(aa,{className:"h-4 w-4","aria-hidden":"true"})," ",t.open]}),!C&&Ar==="completed"&&(0,g.jsxs)("span",{className:"inline-flex items-center gap-1 text-sm text-emerald-600 dark:text-emerald-400",children:[(0,g.jsx)(Ot,{className:"h-4 w-4","aria-hidden":"true"})," ",t.completed]})]}),(0,g.jsxs)("div",{className:E("items-center justify-between gap-3 border-t pt-4",Te,d?"hidden lg:flex":"flex"),children:[(0,g.jsxs)("button",{type:"button",onClick:()=>Nr(-1),disabled:!Go,className:He,children:[(0,g.jsx)(Pr,{className:"h-4 w-4","aria-hidden":"true"})," ",t.previousUnit]}),(0,g.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[Ku&&(0,g.jsx)("span",{className:E("text-xs",de),children:t.completeToContinue}),Rr]})]})]}):(0,g.jsx)("div",{className:E("rounded-[var(--site-radius-card,1rem)] border border-dashed p-10 text-center text-sm",Te,de),children:t.noUnits})})})]}),d?(0,g.jsxs)("div",{className:E("fixed inset-x-0 bottom-0 z-30 flex items-center gap-2 border-t px-3 pt-2 pb-[calc(0.5rem+env(safe-area-inset-bottom))] lg:hidden",Te,At),children:[(0,g.jsxs)("button",{type:"button",onClick:()=>ne(!0),"aria-haspopup":"dialog","aria-expanded":te,className:E(He,"shrink-0"),children:[(0,g.jsx)(Mr,{className:"h-4 w-4","aria-hidden":"true"})," ",t.outline]}),(0,g.jsx)("button",{type:"button",onClick:()=>Nr(-1),disabled:!Go,"aria-label":t.previousUnit,title:t.previousUnit,className:E(He,"shrink-0 px-3"),children:(0,g.jsx)(Pr,{className:"h-4 w-4","aria-hidden":"true"})}),Rr?(0,g.jsx)("div",{className:"flex min-w-0 flex-1 justify-end [&>button]:w-full",children:Rr}):(0,g.jsx)("div",{className:"flex-1"})]}):(0,g.jsx)("div",{className:E("flex border-t p-2 lg:hidden",Te),children:(0,g.jsxs)("button",{type:"button",onClick:()=>ne(!0),"aria-haspopup":"dialog","aria-expanded":te,className:E(He,"w-full"),children:[(0,g.jsx)(Mr,{className:"h-4 w-4","aria-hidden":"true"})," ",t.outline]})}),te&&(0,g.jsxs)("div",{className:"fixed inset-0 z-40 lg:hidden",role:"dialog","aria-modal":"true","aria-label":t.outline,children:[(0,g.jsx)("button",{type:"button","aria-label":t.closeOutline,onClick:()=>ne(!1),className:"absolute inset-0 bg-black/40"}),(0,g.jsxs)("div",{className:E("absolute inset-x-0 bottom-0 flex max-h-[85dvh] flex-col rounded-t-2xl pb-[env(safe-area-inset-bottom)]",At),children:[(0,g.jsxs)("div",{className:E("flex shrink-0 items-center justify-between gap-2 border-b px-4 py-2",Te),children:[(0,g.jsx)("p",{className:E("min-w-0 truncate text-sm font-semibold",qe),children:t.outline}),(0,g.jsx)("button",{type:"button",onClick:()=>ne(!1),"aria-label":t.closeOutline,title:t.closeOutline,className:wn,children:(0,g.jsx)(da,{className:"h-5 w-5","aria-hidden":"true"})})]}),Yo]})]})]})}function mh(e,n){let t=new Set(e);return t.has(n)?t.delete(n):t.add(n),[...t]}function hh({body:e,summary:n,answers:t,result:r,busy:i,labels:a,onAnswer:o,onSubmit:s,onRetry:l}){let u=e?.questions??[];if(!e||u.length===0)return(0,g.jsx)("p",{className:"text-sm text-[var(--site-fg-muted,#71717a)]",children:a.quizNotReady});let c=(e.settings.mode??n?.mode??"graded")==="practice",p=r?.reveal?new Map(r.reveal.questions.map(A=>[A.id,A])):null,f=u.every(A=>(t[A.id]??[]).some(M=>M.trim().length>0)),d=c||n?.maxAttempts==null?null:Math.max(0,n.maxAttempts-n.attemptsUsed-(r?1:0)),b=!c&&!r&&!!n?.passed,v=!c&&!r&&!b&&d===0,N="text-[var(--site-fg-muted,#71717a)]",y="border-[var(--site-border,rgba(0,0,0,0.12))]",C="text-[var(--site-fg,#18181b)]",I="min-h-10 rounded-[var(--site-radius-button,0.5rem)] px-3.5 text-sm font-medium text-[var(--brand-foreground,#ffffff)] disabled:opacity-40";return(0,g.jsxs)("div",{className:"space-y-5",children:[c?(0,g.jsx)("p",{className:E("text-xs",N),children:a.quizPracticeHint}):(0,g.jsxs)("p",{className:E("text-xs",N),children:[ge(a.quizPassingScore,{percent:e.settings.passingPercent}),d!==null&&!b&&!r?.passed?` \xB7 ${ge(a.quizAttemptsLeft,{count:d})}`:""]}),b&&(0,g.jsxs)("p",{className:"inline-flex items-center gap-1 text-sm text-emerald-600 dark:text-emerald-400",children:[(0,g.jsx)(Ot,{className:"h-4 w-4"})," ",a.quizPassed,n?.bestScore!=null?` \xB7 ${ge(a.quizScore,{score:n.bestScore})}`:""]}),(0,g.jsx)("ol",{className:"space-y-4",children:u.map((A,M)=>{let x=A.type==="multiple",_=A.type==="short_text"||A.type==="numeric",$=new Set(t[A.id]??[]),B=p?.get(A.id),w=B?new Set(B.correctOptionIds):null,S=r?r.perQuestion[A.id]??null:null,j=!!r||i||b||v;return(0,g.jsxs)("li",{className:E("rounded-[var(--site-radius-media,0.75rem)] border p-4",y),children:[(0,g.jsxs)("p",{className:E("flex items-start gap-2 text-sm font-medium",C),children:[S===!0?(0,g.jsx)(Ot,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600 dark:text-emerald-400","aria-label":a.quizCorrectMark}):S===!1?(0,g.jsx)(ia,{className:"mt-0.5 h-4 w-4 shrink-0 text-red-600 dark:text-red-400","aria-label":a.quizWrongMark}):null,(0,g.jsxs)("span",{children:[M+1,". ",A.prompt,x?(0,g.jsx)("span",{className:E("ml-2 text-xs font-normal",N),children:a.quizSelectAll}):null]})]}),A.image?(0,g.jsx)("img",{src:A.image.url,alt:A.image.alt??"",width:A.image.width??void 0,height:A.image.height??void 0,loading:"lazy",className:"mt-3 max-h-80 w-auto max-w-full rounded-[var(--site-radius-media,0.75rem)]"}):null,_?(0,g.jsxs)("div",{className:"mt-3",children:[(0,g.jsx)(Pn,{type:"text",inputMode:A.type==="numeric"?"decimal":void 0,value:t[A.id]?.[0]??"",disabled:j,maxLength:500,placeholder:A.type==="numeric"?a.quizNumericPlaceholder:a.quizTextPlaceholder,"aria-label":A.prompt,onChange:R=>o(A.id,R.target.value?[R.target.value]:[]),className:E("rounded-lg bg-transparent disabled:cursor-default disabled:opacity-100",y,C,S===!0&&"bg-emerald-50 dark:bg-emerald-950/30",S===!1&&"bg-red-50 dark:bg-red-950/30")}),B&&B.acceptedAnswers&&B.acceptedAnswers.length>0?(0,g.jsx)("p",{className:E("mt-2 text-xs",N),children:ge(a.quizAcceptedAnswers,{answers:B.acceptedAnswers.join(" / ")})}):null]}):(0,g.jsx)("ul",{role:x?"group":"radiogroup","aria-label":A.prompt,className:E("mt-3",A.options.some(R=>R.image)?"grid grid-cols-2 gap-2 sm:grid-cols-3":"space-y-2"),children:A.options.map(R=>{let U=$.has(R.id),q=w?w.has(R.id):null;return(0,g.jsx)("li",{children:(0,g.jsxs)("button",{type:"button",role:x?"checkbox":"radio","aria-checked":U,disabled:j,onClick:()=>o(A.id,x?mh($,R.id):[R.id]),className:E("w-full rounded-lg border text-left text-sm disabled:cursor-default",R.image?"flex h-full flex-col gap-2 p-2":"flex items-start gap-2 px-3 py-2",y,C,U&&"border-[var(--brand-color,#18181b)]",q===!0&&"bg-emerald-50 dark:bg-emerald-950/30",q===!1&&U&&"bg-red-50 dark:bg-red-950/30"),children:[R.image?(0,g.jsx)("img",{src:R.image.url,alt:R.image.alt??"",width:R.image.width??void 0,height:R.image.height??void 0,loading:"lazy",className:"block max-h-48 w-full rounded-md object-contain"}):null,(0,g.jsxs)("span",{className:E("flex items-start gap-2",R.image?"px-1 pb-1":"contents"),children:[(0,g.jsx)("span",{"aria-hidden":!0,className:E("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center border",x?"rounded":"rounded-full",U?"border-[var(--brand-color,#18181b)] bg-[var(--brand-color,#18181b)] text-[var(--brand-foreground,#ffffff)]":"border-[var(--site-border,rgba(0,0,0,0.3))]"),children:U?(0,g.jsx)(na,{className:"h-3 w-3"}):null}),(0,g.jsx)("span",{className:"min-w-0",children:R.text})]})]})},R.id)})}),B?.explanation?(0,g.jsx)("p",{className:E("mt-2 text-xs",N),children:B.explanation}):null]},A.id)})}),r?(0,g.jsx)("div",{className:E("rounded-[var(--site-radius-media,0.75rem)] border p-4 text-sm",y),children:c?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("p",{className:E("font-medium",C),children:ge(a.quizCorrectCount,{correct:r.correct,total:r.total})}),(0,g.jsx)("button",{type:"button",onClick:l,className:E("mt-3",I),style:{backgroundColor:"var(--brand-color,#18181b)"},children:a.quizPracticeAgain})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("p",{className:E("font-medium",r.passed?"text-emerald-600 dark:text-emerald-400":C),children:[ge(a.quizScore,{score:r.score})," \xB7 ",r.passed?a.quizPassed:ge(a.quizFailed,{percent:e.settings.passingPercent}),(0,g.jsx)("span",{className:E("ml-2 text-xs font-normal",N),children:ge(a.quizCorrectCount,{correct:r.correct,total:r.total})})]}),!r.passed&&(r.canRetry?(0,g.jsx)("button",{type:"button",onClick:l,className:E("mt-3",I),style:{backgroundColor:"var(--brand-color,#18181b)"},children:a.quizRetry}):(0,g.jsx)("p",{className:E("mt-2 text-xs",N),children:a.quizNoAttempts}))]})}):v?(0,g.jsx)("p",{className:E("text-sm",N),children:a.quizNoAttempts}):b?null:(0,g.jsx)("button",{type:"button",onClick:s,disabled:!f||i,className:I,style:{backgroundColor:"var(--brand-color,#18181b)"},children:a.quizSubmit})]})}export{fh as DeliverablePlayer,oc as deliverablePlayerLabels};
|
|
131
|
-
//# sourceMappingURL=deliverables-
|
|
130
|
+
`;function _u({content:e,ctaPresets:n,apiBase:t,websiteId:r}){let i=oh(hu(e)),a=Zt();return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("style",{dangerouslySetInnerHTML:{__html:`${ah}${sh}`}}),(0,he.jsx)("div",{className:"article-body max-w-none [&>*:first-child]:mt-0 [&>*:first-child>*:first-child]:mt-0",children:i.map((o,s)=>o.type==="cta"?(0,he.jsx)(gu,{config:o.config,presets:n},s):o.type==="faq"?(0,he.jsx)(xu,{config:o.config},s):o.type==="embed"?(0,he.jsx)(yu,{url:o.config.url,embedType:o.config.embedType},s):o.type==="audio"?(0,he.jsx)(wu,{src:o.config.src,title:o.config.title},s):o.type==="pdf"?(0,he.jsx)(Tu,{src:o.config.src,title:o.config.title,pageCount:o.config.pageCount,thumbnailUrl:o.config.thumbnailUrl,assetId:o.config.assetId,display:o.config.display,apiBase:t,websiteId:r},s):o.type==="file"?(0,he.jsx)(Su,{assetId:o.config.assetId,name:o.config.name,size:o.config.size,mimeType:o.config.mimeType,apiBase:t,websiteId:r},s):o.type==="gallery"?(0,he.jsx)(Au,{config:o.config},s):o.type==="toggle"?(0,he.jsx)(vu,{title:o.config.title,children:bn(o.config.content,a)},s):o.type==="callout"?(0,he.jsx)(zu,{tone:o.config.tone,title:o.config.title,children:bn(o.config.content,a)},s):(0,he.jsx)(Lu.Fragment,{children:bn(o.value,a)},s))})]})}function Lo(e){let n=new Map,t=null;for(let r of e.leaves){let i=r.countsTowardCompletion!==!1;t&&i&&!r.isPreview&&n.set(r.id,t),!(t||!i||e.completedUnitIds.has(r.id))&&(e.requireSequential||r.isPrerequisite)&&(t=r.id)}return n}function _o(e){let n=new Map;for(let o of e){let s=n.get(o.parentId)??[];s.push(o),n.set(o.parentId,s)}let t=o=>[...o].sort((s,l)=>s.order-l.order),r=t(n.get(null)??[]),i=[],a=[];for(let o of r){let s=n.get(o.id);s&&s.length>0?i.push({chapter:o,units:t(s)}):o.kind!=="chapter"?a.push(o):i.push({chapter:o,units:[]})}return a.length>0&&i.unshift({chapter:null,units:a}),i}function lh(e){return _o(e).flatMap(n=>n.units)}function Po(e){let n=lh(e);return n.find(t=>t.access.granted&&t.progress!=="completed")??n.find(t=>t.access.granted)??null}var g=W(K()),Pu="kanorio:autoplay-next",Mu="kanorio:transcript-open";function uh(e){let n=(e??[]).flatMap(t=>t.kind==="captions"&&t.locale?[{locale:t.locale,url:t.url,source:t.source??"ai",edited:t.edited??!1}]:[]);return n.length>0?n:void 0}function ge(e,n){return e.replace(/\{(\w+)\}/g,(t,r)=>String(n[r]??""))}function ch(e,n,t){try{return new Intl.DateTimeFormat(n??void 0,{dateStyle:"medium",timeStyle:"short",timeZone:t??void 0}).format(new Date(e))}catch{return e}}function ph(e,n,t){try{return new Intl.DateTimeFormat(n??void 0,{dateStyle:"medium",timeZone:t??void 0}).format(new Date(e))}catch{return e}}function dh(e,n){let t=/^\s*#\s+(.+?)\s*(?:\n|$)/.exec(e);return t&&n&&t[1].trim()===n.trim()?e.slice(t[0].length):e}var At="bg-[var(--site-surface,#ffffff)]",Te="border-[var(--site-border,rgba(0,0,0,0.1))]",de="text-[var(--site-fg-muted,#71717a)]",qe="text-[var(--site-fg,#18181b)]",He=`inline-flex min-h-11 items-center justify-center gap-1.5 rounded-[var(--site-radius-button,0.5rem)] border border-[var(--site-border,rgba(0,0,0,0.15))] px-3.5 text-sm ${qe} disabled:opacity-40`,Fu="inline-flex min-h-11 items-center justify-center gap-1.5 rounded-[var(--site-radius-button,0.5rem)] px-4 text-sm font-medium text-[var(--brand-foreground,#ffffff)] disabled:opacity-40",wn=`inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-[var(--site-radius-button,0.5rem)] ${de} hover:bg-black/5 dark:hover:bg-white/10`;function Sn(e){let n=encodeURIComponent(e.id);switch(e.provider){case"youtube":return`https://www.youtube-nocookie.com/embed/${n}`;case"vimeo":return`https://player.vimeo.com/video/${n}`;case"loom":return`https://www.loom.com/embed/${n}`;default:return null}}var fh=2e4,mh=2.5,Mo=class{sessionId;runStart=null;lastTime=0;rate=1;pending=[];seekTargets=[];stallStartedAt=null;stallCount=0;stallMs=0;startupMs=null;startupSent=!1;playRequestedAt=null;rendition=null;renditionSent=null;duration=0;constructor(){this.sessionId=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s_${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}get position(){return this.lastTime}closeRun(){this.runStart!==null&&this.lastTime-this.runStart>=.2&&this.pending.push([this.runStart,this.lastTime,this.rate]),this.runStart=null}timeUpdate(n,t){t>0&&(this.duration=t),this.runStart===null?this.runStart=n:Math.abs(n-this.lastTime)>mh&&(this.closeRun(),this.runStart=n),this.lastTime=n}event(n){switch(n.type){case"play":this.playRequestedAt===null&&this.startupMs===null&&(this.playRequestedAt=Date.now());break;case"started":this.playRequestedAt!==null&&this.startupMs===null&&(this.startupMs=Date.now()-this.playRequestedAt);break;case"pause":case"ended":this.closeRun(),this.lastTime=n.time;break;case"seeked":this.closeRun(),this.seekTargets.push(Math.floor(n.time)),this.lastTime=n.time,this.runStart=null;break;case"ratechange":this.closeRun(),this.rate=n.rate>0?n.rate:1;break;case"waiting":this.stallStartedAt===null&&(this.stallStartedAt=Date.now());break;case"playing":if(this.stallStartedAt!==null){let t=Date.now()-this.stallStartedAt;this.stallStartedAt=null,(this.startupMs!==null||this.playRequestedAt===null)&&(this.stallCount+=1,this.stallMs+=t)}break;case"quality":n.height&&(this.rendition=this.rendition===null?n.height:Math.min(this.rendition,n.height));break}}flush(n){n?this.closeRun():this.runStart!==null&&this.lastTime-this.runStart>=.2&&(this.pending.push([this.runStart,this.lastTime,this.rate]),this.runStart=this.lastTime);let t=this.stallCount>0||this.startupMs!==null&&!this.startupSent||this.rendition!==null&&this.rendition!==this.renditionSent;if(this.pending.length===0&&this.seekTargets.length===0&&!t)return null;let r={sessionId:this.sessionId,segments:this.pending,positionSeconds:this.lastTime,...this.duration>0?{durationSeconds:this.duration}:{},...this.seekTargets.length?{seekTargets:this.seekTargets}:{},...this.stallCount>0?{stallCount:this.stallCount,stallMs:this.stallMs}:{},...this.startupMs!==null&&!this.startupSent?{startupMs:this.startupMs}:{},...this.rendition!==null&&this.rendition!==this.renditionSent?{rendition:this.rendition}:{},device:Na({width:typeof window<"u"?window.innerWidth:1280,coarsePointer:typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)").matches:!1})};return this.pending=[],this.seekTargets=[],this.stallCount=0,this.stallMs=0,this.startupMs!==null&&(this.startupSent=!0),this.rendition!==null&&(this.renditionSent=this.rendition),r}};function hh({tree:e,client:n,labels:t,locale:r,timeZone:i,initialUnitId:a,onUnitChange:o,layout:s="embedded",backHref:l,backLabel:u,className:c,captionLocale:p,onCaptionChange:f}){let d=s==="page",b=d?"header":"div",v=d?"main":"div",N=d?"aside":"div",y=d?"nav":"div",C=e.structure==="DOWNLOAD",I=(0,P.useMemo)(()=>_o(e.units),[e.units]),A=(0,P.useMemo)(()=>I.flatMap(k=>k.units),[I]),[M,x]=(0,P.useState)(()=>Object.fromEntries(e.units.map(k=>[k.id,k.progress]))),[_,$]=(0,P.useState)(e.progress),[B,w]=(0,P.useState)(()=>((a?e.units.find(F=>F.id===a):null)??Po(e.units))?.id??null),S=A.find(k=>k.id===B)??null,j=S?A.findIndex(k=>k.id===S.id):-1,[R]=(0,P.useState)(()=>e.units.some(k=>k.progress!=="not_started")?Po(e.units)?.id??null:null),[U,q]=(0,P.useState)(!0),[te,ne]=(0,P.useState)(!1),[Ie,Ce]=(0,P.useState)(()=>new Set),[m,ye]=(0,P.useState)(!1),[Re,h]=(0,P.useState)(0),[fe,Me]=(0,P.useState)(null),[en,Ze]=(0,P.useState)(!1),oe=(0,P.useMemo)(()=>new Set(Object.entries(M).filter(([,k])=>k==="completed").map(([k])=>k)),[M]),je=(0,P.useMemo)(()=>Lo({leaves:A.map(k=>({id:k.id,isPreview:k.isPreview,countsTowardCompletion:k.countsTowardCompletion,isPrerequisite:k.isPrerequisite})),completedUnitIds:oe,requireSequential:!!e.settings?.requireSequential}),[A,oe,e.settings?.requireSequential]),se=(0,P.useCallback)(k=>k.access.granted||k.access.reason==="prerequisite"&&!je.has(k.id),[je]),Ge=k=>A.find(F=>F.id===(je.get(k.id)??k.access.lockedByUnitId))?.title||"",[J,Nt]=(0,P.useState)(null),[Tn,zt]=(0,P.useState)(null),[In,Rt]=(0,P.useState)(!1),[Ir,tn]=(0,P.useState)(!1);(0,P.useEffect)(()=>{try{tn(window.localStorage.getItem(Mu)==="1")}catch{}},[]);let Cn=k=>{tn(k);try{window.localStorage.setItem(Mu,k?"1":"0")}catch{}},[En,vn]=(0,P.useState)(null),[Je,Lt]=(0,P.useState)({unitId:"",status:"loading",data:null}),[Cr,T]=(0,P.useState)(0),[z,H]=(0,P.useState)(-1),[V,Z]=(0,P.useState)(null),we=(0,P.useRef)([]);we.current=Je.status==="ready"&&Je.data&&Je.unitId===B?Je.data.segments:[];let Le=!!(S&&(S.kind==="video"||S.kind==="audio")&&J&&n.getTranscript);(0,P.useEffect)(()=>{if(!Le||!S||!n.getTranscript)return;let k=!1,F=S.id;Lt({unitId:F,status:"loading",data:null}),H(-1);let Q=En??p??r??null;return n.getTranscript(F,Q).then(le=>{k||(le.ok?Lt({unitId:F,status:"ready",data:le}):Lt({unitId:F,status:le.code==="NO_TRANSCRIPT"||le.code==="NO_FILE"?"unavailable":"error",data:null}))}).catch(()=>{k||Lt({unitId:F,status:"error",data:null})}),()=>{k=!0}},[Le,S?.id,En,Cr]);let xe=S&&Je.unitId===S.id?Je:null,ft=Le&&xe!==null&&(xe.status==="ready"||xe.status==="error");(0,P.useEffect)(()=>vn(null),[B]);let[et,me]=(0,P.useState)({}),[tt,Ee]=(0,P.useState)(null),[Du,Fo]=(0,P.useState)(!1);(0,P.useEffect)(()=>{me({}),Ee(null)},[B]);let[_t,Do]=(0,P.useState)(!1);(0,P.useEffect)(()=>{try{Do(window.localStorage.getItem(Pu)==="1")}catch{}},[]);let Ou=k=>{Do(k);try{window.localStorage.setItem(Pu,k?"1":"0")}catch{}},[Oo,Bu]=(0,P.useState)(e.certificate??null),[Bo,Uo]=(0,P.useState)(!1),$o=async()=>{Uo(!0);try{let k=await n.getCertificate(e.id);k.ok&&(Bu(F=>({enabled:!0,serial:k.certificate.serial,issuedAt:k.certificate.issuedAt,...F?{}:{}})),window.open(k.certificate.url,"_blank","noopener,noreferrer"))}finally{Uo(!1)}},Er=(0,P.useRef)(0),An=(0,P.useRef)(null),vr=(0,P.useRef)(null),Pt=(0,P.useCallback)(k=>((vr.current!==k||!An.current)&&(An.current=new Mo,vr.current=k),An.current),[]),nn=(0,P.useCallback)(k=>{w(k),ne(!1),o?.(k)},[o]);(0,P.useEffect)(()=>{let k=S?.parentId;k&&Ce(F=>{if(!F.has(k))return F;let Q=new Set(F);return Q.delete(k),Q})},[S?.parentId,B]);let Ho=(0,P.useRef)(!!e.progress?.completed),[Uu,qo]=(0,P.useState)(!1);(0,P.useEffect)(()=>{let k=!!_?.completed;k&&!Ho.current&&qo(!0),Ho.current=k},[_?.completed]),(0,P.useEffect)(()=>{if(Nt(null),zt(null),Ze(!1),Rt(!1),!S||!se(S)||!S.hasFile)return;let k=!1;return Rt(!0),n.openUnit(S.id,"read").then(F=>{k||(F.ok?Nt(F):zt(F.code))}).catch(()=>{k||zt("NETWORK")}).finally(()=>{k||Rt(!1)}),()=>{k=!0}},[S,n,se,Re]);let Mt=(0,P.useCallback)(async(k,F,Q)=>{if(!C)try{let le=await n.reportProgress({unitId:k,reports:[F],...Q?.lite?{lite:!0}:{}});le.ok&&(x(rt=>({...rt,[k]:le.unit})),le.deliverable&&$({percent:le.deliverable.percent,completed:le.deliverable.completed,completedAt:le.deliverable.completedAt??null}))}catch{}},[n,C]),nt=(0,P.useCallback)((k,F)=>{let Q=An.current;if(!Q||vr.current!==k)return;let le=Q.flush(F!=="heartbeat");le&&(Er.current=Date.now(),Mt(k,le,{lite:F==="heartbeat"}))},[Mt]),$u=(0,P.useCallback)((k,F)=>{if(!S)return;Pt(S.id).timeUpdate(k,F);let Q=we.current;if(Q.length>0){let rt=va(Q,k);H(zn=>zn===rt?zn:rt)}Date.now()-Er.current<fh||nt(S.id,"heartbeat")},[S,Pt,nt]),Hu=(0,P.useCallback)(k=>{S&&(Pt(S.id).event(k),(k.type==="pause"||k.type==="seeked")&&nt(S.id,"event"))},[S,Pt,nt]),qu=(0,P.useCallback)(()=>{if(!S)return;let k=Pt(S.id),F=k.flush(!0)??{sessionId:k.sessionId,positionSeconds:k.position,...k.duration>0?{durationSeconds:k.duration}:{}};if(Er.current=Date.now(),Mt(S.id,{...F,completed:!0}),_t){let Q=A[j+1];Q&&se(Q)&&window.setTimeout(()=>nn(Q.id),800)}},[S,Pt,Mt,_t,A,j,se,nn]),ju=async()=>{if(S){Fo(!0);try{let k=await n.submitQuiz({unitId:S.id,answers:et});k.ok&&(Ee(k),x(F=>({...F,[S.id]:k.unit})),$({percent:k.deliverable.percent,completed:k.deliverable.completed,completedAt:k.deliverable.completedAt??null}))}finally{Fo(!1)}}},Gu=!!S&&(S.kind==="video"||S.kind==="audio"||!!(J?.mimeType&&(J.mimeType.startsWith("video/")||J.mimeType.startsWith("audio/")))),Ar=S?M[S.id]??S.progress:"not_started",Vu=!!S&&!C&&se(S)&&!Gu&&Ar!=="completed";(0,P.useEffect)(()=>{if(!S)return;let k=S.id,F=()=>nt(k,"final"),Q=()=>{document.visibilityState==="hidden"&&nt(k,"event")};return window.addEventListener("pagehide",F),document.addEventListener("visibilitychange",Q),()=>{window.removeEventListener("pagehide",F),document.removeEventListener("visibilitychange",Q),nt(k,"final")}},[S,nt]),(0,P.useEffect)(()=>{!S||C||!se(S)||S.kind==="video"||S.kind==="audio"||(M[S.id]??S.progress)==="not_started"&&Mt(S.id,{opened:!0})},[S?.id,C]);let Wu=k=>{if(C||(M[k.id]??k.progress)==="completed")return;let Q=typeof k.lastPosition=="number"?k.lastPosition:k.positionSeconds;return Q>5?Q:void 0},Nr=k=>{let F=A[j+k];F&&se(F)&&nn(F.id)},jo=async k=>{let F=await n.openUnit(k,"download");F.ok&&window.open(F.url,"_blank","noopener,noreferrer")},Qu=()=>{S&&jo(S.id)},Yu=async(k,F)=>{if(fe)return;Me(F),Ze(!1);let Q=await n.openUnit(k,"download",{attachmentId:F}).catch(()=>({ok:!1,code:"NETWORK"}));Me(null),Q.ok?window.open(Q.url,"_blank","noopener,noreferrer"):Ze(!0)},ze=j>=0?A[j+1]??null:null,Go=j>0?A[j-1]:null,zr=Vu&&S?.kind!=="quiz",Xu=()=>!ze||!S?!1:ze.access.granted?!0:ze.access.reason!=="prerequisite"?!1:!Lo({leaves:A.map(F=>({id:F.id,isPreview:F.isPreview,countsTowardCompletion:F.countsTowardCompletion,isPrerequisite:F.isPrerequisite})),completedUnitIds:new Set([...oe,S.id]),requireSequential:!!e.settings?.requireSequential}).has(ze.id),[Vo,Wo]=(0,P.useState)(!1),Ku=async()=>{if(!(!S||Vo)){Wo(!0);try{let k=Xu();await Mt(S.id,{completed:!0}),ze&&k&&nn(ze.id)}finally{Wo(!1)}}},Qo=!!(ze&&se(ze)),Zu=!!(ze&&!Qo&&!zr&&Ar!=="completed"&&ze.access.reason==="prerequisite"),Nn=zr?{label:ze?t.completeAndContinue:t.markComplete,onClick:()=>{Ku()},disabled:Vo,icon:!0}:{label:t.nextUnit,onClick:()=>Nr(1),disabled:!Qo,icon:!1},Ju=zr||!!ze,ec=k=>k.duration?ge(t.minutes,{count:Math.max(1,Math.round(k.duration/60))}):k.pageCount?ge(t.pages,{count:k.pageCount}):null,tc=k=>Ce(F=>{let Q=new Set(F);return Q.has(k)?Q.delete(k):Q.add(k),Q}),Yo=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:E("shrink-0 border-b px-4 py-2",Te),children:[(0,g.jsxs)("div",{className:"flex min-h-10 items-center justify-between gap-2",children:[(0,g.jsxs)("div",{className:"min-w-0",children:[e.authors&&e.authors.length>0&&(0,g.jsx)(Ea,{authors:e.authors,className:"mb-1.5"}),(0,g.jsxs)("p",{className:E("text-xs",de),children:[ge(t.unitsCount,{count:A.length}),_&&!C?` \xB7 ${ge(t.progress,{percent:_.percent})}`:""]})]}),!C&&A.length>1&&(0,g.jsx)("button",{type:"button",onClick:()=>ye(k=>!k),"aria-expanded":m,"aria-label":t.settings,title:t.settings,className:E(wn,"-mr-2"),children:(0,g.jsx)(pa,{className:"h-4 w-4","aria-hidden":"true"})})]}),m&&(0,g.jsxs)("button",{type:"button",role:"switch","aria-checked":_t,onClick:()=>Ou(!_t),className:E("flex min-h-10 w-full items-center justify-between gap-3 text-left text-sm",qe),children:[t.autoplayNext,(0,g.jsx)("span",{"aria-hidden":!0,className:E("relative inline-flex h-5 w-9 shrink-0 rounded-full transition",_t?"bg-[var(--brand-color,#18181b)]":"bg-black/20 dark:bg-white/25"),children:(0,g.jsx)("span",{className:E("absolute top-0.5 h-4 w-4 rounded-full bg-white transition",_t?"left-[18px]":"left-0.5")})})]}),Oo?.enabled&&_?.completed&&(0,g.jsxs)("button",{type:"button",onClick:()=>{$o()},disabled:Bo,className:E(He,"my-2 w-full"),children:[(0,g.jsx)(Rn,{className:"h-4 w-4","aria-hidden":"true"})," ",t.certificateDownload]})]}),(0,g.jsxs)(y,{role:d?void 0:"navigation","aria-label":t.outline,className:"min-h-0 flex-1 overflow-y-auto p-2",children:[A.length===0&&(0,g.jsx)("p",{className:E("p-3 text-sm",de),children:t.noUnits}),I.map((k,F)=>{let Q=k.chapter?.id??null,le=Q?Ie.has(Q):!1,rt=k.units.filter(ee=>ee.countsTowardCompletion!==!1),zn=rt.filter(ee=>(M[ee.id]??ee.progress)==="completed").length;return(0,g.jsxs)("div",{className:"mb-1",children:[k.chapter&&(0,g.jsxs)("button",{type:"button",onClick:()=>tc(k.chapter.id),"aria-expanded":!le,className:E("flex w-full items-start gap-2 rounded-lg px-2 py-2 text-left text-sm font-semibold hover:bg-black/[0.03] dark:hover:bg-white/[0.06]",qe),children:[(0,g.jsx)(Dt,{className:E("mt-0.5 h-4 w-4 shrink-0 transition-transform",de,le&&"-rotate-90"),"aria-hidden":"true"}),(0,g.jsx)("span",{className:"min-w-0 flex-1",children:k.chapter.title}),!C&&rt.length>0&&(0,g.jsxs)("span",{className:E("shrink-0 text-xs font-normal tabular-nums",de),children:[zn,"/",rt.length]})]}),!le&&(0,g.jsx)("ul",{className:"space-y-0.5",children:k.units.map(ee=>{let Lr=M[ee.id]??ee.progress,Zo=ee.id===B,Ve=!se(ee),_r=C&&!Ve&&ee.allowDownload&&ee.hasFile,rc=ec(ee),Jo=Ve&&ee.access.reason==="not_released"&&ee.access.availableAt?ge(t.unlocksAt,{date:ch(ee.access.availableAt,r,i)}):Ve&&ee.access.reason==="prerequisite"?ge(t.lockedBy,{title:Ge(ee)}):Ve?t.locked:null,ea=[ee.countsTowardCompletion===!1&&!C?t.optional:null,ee.isPreview&&!Ve?t.preview:null,rc].filter(Boolean);return(0,g.jsxs)("li",{className:E(_r&&"flex items-start gap-1"),children:[(0,g.jsxs)("button",{type:"button",disabled:Ve,"aria-current":Zo?"true":void 0,onClick:()=>nn(ee.id),className:E("flex w-full items-start gap-2.5 rounded-lg px-2 py-2 text-left text-sm transition",Zo?"bg-black/5 font-medium dark:bg-white/10":"hover:bg-black/[0.03] dark:hover:bg-white/[0.06]",Ve&&"cursor-not-allowed opacity-60",_r&&"min-w-0 flex-1"),children:[(0,g.jsx)("span",{className:E("mt-0.5 shrink-0",de),children:Ve?(0,g.jsx)(sa,{className:"h-4 w-4"}):C?(0,g.jsx)(Ln,{className:"h-4 w-4"}):Lr==="completed"?(0,g.jsx)(Ot,{className:"h-4 w-4 text-emerald-600"}):Lr==="in-progress"?(0,g.jsx)(ra,{className:"h-4 w-4"}):(0,g.jsx)(oa,{className:"h-4 w-4"})}),(0,g.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,g.jsx)("span",{className:E("line-clamp-2",qe),children:ee.title||ee.kind}),ea.length>0&&(0,g.jsx)("span",{className:E("block text-xs",de),children:ea.join(" \xB7 ")}),Jo&&(0,g.jsx)("span",{className:E("block text-xs",de),children:Jo}),ee.id===R&&!Ve&&Lr!=="completed"&&(0,g.jsx)("span",{className:"block text-xs font-normal text-[var(--site-accent-text,var(--brand-color,#18181b))]",children:t.lastViewed})]})]}),_r&&(0,g.jsx)("button",{type:"button",onClick:()=>{jo(ee.id)},"aria-label":`${t.download}: ${ee.title||ee.kind}`,title:t.download,className:E(wn,"mt-0.5 h-9 w-9"),children:(0,g.jsx)(Bt,{className:"h-4 w-4"})})]},ee.id)})})]},Q??`loose-${F}`)})]})]}),Xo=!!S&&(S.kind==="video"||S.kind==="audio"||!!(S.embed&&Sn(S.embed))),Ko=S?(0,g.jsxs)("div",{children:[(0,g.jsx)("h2",{className:E("text-lg font-bold sm:text-xl",qe),children:S.title||S.kind}),S.description&&(0,g.jsx)("p",{className:E("mt-1 text-sm",de),children:S.description})]}):null,nc=S?S.embed&&Sn(S.embed)?(0,g.jsx)("div",{className:"aspect-video w-full overflow-hidden rounded-[var(--site-radius-media,0.75rem)] bg-black",children:(0,g.jsx)("iframe",{title:S.title??S.kind,src:Sn(S.embed),className:"h-full w-full",allow:"accelerometer; autoplay; encrypted-media; picture-in-picture",allowFullScreen:!0})}):S.kind==="quiz"?(0,g.jsx)(xh,{body:S.body,summary:S.quiz??null,answers:et,result:tt,busy:Du,labels:t,onAnswer:(k,F)=>me(Q=>({...Q,[k]:F})),onSubmit:()=>{ju()},onRetry:()=>{me({}),Ee(null)}}):S.kind==="text"?(0,g.jsx)(Sa,{facts:S.body?.mediaFacts,children:(0,g.jsx)("div",{className:"max-w-none",children:(0,g.jsx)(_u,{content:dh(typeof S.body?.markdown=="string"?S.body.markdown:"",S.title)})})}):In?(0,g.jsx)("div",{className:"aspect-video w-full animate-pulse rounded-[var(--site-radius-media,0.75rem)] bg-black/5 dark:bg-white/10"}):Tn&&Tn!=="NO_FILE"?(0,g.jsxs)("div",{role:"alert",className:E("flex flex-col items-center gap-3 rounded-[var(--site-radius-media,0.75rem)] border border-dashed px-4 py-10 text-center text-sm",Te,de),children:[(0,g.jsx)("p",{children:t.loadError}),(0,g.jsxs)("button",{type:"button",onClick:()=>h(k=>k+1),className:He,children:[(0,g.jsx)(_n,{className:"h-4 w-4","aria-hidden":"true"})," ",t.retry]})]}):J?(0,g.jsx)(wa,{src:J.url,hlsSrc:J.renditions?.find(k=>k.kind==="hls")?.url,thumbnails:J.thumbnails??J.renditions?.find(k=>k.kind==="thumbnails")?.url,streamingPartial:J.streaming==="partial",captions:uh(J.renditions),captionLocale:p,onCaptionChange:f,thumbnailUrl:J.poster??void 0,mimeType:J.mimeType??"application/octet-stream",title:J.title??S.title??void 0,fileName:J.fileName,pageCount:S.pageCount??void 0,storageKey:`unit:${S.id}`,startTime:Wu(S),seekTo:V,chapters:J.renditions?.find(k=>k.kind==="chapters")?.url,allowDownload:J.allowDownload,downloadUrl:J.allowDownload?J.url:void 0,onTimeUpdate:$u,onComplete:qu,onPlaybackEvent:Hu},S.id):(0,g.jsx)("div",{className:E("rounded-[var(--site-radius-media,0.75rem)] border border-dashed px-4 py-10 text-center text-sm",Te,de),children:t.unitEmpty}):null,Rr=Ju?(0,g.jsxs)("button",{type:"button",onClick:Nn.onClick,disabled:Nn.disabled,className:E(Fu,"min-w-0"),style:{backgroundColor:"var(--brand-color,#18181b)"},children:[Nn.icon&&(0,g.jsx)(Ot,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),(0,g.jsx)("span",{className:"truncate",children:Nn.label})]}):null;return(0,g.jsxs)("div",{className:E("flex flex-col",d?"h-dvh bg-[var(--site-surface-muted,#f4f4f5)]":E("overflow-hidden rounded-[var(--site-radius-card,1rem)] border",Te,At),c),children:[(0,g.jsxs)(b,{className:E("flex h-14 shrink-0 items-center gap-1 border-b px-2 sm:px-3",Te,At),children:[l&&(0,g.jsx)("a",{href:l,"aria-label":u,title:u,className:wn,children:(0,g.jsx)(ta,{className:"h-5 w-5","aria-hidden":"true"})}),(0,g.jsx)("button",{type:"button",onClick:()=>q(k=>!k),"aria-expanded":U,"aria-label":U?t.hideOutline:t.showOutline,title:U?t.hideOutline:t.showOutline,className:E(wn,"hidden lg:inline-flex"),children:(0,g.jsx)(la,{className:"h-5 w-5","aria-hidden":"true"})}),(0,g.jsx)("p",{className:E("min-w-0 flex-1 truncate px-1 text-sm font-semibold sm:text-base",qe),children:e.title}),_&&!C&&(0,g.jsxs)("div",{className:"flex shrink-0 items-center gap-2 pr-1","aria-label":ge(t.progress,{percent:_.percent}),children:[(0,g.jsx)("div",{className:"hidden h-1.5 w-24 overflow-hidden rounded-full bg-black/5 sm:block dark:bg-white/10",children:(0,g.jsx)("div",{className:"h-full rounded-full",style:{width:`${_.percent}%`,backgroundColor:"var(--brand-color,#18181b)"}})}),(0,g.jsxs)("span",{className:E("text-xs tabular-nums",de),children:[_.percent,"%"]})]})]}),(0,g.jsxs)("div",{className:E("flex min-h-0 flex-1",!d&&"lg:max-h-[80vh]"),children:[U&&(0,g.jsx)(N,{className:E("hidden w-80 shrink-0 flex-col border-r lg:flex",Te,At),children:Yo}),(0,g.jsx)(v,{className:"min-w-0 flex-1 overflow-y-auto",children:(0,g.jsx)("div",{className:E("mx-auto w-full max-w-4xl px-4 py-5 sm:px-6 lg:py-8",d&&"pb-24 lg:pb-8"),children:S?(0,g.jsxs)("div",{className:"space-y-4",children:[Uu&&(0,g.jsxs)("div",{className:E("flex flex-col items-center gap-3 rounded-[var(--site-radius-card,1rem)] border p-6 text-center",Te,At),role:"status",children:[(0,g.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full",style:{backgroundColor:"var(--brand-color,#18181b)",color:"var(--brand-foreground,#ffffff)"},children:(0,g.jsx)(Rn,{className:"h-6 w-6","aria-hidden":"true"})}),(0,g.jsxs)("div",{children:[(0,g.jsx)("p",{className:E("text-lg font-bold",qe),children:t.courseCompletedTitle}),_?.completedAt&&(0,g.jsx)("p",{className:E("mt-1 text-sm",de),children:ge(t.courseCompletedOn,{date:ph(_.completedAt,r,i)})})]}),(0,g.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[Oo?.enabled&&(0,g.jsxs)("button",{type:"button",onClick:()=>{$o()},disabled:Bo,className:Fu,style:{backgroundColor:"var(--brand-color,#18181b)"},children:[(0,g.jsx)(Rn,{className:"h-4 w-4","aria-hidden":"true"})," ",t.certificateDownload]}),l&&u&&(0,g.jsx)("a",{href:l,className:He,children:u}),(0,g.jsx)("button",{type:"button",onClick:()=>qo(!1),className:He,children:t.keepBrowsing})]})]}),!Xo&&Ko,nc,Xo&&Ko,ft&&S&&xe&&(0,g.jsx)(Aa,{labels:t,open:Ir,onToggle:Cn,status:xe.status==="ready"?"ready":"error",data:xe.data,activeIndex:z,onSeek:k=>Z({time:k,nonce:Date.now()}),onLocaleChange:k=>vn(k),onRetry:()=>T(k=>k+1),uiLocale:r??"en",fileName:S.title||J?.fileName||"transcript"}),S.attachments&&S.attachments.length>0&&(0,g.jsxs)("div",{role:"group","aria-label":t.attachments,children:[(0,g.jsx)("h3",{className:E("mb-2 text-sm font-semibold",qe),children:t.attachments}),(0,g.jsx)("ul",{className:E("divide-y rounded-[var(--site-radius-card,0.75rem)] border",Te,At),children:S.attachments.map(k=>(0,g.jsxs)("li",{className:E("flex min-h-14 items-center gap-3 px-3 py-2",Te),children:[(0,g.jsx)(ua,{className:E("h-4 w-4 shrink-0",de),"aria-hidden":"true"}),(0,g.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,g.jsx)("span",{className:E("block break-words text-sm font-medium",qe),children:k.fileName}),k.bytes!=null&&(0,g.jsx)("span",{className:E("block text-xs",de),children:ka(k.bytes,{locale:r??"en"})})]}),(0,g.jsxs)("button",{type:"button",onClick:()=>{Yu(S.id,k.id)},disabled:fe!==null,"aria-label":ge(t.downloadFile,{name:k.fileName}),className:E(He,"shrink-0"),children:[(0,g.jsx)(Bt,{className:E("h-4 w-4",fe===k.id&&"animate-pulse"),"aria-hidden":"true"})," ",(0,g.jsx)("span",{className:"hidden sm:inline",children:t.download})]})]},k.id))}),en&&(0,g.jsx)("p",{role:"alert",className:"mt-2 text-sm text-red-600 dark:text-red-400",children:t.loadError})]}),(0,g.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[S.allowDownload&&S.hasFile&&(0,g.jsxs)("button",{type:"button",onClick:Qu,className:He,children:[(0,g.jsx)(Bt,{className:"h-4 w-4","aria-hidden":"true"})," ",t.download]}),S.embed&&Sn(S.embed)&&(0,g.jsxs)("a",{href:Sn(S.embed).replace("/embed/","/watch?v="),target:"_blank",rel:"noopener noreferrer",className:E("inline-flex min-h-11 items-center gap-1.5 text-sm underline underline-offset-4",de),children:[(0,g.jsx)(aa,{className:"h-4 w-4","aria-hidden":"true"})," ",t.open]}),!C&&Ar==="completed"&&(0,g.jsxs)("span",{className:"inline-flex items-center gap-1 text-sm text-emerald-600 dark:text-emerald-400",children:[(0,g.jsx)(Ot,{className:"h-4 w-4","aria-hidden":"true"})," ",t.completed]})]}),(0,g.jsxs)("div",{className:E("items-center justify-between gap-3 border-t pt-4",Te,d?"hidden lg:flex":"flex"),children:[(0,g.jsxs)("button",{type:"button",onClick:()=>Nr(-1),disabled:!Go,className:He,children:[(0,g.jsx)(Pr,{className:"h-4 w-4","aria-hidden":"true"})," ",t.previousUnit]}),(0,g.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[Zu&&(0,g.jsx)("span",{className:E("text-xs",de),children:t.completeToContinue}),Rr]})]})]}):(0,g.jsx)("div",{className:E("rounded-[var(--site-radius-card,1rem)] border border-dashed p-10 text-center text-sm",Te,de),children:t.noUnits})})})]}),d?(0,g.jsxs)("div",{className:E("fixed inset-x-0 bottom-0 z-30 flex items-center gap-2 border-t px-3 pt-2 pb-[calc(0.5rem+env(safe-area-inset-bottom))] lg:hidden",Te,At),children:[(0,g.jsxs)("button",{type:"button",onClick:()=>ne(!0),"aria-haspopup":"dialog","aria-expanded":te,className:E(He,"shrink-0"),children:[(0,g.jsx)(Mr,{className:"h-4 w-4","aria-hidden":"true"})," ",t.outline]}),(0,g.jsx)("button",{type:"button",onClick:()=>Nr(-1),disabled:!Go,"aria-label":t.previousUnit,title:t.previousUnit,className:E(He,"shrink-0 px-3"),children:(0,g.jsx)(Pr,{className:"h-4 w-4","aria-hidden":"true"})}),Rr?(0,g.jsx)("div",{className:"flex min-w-0 flex-1 justify-end [&>button]:w-full",children:Rr}):(0,g.jsx)("div",{className:"flex-1"})]}):(0,g.jsx)("div",{className:E("flex border-t p-2 lg:hidden",Te),children:(0,g.jsxs)("button",{type:"button",onClick:()=>ne(!0),"aria-haspopup":"dialog","aria-expanded":te,className:E(He,"w-full"),children:[(0,g.jsx)(Mr,{className:"h-4 w-4","aria-hidden":"true"})," ",t.outline]})}),te&&(0,g.jsxs)("div",{className:"fixed inset-0 z-40 lg:hidden",role:"dialog","aria-modal":"true","aria-label":t.outline,children:[(0,g.jsx)("button",{type:"button","aria-label":t.closeOutline,onClick:()=>ne(!1),className:"absolute inset-0 bg-black/40"}),(0,g.jsxs)("div",{className:E("absolute inset-x-0 bottom-0 flex max-h-[85dvh] flex-col rounded-t-2xl pb-[env(safe-area-inset-bottom)]",At),children:[(0,g.jsxs)("div",{className:E("flex shrink-0 items-center justify-between gap-2 border-b px-4 py-2",Te),children:[(0,g.jsx)("p",{className:E("min-w-0 truncate text-sm font-semibold",qe),children:t.outline}),(0,g.jsx)("button",{type:"button",onClick:()=>ne(!1),"aria-label":t.closeOutline,title:t.closeOutline,className:wn,children:(0,g.jsx)(da,{className:"h-5 w-5","aria-hidden":"true"})})]}),Yo]})]})]})}function gh(e,n){let t=new Set(e);return t.has(n)?t.delete(n):t.add(n),[...t]}function xh({body:e,summary:n,answers:t,result:r,busy:i,labels:a,onAnswer:o,onSubmit:s,onRetry:l}){let u=e?.questions??[];if(!e||u.length===0)return(0,g.jsx)("p",{className:"text-sm text-[var(--site-fg-muted,#71717a)]",children:a.quizNotReady});let c=(e.settings.mode??n?.mode??"graded")==="practice",p=r?.reveal?new Map(r.reveal.questions.map(A=>[A.id,A])):null,f=u.every(A=>(t[A.id]??[]).some(M=>M.trim().length>0)),d=c||n?.maxAttempts==null?null:Math.max(0,n.maxAttempts-n.attemptsUsed-(r?1:0)),b=!c&&!r&&!!n?.passed,v=!c&&!r&&!b&&d===0,N="text-[var(--site-fg-muted,#71717a)]",y="border-[var(--site-border,rgba(0,0,0,0.12))]",C="text-[var(--site-fg,#18181b)]",I="min-h-10 rounded-[var(--site-radius-button,0.5rem)] px-3.5 text-sm font-medium text-[var(--brand-foreground,#ffffff)] disabled:opacity-40";return(0,g.jsxs)("div",{className:"space-y-5",children:[c?(0,g.jsx)("p",{className:E("text-xs",N),children:a.quizPracticeHint}):(0,g.jsxs)("p",{className:E("text-xs",N),children:[ge(a.quizPassingScore,{percent:e.settings.passingPercent}),d!==null&&!b&&!r?.passed?` \xB7 ${ge(a.quizAttemptsLeft,{count:d})}`:""]}),b&&(0,g.jsxs)("p",{className:"inline-flex items-center gap-1 text-sm text-emerald-600 dark:text-emerald-400",children:[(0,g.jsx)(Ot,{className:"h-4 w-4"})," ",a.quizPassed,n?.bestScore!=null?` \xB7 ${ge(a.quizScore,{score:n.bestScore})}`:""]}),(0,g.jsx)("ol",{className:"space-y-4",children:u.map((A,M)=>{let x=A.type==="multiple",_=A.type==="short_text"||A.type==="numeric",$=new Set(t[A.id]??[]),B=p?.get(A.id),w=B?new Set(B.correctOptionIds):null,S=r?r.perQuestion[A.id]??null:null,j=!!r||i||b||v;return(0,g.jsxs)("li",{className:E("rounded-[var(--site-radius-media,0.75rem)] border p-4",y),children:[(0,g.jsxs)("p",{className:E("flex items-start gap-2 text-sm font-medium",C),children:[S===!0?(0,g.jsx)(Ot,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600 dark:text-emerald-400","aria-label":a.quizCorrectMark}):S===!1?(0,g.jsx)(ia,{className:"mt-0.5 h-4 w-4 shrink-0 text-red-600 dark:text-red-400","aria-label":a.quizWrongMark}):null,(0,g.jsxs)("span",{children:[M+1,". ",A.prompt,x?(0,g.jsx)("span",{className:E("ml-2 text-xs font-normal",N),children:a.quizSelectAll}):null]})]}),A.image?(0,g.jsx)("img",{src:A.image.url,alt:A.image.alt??"",width:A.image.width??void 0,height:A.image.height??void 0,loading:"lazy",className:"mt-3 max-h-80 w-auto max-w-full rounded-[var(--site-radius-media,0.75rem)]"}):null,_?(0,g.jsxs)("div",{className:"mt-3",children:[(0,g.jsx)(Pn,{type:"text",inputMode:A.type==="numeric"?"decimal":void 0,value:t[A.id]?.[0]??"",disabled:j,maxLength:500,placeholder:A.type==="numeric"?a.quizNumericPlaceholder:a.quizTextPlaceholder,"aria-label":A.prompt,onChange:R=>o(A.id,R.target.value?[R.target.value]:[]),className:E("rounded-lg bg-transparent disabled:cursor-default disabled:opacity-100",y,C,S===!0&&"bg-emerald-50 dark:bg-emerald-950/30",S===!1&&"bg-red-50 dark:bg-red-950/30")}),B&&B.acceptedAnswers&&B.acceptedAnswers.length>0?(0,g.jsx)("p",{className:E("mt-2 text-xs",N),children:ge(a.quizAcceptedAnswers,{answers:B.acceptedAnswers.join(" / ")})}):null]}):(0,g.jsx)("ul",{role:x?"group":"radiogroup","aria-label":A.prompt,className:E("mt-3",A.options.some(R=>R.image)?"grid grid-cols-2 gap-2 sm:grid-cols-3":"space-y-2"),children:A.options.map(R=>{let U=$.has(R.id),q=w?w.has(R.id):null;return(0,g.jsx)("li",{children:(0,g.jsxs)("button",{type:"button",role:x?"checkbox":"radio","aria-checked":U,disabled:j,onClick:()=>o(A.id,x?gh($,R.id):[R.id]),className:E("w-full rounded-lg border text-left text-sm disabled:cursor-default",R.image?"flex h-full flex-col gap-2 p-2":"flex items-start gap-2 px-3 py-2",y,C,U&&"border-[var(--brand-color,#18181b)]",q===!0&&"bg-emerald-50 dark:bg-emerald-950/30",q===!1&&U&&"bg-red-50 dark:bg-red-950/30"),children:[R.image?(0,g.jsx)("img",{src:R.image.url,alt:R.image.alt??"",width:R.image.width??void 0,height:R.image.height??void 0,loading:"lazy",className:"block max-h-48 w-full rounded-md object-contain"}):null,(0,g.jsxs)("span",{className:E("flex items-start gap-2",R.image?"px-1 pb-1":"contents"),children:[(0,g.jsx)("span",{"aria-hidden":!0,className:E("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center border",x?"rounded":"rounded-full",U?"border-[var(--brand-color,#18181b)] bg-[var(--brand-color,#18181b)] text-[var(--brand-foreground,#ffffff)]":"border-[var(--site-border,rgba(0,0,0,0.3))]"),children:U?(0,g.jsx)(na,{className:"h-3 w-3"}):null}),(0,g.jsx)("span",{className:"min-w-0",children:R.text})]})]})},R.id)})}),B?.explanation?(0,g.jsx)("p",{className:E("mt-2 text-xs",N),children:B.explanation}):null]},A.id)})}),r?(0,g.jsx)("div",{className:E("rounded-[var(--site-radius-media,0.75rem)] border p-4 text-sm",y),children:c?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("p",{className:E("font-medium",C),children:ge(a.quizCorrectCount,{correct:r.correct,total:r.total})}),(0,g.jsx)("button",{type:"button",onClick:l,className:E("mt-3",I),style:{backgroundColor:"var(--brand-color,#18181b)"},children:a.quizPracticeAgain})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("p",{className:E("font-medium",r.passed?"text-emerald-600 dark:text-emerald-400":C),children:[ge(a.quizScore,{score:r.score})," \xB7 ",r.passed?a.quizPassed:ge(a.quizFailed,{percent:e.settings.passingPercent}),(0,g.jsx)("span",{className:E("ml-2 text-xs font-normal",N),children:ge(a.quizCorrectCount,{correct:r.correct,total:r.total})})]}),!r.passed&&(r.canRetry?(0,g.jsx)("button",{type:"button",onClick:l,className:E("mt-3",I),style:{backgroundColor:"var(--brand-color,#18181b)"},children:a.quizRetry}):(0,g.jsx)("p",{className:E("mt-2 text-xs",N),children:a.quizNoAttempts}))]})}):v?(0,g.jsx)("p",{className:E("text-sm",N),children:a.quizNoAttempts}):b?null:(0,g.jsx)("button",{type:"button",onClick:s,disabled:!f||i,className:I,style:{backgroundColor:"var(--brand-color,#18181b)"},children:a.quizSubmit})]})}export{hh as DeliverablePlayer,ac as deliverablePlayerLabels};
|
|
131
|
+
//# sourceMappingURL=deliverables-EOIAZFWB.js.map
|