@malloy-publisher/server 0.0.89 → 0.0.91
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/build.ts +9 -0
- package/dist/app/api-doc.yaml +3 -0
- package/dist/app/assets/index-CwH8v8Pf.js +251 -0
- package/dist/app/assets/{index-TslDWlxH.js → index-DJPvt7yu.js} +1 -1
- package/dist/app/assets/index.es139-nr8meTUp.js +1 -0
- package/dist/app/assets/index.es140-f9ybcYUt.js +1 -0
- package/dist/app/assets/index.es143-BrmH4hWW.js +1 -0
- package/dist/app/assets/index.es148-KJPSzIi5.js +1 -0
- package/dist/app/assets/index.es156-AslbYSUk.js +1 -0
- package/dist/app/assets/index.es157-CGx9vJCM.js +1 -0
- package/dist/app/assets/index.es160-B4514fRp.js +1 -0
- package/dist/app/assets/index.es164-BdfNgGb4.js +1 -0
- package/dist/app/assets/index.es167-Cytvwvs5.js +1 -0
- package/dist/app/assets/index.es170-BF0Mj3Dj.js +1 -0
- package/dist/app/assets/index.es171-bDBK09mk.js +1 -0
- package/dist/app/assets/index.es185-BECCJjWR.js +1 -0
- package/dist/app/assets/index.es186-DORBN8KQ.js +1 -0
- package/dist/app/assets/index.es187-C1QXB69O.js +1 -0
- package/dist/app/assets/index.es189-BxZOchW8.js +1 -0
- package/dist/app/assets/index.es194-AsRZMTWT.js +1 -0
- package/dist/app/assets/index.es196-x3jX2idz.js +1 -0
- package/dist/app/assets/index.es197-Dtz8tRxv.js +1 -0
- package/dist/app/assets/index.es202-BMtZpqF-.js +1 -0
- package/dist/app/assets/index.es203-gWIQWffw.js +1 -0
- package/dist/app/assets/index.es205-D7Lk4BX7.js +1 -0
- package/dist/app/assets/index.es206-BiJF4jj3.js +1 -0
- package/dist/app/assets/index.es207-B-UJ_bzC.js +1 -0
- package/dist/app/assets/index.es210-Cuht9bXE.js +1 -0
- package/dist/app/assets/index.es212-OHX8E5rN.js +1 -0
- package/dist/app/assets/index.es213-ZuPzTQ_g.js +1 -0
- package/dist/app/assets/index.es214-D803Db5p.js +1 -0
- package/dist/app/assets/index.es220-7QoCPP2j.js +1 -0
- package/dist/app/assets/index.es221-XNqXVFFm.js +1 -0
- package/dist/app/assets/index.es222-Cdb4luVg.js +1 -0
- package/dist/app/assets/index.es223-CORMGf1M.js +1 -0
- package/dist/app/assets/index.es225-Cq-kOlxp.js +1 -0
- package/dist/app/assets/index.es229-E5IGXk-q.js +1 -0
- package/dist/app/assets/index.es230-Fc3aBcCM.js +1 -0
- package/dist/app/assets/index.es238-PSs3scPq.js +1 -0
- package/dist/app/assets/{latex-LfGCYGw5-BH0TQ0ei.js → index.es241-CL-_GK9e.js} +1 -1
- package/dist/app/assets/index.es244-DKPCX9xC.js +1 -0
- package/dist/app/assets/index.es247-BSAYNLHy.js +1 -0
- package/dist/app/assets/index.es251--0-h5QiV.js +1 -0
- package/dist/app/assets/index.es253-BEn9NcoZ.js +1 -0
- package/dist/app/assets/{nginx-Can2eAjw-CdY2tLiv.js → index.es261-MjZ_rv4c.js} +1 -1
- package/dist/app/assets/index.es262-HBJu6fHJ.js +1 -0
- package/dist/app/assets/index.es269-DLa2GgqN.js +1 -0
- package/dist/app/assets/index.es270-CalwIzIq.js +1 -0
- package/dist/app/assets/index.es280-BmnnGhn2.js +1 -0
- package/dist/app/assets/index.es284-C2YEYS8h.js +1 -0
- package/dist/app/assets/index.es290-BHjEYaA_.js +1 -0
- package/dist/app/assets/index.es295-CLE8Egbz.js +1 -0
- package/dist/app/assets/index.es296-Bsq8yJGD.js +1 -0
- package/dist/app/assets/index.es298-CTsw_aX6.js +1 -0
- package/dist/app/assets/index.es302-BgJs_s58.js +1 -0
- package/dist/app/assets/index.es304-Y67tbm3o.js +1 -0
- package/dist/app/assets/index.es306-Dsx0880i.js +1 -0
- package/dist/app/assets/index.es309-COa7lSGF.js +1 -0
- package/dist/app/assets/index.es310-C11TmHug.js +1 -0
- package/dist/app/assets/index.es314-BExIez_V.js +1 -0
- package/dist/app/assets/index.es316-DFqBRZWD.js +1 -0
- package/dist/app/assets/index.es323-BClNDw1H.js +1 -0
- package/dist/app/assets/index.es325-f5hVUVjI.js +1 -0
- package/dist/app/assets/index.es327-DsTyRd6E.js +1 -0
- package/dist/app/assets/index.es331-BLhdwz0E.js +1 -0
- package/dist/app/assets/index.es341-oDRBDM86.js +1 -0
- package/dist/app/assets/index.es342-DialnTnH.js +1 -0
- package/dist/app/assets/index.es349-DrBCM5L2.js +1 -0
- package/dist/app/assets/index.es350-B1R-_5vW.js +1 -0
- package/dist/app/assets/{RenderedResult-BAZuT25g-QakVAbYy.js → index.es50-Dwe0S21o.js} +1 -1
- package/dist/app/assets/{mui-BEbinrI-.js → mui-Bcj8oDBR.js} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/server.js +15 -8
- package/package.json +1 -1
- package/src/server.ts +6 -2
- package/src/service/db_utils.ts +16 -9
- package/src/service/project.ts +1 -1
- package/src/service/project_store.ts +6 -3
- package/dist/app/assets/angular-html-0fTdLuKf-C_Z-qPys.js +0 -1
- package/dist/app/assets/angular-ts-wkniW60G-CLxf_aqD.js +0 -1
- package/dist/app/assets/apl-TLDHFJX6-4Ja2pao0.js +0 -1
- package/dist/app/assets/astro-Uf8_VxKJ-CLNq6E27.js +0 -1
- package/dist/app/assets/blade-BtR00Gx0-BH_u9bLw.js +0 -1
- package/dist/app/assets/bsl-BIXPNqL4-B7NuXuWJ.js +0 -1
- package/dist/app/assets/cairo-tXZKA2PT-BLBT-6ii.js +0 -1
- package/dist/app/assets/cobol-DMssKNmC-B2fukI-w.js +0 -1
- package/dist/app/assets/coffee-D_GzM8k1-4lliG68M.js +0 -1
- package/dist/app/assets/cpp-CJF2i3ah-pZOsOWe_.js +0 -1
- package/dist/app/assets/crystal-BKWnaU3g-DLUiimt9.js +0 -1
- package/dist/app/assets/edge-CgxR-qhM-C4-j-4jN.js +0 -1
- package/dist/app/assets/elixir-DZkeSPwW-CcKXTVRL.js +0 -1
- package/dist/app/assets/elm-BKuV1HE1-DhehEoOI.js +0 -1
- package/dist/app/assets/erb-BLwkpXUJ-ChmaBI6f.js +0 -1
- package/dist/app/assets/fortran-fixed-form-s9Hnb3av-DpX1AVnn.js +0 -1
- package/dist/app/assets/fsharp-Cv0x43wb-Dg8cqrY9.js +0 -1
- package/dist/app/assets/gdresource-CMcKXvgJ-CWt23EK3.js +0 -1
- package/dist/app/assets/git-commit-BspYIY3P-n1pa9hpQ.js +0 -1
- package/dist/app/assets/git-rebase--zLBTjUa-D_BU2XLr.js +0 -1
- package/dist/app/assets/glimmer-js-DhY9umHJ-VrvmblrN.js +0 -1
- package/dist/app/assets/glimmer-ts-CCrHcYH5-JtH9P_df.js +0 -1
- package/dist/app/assets/glsl-XLGYNq5B-BsoackK0.js +0 -1
- package/dist/app/assets/graphql-DWpQF4JI-Bg_kbUNo.js +0 -1
- package/dist/app/assets/hack-CQrV-ytR-DsU69WFl.js +0 -1
- package/dist/app/assets/haml-CMN0hQaL-P2mc1-Uz.js +0 -1
- package/dist/app/assets/handlebars-Cc-7fXX5-1wmMMko9.js +0 -1
- package/dist/app/assets/html-B0P_v3yU-5FUQOWqS.js +0 -1
- package/dist/app/assets/html-derivative-D59SHfh8-CSkG6UyS.js +0 -1
- package/dist/app/assets/http-Dcjm_K1m-BIoBBtFi.js +0 -1
- package/dist/app/assets/hxml-BNKImryz-C86vEiUs.js +0 -1
- package/dist/app/assets/imba-Drd0AMDo-ClNo5Aft.js +0 -1
- package/dist/app/assets/index-DZMePHJ5.js +0 -251
- package/dist/app/assets/jinja-CCSYduCH-DYrHgqe4.js +0 -1
- package/dist/app/assets/jison-BygvlveW-CnxAXEK_.js +0 -1
- package/dist/app/assets/julia-CiahampL-V7UYV-sq.js +0 -1
- package/dist/app/assets/liquid-CvufO3kO-CDc-Ahzk.js +0 -1
- package/dist/app/assets/lua-BVfhNLDr-CWJMHgTQ.js +0 -1
- package/dist/app/assets/marko-CHlMS8w5-BMD3FaEa.js +0 -1
- package/dist/app/assets/mdc-4K6B6lHG-BAGHtNo-.js +0 -1
- package/dist/app/assets/nim-B3r2RtQZ-VfCbv_TB.js +0 -1
- package/dist/app/assets/perl-DaMQyPwp-C4BFOiY3.js +0 -1
- package/dist/app/assets/php-BL3EfPBi-BMN5eA9q.js +0 -1
- package/dist/app/assets/pug-HKe4Luo3-BjTLA0bL.js +0 -1
- package/dist/app/assets/qml-FlMIyjU9-DSnJ_WBo.js +0 -1
- package/dist/app/assets/razor-CeqqNtyB-CTLKKD1r.js +0 -1
- package/dist/app/assets/rst-C3D6-dqL-DnZbUBhI.js +0 -1
- package/dist/app/assets/ruby-DcPLUUK3-ComHSJZD.js +0 -1
- package/dist/app/assets/sas-tDSYjXcL-BoaRjvJ1.js +0 -1
- package/dist/app/assets/scss-DhHc4lxB-DOVe6m7U.js +0 -1
- package/dist/app/assets/shaderlab-CvqEIoL0-D4Zbm5h2.js +0 -1
- package/dist/app/assets/shellsession-8OLo3sB6-BcsC7Rtk.js +0 -1
- package/dist/app/assets/soy-EwHMOVPj-g2bfMTqc.js +0 -1
- package/dist/app/assets/sparql-DhuelBut-DSDXMn9h.js +0 -1
- package/dist/app/assets/stata-Dok6hMw0-Dx5Z5W33.js +0 -1
- package/dist/app/assets/svelte-01qw6Rxm-BPq1Epw_.js +0 -1
- package/dist/app/assets/templ-Hmy8U0DD-bZJvPZVc.js +0 -1
- package/dist/app/assets/tex-mHs7a43s-GNY7iZwJ.js +0 -1
- package/dist/app/assets/ts-tags-DYZ4SGcN-DHCrqCAy.js +0 -1
- package/dist/app/assets/twig-BmytkGQV-gxvDbPvi.js +0 -1
- package/dist/app/assets/vue-Bl1uVNsA-B0HO5ROf.js +0 -1
- package/dist/app/assets/vue-html-DHr5wjBG-BZddcMPi.js +0 -1
- package/dist/app/assets/xml-ChBsf5uy-CRY5u_dA.js +0 -1
- package/dist/app/assets/xsl-BefjlXrd-kO2fudRX.js +0 -1
- /package/dist/app/assets/{wasm-DQxwEHae-CG6Dc4jp.js → index.es128-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{abap-BmBUA35e-DsBKuouk.js → index.es136-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{actionscript-3-zFUbzQa9-D_z4Izcz.js → index.es137-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{ada-CBvPkFpZ-727ZlQH0.js → index.es138-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{apache-CVNlsSDc-Dn00JSTd.js → index.es141-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{apex-DFk3KRB1-COJ4H7py.js → index.es142-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{applescript-CYMR_y0g-Bu5BbsvL.js → index.es144-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{ara-4QmU5e04-7O62HKoU.js → index.es145-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{asciidoc-v_1bjgUg-BPT9niGB.js → index.es146-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{asm-RC0Yh-NZ-Dhn9LcZ4.js → index.es147-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{awk-gPH8MVMW-eg146-Ew.js → index.es149-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{ballerina-kvLnRU_e-Du268qiB.js → index.es150-Du268qiB.js} +0 -0
- /package/dist/app/assets/{bat-BHYy44sT-fje9CFhw.js → index.es151-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{beancount-D-MADTs_-BwXTMy5W.js → index.es152-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{berry-Ci9U0o4h-3xVqZejG.js → index.es153-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{bibtex-CX618D15-xW4inM5L.js → index.es154-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{bicep-iuYiPopT-DHo0CJ0O.js → index.es155-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{c-DASdrs7p-C3t2pwGQ.js → index.es158-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{cadence-BDALQi26-DNquZEk8.js → index.es159-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{clarity-CNgV2Ths-BHOwM8T6.js → index.es161-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{clojure-CsKKFGwv-DxSadP1t.js → index.es162-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{cmake-Dr-A3iJx-DbXoA79R.js → index.es163-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{codeowners-Bt9yU6NX-Bp6g37R7.js → index.es165-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{codeql-DBNTqJi1-sacFqUAJ.js → index.es166-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{common-lisp-r7ZEOG7T-C7gG9l05.js → index.es168-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{coq-CB6Pv_W9-Dsg_Bt_b.js → index.es169-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{csharp-CYWRhZ2R-D9R-vmeu.js → index.es172-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{css-D1aVdRIU-BPhBrDlE.js → index.es173-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{csv-DvCncUGQ-C-TU5hQ_.js → index.es174-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{cue-BXMrmvay-DtFQj3wx.js → index.es175-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{cypher-DTm5zNR1-m2LEI-9-.js → index.es176-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{d-D6ZXmn3l-BoXegm-a.js → index.es177-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{dart-Dz59Is3F-B9wLZaAG.js → index.es178-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{dax-DTVGzydb-ClGRhx96.js → index.es179-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{desktop-Db9vb-dl-DEIpsLCJ.js → index.es180-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{diff-XmNrvgM1-BgYniUM_.js → index.es181-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{docker-DWH2onkn-COcR7UxN.js → index.es182-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{dotenv-4337wvzu-BjQB5zDj.js → index.es183-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{dream-maker-CvvfrJSx-C-nORZOA.js → index.es184-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{emacs-lisp-BAefI874-BX77sIaO.js → index.es188-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{erlang-CmIiwF3I-B-DoSBHF.js → index.es190-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{fennel-DNqkz9pE-bCA53EVm.js → index.es191-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{fish-DIm72t2T-w-ucz2PV.js → index.es192-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{fluent-BapTxJsC-Dayu4EKP.js → index.es193-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{fortran-free-form-CNDsBFUj-DKXYxT9g.js → index.es195-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{gdscript-D7aheHm--DfxzS6Rs.js → index.es198-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{gdshader-BGJEsM2Z-SKMF96pI.js → index.es199-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{genie-C9gPjc6J-ajMbGru0.js → index.es200-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{gherkin-bka1Exbx--30QC5Em.js → index.es201--30QC5Em.js} +0 -0
- /package/dist/app/assets/{gleam-B4k9YFGD-B430Bg39.js → index.es204-B430Bg39.js} +0 -0
- /package/dist/app/assets/{gnuplot-DnWoRZt--CM8KxXT1.js → index.es208-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{go-BErP6iv1-B1SYOhNW.js → index.es209-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{groovy-IWs5-NIO-DkBy-JyN.js → index.es211-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{haskell-CtlGos0K-BILxekzW.js → index.es215-BILxekzW.js} +0 -0
- /package/dist/app/assets/{haxe-CZZ33vZw-C5wWYbrZ.js → index.es216-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{hcl-6hOg9WP4-HzYwdGDm.js → index.es217-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{hjson-CgwED-oz-T-Tgc4AT.js → index.es218-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{hlsl-3-lv4gi7-ifBTmRxC.js → index.es219-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{hy-C2xHhR6I-BMj5Y0dO.js → index.es224-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{ini-BUcvsX-U-BjABl1g7.js → index.es226-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{java-B7odJ7Ap-xI-RfyKK.js → index.es227-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{javascript-fa8UlHZE-ySlJ1b_l.js → index.es228-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{json-71t8ZF9g-BQoSv7ci.js → index.es231-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{json5-Z7F6rA6a-w8dY5SsB.js → index.es232-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{jsonc-Dphhs4m2-TU54ms6u.js → index.es233-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{jsonl-D9jj92Gg-DREVFZK8.js → index.es234-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{jsonnet-DEQ7IUoJ-BfivnA6A.js → index.es235-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{jssm-j74e88UX-P4WzXJd0.js → index.es236-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{jsx-Bkesy5tT-BAng5TT0.js → index.es237-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{kotlin-DCgZY7Ii-B5lbUyaz.js → index.es239-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{kusto-Cw029H-v-mebxcVVE.js → index.es240-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{lean-CYSet4vs-XBlWyCtg.js → index.es242-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{less-DQA4v-Nm-BfCpw3nA.js → index.es243-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{log-D2eRfqDn-Cc5clBb7.js → index.es245-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{logo-QEAtGWZ9-IuBKFhSY.js → index.es246-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{luau-BjYGiqID-Du5NY7AG.js → index.es248-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{make-BjuHP00g-Bvotw-X0.js → index.es249-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{markdown-B6guhLWd-UIAJJxZW.js → index.es250-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{matlab-BpQlIJiw-D9-PGadD.js → index.es252-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{mdx-DIoECIFU-sdHcTMYB.js → index.es254-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{mermaid-BZ7WHNIe-Ci6OQyBP.js → index.es255-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{mipsasm-DusDYkFc-BC5c_5Pe.js → index.es256-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{mojo-CY9jaezJ-Tz6hzZYG.js → index.es257-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{move-ChphFumd-DB_GagMm.js → index.es258-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{narrat-Dz4d7OmN-DLbgOhZU.js → index.es259-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{nextflow-DW0Yq9a2-B0XVJmRM.js → index.es260-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{nix-Cg5uV_xg-shcSOmrb.js → index.es263-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{nushell-BfRnzRWn-D4Tzg5kh.js → index.es264-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{objective-c-BGg9R27G-Deuh7S70.js → index.es265-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{objective-cpp-CJ3y3V_5-BUEGK8hf.js → index.es266-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{ocaml-BZLsfx_o-BNioltXt.js → index.es267-BNioltXt.js} +0 -0
- /package/dist/app/assets/{pascal-l2bqd7Dz-JqZropPD.js → index.es268-JqZropPD.js} +0 -0
- /package/dist/app/assets/{plsql-oVq_K_wH-LKU2TuZ1.js → index.es271-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{po-5jaeIyVd-BFLt1xDp.js → index.es272-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{polar-wcLp8ci7-DKykz6zU.js → index.es273-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{postcss-BZ3MNRIJ-B3ZDOciz.js → index.es274-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{powerquery-CgRa2XRw-CSHBycmS.js → index.es275-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{powershell-Diwyv8Eh-BIEUsx6d.js → index.es276-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{prisma-COL_v1x4-B48N-Iqd.js → index.es277-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{prolog-CuvJOxqT-BY-TUvya.js → index.es278-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{proto-o9HLmF90-zocC4JxJ.js → index.es279-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{puppet-wpGOnQp5-Cza_XSSt.js → index.es281-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{purescript-B_1NgE2N-Bg-kzb6g.js → index.es282-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{python-xYxLFJY--DhUJRlN_.js → index.es283-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{qmldir-BInDYbpo-C8lEn-DE.js → index.es285-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{qss-D-h4NdUG-DhMKtDLN.js → index.es286-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{r-F-9I-ITZ-CwjWoCRV.js → index.es287-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{racket-BoD1TBFT-CzouJOBO.js → index.es288-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{raku-IaYcw19m-B1bQXN8T.js → index.es289-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{reg-CMUdAgIP-5LuOXUq_.js → index.es291-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{regexp-GiFkbxS--DWJ3fJO_.js → index.es292-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{rel-BaRn3QX7-DJlmqQ1C.js → index.es293-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{riscv-B9V3SsvW-QhoSD0DR.js → index.es294-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{rust-Pc7DCsZD-Be6lgOlo.js → index.es297-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{sass-iCyS6eP9-BJ4Li9vH.js → index.es299-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{scala-Cly-fENF-DQVVAn-B.js → index.es300-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{scheme-Zi24oEYu-BJGe-b2p.js → index.es301-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{sdbl-BBamrXFL-BLhTXw86.js → index.es303-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{shellscript-Dn0-btNd-atvbtKCR.js → index.es305-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{smalltalk-Cns31tKw-DkLiglaE.js → index.es307-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{solidity-BG_k8fA_-C1w2a3ep.js → index.es308-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{splunk-CTqDjQdo-Cf8iN4DR.js → index.es311-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{sql-DCkt643--COK4E0Yg.js → index.es312-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{ssh-config-DHHGll-v-BknIz3MU.js → index.es313-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{stylus-n_9f0QQ5-BeQkCIfX.js → index.es315-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{swift-BAWqNR8A-BSxZ-RaX.js → index.es317-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{system-verilog-Cui-g-ut-C7L56vO4.js → index.es318-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{systemd-CsKYQIQK-CUnW07Te.js → index.es319-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{talonscript-D2dGh8FO-C1XDQQGZ.js → index.es320-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{tasl-D3W8HMV6-CQjiPCtT.js → index.es321-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{tcl-2y0Fuc4S-DQ1-QYvQ.js → index.es322-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{terraform-BGW6Oerf-BbSNqyBO.js → index.es324-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{toml-CQSfOn0e-CB2ApiWb.js → index.es326-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{tsv-BtvSkaG0-B_m7g4N7.js → index.es328-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{tsx-DiGsgWT8-B6W0miNI.js → index.es329-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{turtle-BJ2wmjPc-BMR_PYu6.js → index.es330-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{typescript-buWNZFwO-Dj6nwHGl.js → index.es332-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{typespec-bLbdsxJL-BpWG_bgh.js → index.es333-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{typst-Y9_SmXTs-BVUVsWT6.js → index.es334-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{v-wa8Orrdd-CAQ2eGtk.js → index.es335-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{vala-DRdriFr_-BFOHcciG.js → index.es336-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{vb-E2_-jk4M-CdO5JTpU.js → index.es337-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{verilog-B1iBoR5_-CJaU5se_.js → index.es338-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{vhdl-CRVaAhXk-DYoNaHQp.js → index.es339-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{viml-B-zWOd7Z-m4uW47V2.js → index.es340-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{vyper-DWutKXpa-nyqBNV6O.js → index.es343-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{wasm-Bv5f0gKv-C6j12Q_x.js → index.es344-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{wenyan-BMYnfus1-7A4Fjokl.js → index.es345-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{wgsl-DnPoPGDU-CB0Krxn9.js → index.es346-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{wikitext-CntM04PE-DCE3LsBG.js → index.es347-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{wolfram-Ws5qPlX9-C3FkfJm5.js → index.es348-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{yaml-Bbg74JKr-CVw76BM1.js → index.es351-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{zenscript-C0RKE4nU-HnGAYVZD.js → index.es352-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{zig-D6SXBGNm-BVz_zdnA.js → index.es353-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{andromeeda-uXNdzNpk-C3khCPGq.js → index.es354-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{aurora-x-BwoVEUWZ-D-2ljcwZ.js → index.es355-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{ayu-dark-CxPZkpb2-Cv9koXgw.js → index.es356-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{catppuccin-frappe-BrTOiad2-CD_QflpE.js → index.es357-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{catppuccin-latte-D-dc_R4m-DRW-0cLl.js → index.es358-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{catppuccin-macchiato-DN4jOp0G-C-_shW-Y.js → index.es359-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{catppuccin-mocha-B8yCE3-3-LGGdnPYs.js → index.es360-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{dark-plus-pUHDTVV0-C3mMm8J8.js → index.es361-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{dracula-BtZx2Kac-BzJJZx-M.js → index.es362-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{dracula-soft-BKa-aqBv-BXkSAIEj.js → index.es363-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{everforest-dark-DMCBqXCK-BgDCqdQA.js → index.es364-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{everforest-light-BbXl82Em-C8M2exoo.js → index.es365-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{github-dark-DenFmJkN-DHJKELXO.js → index.es366-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{github-dark-default-BJPUVz4H-Cuk6v7N8.js → index.es367-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{github-dark-dimmed-DUshB20C-DH5Ifo-i.js → index.es368-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js → index.es369-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{github-light-JYsPkUQd-DAi9KRSo.js → index.es370-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{github-light-default-D99KPAby-D7oLnXFd.js → index.es371-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js → index.es372-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{houston-BDYrDoDW-DnULxvSX.js → index.es373-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{kanagawa-dragon-CiKur4Hl-CkXjmgJE.js → index.es374-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{kanagawa-lotus-BKu-smKu-CfQXZHmo.js → index.es375-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{kanagawa-wave-CQwozSzG-DWedfzmr.js → index.es376-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{laserwave-6a00oqik-DUszq2jm.js → index.es377-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{light-plus-CZuVqSLX-B7mTdjB0.js → index.es378-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{material-theme-D6KBX41T-D5KoaKCx.js → index.es379-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{material-theme-darker-CkRroheE-BfHTSMKl.js → index.es380-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{material-theme-lighter-BUBw43Yz-B0m2ddpp.js → index.es381-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{material-theme-ocean-ClGX14Ja-CyktbL80.js → index.es382-CyktbL80.js} +0 -0
- /package/dist/app/assets/{material-theme-palenight-C1RVm8K1-Csfq5Kiy.js → index.es383-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{min-dark-C7ak0t6c-CafNBF8u.js → index.es384-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{min-light-CKFxVcPp-CTRr51gU.js → index.es385-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{monokai-C1KBYcO0-D4h5O-jR.js → index.es386-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{night-owl-Bm2rzalh-C39BiMTA.js → index.es387-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{nord-CC5OiUXg-Ddv68eIx.js → index.es388-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{one-dark-pro-D7-kP8fv-GBQ2dnAY.js → index.es389-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{one-light-D9sNaUtq-PoHY5YXO.js → index.es390-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{plastic-CSTz3KZp-3e1v2bzS.js → index.es391-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{poimandres-C-VADXHD-CS3Unz2-.js → index.es392-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{red-7y8PH7HH-bN70gL4F.js → index.es393-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{rose-pine-DhT-HZE9-CmCqftbK.js → index.es394-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{rose-pine-dawn-DiCjL2i4-Ds-gbosJ.js → index.es395-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{rose-pine-moon-BNmGHlcn-CjDtw9vr.js → index.es396-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{slack-dark-i7wN4OET-BthQWCQV.js → index.es397-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{slack-ochin-ndHf0LoP-DqwNpetd.js → index.es398-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{snazzy-light-BlSJXAu4-Bw305WKR.js → index.es399-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{solarized-dark-UTmkh7lw-DXbdFlpD.js → index.es400-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{solarized-light-BheCkDPT-L9t79GZl.js → index.es401-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{synthwave-84-NU3C_KFZ-CbfX1IO0.js → index.es402-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{tokyo-night-LhP3hHhi-DBQeEorK.js → index.es403-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{vesper-CJsaOsSM-BEBZ7ncR.js → index.es404-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{vitesse-black-BoGvW84i-Bkuqu6BP.js → index.es405-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{vitesse-dark-Cym-eLtO-D0r3Knsf.js → index.es406-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{vitesse-light-CcmG315c-CVO1_9PV.js → index.es407-CVO1_9PV.js} +0 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es139-nr8meTUp.js","assets/index.es220-7QoCPP2j.js","assets/index.es228-ySlJ1b_l.js","assets/index.es173-BPhBrDlE.js","assets/index.es140-f9ybcYUt.js","assets/index.es302-BgJs_s58.js","assets/index.es143-BrmH4hWW.js","assets/index.es349-DrBCM5L2.js","assets/index.es227-xI-RfyKK.js","assets/index.es231-BQoSv7ci.js","assets/index.es148-KJPSzIi5.js","assets/index.es332-Dj6nwHGl.js","assets/index.es274-B3ZDOciz.js","assets/index.es156-AslbYSUk.js","assets/index.es312-COK4E0Yg.js","assets/index.es157-CGx9vJCM.js","assets/index.es303-BLhTXw86.js","assets/index.es160-B4514fRp.js","assets/index.es283-DhUJRlN_.js","assets/index.es164-BdfNgGb4.js","assets/index.es167-Cytvwvs5.js","assets/index.es170-BF0Mj3Dj.js","assets/index.es292-DWJ3fJO_.js","assets/index.es207-B-UJ_bzC.js","assets/index.es158-C3t2pwGQ.js","assets/index.es171-bDBK09mk.js","assets/index.es305-atvbtKCR.js","assets/index.es185-BECCJjWR.js","assets/index.es221-XNqXVFFm.js","assets/index.es186-DORBN8KQ.js","assets/index.es187-C1QXB69O.js","assets/index.es189-BxZOchW8.js","assets/index.es296-Bsq8yJGD.js","assets/index.es213-ZuPzTQ_g.js","assets/index.es210-Cuht9bXE.js","assets/index.es237-BAng5TT0.js","assets/index.es329-B6W0miNI.js","assets/index.es247-BSAYNLHy.js","assets/index.es351-CVw76BM1.js","assets/index.es194-AsRZMTWT.js","assets/index.es195-DKXYxT9g.js","assets/index.es196-x3jX2idz.js","assets/index.es250-UIAJJxZW.js","assets/index.es197-Dtz8tRxv.js","assets/index.es199-SKMF96pI.js","assets/index.es198-DfxzS6Rs.js","assets/index.es202-BMtZpqF-.js","assets/index.es181-BgYniUM_.js","assets/index.es203-gWIQWffw.js","assets/index.es205-D7Lk4BX7.js","assets/index.es206-BiJF4jj3.js","assets/index.es212-OHX8E5rN.js","assets/index.es214-D803Db5p.js","assets/index.es222-Cdb4luVg.js","assets/index.es223-CORMGf1M.js","assets/index.es216-C5wWYbrZ.js","assets/index.es225-Cq-kOlxp.js","assets/index.es229-E5IGXk-q.js","assets/index.es230-Fc3aBcCM.js","assets/index.es238-PSs3scPq.js","assets/index.es287-CwjWoCRV.js","assets/index.es241-CL-_GK9e.js","assets/index.es325-f5hVUVjI.js","assets/index.es244-DKPCX9xC.js","assets/index.es251--0-h5QiV.js","assets/index.es243-BfCpw3nA.js","assets/index.es253-BEn9NcoZ.js","assets/index.es261-MjZ_rv4c.js","assets/index.es262-HBJu6fHJ.js","assets/index.es269-DLa2GgqN.js","assets/index.es270-CalwIzIq.js","assets/index.es280-BmnnGhn2.js","assets/index.es284-C2YEYS8h.js","assets/index.es290-BHjEYaA_.js","assets/index.es172-D9R-vmeu.js","assets/index.es295-CLE8Egbz.js","assets/index.es163-DbXoA79R.js","assets/index.es298-CTsw_aX6.js","assets/index.es304-Y67tbm3o.js","assets/index.es219-ifBTmRxC.js","assets/index.es306-Dsx0880i.js","assets/index.es309-COa7lSGF.js","assets/index.es310-C11TmHug.js","assets/index.es330-BMR_PYu6.js","assets/index.es314-BExIez_V.js","assets/index.es316-DFqBRZWD.js","assets/index.es323-BClNDw1H.js","assets/index.es209-B1SYOhNW.js","assets/index.es327-DsTyRd6E.js","assets/index.es331-BLhdwz0E.js","assets/index.es341-oDRBDM86.js","assets/index.es342-DialnTnH.js","assets/index.es350-B1R-_5vW.js","assets/index-DJPvt7yu.js","assets/mui-Bcj8oDBR.js","assets/vendor-c5ypKtDW.js","assets/index-Bq29VQqL.js","assets/index.umd-BN4_E5KD.js","assets/index.es50-Dwe0S21o.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as N,a as U2,u as a4,c as i4,b as o4,s as s4,j as E,d as Po,C as $l,e as Fl,f as l4,T as Ie,B as it,g as c4,h as H2,i as rr,R as Ne,S as Px,I as An,k as u4,F as d4,D as Zn,L as Gp,l as jl,m as Ui,G as gn,P as Mh,n as f4,o as h4,p as z2,q as Sn,t as hb,v as id,w as op,x as ai,y as Ht,z as od,A as Kl,E as Xl,H as Zl,J as p4,K as ph,M as pb,N as ji,O as m4,Q as g4,U as It,V as Vp,W as Hi,X as G2,Y as ty,Z as vs,_ as mb,$ as Ts,a0 as y4,a1 as b4,a2 as gb,a3 as E4,a4 as v4,a5 as $x,a6 as T4,a7 as _4,a8 as x4,a9 as A4,aa as S4,ab as C4,ac as D4,ad as k4,ae as R4,af as w4,ag as I4,ah as N4}from"./mui-Bcj8oDBR.js";import{r as O4,a as L4}from"./vendor-c5ypKtDW.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var z0={exports:{}},hu={},G0={exports:{}},V0={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* scheduler.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Fx;function M4(){return Fx||(Fx=1,function(e){function t(G,le){var se=G.length;G.push(le);e:for(;0<se;){var ye=se-1>>>1,P=G[ye];if(0<a(P,le))G[ye]=le,G[se]=P,se=ye;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var le=G[0],se=G.pop();if(se!==le){G[0]=se;e:for(var ye=0,P=G.length,Le=P>>>1;ye<Le;){var ce=2*(ye+1)-1,I=G[ce],te=ce+1,Ce=G[te];if(0>a(I,se))te<P&&0>a(Ce,I)?(G[ye]=Ce,G[te]=se,ye=te):(G[ye]=I,G[ce]=se,ye=ce);else if(te<P&&0>a(Ce,se))G[ye]=Ce,G[te]=se,ye=te;else break e}}return le}function a(G,le){var se=G.sortIndex-le.sortIndex;return se!==0?se:G.id-le.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,m=null,b=3,y=!1,T=!1,A=!1,C=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function L(G){for(var le=n(f);le!==null;){if(le.callback===null)r(f);else if(le.startTime<=G)r(f),le.sortIndex=le.expirationTime,t(d,le);else break;le=n(f)}}function M(G){if(A=!1,L(G),!T)if(n(d)!==null)T=!0,w||(w=!0,Q());else{var le=n(f);le!==null&&me(M,le.startTime-G)}}var w=!1,V=-1,ne=5,W=-1;function k(){return C?!0:!(e.unstable_now()-W<ne)}function H(){if(C=!1,w){var G=e.unstable_now();W=G;var le=!0;try{e:{T=!1,A&&(A=!1,D(V),V=-1),y=!0;var se=b;try{t:{for(L(G),m=n(d);m!==null&&!(m.expirationTime>G&&k());){var ye=m.callback;if(typeof ye=="function"){m.callback=null,b=m.priorityLevel;var P=ye(m.expirationTime<=G);if(G=e.unstable_now(),typeof P=="function"){m.callback=P,L(G),le=!0;break t}m===n(d)&&r(d),L(G)}else r(d);m=n(d)}if(m!==null)le=!0;else{var Le=n(f);Le!==null&&me(M,Le.startTime-G),le=!1}}break e}finally{m=null,b=se,y=!1}le=void 0}}finally{le?Q():w=!1}}}var Q;if(typeof S=="function")Q=function(){S(H)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,re=K.port2;K.port1.onmessage=H,Q=function(){re.postMessage(null)}}else Q=function(){x(H,0)};function me(G,le){V=x(function(){G(e.unstable_now())},le)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(G){switch(b){case 1:case 2:case 3:var le=3;break;default:le=b}var se=b;b=le;try{return G()}finally{b=se}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(G,le){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var se=b;b=G;try{return le()}finally{b=se}},e.unstable_scheduleCallback=function(G,le,se){var ye=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ye+se:ye):se=ye,G){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=se+P,G={id:p++,callback:le,priorityLevel:G,startTime:se,expirationTime:P,sortIndex:-1},se>ye?(G.sortIndex=se,t(f,G),n(d)===null&&G===n(f)&&(A?(D(V),V=-1):A=!0,me(M,se-ye))):(G.sortIndex=P,t(d,G),T||y||(T=!0,w||(w=!0,Q()))),G},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(G){var le=b;return function(){var se=b;b=le;try{return G.apply(this,arguments)}finally{b=se}}}}(V0)),V0}var jx;function P4(){return jx||(jx=1,G0.exports=M4()),G0.exports}/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-dom-client.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Bx;function $4(){if(Bx)return hu;Bx=1;var e=P4(),t=O4(),n=L4();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(o(i)!==i)throw Error(r(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,h=s;;){var g=u.return;if(g===null)break;var v=g.alternate;if(v===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===u)return c(g),i;if(v===h)return c(g),s;v=v.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=v;else{for(var R=!1,O=g.child;O;){if(O===u){R=!0,u=g,h=v;break}if(O===h){R=!0,h=g,u=v;break}O=O.sibling}if(!R){for(O=v.child;O;){if(O===u){R=!0,u=v,h=g;break}if(O===h){R=!0,h=v,u=g;break}O=O.sibling}if(!R)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function f(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=f(i),s!==null)return s;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),S=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var K=Symbol.for("react.client.reference");function re(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===K?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case M:return"Suspense";case w:return"SuspenseList";case W:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case S:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case L:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case V:return s=i.displayName||null,s!==null?s:re(i.type)||"Memo";case ne:s=i._payload,i=i._init;try{return re(i(s))}catch{}}return null}var me=Array.isArray,G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ye=[],P=-1;function Le(i){return{current:i}}function ce(i){0>P||(i.current=ye[P],ye[P]=null,P--)}function I(i,s){P++,ye[P]=i.current,i.current=s}var te=Le(null),Ce=Le(null),we=Le(null),Pe=Le(null);function Me(i,s){switch(I(we,s),I(Ce,i),I(te,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?ux(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=ux(s),i=dx(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ce(te),I(te,i)}function st(){ce(te),ce(Ce),ce(we)}function dt(i){i.memoizedState!==null&&I(Pe,i);var s=te.current,u=dx(s,i.type);s!==u&&(I(Ce,i),I(te,u))}function Ue(i){Ce.current===i&&(ce(te),ce(Ce)),Pe.current===i&&(ce(Pe),lu._currentValue=se)}var Wt=Object.prototype.hasOwnProperty,Nt=e.unstable_scheduleCallback,$e=e.unstable_cancelCallback,sr=e.unstable_shouldYield,fn=e.unstable_requestPaint,Ve=e.unstable_now,Jn=e.unstable_getCurrentPriorityLevel,an=e.unstable_ImmediatePriority,sn=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,Ct=e.unstable_LowPriority,Cr=e.unstable_IdlePriority,Ua=e.log,Rt=e.unstable_setDisableYieldValue,ue=null,ve=null;function je(i){if(typeof Ua=="function"&&Rt(i),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ue,i)}catch{}}var nt=Math.clz32?Math.clz32:Vn,Dt=Math.log,Ot=Math.LN2;function Vn(i){return i>>>=0,i===0?32:31-(Dt(i)/Ot|0)|0}var yn=256,Cn=4194304;function _e(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Te(i,s,u){var h=i.pendingLanes;if(h===0)return 0;var g=0,v=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~v,h!==0?g=_e(h):(R&=O,R!==0?g=_e(R):u||(u=O&~i,u!==0&&(g=_e(u))))):(O=h&~v,O!==0?g=_e(O):R!==0?g=_e(R):u||(u=h&~i,u!==0&&(g=_e(u)))),g===0?0:s!==0&&s!==g&&(s&v)===0&&(v=g&-g,u=s&-s,v>=u||v===32&&(u&4194048)!==0)?s:g}function ot(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function Ke(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dn(){var i=yn;return yn<<=1,(yn&4194048)===0&&(yn=256),i}function jr(){var i=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),i}function Er(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function lr(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function cr(i,s,u,h,g,v){var R=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var O=i.entanglements,U=i.expirationTimes,ee=i.hiddenUpdates;for(u=R&~u;0<u;){var pe=31-nt(u),be=1<<pe;O[pe]=0,U[pe]=-1;var ae=ee[pe];if(ae!==null)for(ee[pe]=null,pe=0;pe<ae.length;pe++){var oe=ae[pe];oe!==null&&(oe.lane&=-536870913)}u&=~be}h!==0&&Ha(i,h,0),v!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=v&~(R&~s))}function Ha(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-nt(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function hn(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var h=31-nt(u),g=1<<h;g&s|i[h]&s&&(i[h]|=s),u&=~g}}function Br(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Ra(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function z(){var i=le.p;return i!==0?i:(i=window.event,i===void 0?32:wx(i.type))}function X(i,s){var u=le.p;try{return le.p=i,s()}finally{le.p=u}}var ie=Math.random().toString(36).slice(2),Ee="__reactFiber$"+ie,De="__reactProps$"+ie,Be="__reactContainer$"+ie,Ge="__reactEvents$"+ie,He="__reactListeners$"+ie,We="__reactHandles$"+ie,Ze="__reactResources$"+ie,ze="__reactMarker$"+ie;function qe(i){delete i[Ee],delete i[De],delete i[Ge],delete i[He],delete i[We]}function pt(i){var s=i[Ee];if(s)return s;for(var u=i.parentNode;u;){if(s=u[Be]||u[Ee]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=mx(i);i!==null;){if(u=i[Ee])return u;i=mx(i)}return s}i=u,u=i.parentNode}return null}function Lt(i){if(i=i[Ee]||i[Be]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function bn(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function En(i){var s=i[Ze];return s||(s=i[Ze]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function ft(i){i[ze]=!0}var $t=new Set,za={};function Ur(i,s){vr(i,s),vr(i+"Capture",s)}function vr(i,s){for(za[i]=s,i=0;i<s.length;i++)$t.add(s[i])}var aa=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zs={},Qi={};function hi(i){return Wt.call(Qi,i)?!0:Wt.call(zs,i)?!1:aa.test(i)?Qi[i]=!0:(zs[i]=!0,!1)}function pi(i,s,u){if(hi(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function mi(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function gt(i,s,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+h)}}var Nn,Ho;function ia(i){if(Nn===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);Nn=s&&s[1]||"",Ho=-1<u.stack.indexOf(`
|
|
19
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
+
`+Nn+i+Ho}var pn=!1;function Wi(i,s){if(!i||pn)return"";pn=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(oe){var ae=oe}Reflect.construct(i,[],be)}else{try{be.call()}catch(oe){ae=oe}i.call(be.prototype)}}else{try{throw Error()}catch(oe){ae=oe}(be=i())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(oe){if(oe&&ae&&typeof oe.stack=="string")return[oe.stack,ae.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=h.DetermineComponentFrameRoot(),R=v[0],O=v[1];if(R&&O){var U=R.split(`
|
|
21
|
+
`),ee=O.split(`
|
|
22
|
+
`);for(g=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===U.length||g===ee.length)for(h=U.length-1,g=ee.length-1;1<=h&&0<=g&&U[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(U[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||U[h]!==ee[g]){var pe=`
|
|
23
|
+
`+U[h].replace(" at new "," at ");return i.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",i.displayName)),pe}while(1<=h&&0<=g);break}}}finally{pn=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?ia(u):""}function rf(i){switch(i.tag){case 26:case 27:case 5:return ia(i.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Wi(i.type,!1);case 11:return Wi(i.type.render,!1);case 1:return Wi(i.type,!0);case 31:return ia("Activity");default:return""}}function af(i){try{var s="";do s+=rf(i),i=i.return;while(i);return s}catch(u){return`
|
|
24
|
+
Error generating stack: `+u.message+`
|
|
25
|
+
`+u.stack}}function oa(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function iv(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function JI(i){var s=iv(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,v=u.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return g.call(this)},set:function(R){h=""+R,v.call(this,R)}}),Object.defineProperty(i,s,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function of(i){i._valueTracker||(i._valueTracker=JI(i))}function ov(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),h="";return i&&(h=iv(i)?i.checked?"true":"false":i.value),i=h,i!==u?(s.setValue(i),!0):!1}function sf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var eN=/[\n"\\]/g;function sa(i){return i.replace(eN,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Bm(i,s,u,h,g,v,R,O){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.type=R:i.removeAttribute("type"),s!=null?R==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+oa(s)):i.value!==""+oa(s)&&(i.value=""+oa(s)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),s!=null?Um(i,R,oa(s)):u!=null?Um(i,R,oa(u)):h!=null&&i.removeAttribute("value"),g==null&&v!=null&&(i.defaultChecked=!!v),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+oa(O):i.removeAttribute("name")}function sv(i,s,u,h,g,v,R,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),s!=null||u!=null){if(!(v!=="submit"&&v!=="reset"||s!=null))return;u=u!=null?""+oa(u):"",s=s!=null?""+oa(s):u,O||s===i.value||(i.value=s),i.defaultValue=s}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=O?i.checked:!!h,i.defaultChecked=!!h,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.name=R)}function Um(i,s,u){s==="number"&&sf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Gs(i,s,u,h){if(i=i.options,s){s={};for(var g=0;g<u.length;g++)s["$"+u[g]]=!0;for(u=0;u<i.length;u++)g=s.hasOwnProperty("$"+i[u].value),i[u].selected!==g&&(i[u].selected=g),g&&h&&(i[u].defaultSelected=!0)}else{for(u=""+oa(u),s=null,g=0;g<i.length;g++){if(i[g].value===u){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}s!==null||i[g].disabled||(s=i[g])}s!==null&&(s.selected=!0)}}function lv(i,s,u){if(s!=null&&(s=""+oa(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+oa(u):""}function cv(i,s,u,h){if(s==null){if(h!=null){if(u!=null)throw Error(r(92));if(me(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),s=u}u=oa(s),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function Vs(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var tN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function uv(i,s,u){var h=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,u):typeof u!="number"||u===0||tN.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function dv(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in s)h=s[g],s.hasOwnProperty(g)&&u[g]!==h&&uv(i,g,h)}else for(var v in s)s.hasOwnProperty(v)&&uv(i,v,s[v])}function Hm(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lf(i){return rN.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var zm=null;function Gm(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var qs=null,Ys=null;function fv(i){var s=Lt(i);if(s&&(i=s.stateNode)){var u=i[De]||null;e:switch(i=s.stateNode,s.type){case"input":if(Bm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+sa(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var h=u[s];if(h!==i&&h.form===i.form){var g=h[De]||null;if(!g)throw Error(r(90));Bm(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(s=0;s<u.length;s++)h=u[s],h.form===i.form&&ov(h)}break e;case"textarea":lv(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Gs(i,!!u.multiple,s,!1)}}}var Vm=!1;function hv(i,s,u){if(Vm)return i(s,u);Vm=!0;try{var h=i(s);return h}finally{if(Vm=!1,(qs!==null||Ys!==null)&&(Yf(),qs&&(s=qs,i=Ys,Ys=qs=null,fv(s),i)))for(s=0;s<i.length;s++)fv(i[s])}}function Tc(i,s){var u=i.stateNode;if(u===null)return null;var h=u[De]||null;if(h===null)return null;u=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qm=!1;if(gi)try{var _c={};Object.defineProperty(_c,"passive",{get:function(){qm=!0}}),window.addEventListener("test",_c,_c),window.removeEventListener("test",_c,_c)}catch{qm=!1}var Ki=null,Ym=null,cf=null;function pv(){if(cf)return cf;var i,s=Ym,u=s.length,h,g="value"in Ki?Ki.value:Ki.textContent,v=g.length;for(i=0;i<u&&s[i]===g[i];i++);var R=u-i;for(h=1;h<=R&&s[u-h]===g[v-h];h++);return cf=g.slice(i,1<h?1-h:void 0)}function uf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function df(){return!0}function mv(){return!1}function Dr(i){function s(u,h,g,v,R){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=v,this.target=R,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(u=i[O],this[O]=u?u(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?df:mv,this.isPropagationStopped=mv,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=df)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=df)},persist:function(){},isPersistent:df}),s}var zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=Dr(zo),xc=p({},zo,{view:0,detail:0}),aN=Dr(xc),Qm,Wm,Ac,hf=p({},xc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Ac&&(Ac&&i.type==="mousemove"?(Qm=i.screenX-Ac.screenX,Wm=i.screenY-Ac.screenY):Wm=Qm=0,Ac=i),Qm)},movementY:function(i){return"movementY"in i?i.movementY:Wm}}),gv=Dr(hf),iN=p({},hf,{dataTransfer:0}),oN=Dr(iN),sN=p({},xc,{relatedTarget:0}),Km=Dr(sN),lN=p({},zo,{animationName:0,elapsedTime:0,pseudoElement:0}),cN=Dr(lN),uN=p({},zo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),dN=Dr(uN),fN=p({},zo,{data:0}),yv=Dr(fN),hN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gN(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=mN[i])?!!s[i]:!1}function Xm(){return gN}var yN=p({},xc,{key:function(i){if(i.key){var s=hN[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=uf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?pN[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xm,charCode:function(i){return i.type==="keypress"?uf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?uf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),bN=Dr(yN),EN=p({},hf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bv=Dr(EN),vN=p({},xc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xm}),TN=Dr(vN),_N=p({},zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),xN=Dr(_N),AN=p({},hf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),SN=Dr(AN),CN=p({},zo,{newState:0,oldState:0}),DN=Dr(CN),kN=[9,13,27,32],Zm=gi&&"CompositionEvent"in window,Sc=null;gi&&"documentMode"in document&&(Sc=document.documentMode);var RN=gi&&"TextEvent"in window&&!Sc,Ev=gi&&(!Zm||Sc&&8<Sc&&11>=Sc),vv=" ",Tv=!1;function _v(i,s){switch(i){case"keyup":return kN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Qs=!1;function wN(i,s){switch(i){case"compositionend":return xv(s);case"keypress":return s.which!==32?null:(Tv=!0,vv);case"textInput":return i=s.data,i===vv&&Tv?null:i;default:return null}}function IN(i,s){if(Qs)return i==="compositionend"||!Zm&&_v(i,s)?(i=pv(),cf=Ym=Ki=null,Qs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Ev&&s.locale!=="ko"?null:s.data;default:return null}}var NN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Av(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!NN[i.type]:s==="textarea"}function Sv(i,s,u,h){qs?Ys?Ys.push(h):Ys=[h]:qs=h,s=Jf(s,"onChange"),0<s.length&&(u=new ff("onChange","change",null,u,h),i.push({event:u,listeners:s}))}var Cc=null,Dc=null;function ON(i){ix(i,0)}function pf(i){var s=bn(i);if(ov(s))return i}function Cv(i,s){if(i==="change")return s}var Dv=!1;if(gi){var Jm;if(gi){var eg="oninput"in document;if(!eg){var kv=document.createElement("div");kv.setAttribute("oninput","return;"),eg=typeof kv.oninput=="function"}Jm=eg}else Jm=!1;Dv=Jm&&(!document.documentMode||9<document.documentMode)}function Rv(){Cc&&(Cc.detachEvent("onpropertychange",wv),Dc=Cc=null)}function wv(i){if(i.propertyName==="value"&&pf(Dc)){var s=[];Sv(s,Dc,i,Gm(i)),hv(ON,s)}}function LN(i,s,u){i==="focusin"?(Rv(),Cc=s,Dc=u,Cc.attachEvent("onpropertychange",wv)):i==="focusout"&&Rv()}function MN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return pf(Dc)}function PN(i,s){if(i==="click")return pf(s)}function $N(i,s){if(i==="input"||i==="change")return pf(s)}function FN(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Hr=typeof Object.is=="function"?Object.is:FN;function kc(i,s){if(Hr(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),h=Object.keys(s);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!Wt.call(s,g)||!Hr(i[g],s[g]))return!1}return!0}function Iv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Nv(i,s){var u=Iv(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=s&&h>=s)return{node:u,offset:s-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Iv(u)}}function Ov(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Ov(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Lv(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=sf(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=sf(i.document)}return s}function tg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var jN=gi&&"documentMode"in document&&11>=document.documentMode,Ws=null,ng=null,Rc=null,rg=!1;function Mv(i,s,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rg||Ws==null||Ws!==sf(h)||(h=Ws,"selectionStart"in h&&tg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Rc&&kc(Rc,h)||(Rc=h,h=Jf(ng,"onSelect"),0<h.length&&(s=new ff("onSelect","select",null,s,u),i.push({event:s,listeners:h}),s.target=Ws)))}function Go(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Ks={animationend:Go("Animation","AnimationEnd"),animationiteration:Go("Animation","AnimationIteration"),animationstart:Go("Animation","AnimationStart"),transitionrun:Go("Transition","TransitionRun"),transitionstart:Go("Transition","TransitionStart"),transitioncancel:Go("Transition","TransitionCancel"),transitionend:Go("Transition","TransitionEnd")},ag={},Pv={};gi&&(Pv=document.createElement("div").style,"AnimationEvent"in window||(delete Ks.animationend.animation,delete Ks.animationiteration.animation,delete Ks.animationstart.animation),"TransitionEvent"in window||delete Ks.transitionend.transition);function Vo(i){if(ag[i])return ag[i];if(!Ks[i])return i;var s=Ks[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in Pv)return ag[i]=s[u];return i}var $v=Vo("animationend"),Fv=Vo("animationiteration"),jv=Vo("animationstart"),BN=Vo("transitionrun"),UN=Vo("transitionstart"),HN=Vo("transitioncancel"),Bv=Vo("transitionend"),Uv=new Map,ig="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ig.push("scrollEnd");function wa(i,s){Uv.set(i,s),Ur(s,[i])}var Hv=new WeakMap;function la(i,s){if(typeof i=="object"&&i!==null){var u=Hv.get(i);return u!==void 0?u:(s={value:i,source:s,stack:af(s)},Hv.set(i,s),s)}return{value:i,source:s,stack:af(s)}}var ca=[],Xs=0,og=0;function mf(){for(var i=Xs,s=og=Xs=0;s<i;){var u=ca[s];ca[s++]=null;var h=ca[s];ca[s++]=null;var g=ca[s];ca[s++]=null;var v=ca[s];if(ca[s++]=null,h!==null&&g!==null){var R=h.pending;R===null?g.next=g:(g.next=R.next,R.next=g),h.pending=g}v!==0&&zv(u,g,v)}}function gf(i,s,u,h){ca[Xs++]=i,ca[Xs++]=s,ca[Xs++]=u,ca[Xs++]=h,og|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function sg(i,s,u,h){return gf(i,s,u,h),yf(i)}function Zs(i,s){return gf(i,null,null,s),yf(i)}function zv(i,s,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var g=!1,v=i.return;v!==null;)v.childLanes|=u,h=v.alternate,h!==null&&(h.childLanes|=u),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(g=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,g&&s!==null&&(g=31-nt(u),i=v.hiddenUpdates,h=i[g],h===null?i[g]=[s]:h.push(s),s.lane=u|536870912),v):null}function yf(i){if(50<eu)throw eu=0,h0=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Js={};function zN(i,s,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(i,s,u,h){return new zN(i,s,u,h)}function lg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function yi(i,s){var u=i.alternate;return u===null?(u=zr(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Gv(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function bf(i,s,u,h,g,v){var R=0;if(h=i,typeof i=="function")lg(i)&&(R=1);else if(typeof i=="string")R=VO(i,u,te.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case W:return i=zr(31,u,s,g),i.elementType=W,i.lanes=v,i;case T:return qo(u.children,g,v,s);case A:R=8,g|=24;break;case C:return i=zr(12,u,s,g|2),i.elementType=C,i.lanes=v,i;case M:return i=zr(13,u,s,g),i.elementType=M,i.lanes=v,i;case w:return i=zr(19,u,s,g),i.elementType=w,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case x:case S:R=10;break e;case D:R=9;break e;case L:R=11;break e;case V:R=14;break e;case ne:R=16,h=null;break e}R=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=zr(R,u,s,g),s.elementType=i,s.type=h,s.lanes=v,s}function qo(i,s,u,h){return i=zr(7,i,h,s),i.lanes=u,i}function cg(i,s,u){return i=zr(6,i,null,s),i.lanes=u,i}function ug(i,s,u){return s=zr(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var el=[],tl=0,Ef=null,vf=0,ua=[],da=0,Yo=null,bi=1,Ei="";function Qo(i,s){el[tl++]=vf,el[tl++]=Ef,Ef=i,vf=s}function Vv(i,s,u){ua[da++]=bi,ua[da++]=Ei,ua[da++]=Yo,Yo=i;var h=bi;i=Ei;var g=32-nt(h)-1;h&=~(1<<g),u+=1;var v=32-nt(s)+g;if(30<v){var R=g-g%5;v=(h&(1<<R)-1).toString(32),h>>=R,g-=R,bi=1<<32-nt(s)+g|u<<g|h,Ei=v+i}else bi=1<<v|u<<g|h,Ei=i}function dg(i){i.return!==null&&(Qo(i,1),Vv(i,1,0))}function fg(i){for(;i===Ef;)Ef=el[--tl],el[tl]=null,vf=el[--tl],el[tl]=null;for(;i===Yo;)Yo=ua[--da],ua[da]=null,Ei=ua[--da],ua[da]=null,bi=ua[--da],ua[da]=null}var Tr=null,vn=null,wt=!1,Wo=null,Ga=!1,hg=Error(r(519));function Ko(i){var s=Error(r(418,""));throw Nc(la(s,i)),hg}function qv(i){var s=i.stateNode,u=i.type,h=i.memoizedProps;switch(s[Ee]=i,s[De]=h,u){case"dialog":vt("cancel",s),vt("close",s);break;case"iframe":case"object":case"embed":vt("load",s);break;case"video":case"audio":for(u=0;u<nu.length;u++)vt(nu[u],s);break;case"source":vt("error",s);break;case"img":case"image":case"link":vt("error",s),vt("load",s);break;case"details":vt("toggle",s);break;case"input":vt("invalid",s),sv(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),of(s);break;case"select":vt("invalid",s);break;case"textarea":vt("invalid",s),cv(s,h.value,h.defaultValue,h.children),of(s)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||h.suppressHydrationWarning===!0||cx(s.textContent,u)?(h.popover!=null&&(vt("beforetoggle",s),vt("toggle",s)),h.onScroll!=null&&vt("scroll",s),h.onScrollEnd!=null&&vt("scrollend",s),h.onClick!=null&&(s.onclick=eh),s=!0):s=!1,s||Ko(i)}function Yv(i){for(Tr=i.return;Tr;)switch(Tr.tag){case 5:case 13:Ga=!1;return;case 27:case 3:Ga=!0;return;default:Tr=Tr.return}}function wc(i){if(i!==Tr)return!1;if(!wt)return Yv(i),wt=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||R0(i.type,i.memoizedProps)),u=!u),u&&vn&&Ko(i),Yv(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(s===0){vn=Na(i.nextSibling);break e}s--}else u!=="$"&&u!=="$!"&&u!=="$?"||s++;i=i.nextSibling}vn=null}}else s===27?(s=vn,ho(i.type)?(i=O0,O0=null,vn=i):vn=s):vn=Tr?Na(i.stateNode.nextSibling):null;return!0}function Ic(){vn=Tr=null,wt=!1}function Qv(){var i=Wo;return i!==null&&(wr===null?wr=i:wr.push.apply(wr,i),Wo=null),i}function Nc(i){Wo===null?Wo=[i]:Wo.push(i)}var pg=Le(null),Xo=null,vi=null;function Xi(i,s,u){I(pg,s._currentValue),s._currentValue=u}function Ti(i){i._currentValue=pg.current,ce(pg)}function mg(i,s,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===u)break;i=i.return}}function gg(i,s,u,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var v=g.dependencies;if(v!==null){var R=g.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=g;for(var U=0;U<s.length;U++)if(O.context===s[U]){v.lanes|=u,O=v.alternate,O!==null&&(O.lanes|=u),mg(v.return,u,i),h||(R=null);break e}v=O.next}}else if(g.tag===18){if(R=g.return,R===null)throw Error(r(341));R.lanes|=u,v=R.alternate,v!==null&&(v.lanes|=u),mg(R,u,i),R=null}else R=g.child;if(R!==null)R.return=g;else for(R=g;R!==null;){if(R===i){R=null;break}if(g=R.sibling,g!==null){g.return=R.return,R=g;break}R=R.return}g=R}}function Oc(i,s,u,h){i=null;for(var g=s,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var R=g.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var O=g.type;Hr(g.pendingProps.value,R.value)||(i!==null?i.push(O):i=[O])}}else if(g===Pe.current){if(R=g.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(lu):i=[lu])}g=g.return}i!==null&&gg(s,i,u,h),s.flags|=262144}function Tf(i){for(i=i.firstContext;i!==null;){if(!Hr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Zo(i){Xo=i,vi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function ur(i){return Wv(Xo,i)}function _f(i,s){return Xo===null&&Zo(i),Wv(i,s)}function Wv(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},vi===null){if(i===null)throw Error(r(308));vi=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else vi=vi.next=s;return u}var GN=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},VN=e.unstable_scheduleCallback,qN=e.unstable_NormalPriority,jn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new GN,data:new Map,refCount:0}}function Lc(i){i.refCount--,i.refCount===0&&VN(qN,function(){i.controller.abort()})}var Mc=null,bg=0,nl=0,rl=null;function YN(i,s){if(Mc===null){var u=Mc=[];bg=0,nl=v0(),rl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return bg++,s.then(Kv,Kv),s}function Kv(){if(--bg===0&&Mc!==null){rl!==null&&(rl.status="fulfilled");var i=Mc;Mc=null,nl=0,rl=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function QN(i,s){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var g=0;g<u.length;g++)(0,u[g])(s)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Xv=G.S;G.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&YN(i,s),Xv!==null&&Xv(i,s)};var Jo=Le(null);function Eg(){var i=Jo.current;return i!==null?i:Kt.pooledCache}function xf(i,s){s===null?I(Jo,Jo.current):I(Jo,s.pool)}function Zv(){var i=Eg();return i===null?null:{parent:jn._currentValue,pool:i}}var Pc=Error(r(460)),Jv=Error(r(474)),Af=Error(r(542)),vg={then:function(){}};function eT(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Sf(){}function tT(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(Sf,Sf),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,rT(i),i;default:if(typeof s.status=="string")s.then(Sf,Sf);else{if(i=Kt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var g=s;g.status="fulfilled",g.value=h}},function(h){if(s.status==="pending"){var g=s;g.status="rejected",g.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,rT(i),i}throw $c=s,Pc}}var $c=null;function nT(){if($c===null)throw Error(r(459));var i=$c;return $c=null,i}function rT(i){if(i===Pc||i===Af)throw Error(r(483))}var Zi=!1;function Tg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _g(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ji(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function eo(i,s,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Mt&2)!==0){var g=h.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),h.pending=s,s=yf(i),zv(i,null,u),s}return gf(i,h,s,u),yf(i)}function Fc(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,hn(i,u)}}function xg(i,s){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};v===null?g=v=R:v=v.next=R,u=u.next}while(u!==null);v===null?g=v=s:v=v.next=s}else g=v=s;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Ag=!1;function jc(){if(Ag){var i=rl;if(i!==null)throw i}}function Bc(i,s,u,h){Ag=!1;var g=i.updateQueue;Zi=!1;var v=g.firstBaseUpdate,R=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var U=O,ee=U.next;U.next=null,R===null?v=ee:R.next=ee,R=U;var pe=i.alternate;pe!==null&&(pe=pe.updateQueue,O=pe.lastBaseUpdate,O!==R&&(O===null?pe.firstBaseUpdate=ee:O.next=ee,pe.lastBaseUpdate=U))}if(v!==null){var be=g.baseState;R=0,pe=ee=U=null,O=v;do{var ae=O.lane&-536870913,oe=ae!==O.lane;if(oe?(At&ae)===ae:(h&ae)===ae){ae!==0&&ae===nl&&(Ag=!0),pe!==null&&(pe=pe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var rt=i,Je=O;ae=s;var Bt=u;switch(Je.tag){case 1:if(rt=Je.payload,typeof rt=="function"){be=rt.call(Bt,be,ae);break e}be=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=Je.payload,ae=typeof rt=="function"?rt.call(Bt,be,ae):rt,ae==null)break e;be=p({},be,ae);break e;case 2:Zi=!0}}ae=O.callback,ae!==null&&(i.flags|=64,oe&&(i.flags|=8192),oe=g.callbacks,oe===null?g.callbacks=[ae]:oe.push(ae))}else oe={lane:ae,tag:O.tag,payload:O.payload,callback:O.callback,next:null},pe===null?(ee=pe=oe,U=be):pe=pe.next=oe,R|=ae;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;oe=O,O=oe.next,oe.next=null,g.lastBaseUpdate=oe,g.shared.pending=null}}while(!0);pe===null&&(U=be),g.baseState=U,g.firstBaseUpdate=ee,g.lastBaseUpdate=pe,v===null&&(g.shared.lanes=0),lo|=R,i.lanes=R,i.memoizedState=be}}function aT(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function iT(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)aT(u[i],s)}var al=Le(null),Cf=Le(0);function oT(i,s){i=ki,I(Cf,i),I(al,s),ki=i|s.baseLanes}function Sg(){I(Cf,ki),I(al,al.current)}function Cg(){ki=Cf.current,ce(al),ce(Cf)}var to=0,mt=null,Ft=null,On=null,Df=!1,il=!1,es=!1,kf=0,Uc=0,ol=null,WN=0;function kn(){throw Error(r(321))}function Dg(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!Hr(i[u],s[u]))return!1;return!0}function kg(i,s,u,h,g,v){return to=v,mt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,G.H=i===null||i.memoizedState===null?zT:GT,es=!1,v=u(h,g),es=!1,il&&(v=lT(s,u,h,g)),sT(i),v}function sT(i){G.H=Lf;var s=Ft!==null&&Ft.next!==null;if(to=0,On=Ft=mt=null,Df=!1,Uc=0,ol=null,s)throw Error(r(300));i===null||qn||(i=i.dependencies,i!==null&&Tf(i)&&(qn=!0))}function lT(i,s,u,h){mt=i;var g=0;do{if(il&&(ol=null),Uc=0,il=!1,25<=g)throw Error(r(301));if(g+=1,On=Ft=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}G.H=nO,v=s(u,h)}while(il);return v}function KN(){var i=G.H,s=i.useState()[0];return s=typeof s.then=="function"?Hc(s):s,i=i.useState()[0],(Ft!==null?Ft.memoizedState:null)!==i&&(mt.flags|=1024),s}function Rg(){var i=kf!==0;return kf=0,i}function wg(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function Ig(i){if(Df){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Df=!1}to=0,On=Ft=mt=null,il=!1,Uc=kf=0,ol=null}function kr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?mt.memoizedState=On=i:On=On.next=i,On}function Ln(){if(Ft===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=Ft.next;var s=On===null?mt.memoizedState:On.next;if(s!==null)On=s,Ft=i;else{if(i===null)throw mt.alternate===null?Error(r(467)):Error(r(310));Ft=i,i={memoizedState:Ft.memoizedState,baseState:Ft.baseState,baseQueue:Ft.baseQueue,queue:Ft.queue,next:null},On===null?mt.memoizedState=On=i:On=On.next=i}return On}function Ng(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hc(i){var s=Uc;return Uc+=1,ol===null&&(ol=[]),i=tT(ol,i,s),s=mt,(On===null?s.memoizedState:On.next)===null&&(s=s.alternate,G.H=s===null||s.memoizedState===null?zT:GT),i}function Rf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Hc(i);if(i.$$typeof===S)return ur(i)}throw Error(r(438,String(i)))}function Og(i){var s=null,u=mt.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var h=mt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(g){return g.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Ng(),mt.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),h=0;h<i;h++)u[h]=k;return s.index++,u}function _i(i,s){return typeof s=="function"?s(i):s}function wf(i){var s=Ln();return Lg(s,Ft,i)}function Lg(i,s,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=i.baseQueue,v=h.pending;if(v!==null){if(g!==null){var R=g.next;g.next=v.next,v.next=R}s.baseQueue=g=v,h.pending=null}if(v=i.baseState,g===null)i.memoizedState=v;else{s=g.next;var O=R=null,U=null,ee=s,pe=!1;do{var be=ee.lane&-536870913;if(be!==ee.lane?(At&be)===be:(to&be)===be){var ae=ee.revertLane;if(ae===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),be===nl&&(pe=!0);else if((to&ae)===ae){ee=ee.next,ae===nl&&(pe=!0);continue}else be={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(O=U=be,R=v):U=U.next=be,mt.lanes|=ae,lo|=ae;be=ee.action,es&&u(v,be),v=ee.hasEagerState?ee.eagerState:u(v,be)}else ae={lane:be,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(O=U=ae,R=v):U=U.next=ae,mt.lanes|=be,lo|=be;ee=ee.next}while(ee!==null&&ee!==s);if(U===null?R=v:U.next=O,!Hr(v,i.memoizedState)&&(qn=!0,pe&&(u=rl,u!==null)))throw u;i.memoizedState=v,i.baseState=R,i.baseQueue=U,h.lastRenderedState=v}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Mg(i){var s=Ln(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,g=u.pending,v=s.memoizedState;if(g!==null){u.pending=null;var R=g=g.next;do v=i(v,R.action),R=R.next;while(R!==g);Hr(v,s.memoizedState)||(qn=!0),s.memoizedState=v,s.baseQueue===null&&(s.baseState=v),u.lastRenderedState=v}return[v,h]}function cT(i,s,u){var h=mt,g=Ln(),v=wt;if(v){if(u===void 0)throw Error(r(407));u=u()}else u=s();var R=!Hr((Ft||g).memoizedState,u);R&&(g.memoizedState=u,qn=!0),g=g.queue;var O=fT.bind(null,h,g,i);if(zc(2048,8,O,[i]),g.getSnapshot!==s||R||On!==null&&On.memoizedState.tag&1){if(h.flags|=2048,sl(9,If(),dT.bind(null,h,g,u,s),null),Kt===null)throw Error(r(349));v||(to&124)!==0||uT(h,s,u)}return u}function uT(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=mt.updateQueue,s===null?(s=Ng(),mt.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function dT(i,s,u,h){s.value=u,s.getSnapshot=h,hT(s)&&pT(i)}function fT(i,s,u){return u(function(){hT(s)&&pT(i)})}function hT(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Hr(i,u)}catch{return!0}}function pT(i){var s=Zs(i,2);s!==null&&Qr(s,i,2)}function Pg(i){var s=kr();if(typeof i=="function"){var u=i;if(i=u(),es){je(!0);try{u()}finally{je(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:i},s}function mT(i,s,u,h){return i.baseState=u,Lg(i,Ft,typeof h=="function"?h:_i)}function XN(i,s,u,h,g){if(Of(i))throw Error(r(485));if(i=s.action,i!==null){var v={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){v.listeners.push(R)}};G.T!==null?u(!0):v.isTransition=!1,h(v),u=s.pending,u===null?(v.next=s.pending=v,gT(s,v)):(v.next=u.next,s.pending=u.next=v)}}function gT(i,s){var u=s.action,h=s.payload,g=i.state;if(s.isTransition){var v=G.T,R={};G.T=R;try{var O=u(g,h),U=G.S;U!==null&&U(R,O),yT(i,s,O)}catch(ee){$g(i,s,ee)}finally{G.T=v}}else try{v=u(g,h),yT(i,s,v)}catch(ee){$g(i,s,ee)}}function yT(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){bT(i,s,h)},function(h){return $g(i,s,h)}):bT(i,s,u)}function bT(i,s,u){s.status="fulfilled",s.value=u,ET(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,gT(i,u)))}function $g(i,s,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=u,ET(s),s=s.next;while(s!==h)}i.action=null}function ET(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function vT(i,s){return s}function TT(i,s){if(wt){var u=Kt.formState;if(u!==null){e:{var h=mt;if(wt){if(vn){t:{for(var g=vn,v=Ga;g.nodeType!==8;){if(!v){g=null;break t}if(g=Na(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){vn=Na(g.nextSibling),h=g.data==="F!";break e}}Ko(h)}h=!1}h&&(s=u[0])}}return u=kr(),u.memoizedState=u.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vT,lastRenderedState:s},u.queue=h,u=BT.bind(null,mt,h),h.dispatch=u,h=Pg(!1),v=Hg.bind(null,mt,!1,h.queue),h=kr(),g={state:s,dispatch:null,action:i,pending:null},h.queue=g,u=XN.bind(null,mt,g,v,u),g.dispatch=u,h.memoizedState=i,[s,u,!1]}function _T(i){var s=Ln();return xT(s,Ft,i)}function xT(i,s,u){if(s=Lg(i,s,vT)[0],i=wf(_i)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Hc(s)}catch(R){throw R===Pc?Af:R}else h=s;s=Ln();var g=s.queue,v=g.dispatch;return u!==s.memoizedState&&(mt.flags|=2048,sl(9,If(),ZN.bind(null,g,u),null)),[h,v,i]}function ZN(i,s){i.action=s}function AT(i){var s=Ln(),u=Ft;if(u!==null)return xT(s,u,i);Ln(),s=s.memoizedState,u=Ln();var h=u.queue.dispatch;return u.memoizedState=i,[s,h,!1]}function sl(i,s,u,h){return i={tag:i,create:u,deps:h,inst:s,next:null},s=mt.updateQueue,s===null&&(s=Ng(),mt.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,s.lastEffect=i),i}function If(){return{destroy:void 0,resource:void 0}}function ST(){return Ln().memoizedState}function Nf(i,s,u,h){var g=kr();h=h===void 0?null:h,mt.flags|=i,g.memoizedState=sl(1|s,If(),u,h)}function zc(i,s,u,h){var g=Ln();h=h===void 0?null:h;var v=g.memoizedState.inst;Ft!==null&&h!==null&&Dg(h,Ft.memoizedState.deps)?g.memoizedState=sl(s,v,u,h):(mt.flags|=i,g.memoizedState=sl(1|s,v,u,h))}function CT(i,s){Nf(8390656,8,i,s)}function DT(i,s){zc(2048,8,i,s)}function kT(i,s){return zc(4,2,i,s)}function RT(i,s){return zc(4,4,i,s)}function wT(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function IT(i,s,u){u=u!=null?u.concat([i]):null,zc(4,4,wT.bind(null,s,i),u)}function Fg(){}function NT(i,s){var u=Ln();s=s===void 0?null:s;var h=u.memoizedState;return s!==null&&Dg(s,h[1])?h[0]:(u.memoizedState=[i,s],i)}function OT(i,s){var u=Ln();s=s===void 0?null:s;var h=u.memoizedState;if(s!==null&&Dg(s,h[1]))return h[0];if(h=i(),es){je(!0);try{i()}finally{je(!1)}}return u.memoizedState=[h,s],h}function jg(i,s,u){return u===void 0||(to&1073741824)!==0?i.memoizedState=s:(i.memoizedState=u,i=P_(),mt.lanes|=i,lo|=i,u)}function LT(i,s,u,h){return Hr(u,s)?u:al.current!==null?(i=jg(i,u,h),Hr(i,s)||(qn=!0),i):(to&42)===0?(qn=!0,i.memoizedState=u):(i=P_(),mt.lanes|=i,lo|=i,s)}function MT(i,s,u,h,g){var v=le.p;le.p=v!==0&&8>v?v:8;var R=G.T,O={};G.T=O,Hg(i,!1,s,u);try{var U=g(),ee=G.S;if(ee!==null&&ee(O,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var pe=QN(U,h);Gc(i,s,pe,Yr(i))}else Gc(i,s,h,Yr(i))}catch(be){Gc(i,s,{then:function(){},status:"rejected",reason:be},Yr())}finally{le.p=v,G.T=R}}function JN(){}function Bg(i,s,u,h){if(i.tag!==5)throw Error(r(476));var g=PT(i).queue;MT(i,g,s,se,u===null?JN:function(){return $T(i),u(h)})}function PT(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:se},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function $T(i){var s=PT(i).next.queue;Gc(i,s,{},Yr())}function Ug(){return ur(lu)}function FT(){return Ln().memoizedState}function jT(){return Ln().memoizedState}function eO(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=Yr();i=Ji(u);var h=eo(s,i,u);h!==null&&(Qr(h,s,u),Fc(h,s,u)),s={cache:yg()},i.payload=s;return}s=s.return}}function tO(i,s,u){var h=Yr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Of(i)?UT(s,u):(u=sg(i,s,u,h),u!==null&&(Qr(u,i,h),HT(u,s,h)))}function BT(i,s,u){var h=Yr();Gc(i,s,u,h)}function Gc(i,s,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Of(i))UT(s,g);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=s.lastRenderedReducer,v!==null))try{var R=s.lastRenderedState,O=v(R,u);if(g.hasEagerState=!0,g.eagerState=O,Hr(O,R))return gf(i,s,g,0),Kt===null&&mf(),!1}catch{}finally{}if(u=sg(i,s,g,h),u!==null)return Qr(u,i,h),HT(u,s,h),!0}return!1}function Hg(i,s,u,h){if(h={lane:2,revertLane:v0(),action:h,hasEagerState:!1,eagerState:null,next:null},Of(i)){if(s)throw Error(r(479))}else s=sg(i,u,h,2),s!==null&&Qr(s,i,2)}function Of(i){var s=i.alternate;return i===mt||s!==null&&s===mt}function UT(i,s){il=Df=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function HT(i,s,u){if((u&4194048)!==0){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,hn(i,u)}}var Lf={readContext:ur,use:Rf,useCallback:kn,useContext:kn,useEffect:kn,useImperativeHandle:kn,useLayoutEffect:kn,useInsertionEffect:kn,useMemo:kn,useReducer:kn,useRef:kn,useState:kn,useDebugValue:kn,useDeferredValue:kn,useTransition:kn,useSyncExternalStore:kn,useId:kn,useHostTransitionStatus:kn,useFormState:kn,useActionState:kn,useOptimistic:kn,useMemoCache:kn,useCacheRefresh:kn},zT={readContext:ur,use:Rf,useCallback:function(i,s){return kr().memoizedState=[i,s===void 0?null:s],i},useContext:ur,useEffect:CT,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Nf(4194308,4,wT.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Nf(4194308,4,i,s)},useInsertionEffect:function(i,s){Nf(4,2,i,s)},useMemo:function(i,s){var u=kr();s=s===void 0?null:s;var h=i();if(es){je(!0);try{i()}finally{je(!1)}}return u.memoizedState=[h,s],h},useReducer:function(i,s,u){var h=kr();if(u!==void 0){var g=u(s);if(es){je(!0);try{u(s)}finally{je(!1)}}}else g=s;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=tO.bind(null,mt,i),[h.memoizedState,i]},useRef:function(i){var s=kr();return i={current:i},s.memoizedState=i},useState:function(i){i=Pg(i);var s=i.queue,u=BT.bind(null,mt,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Fg,useDeferredValue:function(i,s){var u=kr();return jg(u,i,s)},useTransition:function(){var i=Pg(!1);return i=MT.bind(null,mt,i.queue,!0,!1),kr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var h=mt,g=kr();if(wt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),Kt===null)throw Error(r(349));(At&124)!==0||uT(h,s,u)}g.memoizedState=u;var v={value:u,getSnapshot:s};return g.queue=v,CT(fT.bind(null,h,v,i),[i]),h.flags|=2048,sl(9,If(),dT.bind(null,h,v,u,s),null),u},useId:function(){var i=kr(),s=Kt.identifierPrefix;if(wt){var u=Ei,h=bi;u=(h&~(1<<32-nt(h)-1)).toString(32)+u,s="«"+s+"R"+u,u=kf++,0<u&&(s+="H"+u.toString(32)),s+="»"}else u=WN++,s="«"+s+"r"+u.toString(32)+"»";return i.memoizedState=s},useHostTransitionStatus:Ug,useFormState:TT,useActionState:TT,useOptimistic:function(i){var s=kr();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Hg.bind(null,mt,!0,u),u.dispatch=s,[i,s]},useMemoCache:Og,useCacheRefresh:function(){return kr().memoizedState=eO.bind(null,mt)}},GT={readContext:ur,use:Rf,useCallback:NT,useContext:ur,useEffect:DT,useImperativeHandle:IT,useInsertionEffect:kT,useLayoutEffect:RT,useMemo:OT,useReducer:wf,useRef:ST,useState:function(){return wf(_i)},useDebugValue:Fg,useDeferredValue:function(i,s){var u=Ln();return LT(u,Ft.memoizedState,i,s)},useTransition:function(){var i=wf(_i)[0],s=Ln().memoizedState;return[typeof i=="boolean"?i:Hc(i),s]},useSyncExternalStore:cT,useId:FT,useHostTransitionStatus:Ug,useFormState:_T,useActionState:_T,useOptimistic:function(i,s){var u=Ln();return mT(u,Ft,i,s)},useMemoCache:Og,useCacheRefresh:jT},nO={readContext:ur,use:Rf,useCallback:NT,useContext:ur,useEffect:DT,useImperativeHandle:IT,useInsertionEffect:kT,useLayoutEffect:RT,useMemo:OT,useReducer:Mg,useRef:ST,useState:function(){return Mg(_i)},useDebugValue:Fg,useDeferredValue:function(i,s){var u=Ln();return Ft===null?jg(u,i,s):LT(u,Ft.memoizedState,i,s)},useTransition:function(){var i=Mg(_i)[0],s=Ln().memoizedState;return[typeof i=="boolean"?i:Hc(i),s]},useSyncExternalStore:cT,useId:FT,useHostTransitionStatus:Ug,useFormState:AT,useActionState:AT,useOptimistic:function(i,s){var u=Ln();return Ft!==null?mT(u,Ft,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Og,useCacheRefresh:jT},ll=null,Vc=0;function Mf(i){var s=Vc;return Vc+=1,ll===null&&(ll=[]),tT(ll,i,s)}function qc(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Pf(i,s){throw s.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function VT(i){var s=i._init;return s(i._payload)}function qT(i){function s(Y,q){if(i){var Z=Y.deletions;Z===null?(Y.deletions=[q],Y.flags|=16):Z.push(q)}}function u(Y,q){if(!i)return null;for(;q!==null;)s(Y,q),q=q.sibling;return null}function h(Y){for(var q=new Map;Y!==null;)Y.key!==null?q.set(Y.key,Y):q.set(Y.index,Y),Y=Y.sibling;return q}function g(Y,q){return Y=yi(Y,q),Y.index=0,Y.sibling=null,Y}function v(Y,q,Z){return Y.index=Z,i?(Z=Y.alternate,Z!==null?(Z=Z.index,Z<q?(Y.flags|=67108866,q):Z):(Y.flags|=67108866,q)):(Y.flags|=1048576,q)}function R(Y){return i&&Y.alternate===null&&(Y.flags|=67108866),Y}function O(Y,q,Z,ge){return q===null||q.tag!==6?(q=cg(Z,Y.mode,ge),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function U(Y,q,Z,ge){var Fe=Z.type;return Fe===T?pe(Y,q,Z.props.children,ge,Z.key):q!==null&&(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===ne&&VT(Fe)===q.type)?(q=g(q,Z.props),qc(q,Z),q.return=Y,q):(q=bf(Z.type,Z.key,Z.props,null,Y.mode,ge),qc(q,Z),q.return=Y,q)}function ee(Y,q,Z,ge){return q===null||q.tag!==4||q.stateNode.containerInfo!==Z.containerInfo||q.stateNode.implementation!==Z.implementation?(q=ug(Z,Y.mode,ge),q.return=Y,q):(q=g(q,Z.children||[]),q.return=Y,q)}function pe(Y,q,Z,ge,Fe){return q===null||q.tag!==7?(q=qo(Z,Y.mode,ge,Fe),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function be(Y,q,Z){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=cg(""+q,Y.mode,Z),q.return=Y,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return Z=bf(q.type,q.key,q.props,null,Y.mode,Z),qc(Z,q),Z.return=Y,Z;case y:return q=ug(q,Y.mode,Z),q.return=Y,q;case ne:var ge=q._init;return q=ge(q._payload),be(Y,q,Z)}if(me(q)||Q(q))return q=qo(q,Y.mode,Z,null),q.return=Y,q;if(typeof q.then=="function")return be(Y,Mf(q),Z);if(q.$$typeof===S)return be(Y,_f(Y,q),Z);Pf(Y,q)}return null}function ae(Y,q,Z,ge){var Fe=q!==null?q.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Fe!==null?null:O(Y,q,""+Z,ge);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case b:return Z.key===Fe?U(Y,q,Z,ge):null;case y:return Z.key===Fe?ee(Y,q,Z,ge):null;case ne:return Fe=Z._init,Z=Fe(Z._payload),ae(Y,q,Z,ge)}if(me(Z)||Q(Z))return Fe!==null?null:pe(Y,q,Z,ge,null);if(typeof Z.then=="function")return ae(Y,q,Mf(Z),ge);if(Z.$$typeof===S)return ae(Y,q,_f(Y,Z),ge);Pf(Y,Z)}return null}function oe(Y,q,Z,ge,Fe){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Y=Y.get(Z)||null,O(q,Y,""+ge,Fe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case b:return Y=Y.get(ge.key===null?Z:ge.key)||null,U(q,Y,ge,Fe);case y:return Y=Y.get(ge.key===null?Z:ge.key)||null,ee(q,Y,ge,Fe);case ne:var yt=ge._init;return ge=yt(ge._payload),oe(Y,q,Z,ge,Fe)}if(me(ge)||Q(ge))return Y=Y.get(Z)||null,pe(q,Y,ge,Fe,null);if(typeof ge.then=="function")return oe(Y,q,Z,Mf(ge),Fe);if(ge.$$typeof===S)return oe(Y,q,Z,_f(q,ge),Fe);Pf(q,ge)}return null}function rt(Y,q,Z,ge){for(var Fe=null,yt=null,Qe=q,et=q=0,Qn=null;Qe!==null&&et<Z.length;et++){Qe.index>et?(Qn=Qe,Qe=null):Qn=Qe.sibling;var kt=ae(Y,Qe,Z[et],ge);if(kt===null){Qe===null&&(Qe=Qn);break}i&&Qe&&kt.alternate===null&&s(Y,Qe),q=v(kt,q,et),yt===null?Fe=kt:yt.sibling=kt,yt=kt,Qe=Qn}if(et===Z.length)return u(Y,Qe),wt&&Qo(Y,et),Fe;if(Qe===null){for(;et<Z.length;et++)Qe=be(Y,Z[et],ge),Qe!==null&&(q=v(Qe,q,et),yt===null?Fe=Qe:yt.sibling=Qe,yt=Qe);return wt&&Qo(Y,et),Fe}for(Qe=h(Qe);et<Z.length;et++)Qn=oe(Qe,Y,et,Z[et],ge),Qn!==null&&(i&&Qn.alternate!==null&&Qe.delete(Qn.key===null?et:Qn.key),q=v(Qn,q,et),yt===null?Fe=Qn:yt.sibling=Qn,yt=Qn);return i&&Qe.forEach(function(bo){return s(Y,bo)}),wt&&Qo(Y,et),Fe}function Je(Y,q,Z,ge){if(Z==null)throw Error(r(151));for(var Fe=null,yt=null,Qe=q,et=q=0,Qn=null,kt=Z.next();Qe!==null&&!kt.done;et++,kt=Z.next()){Qe.index>et?(Qn=Qe,Qe=null):Qn=Qe.sibling;var bo=ae(Y,Qe,kt.value,ge);if(bo===null){Qe===null&&(Qe=Qn);break}i&&Qe&&bo.alternate===null&&s(Y,Qe),q=v(bo,q,et),yt===null?Fe=bo:yt.sibling=bo,yt=bo,Qe=Qn}if(kt.done)return u(Y,Qe),wt&&Qo(Y,et),Fe;if(Qe===null){for(;!kt.done;et++,kt=Z.next())kt=be(Y,kt.value,ge),kt!==null&&(q=v(kt,q,et),yt===null?Fe=kt:yt.sibling=kt,yt=kt);return wt&&Qo(Y,et),Fe}for(Qe=h(Qe);!kt.done;et++,kt=Z.next())kt=oe(Qe,Y,et,kt.value,ge),kt!==null&&(i&&kt.alternate!==null&&Qe.delete(kt.key===null?et:kt.key),q=v(kt,q,et),yt===null?Fe=kt:yt.sibling=kt,yt=kt);return i&&Qe.forEach(function(r4){return s(Y,r4)}),wt&&Qo(Y,et),Fe}function Bt(Y,q,Z,ge){if(typeof Z=="object"&&Z!==null&&Z.type===T&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case b:e:{for(var Fe=Z.key;q!==null;){if(q.key===Fe){if(Fe=Z.type,Fe===T){if(q.tag===7){u(Y,q.sibling),ge=g(q,Z.props.children),ge.return=Y,Y=ge;break e}}else if(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===ne&&VT(Fe)===q.type){u(Y,q.sibling),ge=g(q,Z.props),qc(ge,Z),ge.return=Y,Y=ge;break e}u(Y,q);break}else s(Y,q);q=q.sibling}Z.type===T?(ge=qo(Z.props.children,Y.mode,ge,Z.key),ge.return=Y,Y=ge):(ge=bf(Z.type,Z.key,Z.props,null,Y.mode,ge),qc(ge,Z),ge.return=Y,Y=ge)}return R(Y);case y:e:{for(Fe=Z.key;q!==null;){if(q.key===Fe)if(q.tag===4&&q.stateNode.containerInfo===Z.containerInfo&&q.stateNode.implementation===Z.implementation){u(Y,q.sibling),ge=g(q,Z.children||[]),ge.return=Y,Y=ge;break e}else{u(Y,q);break}else s(Y,q);q=q.sibling}ge=ug(Z,Y.mode,ge),ge.return=Y,Y=ge}return R(Y);case ne:return Fe=Z._init,Z=Fe(Z._payload),Bt(Y,q,Z,ge)}if(me(Z))return rt(Y,q,Z,ge);if(Q(Z)){if(Fe=Q(Z),typeof Fe!="function")throw Error(r(150));return Z=Fe.call(Z),Je(Y,q,Z,ge)}if(typeof Z.then=="function")return Bt(Y,q,Mf(Z),ge);if(Z.$$typeof===S)return Bt(Y,q,_f(Y,Z),ge);Pf(Y,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,q!==null&&q.tag===6?(u(Y,q.sibling),ge=g(q,Z),ge.return=Y,Y=ge):(u(Y,q),ge=cg(Z,Y.mode,ge),ge.return=Y,Y=ge),R(Y)):u(Y,q)}return function(Y,q,Z,ge){try{Vc=0;var Fe=Bt(Y,q,Z,ge);return ll=null,Fe}catch(Qe){if(Qe===Pc||Qe===Af)throw Qe;var yt=zr(29,Qe,null,Y.mode);return yt.lanes=ge,yt.return=Y,yt}finally{}}}var cl=qT(!0),YT=qT(!1),fa=Le(null),Va=null;function no(i){var s=i.alternate;I(Bn,Bn.current&1),I(fa,i),Va===null&&(s===null||al.current!==null||s.memoizedState!==null)&&(Va=i)}function QT(i){if(i.tag===22){if(I(Bn,Bn.current),I(fa,i),Va===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(Va=i)}}else ro()}function ro(){I(Bn,Bn.current),I(fa,fa.current)}function xi(i){ce(fa),Va===i&&(Va=null),ce(Bn)}var Bn=Le(0);function $f(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||N0(u)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function zg(i,s,u,h){s=i.memoizedState,u=u(h,s),u=u==null?s:p({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Gg={enqueueSetState:function(i,s,u){i=i._reactInternals;var h=Yr(),g=Ji(h);g.payload=s,u!=null&&(g.callback=u),s=eo(i,g,h),s!==null&&(Qr(s,i,h),Fc(s,i,h))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var h=Yr(),g=Ji(h);g.tag=1,g.payload=s,u!=null&&(g.callback=u),s=eo(i,g,h),s!==null&&(Qr(s,i,h),Fc(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=Yr(),h=Ji(u);h.tag=2,s!=null&&(h.callback=s),s=eo(i,h,u),s!==null&&(Qr(s,i,u),Fc(s,i,u))}};function WT(i,s,u,h,g,v,R){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,v,R):s.prototype&&s.prototype.isPureReactComponent?!kc(u,h)||!kc(g,v):!0}function KT(i,s,u,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,h),s.state!==i&&Gg.enqueueReplaceState(s,s.state,null)}function ts(i,s){var u=s;if("ref"in s){u={};for(var h in s)h!=="ref"&&(u[h]=s[h])}if(i=i.defaultProps){u===s&&(u=p({},u));for(var g in i)u[g]===void 0&&(u[g]=i[g])}return u}var Ff=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function XT(i){Ff(i)}function ZT(i){console.error(i)}function JT(i){Ff(i)}function jf(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function e_(i,s,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Vg(i,s,u){return u=Ji(u),u.tag=3,u.payload={element:null},u.callback=function(){jf(i,s)},u}function t_(i){return i=Ji(i),i.tag=3,i}function n_(i,s,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var v=h.value;i.payload=function(){return g(v)},i.callback=function(){e_(s,u,h)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){e_(s,u,h),typeof g!="function"&&(co===null?co=new Set([this]):co.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function rO(i,s,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=u.alternate,s!==null&&Oc(s,u,g,!0),u=fa.current,u!==null){switch(u.tag){case 13:return Va===null?m0():u.alternate===null&&Tn===0&&(Tn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===vg?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([h]):s.add(h),y0(i,h,g)),!1;case 22:return u.flags|=65536,h===vg?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([h]):u.add(h)),y0(i,h,g)),!1}throw Error(r(435,u.tag))}return y0(i,h,g),m0(),!1}if(wt)return s=fa.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=g,h!==hg&&(i=Error(r(422),{cause:h}),Nc(la(i,u)))):(h!==hg&&(s=Error(r(423),{cause:h}),Nc(la(s,u))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=la(h,u),g=Vg(i.stateNode,h,g),xg(i,g),Tn!==4&&(Tn=2)),!1;var v=Error(r(520),{cause:h});if(v=la(v,u),Jc===null?Jc=[v]:Jc.push(v),Tn!==4&&(Tn=2),s===null)return!0;h=la(h,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=g&-g,u.lanes|=i,i=Vg(u.stateNode,h,i),xg(u,i),!1;case 1:if(s=u.type,v=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(co===null||!co.has(v))))return u.flags|=65536,g&=-g,u.lanes|=g,g=t_(g),n_(g,i,u,h),xg(u,g),!1}u=u.return}while(u!==null);return!1}var r_=Error(r(461)),qn=!1;function er(i,s,u,h){s.child=i===null?YT(s,null,u,h):cl(s,i.child,u,h)}function a_(i,s,u,h,g){u=u.render;var v=s.ref;if("ref"in h){var R={};for(var O in h)O!=="ref"&&(R[O]=h[O])}else R=h;return Zo(s),h=kg(i,s,u,R,v,g),O=Rg(),i!==null&&!qn?(wg(i,s,g),Ai(i,s,g)):(wt&&O&&dg(s),s.flags|=1,er(i,s,h,g),s.child)}function i_(i,s,u,h,g){if(i===null){var v=u.type;return typeof v=="function"&&!lg(v)&&v.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=v,o_(i,s,v,h,g)):(i=bf(u.type,null,h,s,s.mode,g),i.ref=s.ref,i.return=s,s.child=i)}if(v=i.child,!Jg(i,g)){var R=v.memoizedProps;if(u=u.compare,u=u!==null?u:kc,u(R,h)&&i.ref===s.ref)return Ai(i,s,g)}return s.flags|=1,i=yi(v,h),i.ref=s.ref,i.return=s,s.child=i}function o_(i,s,u,h,g){if(i!==null){var v=i.memoizedProps;if(kc(v,h)&&i.ref===s.ref)if(qn=!1,s.pendingProps=h=v,Jg(i,g))(i.flags&131072)!==0&&(qn=!0);else return s.lanes=i.lanes,Ai(i,s,g)}return qg(i,s,u,h,g)}function s_(i,s,u){var h=s.pendingProps,g=h.children,v=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((s.flags&128)!==0){if(h=v!==null?v.baseLanes|u:u,i!==null){for(g=s.child=i.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;s.childLanes=v&~h}else s.childLanes=0,s.child=null;return l_(i,s,h,u)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&xf(s,v!==null?v.cachePool:null),v!==null?oT(s,v):Sg(),QT(s);else return s.lanes=s.childLanes=536870912,l_(i,s,v!==null?v.baseLanes|u:u,u)}else v!==null?(xf(s,v.cachePool),oT(s,v),ro(),s.memoizedState=null):(i!==null&&xf(s,null),Sg(),ro());return er(i,s,g,u),s.child}function l_(i,s,u,h){var g=Eg();return g=g===null?null:{parent:jn._currentValue,pool:g},s.memoizedState={baseLanes:u,cachePool:g},i!==null&&xf(s,null),Sg(),QT(s),i!==null&&Oc(i,s,h,!0),null}function Bf(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function qg(i,s,u,h,g){return Zo(s),u=kg(i,s,u,h,void 0,g),h=Rg(),i!==null&&!qn?(wg(i,s,g),Ai(i,s,g)):(wt&&h&&dg(s),s.flags|=1,er(i,s,u,g),s.child)}function c_(i,s,u,h,g,v){return Zo(s),s.updateQueue=null,u=lT(s,h,u,g),sT(i),h=Rg(),i!==null&&!qn?(wg(i,s,v),Ai(i,s,v)):(wt&&h&&dg(s),s.flags|=1,er(i,s,u,v),s.child)}function u_(i,s,u,h,g){if(Zo(s),s.stateNode===null){var v=Js,R=u.contextType;typeof R=="object"&&R!==null&&(v=ur(R)),v=new u(h,v),s.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Gg,s.stateNode=v,v._reactInternals=s,v=s.stateNode,v.props=h,v.state=s.memoizedState,v.refs={},Tg(s),R=u.contextType,v.context=typeof R=="object"&&R!==null?ur(R):Js,v.state=s.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(zg(s,u,R,h),v.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(R=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),R!==v.state&&Gg.enqueueReplaceState(v,v.state,null),Bc(s,h,v,g),jc(),v.state=s.memoizedState),typeof v.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){v=s.stateNode;var O=s.memoizedProps,U=ts(u,O);v.props=U;var ee=v.context,pe=u.contextType;R=Js,typeof pe=="object"&&pe!==null&&(R=ur(pe));var be=u.getDerivedStateFromProps;pe=typeof be=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=s.pendingProps!==O,pe||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||ee!==R)&&KT(s,v,h,R),Zi=!1;var ae=s.memoizedState;v.state=ae,Bc(s,h,v,g),jc(),ee=s.memoizedState,O||ae!==ee||Zi?(typeof be=="function"&&(zg(s,u,be,h),ee=s.memoizedState),(U=Zi||WT(s,u,U,h,ae,ee,R))?(pe||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=ee),v.props=h,v.state=ee,v.context=R,h=U):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{v=s.stateNode,_g(i,s),R=s.memoizedProps,pe=ts(u,R),v.props=pe,be=s.pendingProps,ae=v.context,ee=u.contextType,U=Js,typeof ee=="object"&&ee!==null&&(U=ur(ee)),O=u.getDerivedStateFromProps,(ee=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R!==be||ae!==U)&&KT(s,v,h,U),Zi=!1,ae=s.memoizedState,v.state=ae,Bc(s,h,v,g),jc();var oe=s.memoizedState;R!==be||ae!==oe||Zi||i!==null&&i.dependencies!==null&&Tf(i.dependencies)?(typeof O=="function"&&(zg(s,u,O,h),oe=s.memoizedState),(pe=Zi||WT(s,u,pe,h,ae,oe,U)||i!==null&&i.dependencies!==null&&Tf(i.dependencies))?(ee||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(h,oe,U),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(h,oe,U)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=oe),v.props=h,v.state=oe,v.context=U,h=pe):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=1024),h=!1)}return v=h,Bf(i,s),h=(s.flags&128)!==0,v||h?(v=s.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:v.render(),s.flags|=1,i!==null&&h?(s.child=cl(s,i.child,null,g),s.child=cl(s,null,u,g)):er(i,s,u,g),s.memoizedState=v.state,i=s.child):i=Ai(i,s,g),i}function d_(i,s,u,h){return Ic(),s.flags|=256,er(i,s,u,h),s.child}var Yg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qg(i){return{baseLanes:i,cachePool:Zv()}}function Wg(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=ha),i}function f_(i,s,u){var h=s.pendingProps,g=!1,v=(s.flags&128)!==0,R;if((R=v)||(R=i!==null&&i.memoizedState===null?!1:(Bn.current&2)!==0),R&&(g=!0,s.flags&=-129),R=(s.flags&32)!==0,s.flags&=-33,i===null){if(wt){if(g?no(s):ro(),wt){var O=vn,U;if(U=O){e:{for(U=O,O=Ga;U.nodeType!==8;){if(!O){O=null;break e}if(U=Na(U.nextSibling),U===null){O=null;break e}}O=U}O!==null?(s.memoizedState={dehydrated:O,treeContext:Yo!==null?{id:bi,overflow:Ei}:null,retryLane:536870912,hydrationErrors:null},U=zr(18,null,null,0),U.stateNode=O,U.return=s,s.child=U,Tr=s,vn=null,U=!0):U=!1}U||Ko(s)}if(O=s.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return N0(O)?s.lanes=32:s.lanes=536870912,null;xi(s)}return O=h.children,h=h.fallback,g?(ro(),g=s.mode,O=Uf({mode:"hidden",children:O},g),h=qo(h,g,u,null),O.return=s,h.return=s,O.sibling=h,s.child=O,g=s.child,g.memoizedState=Qg(u),g.childLanes=Wg(i,R,u),s.memoizedState=Yg,h):(no(s),Kg(s,O))}if(U=i.memoizedState,U!==null&&(O=U.dehydrated,O!==null)){if(v)s.flags&256?(no(s),s.flags&=-257,s=Xg(i,s,u)):s.memoizedState!==null?(ro(),s.child=i.child,s.flags|=128,s=null):(ro(),g=h.fallback,O=s.mode,h=Uf({mode:"visible",children:h.children},O),g=qo(g,O,u,null),g.flags|=2,h.return=s,g.return=s,h.sibling=g,s.child=h,cl(s,i.child,null,u),h=s.child,h.memoizedState=Qg(u),h.childLanes=Wg(i,R,u),s.memoizedState=Yg,s=g);else if(no(s),N0(O)){if(R=O.nextSibling&&O.nextSibling.dataset,R)var ee=R.dgst;R=ee,h=Error(r(419)),h.stack="",h.digest=R,Nc({value:h,source:null,stack:null}),s=Xg(i,s,u)}else if(qn||Oc(i,s,u,!1),R=(u&i.childLanes)!==0,qn||R){if(R=Kt,R!==null&&(h=u&-u,h=(h&42)!==0?1:Br(h),h=(h&(R.suspendedLanes|u))!==0?0:h,h!==0&&h!==U.retryLane))throw U.retryLane=h,Zs(i,h),Qr(R,i,h),r_;O.data==="$?"||m0(),s=Xg(i,s,u)}else O.data==="$?"?(s.flags|=192,s.child=i.child,s=null):(i=U.treeContext,vn=Na(O.nextSibling),Tr=s,wt=!0,Wo=null,Ga=!1,i!==null&&(ua[da++]=bi,ua[da++]=Ei,ua[da++]=Yo,bi=i.id,Ei=i.overflow,Yo=s),s=Kg(s,h.children),s.flags|=4096);return s}return g?(ro(),g=h.fallback,O=s.mode,U=i.child,ee=U.sibling,h=yi(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?g=yi(ee,g):(g=qo(g,O,u,null),g.flags|=2),g.return=s,h.return=s,h.sibling=g,s.child=h,h=g,g=s.child,O=i.child.memoizedState,O===null?O=Qg(u):(U=O.cachePool,U!==null?(ee=jn._currentValue,U=U.parent!==ee?{parent:ee,pool:ee}:U):U=Zv(),O={baseLanes:O.baseLanes|u,cachePool:U}),g.memoizedState=O,g.childLanes=Wg(i,R,u),s.memoizedState=Yg,h):(no(s),u=i.child,i=u.sibling,u=yi(u,{mode:"visible",children:h.children}),u.return=s,u.sibling=null,i!==null&&(R=s.deletions,R===null?(s.deletions=[i],s.flags|=16):R.push(i)),s.child=u,s.memoizedState=null,u)}function Kg(i,s){return s=Uf({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Uf(i,s){return i=zr(22,i,null,s),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Xg(i,s,u){return cl(s,i.child,null,u),i=Kg(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function h_(i,s,u){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),mg(i.return,s,u)}function Zg(i,s,u,h,g){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(v.isBackwards=s,v.rendering=null,v.renderingStartTime=0,v.last=h,v.tail=u,v.tailMode=g)}function p_(i,s,u){var h=s.pendingProps,g=h.revealOrder,v=h.tail;if(er(i,s,h.children,u),h=Bn.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&h_(i,u,s);else if(i.tag===19)h_(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(I(Bn,h),g){case"forwards":for(u=s.child,g=null;u!==null;)i=u.alternate,i!==null&&$f(i)===null&&(g=u),u=u.sibling;u=g,u===null?(g=s.child,s.child=null):(g=u.sibling,u.sibling=null),Zg(s,!1,g,u,v);break;case"backwards":for(u=null,g=s.child,s.child=null;g!==null;){if(i=g.alternate,i!==null&&$f(i)===null){s.child=g;break}i=g.sibling,g.sibling=u,u=g,g=i}Zg(s,!0,u,null,v);break;case"together":Zg(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ai(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),lo|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(Oc(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=yi(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=yi(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function Jg(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Tf(i)))}function aO(i,s,u){switch(s.tag){case 3:Me(s,s.stateNode.containerInfo),Xi(s,jn,i.memoizedState.cache),Ic();break;case 27:case 5:dt(s);break;case 4:Me(s,s.stateNode.containerInfo);break;case 10:Xi(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(no(s),s.flags|=128,null):(u&s.child.childLanes)!==0?f_(i,s,u):(no(s),i=Ai(i,s,u),i!==null?i.sibling:null);no(s);break;case 19:var g=(i.flags&128)!==0;if(h=(u&s.childLanes)!==0,h||(Oc(i,s,u,!1),h=(u&s.childLanes)!==0),g){if(h)return p_(i,s,u);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),I(Bn,Bn.current),h)break;return null;case 22:case 23:return s.lanes=0,s_(i,s,u);case 24:Xi(s,jn,i.memoizedState.cache)}return Ai(i,s,u)}function m_(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)qn=!0;else{if(!Jg(i,u)&&(s.flags&128)===0)return qn=!1,aO(i,s,u);qn=(i.flags&131072)!==0}else qn=!1,wt&&(s.flags&1048576)!==0&&Vv(s,vf,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,g=h._init;if(h=g(h._payload),s.type=h,typeof h=="function")lg(h)?(i=ts(h,i),s.tag=1,s=u_(null,s,h,i,u)):(s.tag=0,s=qg(null,s,h,i,u));else{if(h!=null){if(g=h.$$typeof,g===L){s.tag=11,s=a_(null,s,h,i,u);break e}else if(g===V){s.tag=14,s=i_(null,s,h,i,u);break e}}throw s=re(h)||h,Error(r(306,s,""))}}return s;case 0:return qg(i,s,s.type,s.pendingProps,u);case 1:return h=s.type,g=ts(h,s.pendingProps),u_(i,s,h,g,u);case 3:e:{if(Me(s,s.stateNode.containerInfo),i===null)throw Error(r(387));h=s.pendingProps;var v=s.memoizedState;g=v.element,_g(i,s),Bc(s,h,null,u);var R=s.memoizedState;if(h=R.cache,Xi(s,jn,h),h!==v.cache&&gg(s,[jn],u,!0),jc(),h=R.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:R.cache},s.updateQueue.baseState=v,s.memoizedState=v,s.flags&256){s=d_(i,s,h,u);break e}else if(h!==g){g=la(Error(r(424)),s),Nc(g),s=d_(i,s,h,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(vn=Na(i.firstChild),Tr=s,wt=!0,Wo=null,Ga=!0,u=YT(s,null,h,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ic(),h===g){s=Ai(i,s,u);break e}er(i,s,h,u)}s=s.child}return s;case 26:return Bf(i,s),i===null?(u=Ex(s.type,null,s.pendingProps,null))?s.memoizedState=u:wt||(u=s.type,i=s.pendingProps,h=th(we.current).createElement(u),h[Ee]=s,h[De]=i,nr(h,u,i),ft(h),s.stateNode=h):s.memoizedState=Ex(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return dt(s),i===null&&wt&&(h=s.stateNode=gx(s.type,s.pendingProps,we.current),Tr=s,Ga=!0,g=vn,ho(s.type)?(O0=g,vn=Na(h.firstChild)):vn=g),er(i,s,s.pendingProps.children,u),Bf(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&wt&&((g=h=vn)&&(h=NO(h,s.type,s.pendingProps,Ga),h!==null?(s.stateNode=h,Tr=s,vn=Na(h.firstChild),Ga=!1,g=!0):g=!1),g||Ko(s)),dt(s),g=s.type,v=s.pendingProps,R=i!==null?i.memoizedProps:null,h=v.children,R0(g,v)?h=null:R!==null&&R0(g,R)&&(s.flags|=32),s.memoizedState!==null&&(g=kg(i,s,KN,null,null,u),lu._currentValue=g),Bf(i,s),er(i,s,h,u),s.child;case 6:return i===null&&wt&&((i=u=vn)&&(u=OO(u,s.pendingProps,Ga),u!==null?(s.stateNode=u,Tr=s,vn=null,i=!0):i=!1),i||Ko(s)),null;case 13:return f_(i,s,u);case 4:return Me(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=cl(s,null,h,u):er(i,s,h,u),s.child;case 11:return a_(i,s,s.type,s.pendingProps,u);case 7:return er(i,s,s.pendingProps,u),s.child;case 8:return er(i,s,s.pendingProps.children,u),s.child;case 12:return er(i,s,s.pendingProps.children,u),s.child;case 10:return h=s.pendingProps,Xi(s,s.type,h.value),er(i,s,h.children,u),s.child;case 9:return g=s.type._context,h=s.pendingProps.children,Zo(s),g=ur(g),h=h(g),s.flags|=1,er(i,s,h,u),s.child;case 14:return i_(i,s,s.type,s.pendingProps,u);case 15:return o_(i,s,s.type,s.pendingProps,u);case 19:return p_(i,s,u);case 31:return h=s.pendingProps,u=s.mode,h={mode:h.mode,children:h.children},i===null?(u=Uf(h,u),u.ref=s.ref,s.child=u,u.return=s,s=u):(u=yi(i.child,h),u.ref=s.ref,s.child=u,u.return=s,s=u),s;case 22:return s_(i,s,u);case 24:return Zo(s),h=ur(jn),i===null?(g=Eg(),g===null&&(g=Kt,v=yg(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=u),g=v),s.memoizedState={parent:h,cache:g},Tg(s),Xi(s,jn,g)):((i.lanes&u)!==0&&(_g(i,s),Bc(s,null,null,u),jc()),g=i.memoizedState,v=s.memoizedState,g.parent!==h?(g={parent:h,cache:h},s.memoizedState=g,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=g),Xi(s,jn,h)):(h=v.cache,Xi(s,jn,h),h!==g.cache&&gg(s,[jn],u,!0))),er(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Si(i){i.flags|=4}function g_(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Ax(s)){if(s=fa.current,s!==null&&((At&4194048)===At?Va!==null:(At&62914560)!==At&&(At&536870912)===0||s!==Va))throw $c=vg,Jv;i.flags|=8192}}function Hf(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?jr():536870912,i.lanes|=s,hl|=s)}function Yc(i,s){if(!wt)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function mn(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(s)for(var g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=u,s}function iO(i,s,u){var h=s.pendingProps;switch(fg(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mn(s),null;case 1:return mn(s),null;case 3:return u=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Ti(jn),st(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(wc(s)?Si(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Qv())),mn(s),null;case 26:return u=s.memoizedState,i===null?(Si(s),u!==null?(mn(s),g_(s,u)):(mn(s),s.flags&=-16777217)):u?u!==i.memoizedState?(Si(s),mn(s),g_(s,u)):(mn(s),s.flags&=-16777217):(i.memoizedProps!==h&&Si(s),mn(s),s.flags&=-16777217),null;case 27:Ue(s),u=we.current;var g=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Si(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return mn(s),null}i=te.current,wc(s)?qv(s):(i=gx(g,h,u),s.stateNode=i,Si(s))}return mn(s),null;case 5:if(Ue(s),u=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Si(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return mn(s),null}if(i=te.current,wc(s))qv(s);else{switch(g=th(we.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}i[Ee]=s,i[De]=h;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=i;e:switch(nr(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Si(s)}}return mn(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&Si(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=we.current,wc(s)){if(i=s.stateNode,u=s.memoizedProps,h=null,g=Tr,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[Ee]=s,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||cx(i.nodeValue,u)),i||Ko(s)}else i=th(i).createTextNode(h),i[Ee]=s,s.stateNode=i}return mn(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=wc(s),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[Ee]=s}else Ic(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;mn(s),g=!1}else g=Qv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return s.flags&256?(xi(s),s):(xi(s),null)}if(xi(s),(s.flags&128)!==0)return s.lanes=u,s;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=s.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var v=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==g&&(h.flags|=2048)}return u!==i&&u&&(s.child.flags|=8192),Hf(s,s.updateQueue),mn(s),null;case 4:return st(),i===null&&A0(s.stateNode.containerInfo),mn(s),null;case 10:return Ti(s.type),mn(s),null;case 19:if(ce(Bn),g=s.memoizedState,g===null)return mn(s),null;if(h=(s.flags&128)!==0,v=g.rendering,v===null)if(h)Yc(g,!1);else{if(Tn!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(v=$f(i),v!==null){for(s.flags|=128,Yc(g,!1),i=v.updateQueue,s.updateQueue=i,Hf(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)Gv(u,i),u=u.sibling;return I(Bn,Bn.current&1|2),s.child}i=i.sibling}g.tail!==null&&Ve()>Vf&&(s.flags|=128,h=!0,Yc(g,!1),s.lanes=4194304)}else{if(!h)if(i=$f(v),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Hf(s,i),Yc(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!wt)return mn(s),null}else 2*Ve()-g.renderingStartTime>Vf&&u!==536870912&&(s.flags|=128,h=!0,Yc(g,!1),s.lanes=4194304);g.isBackwards?(v.sibling=s.child,s.child=v):(i=g.last,i!==null?i.sibling=v:s.child=v,g.last=v)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=Ve(),s.sibling=null,i=Bn.current,I(Bn,h?i&1|2:i&1),s):(mn(s),null);case 22:case 23:return xi(s),Cg(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(u&536870912)!==0&&(s.flags&128)===0&&(mn(s),s.subtreeFlags&6&&(s.flags|=8192)):mn(s),u=s.updateQueue,u!==null&&Hf(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==u&&(s.flags|=2048),i!==null&&ce(Jo),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Ti(jn),mn(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function oO(i,s){switch(fg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ti(jn),st(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Ue(s),null;case 13:if(xi(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Ic()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return ce(Bn),null;case 4:return st(),null;case 10:return Ti(s.type),null;case 22:case 23:return xi(s),Cg(),i!==null&&ce(Jo),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Ti(jn),null;case 25:return null;default:return null}}function y_(i,s){switch(fg(s),s.tag){case 3:Ti(jn),st();break;case 26:case 27:case 5:Ue(s);break;case 4:st();break;case 13:xi(s);break;case 19:ce(Bn);break;case 10:Ti(s.type);break;case 22:case 23:xi(s),Cg(),i!==null&&ce(Jo);break;case 24:Ti(jn)}}function Qc(i,s){try{var u=s.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&i)===i){h=void 0;var v=u.create,R=u.inst;h=v(),R.destroy=h}u=u.next}while(u!==g)}}catch(O){zt(s,s.return,O)}}function ao(i,s,u){try{var h=s.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var v=g.next;h=v;do{if((h.tag&i)===i){var R=h.inst,O=R.destroy;if(O!==void 0){R.destroy=void 0,g=s;var U=u,ee=O;try{ee()}catch(pe){zt(g,U,pe)}}}h=h.next}while(h!==v)}}catch(pe){zt(s,s.return,pe)}}function b_(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{iT(s,u)}catch(h){zt(i,i.return,h)}}}function E_(i,s,u){u.props=ts(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){zt(i,s,h)}}function Wc(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(g){zt(i,s,g)}}function qa(i,s){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){zt(i,s,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){zt(i,s,g)}else u.current=null}function v_(i){var s=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){zt(i,i.return,g)}}function e0(i,s,u){try{var h=i.stateNode;DO(h,i.type,u,s),h[De]=s}catch(g){zt(i,i.return,g)}}function T_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ho(i.type)||i.tag===4}function t0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||T_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ho(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function n0(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=eh));else if(h!==4&&(h===27&&ho(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(n0(i,s,u),i=i.sibling;i!==null;)n0(i,s,u),i=i.sibling}function zf(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(h!==4&&(h===27&&ho(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(zf(i,s,u),i=i.sibling;i!==null;)zf(i,s,u),i=i.sibling}function __(i){var s=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,g=s.attributes;g.length;)s.removeAttributeNode(g[0]);nr(s,h,u),s[Ee]=i,s[De]=u}catch(v){zt(i,i.return,v)}}var Ci=!1,Rn=!1,r0=!1,x_=typeof WeakSet=="function"?WeakSet:Set,Yn=null;function sO(i,s){if(i=i.containerInfo,D0=sh,i=Lv(i),tg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var R=0,O=-1,U=-1,ee=0,pe=0,be=i,ae=null;t:for(;;){for(var oe;be!==u||g!==0&&be.nodeType!==3||(O=R+g),be!==v||h!==0&&be.nodeType!==3||(U=R+h),be.nodeType===3&&(R+=be.nodeValue.length),(oe=be.firstChild)!==null;)ae=be,be=oe;for(;;){if(be===i)break t;if(ae===u&&++ee===g&&(O=R),ae===v&&++pe===h&&(U=R),(oe=be.nextSibling)!==null)break;be=ae,ae=be.parentNode}be=oe}u=O===-1||U===-1?null:{start:O,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(k0={focusedElem:i,selectionRange:u},sh=!1,Yn=s;Yn!==null;)if(s=Yn,i=s.child,(s.subtreeFlags&1024)!==0&&i!==null)i.return=s,Yn=i;else for(;Yn!==null;){switch(s=Yn,v=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,u=s,g=v.memoizedProps,v=v.memoizedState,h=u.stateNode;try{var rt=ts(u.type,g,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(rt,v),h.__reactInternalSnapshotBeforeUpdate=i}catch(Je){zt(u,u.return,Je)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)I0(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":I0(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Yn=i;break}Yn=s.return}}function A_(i,s,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:io(i,u),h&4&&Qc(5,u);break;case 1:if(io(i,u),h&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(R){zt(u,u.return,R)}else{var g=ts(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(g,s,i.__reactInternalSnapshotBeforeUpdate)}catch(R){zt(u,u.return,R)}}h&64&&b_(u),h&512&&Wc(u,u.return);break;case 3:if(io(i,u),h&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{iT(i,s)}catch(R){zt(u,u.return,R)}}break;case 27:s===null&&h&4&&__(u);case 26:case 5:io(i,u),s===null&&h&4&&v_(u),h&512&&Wc(u,u.return);break;case 12:io(i,u);break;case 13:io(i,u),h&4&&D_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=gO.bind(null,u),LO(i,u))));break;case 22:if(h=u.memoizedState!==null||Ci,!h){s=s!==null&&s.memoizedState!==null||Rn,g=Ci;var v=Rn;Ci=h,(Rn=s)&&!v?oo(i,u,(u.subtreeFlags&8772)!==0):io(i,u),Ci=g,Rn=v}break;case 30:break;default:io(i,u)}}function S_(i){var s=i.alternate;s!==null&&(i.alternate=null,S_(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&qe(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var ln=null,Rr=!1;function Di(i,s,u){for(u=u.child;u!==null;)C_(i,s,u),u=u.sibling}function C_(i,s,u){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ue,u)}catch{}switch(u.tag){case 26:Rn||qa(u,s),Di(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Rn||qa(u,s);var h=ln,g=Rr;ho(u.type)&&(ln=u.stateNode,Rr=!1),Di(i,s,u),au(u.stateNode),ln=h,Rr=g;break;case 5:Rn||qa(u,s);case 6:if(h=ln,g=Rr,ln=null,Di(i,s,u),ln=h,Rr=g,ln!==null)if(Rr)try{(ln.nodeType===9?ln.body:ln.nodeName==="HTML"?ln.ownerDocument.body:ln).removeChild(u.stateNode)}catch(v){zt(u,s,v)}else try{ln.removeChild(u.stateNode)}catch(v){zt(u,s,v)}break;case 18:ln!==null&&(Rr?(i=ln,px(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),fu(i)):px(ln,u.stateNode));break;case 4:h=ln,g=Rr,ln=u.stateNode.containerInfo,Rr=!0,Di(i,s,u),ln=h,Rr=g;break;case 0:case 11:case 14:case 15:Rn||ao(2,u,s),Rn||ao(4,u,s),Di(i,s,u);break;case 1:Rn||(qa(u,s),h=u.stateNode,typeof h.componentWillUnmount=="function"&&E_(u,s,h)),Di(i,s,u);break;case 21:Di(i,s,u);break;case 22:Rn=(h=Rn)||u.memoizedState!==null,Di(i,s,u),Rn=h;break;default:Di(i,s,u)}}function D_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{fu(i)}catch(u){zt(s,s.return,u)}}function lO(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new x_),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new x_),s;default:throw Error(r(435,i.tag))}}function a0(i,s){var u=lO(i);s.forEach(function(h){var g=yO.bind(null,i,h);u.has(h)||(u.add(h),h.then(g,g))})}function Gr(i,s){var u=s.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],v=i,R=s,O=R;e:for(;O!==null;){switch(O.tag){case 27:if(ho(O.type)){ln=O.stateNode,Rr=!1;break e}break;case 5:ln=O.stateNode,Rr=!1;break e;case 3:case 4:ln=O.stateNode.containerInfo,Rr=!0;break e}O=O.return}if(ln===null)throw Error(r(160));C_(v,R,g),ln=null,Rr=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)k_(s,i),s=s.sibling}var Ia=null;function k_(i,s){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Gr(s,i),Vr(i),h&4&&(ao(3,i,i.return),Qc(3,i),ao(5,i,i.return));break;case 1:Gr(s,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),h&64&&Ci&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Ia;if(Gr(s,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),h&4){var v=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":v=g.getElementsByTagName("title")[0],(!v||v[ze]||v[Ee]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(h),g.head.insertBefore(v,g.querySelector("head > title"))),nr(v,h,u),v[Ee]=i,ft(v),h=v;break e;case"link":var R=_x("link","href",g).get(h+(u.href||""));if(R){for(var O=0;O<R.length;O++)if(v=R[O],v.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&v.getAttribute("rel")===(u.rel==null?null:u.rel)&&v.getAttribute("title")===(u.title==null?null:u.title)&&v.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){R.splice(O,1);break t}}v=g.createElement(h),nr(v,h,u),g.head.appendChild(v);break;case"meta":if(R=_x("meta","content",g).get(h+(u.content||""))){for(O=0;O<R.length;O++)if(v=R[O],v.getAttribute("content")===(u.content==null?null:""+u.content)&&v.getAttribute("name")===(u.name==null?null:u.name)&&v.getAttribute("property")===(u.property==null?null:u.property)&&v.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&v.getAttribute("charset")===(u.charSet==null?null:u.charSet)){R.splice(O,1);break t}}v=g.createElement(h),nr(v,h,u),g.head.appendChild(v);break;default:throw Error(r(468,h))}v[Ee]=i,ft(v),h=v}i.stateNode=h}else xx(g,i.type,i.stateNode);else i.stateNode=Tx(g,h,i.memoizedProps);else v!==h?(v===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):v.count--,h===null?xx(g,i.type,i.stateNode):Tx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&e0(i,i.memoizedProps,u.memoizedProps)}break;case 27:Gr(s,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),u!==null&&h&4&&e0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Gr(s,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),i.flags&32){g=i.stateNode;try{Vs(g,"")}catch(oe){zt(i,i.return,oe)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,e0(i,g,u!==null?u.memoizedProps:g)),h&1024&&(r0=!0);break;case 6:if(Gr(s,i),Vr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(oe){zt(i,i.return,oe)}}break;case 3:if(ah=null,g=Ia,Ia=nh(s.containerInfo),Gr(s,i),Ia=g,Vr(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{fu(s.containerInfo)}catch(oe){zt(i,i.return,oe)}r0&&(r0=!1,R_(i));break;case 4:h=Ia,Ia=nh(i.stateNode.containerInfo),Gr(s,i),Vr(i),Ia=h;break;case 12:Gr(s,i),Vr(i);break;case 13:Gr(s,i),Vr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(u0=Ve()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,a0(i,h)));break;case 22:g=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=Ci,pe=Rn;if(Ci=ee||g,Rn=pe||U,Gr(s,i),Rn=pe,Ci=ee,Vr(i),h&8192)e:for(s=i.stateNode,s._visibility=g?s._visibility&-2:s._visibility|1,g&&(u===null||U||Ci||Rn||ns(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){U=u=s;try{if(v=U.stateNode,g)R=v.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{O=U.stateNode;var be=U.memoizedProps.style,ae=be!=null&&be.hasOwnProperty("display")?be.display:null;O.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(oe){zt(U,U.return,oe)}}}else if(s.tag===6){if(u===null){U=s;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(oe){zt(U,U.return,oe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,a0(i,u))));break;case 19:Gr(s,i),Vr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,a0(i,h)));break;case 30:break;case 21:break;default:Gr(s,i),Vr(i)}}function Vr(i){var s=i.flags;if(s&2){try{for(var u,h=i.return;h!==null;){if(T_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,v=t0(i);zf(i,v,g);break;case 5:var R=u.stateNode;u.flags&32&&(Vs(R,""),u.flags&=-33);var O=t0(i);zf(i,O,R);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=t0(i);n0(i,ee,U);break;default:throw Error(r(161))}}catch(pe){zt(i,i.return,pe)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function R_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;R_(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function io(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)A_(i,s.alternate,s),s=s.sibling}function ns(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:ao(4,s,s.return),ns(s);break;case 1:qa(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&E_(s,s.return,u),ns(s);break;case 27:au(s.stateNode);case 26:case 5:qa(s,s.return),ns(s);break;case 22:s.memoizedState===null&&ns(s);break;case 30:ns(s);break;default:ns(s)}i=i.sibling}}function oo(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,g=i,v=s,R=v.flags;switch(v.tag){case 0:case 11:case 15:oo(g,v,u),Qc(4,v);break;case 1:if(oo(g,v,u),h=v,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){zt(h,h.return,ee)}if(h=v,g=h.updateQueue,g!==null){var O=h.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)aT(U[g],O)}catch(ee){zt(h,h.return,ee)}}u&&R&64&&b_(v),Wc(v,v.return);break;case 27:__(v);case 26:case 5:oo(g,v,u),u&&h===null&&R&4&&v_(v),Wc(v,v.return);break;case 12:oo(g,v,u);break;case 13:oo(g,v,u),u&&R&4&&D_(g,v);break;case 22:v.memoizedState===null&&oo(g,v,u),Wc(v,v.return);break;case 30:break;default:oo(g,v,u)}s=s.sibling}}function i0(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Lc(u))}function o0(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Lc(i))}function Ya(i,s,u,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)w_(i,s,u,h),s=s.sibling}function w_(i,s,u,h){var g=s.flags;switch(s.tag){case 0:case 11:case 15:Ya(i,s,u,h),g&2048&&Qc(9,s);break;case 1:Ya(i,s,u,h);break;case 3:Ya(i,s,u,h),g&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Lc(i)));break;case 12:if(g&2048){Ya(i,s,u,h),i=s.stateNode;try{var v=s.memoizedProps,R=v.id,O=v.onPostCommit;typeof O=="function"&&O(R,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){zt(s,s.return,U)}}else Ya(i,s,u,h);break;case 13:Ya(i,s,u,h);break;case 23:break;case 22:v=s.stateNode,R=s.alternate,s.memoizedState!==null?v._visibility&2?Ya(i,s,u,h):Kc(i,s):v._visibility&2?Ya(i,s,u,h):(v._visibility|=2,ul(i,s,u,h,(s.subtreeFlags&10256)!==0)),g&2048&&i0(R,s);break;case 24:Ya(i,s,u,h),g&2048&&o0(s.alternate,s);break;default:Ya(i,s,u,h)}}function ul(i,s,u,h,g){for(g=g&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var v=i,R=s,O=u,U=h,ee=R.flags;switch(R.tag){case 0:case 11:case 15:ul(v,R,O,U,g),Qc(8,R);break;case 23:break;case 22:var pe=R.stateNode;R.memoizedState!==null?pe._visibility&2?ul(v,R,O,U,g):Kc(v,R):(pe._visibility|=2,ul(v,R,O,U,g)),g&&ee&2048&&i0(R.alternate,R);break;case 24:ul(v,R,O,U,g),g&&ee&2048&&o0(R.alternate,R);break;default:ul(v,R,O,U,g)}s=s.sibling}}function Kc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,h=s,g=h.flags;switch(h.tag){case 22:Kc(u,h),g&2048&&i0(h.alternate,h);break;case 24:Kc(u,h),g&2048&&o0(h.alternate,h);break;default:Kc(u,h)}s=s.sibling}}var Xc=8192;function dl(i){if(i.subtreeFlags&Xc)for(i=i.child;i!==null;)I_(i),i=i.sibling}function I_(i){switch(i.tag){case 26:dl(i),i.flags&Xc&&i.memoizedState!==null&&YO(Ia,i.memoizedState,i.memoizedProps);break;case 5:dl(i);break;case 3:case 4:var s=Ia;Ia=nh(i.stateNode.containerInfo),dl(i),Ia=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Xc,Xc=16777216,dl(i),Xc=s):dl(i));break;default:dl(i)}}function N_(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Zc(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];Yn=h,L_(h,i)}N_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)O_(i),i=i.sibling}function O_(i){switch(i.tag){case 0:case 11:case 15:Zc(i),i.flags&2048&&ao(9,i,i.return);break;case 3:Zc(i);break;case 12:Zc(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,Gf(i)):Zc(i);break;default:Zc(i)}}function Gf(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];Yn=h,L_(h,i)}N_(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:ao(8,s,s.return),Gf(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Gf(s));break;default:Gf(s)}i=i.sibling}}function L_(i,s){for(;Yn!==null;){var u=Yn;switch(u.tag){case 0:case 11:case 15:ao(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Lc(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Yn=h;else e:for(u=i;Yn!==null;){h=Yn;var g=h.sibling,v=h.return;if(S_(h),h===u){Yn=null;break e}if(g!==null){g.return=v,Yn=g;break e}Yn=v}}}var cO={getCacheForType:function(i){var s=ur(jn),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u}},uO=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Kt=null,Et=null,At=0,Pt=0,qr=null,so=!1,fl=!1,s0=!1,ki=0,Tn=0,lo=0,rs=0,l0=0,ha=0,hl=0,Jc=null,wr=null,c0=!1,u0=0,Vf=1/0,qf=null,co=null,tr=0,uo=null,pl=null,ml=0,d0=0,f0=null,M_=null,eu=0,h0=null;function Yr(){if((Mt&2)!==0&&At!==0)return At&-At;if(G.T!==null){var i=nl;return i!==0?i:v0()}return z()}function P_(){ha===0&&(ha=(At&536870912)===0||wt?Dn():536870912);var i=fa.current;return i!==null&&(i.flags|=32),ha}function Qr(i,s,u){(i===Kt&&(Pt===2||Pt===9)||i.cancelPendingCommit!==null)&&(gl(i,0),fo(i,At,ha,!1)),lr(i,u),((Mt&2)===0||i!==Kt)&&(i===Kt&&((Mt&2)===0&&(rs|=u),Tn===4&&fo(i,At,ha,!1)),Qa(i))}function $_(i,s,u){if((Mt&6)!==0)throw Error(r(327));var h=!u&&(s&124)===0&&(s&i.expiredLanes)===0||ot(i,s),g=h?hO(i,s):g0(i,s,!0),v=h;do{if(g===0){fl&&!h&&fo(i,s,0,!1);break}else{if(u=i.current.alternate,v&&!dO(u)){g=g0(i,s,!1),v=!1;continue}if(g===2){if(v=s,i.errorRecoveryDisabledLanes&v)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){s=R;e:{var O=i;g=Jc;var U=O.current.memoizedState.isDehydrated;if(U&&(gl(O,R).flags|=256),R=g0(O,R,!1),R!==2){if(s0&&!U){O.errorRecoveryDisabledLanes|=v,rs|=v,g=4;break e}v=wr,wr=g,v!==null&&(wr===null?wr=v:wr.push.apply(wr,v))}g=R}if(v=!1,g!==2)continue}}if(g===1){gl(i,0),fo(i,s,0,!0);break}e:{switch(h=i,v=g,v){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:fo(h,s,ha,!so);break e;case 2:wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(g=u0+300-Ve(),10<g)){if(fo(h,s,ha,!so),Te(h,0,!0)!==0)break e;h.timeoutHandle=fx(F_.bind(null,h,u,wr,qf,c0,s,ha,rs,hl,so,v,2,-0,0),g);break e}F_(h,u,wr,qf,c0,s,ha,rs,hl,so,v,0,-0,0)}}break}while(!0);Qa(i)}function F_(i,s,u,h,g,v,R,O,U,ee,pe,be,ae,oe){if(i.timeoutHandle=-1,be=s.subtreeFlags,(be&8192||(be&16785408)===16785408)&&(su={stylesheets:null,count:0,unsuspend:qO},I_(s),be=QO(),be!==null)){i.cancelPendingCommit=be(V_.bind(null,i,s,v,u,h,g,R,O,U,pe,1,ae,oe)),fo(i,v,R,!ee);return}V_(i,s,v,u,h,g,R,O,U)}function dO(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],v=g.getSnapshot;g=g.value;try{if(!Hr(v(),g))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function fo(i,s,u,h){s&=~l0,s&=~rs,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var g=s;0<g;){var v=31-nt(g),R=1<<v;h[v]=-1,g&=~R}u!==0&&Ha(i,u,s)}function Yf(){return(Mt&6)===0?(tu(0),!1):!0}function p0(){if(Et!==null){if(Pt===0)var i=Et.return;else i=Et,vi=Xo=null,Ig(i),ll=null,Vc=0,i=Et;for(;i!==null;)y_(i.alternate,i),i=i.return;Et=null}}function gl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,RO(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),p0(),Kt=i,Et=u=yi(i.current,null),At=s,Pt=0,qr=null,so=!1,fl=ot(i,s),s0=!1,hl=ha=l0=rs=lo=Tn=0,wr=Jc=null,c0=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var g=31-nt(h),v=1<<g;s|=i[g],h&=~v}return ki=s,mf(),u}function j_(i,s){mt=null,G.H=Lf,s===Pc||s===Af?(s=nT(),Pt=3):s===Jv?(s=nT(),Pt=4):Pt=s===r_?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,qr=s,Et===null&&(Tn=1,jf(i,la(s,i.current)))}function B_(){var i=G.H;return G.H=Lf,i===null?Lf:i}function U_(){var i=G.A;return G.A=cO,i}function m0(){Tn=4,so||(At&4194048)!==At&&fa.current!==null||(fl=!0),(lo&134217727)===0&&(rs&134217727)===0||Kt===null||fo(Kt,At,ha,!1)}function g0(i,s,u){var h=Mt;Mt|=2;var g=B_(),v=U_();(Kt!==i||At!==s)&&(qf=null,gl(i,s)),s=!1;var R=Tn;e:do try{if(Pt!==0&&Et!==null){var O=Et,U=qr;switch(Pt){case 8:p0(),R=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(s=!0);var ee=Pt;if(Pt=0,qr=null,yl(i,O,U,ee),u&&fl){R=0;break e}break;default:ee=Pt,Pt=0,qr=null,yl(i,O,U,ee)}}fO(),R=Tn;break}catch(pe){j_(i,pe)}while(!0);return s&&i.shellSuspendCounter++,vi=Xo=null,Mt=h,G.H=g,G.A=v,Et===null&&(Kt=null,At=0,mf()),R}function fO(){for(;Et!==null;)H_(Et)}function hO(i,s){var u=Mt;Mt|=2;var h=B_(),g=U_();Kt!==i||At!==s?(qf=null,Vf=Ve()+500,gl(i,s)):fl=ot(i,s);e:do try{if(Pt!==0&&Et!==null){s=Et;var v=qr;t:switch(Pt){case 1:Pt=0,qr=null,yl(i,s,v,1);break;case 2:case 9:if(eT(v)){Pt=0,qr=null,z_(s);break}s=function(){Pt!==2&&Pt!==9||Kt!==i||(Pt=7),Qa(i)},v.then(s,s);break e;case 3:Pt=7;break e;case 4:Pt=5;break e;case 7:eT(v)?(Pt=0,qr=null,z_(s)):(Pt=0,qr=null,yl(i,s,v,7));break;case 5:var R=null;switch(Et.tag){case 26:R=Et.memoizedState;case 5:case 27:var O=Et;if(!R||Ax(R)){Pt=0,qr=null;var U=O.sibling;if(U!==null)Et=U;else{var ee=O.return;ee!==null?(Et=ee,Qf(ee)):Et=null}break t}}Pt=0,qr=null,yl(i,s,v,5);break;case 6:Pt=0,qr=null,yl(i,s,v,6);break;case 8:p0(),Tn=6;break e;default:throw Error(r(462))}}pO();break}catch(pe){j_(i,pe)}while(!0);return vi=Xo=null,G.H=h,G.A=g,Mt=u,Et!==null?0:(Kt=null,At=0,mf(),Tn)}function pO(){for(;Et!==null&&!sr();)H_(Et)}function H_(i){var s=m_(i.alternate,i,ki);i.memoizedProps=i.pendingProps,s===null?Qf(i):Et=s}function z_(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=c_(u,s,s.pendingProps,s.type,void 0,At);break;case 11:s=c_(u,s,s.pendingProps,s.type.render,s.ref,At);break;case 5:Ig(s);default:y_(u,s),s=Et=Gv(s,ki),s=m_(u,s,ki)}i.memoizedProps=i.pendingProps,s===null?Qf(i):Et=s}function yl(i,s,u,h){vi=Xo=null,Ig(s),ll=null,Vc=0;var g=s.return;try{if(rO(i,g,s,u,At)){Tn=1,jf(i,la(u,i.current)),Et=null;return}}catch(v){if(g!==null)throw Et=g,v;Tn=1,jf(i,la(u,i.current)),Et=null;return}s.flags&32768?(wt||h===1?i=!0:fl||(At&536870912)!==0?i=!1:(so=i=!0,(h===2||h===9||h===3||h===6)&&(h=fa.current,h!==null&&h.tag===13&&(h.flags|=16384))),G_(s,i)):Qf(s)}function Qf(i){var s=i;do{if((s.flags&32768)!==0){G_(s,so);return}i=s.return;var u=iO(s.alternate,s,ki);if(u!==null){Et=u;return}if(s=s.sibling,s!==null){Et=s;return}Et=s=i}while(s!==null);Tn===0&&(Tn=5)}function G_(i,s){do{var u=oO(i.alternate,i);if(u!==null){u.flags&=32767,Et=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){Et=i;return}Et=i=u}while(i!==null);Tn=6,Et=null}function V_(i,s,u,h,g,v,R,O,U){i.cancelPendingCommit=null;do Wf();while(tr!==0);if((Mt&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(v=s.lanes|s.childLanes,v|=og,cr(i,u,v,R,O,U),i===Kt&&(Et=Kt=null,At=0),pl=s,uo=i,ml=u,d0=v,f0=g,M_=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,bO(Ye,function(){return K_(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=G.T,G.T=null,g=le.p,le.p=2,R=Mt,Mt|=4;try{sO(i,s,u)}finally{Mt=R,le.p=g,G.T=h}}tr=1,q_(),Y_(),Q_()}}function q_(){if(tr===1){tr=0;var i=uo,s=pl,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=G.T,G.T=null;var h=le.p;le.p=2;var g=Mt;Mt|=4;try{k_(s,i);var v=k0,R=Lv(i.containerInfo),O=v.focusedElem,U=v.selectionRange;if(R!==O&&O&&O.ownerDocument&&Ov(O.ownerDocument.documentElement,O)){if(U!==null&&tg(O)){var ee=U.start,pe=U.end;if(pe===void 0&&(pe=ee),"selectionStart"in O)O.selectionStart=ee,O.selectionEnd=Math.min(pe,O.value.length);else{var be=O.ownerDocument||document,ae=be&&be.defaultView||window;if(ae.getSelection){var oe=ae.getSelection(),rt=O.textContent.length,Je=Math.min(U.start,rt),Bt=U.end===void 0?Je:Math.min(U.end,rt);!oe.extend&&Je>Bt&&(R=Bt,Bt=Je,Je=R);var Y=Nv(O,Je),q=Nv(O,Bt);if(Y&&q&&(oe.rangeCount!==1||oe.anchorNode!==Y.node||oe.anchorOffset!==Y.offset||oe.focusNode!==q.node||oe.focusOffset!==q.offset)){var Z=be.createRange();Z.setStart(Y.node,Y.offset),oe.removeAllRanges(),Je>Bt?(oe.addRange(Z),oe.extend(q.node,q.offset)):(Z.setEnd(q.node,q.offset),oe.addRange(Z))}}}}for(be=[],oe=O;oe=oe.parentNode;)oe.nodeType===1&&be.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<be.length;O++){var ge=be[O];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}sh=!!D0,k0=D0=null}finally{Mt=g,le.p=h,G.T=u}}i.current=s,tr=2}}function Y_(){if(tr===2){tr=0;var i=uo,s=pl,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=G.T,G.T=null;var h=le.p;le.p=2;var g=Mt;Mt|=4;try{A_(i,s.alternate,s)}finally{Mt=g,le.p=h,G.T=u}}tr=3}}function Q_(){if(tr===4||tr===3){tr=0,fn();var i=uo,s=pl,u=ml,h=M_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?tr=5:(tr=0,pl=uo=null,W_(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(co=null),Ra(u),s=s.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ue,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=G.T,g=le.p,le.p=2,G.T=null;try{for(var v=i.onRecoverableError,R=0;R<h.length;R++){var O=h[R];v(O.value,{componentStack:O.stack})}}finally{G.T=s,le.p=g}}(ml&3)!==0&&Wf(),Qa(i),g=i.pendingLanes,(u&4194090)!==0&&(g&42)!==0?i===h0?eu++:(eu=0,h0=i):eu=0,tu(0)}}function W_(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Lc(s)))}function Wf(i){return q_(),Y_(),Q_(),K_()}function K_(){if(tr!==5)return!1;var i=uo,s=d0;d0=0;var u=Ra(ml),h=G.T,g=le.p;try{le.p=32>u?32:u,G.T=null,u=f0,f0=null;var v=uo,R=ml;if(tr=0,pl=uo=null,ml=0,(Mt&6)!==0)throw Error(r(331));var O=Mt;if(Mt|=4,O_(v.current),w_(v,v.current,R,u),Mt=O,tu(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ue,v)}catch{}return!0}finally{le.p=g,G.T=h,W_(i,s)}}function X_(i,s,u){s=la(u,s),s=Vg(i.stateNode,s,2),i=eo(i,s,2),i!==null&&(lr(i,2),Qa(i))}function zt(i,s,u){if(i.tag===3)X_(i,i,u);else for(;s!==null;){if(s.tag===3){X_(s,i,u);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(co===null||!co.has(h))){i=la(u,i),u=t_(2),h=eo(s,u,2),h!==null&&(n_(u,h,s,i),lr(h,2),Qa(h));break}}s=s.return}}function y0(i,s,u){var h=i.pingCache;if(h===null){h=i.pingCache=new uO;var g=new Set;h.set(s,g)}else g=h.get(s),g===void 0&&(g=new Set,h.set(s,g));g.has(u)||(s0=!0,g.add(u),i=mO.bind(null,i,s,u),s.then(i,i))}function mO(i,s,u){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,Kt===i&&(At&u)===u&&(Tn===4||Tn===3&&(At&62914560)===At&&300>Ve()-u0?(Mt&2)===0&&gl(i,0):l0|=u,hl===At&&(hl=0)),Qa(i)}function Z_(i,s){s===0&&(s=jr()),i=Zs(i,s),i!==null&&(lr(i,s),Qa(i))}function gO(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),Z_(i,u)}function yO(i,s){var u=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),Z_(i,u)}function bO(i,s){return Nt(i,s)}var Kf=null,bl=null,b0=!1,Xf=!1,E0=!1,as=0;function Qa(i){i!==bl&&i.next===null&&(bl===null?Kf=bl=i:bl=bl.next=i),Xf=!0,b0||(b0=!0,vO())}function tu(i,s){if(!E0&&Xf){E0=!0;do for(var u=!1,h=Kf;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var v=0;else{var R=h.suspendedLanes,O=h.pingedLanes;v=(1<<31-nt(42|i)+1)-1,v&=g&~(R&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(u=!0,nx(h,v))}else v=At,v=Te(h,h===Kt?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(v&3)===0||ot(h,v)||(u=!0,nx(h,v));h=h.next}while(u);E0=!1}}function EO(){J_()}function J_(){Xf=b0=!1;var i=0;as!==0&&(kO()&&(i=as),as=0);for(var s=Ve(),u=null,h=Kf;h!==null;){var g=h.next,v=ex(h,s);v===0?(h.next=null,u===null?Kf=g:u.next=g,g===null&&(bl=u)):(u=h,(i!==0||(v&3)!==0)&&(Xf=!0)),h=g}tu(i)}function ex(i,s){for(var u=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var R=31-nt(v),O=1<<R,U=g[R];U===-1?((O&u)===0||(O&h)!==0)&&(g[R]=Ke(O,s)):U<=s&&(i.expiredLanes|=O),v&=~O}if(s=Kt,u=At,u=Te(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===s&&(Pt===2||Pt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&$e(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||ot(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(h!==null&&$e(h),Ra(u)){case 2:case 8:u=sn;break;case 32:u=Ye;break;case 268435456:u=Cr;break;default:u=Ye}return h=tx.bind(null,i),u=Nt(u,h),i.callbackPriority=s,i.callbackNode=u,s}return h!==null&&h!==null&&$e(h),i.callbackPriority=2,i.callbackNode=null,2}function tx(i,s){if(tr!==0&&tr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Wf()&&i.callbackNode!==u)return null;var h=At;return h=Te(i,i===Kt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:($_(i,h,s),ex(i,Ve()),i.callbackNode!=null&&i.callbackNode===u?tx.bind(null,i):null)}function nx(i,s){if(Wf())return null;$_(i,s,!0)}function vO(){wO(function(){(Mt&6)!==0?Nt(an,EO):J_()})}function v0(){return as===0&&(as=Dn()),as}function rx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:lf(""+i)}function ax(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function TO(i,s,u,h,g){if(s==="submit"&&u&&u.stateNode===g){var v=rx((g[De]||null).action),R=h.submitter;R&&(s=(s=R[De]||null)?rx(s.formAction):R.getAttribute("formAction"),s!==null&&(v=s,R=null));var O=new ff("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(as!==0){var U=R?ax(g,R):new FormData(g);Bg(u,{pending:!0,data:U,method:g.method,action:v},null,U)}}else typeof v=="function"&&(O.preventDefault(),U=R?ax(g,R):new FormData(g),Bg(u,{pending:!0,data:U,method:g.method,action:v},v,U))},currentTarget:g}]})}}for(var T0=0;T0<ig.length;T0++){var _0=ig[T0],_O=_0.toLowerCase(),xO=_0[0].toUpperCase()+_0.slice(1);wa(_O,"on"+xO)}wa($v,"onAnimationEnd"),wa(Fv,"onAnimationIteration"),wa(jv,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(BN,"onTransitionRun"),wa(UN,"onTransitionStart"),wa(HN,"onTransitionCancel"),wa(Bv,"onTransitionEnd"),vr("onMouseEnter",["mouseout","mouseover"]),vr("onMouseLeave",["mouseout","mouseover"]),vr("onPointerEnter",["pointerout","pointerover"]),vr("onPointerLeave",["pointerout","pointerover"]),Ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),AO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nu));function ix(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],g=h.event;h=h.listeners;e:{var v=void 0;if(s)for(var R=h.length-1;0<=R;R--){var O=h[R],U=O.instance,ee=O.currentTarget;if(O=O.listener,U!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Ff(pe)}g.currentTarget=null,v=U}else for(R=0;R<h.length;R++){if(O=h[R],U=O.instance,ee=O.currentTarget,O=O.listener,U!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Ff(pe)}g.currentTarget=null,v=U}}}}function vt(i,s){var u=s[Ge];u===void 0&&(u=s[Ge]=new Set);var h=i+"__bubble";u.has(h)||(ox(s,i,2,!1),u.add(h))}function x0(i,s,u){var h=0;s&&(h|=4),ox(u,i,h,s)}var Zf="_reactListening"+Math.random().toString(36).slice(2);function A0(i){if(!i[Zf]){i[Zf]=!0,$t.forEach(function(u){u!=="selectionchange"&&(AO.has(u)||x0(u,!1,i),x0(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Zf]||(s[Zf]=!0,x0("selectionchange",!1,s))}}function ox(i,s,u,h){switch(wx(s)){case 2:var g=XO;break;case 8:g=ZO;break;default:g=F0}u=g.bind(null,s,u,i),g=void 0,!qm||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(s,u,{capture:!0,passive:g}):i.addEventListener(s,u,!0):g!==void 0?i.addEventListener(s,u,{passive:g}):i.addEventListener(s,u,!1)}function S0(i,s,u,h,g){var v=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var O=h.stateNode.containerInfo;if(O===g)break;if(R===4)for(R=h.return;R!==null;){var U=R.tag;if((U===3||U===4)&&R.stateNode.containerInfo===g)return;R=R.return}for(;O!==null;){if(R=pt(O),R===null)return;if(U=R.tag,U===5||U===6||U===26||U===27){h=v=R;continue e}O=O.parentNode}}h=h.return}hv(function(){var ee=v,pe=Gm(u),be=[];e:{var ae=Uv.get(i);if(ae!==void 0){var oe=ff,rt=i;switch(i){case"keypress":if(uf(u)===0)break e;case"keydown":case"keyup":oe=bN;break;case"focusin":rt="focus",oe=Km;break;case"focusout":rt="blur",oe=Km;break;case"beforeblur":case"afterblur":oe=Km;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=gv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=oN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=TN;break;case $v:case Fv:case jv:oe=cN;break;case Bv:oe=xN;break;case"scroll":case"scrollend":oe=aN;break;case"wheel":oe=SN;break;case"copy":case"cut":case"paste":oe=dN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=bv;break;case"toggle":case"beforetoggle":oe=DN}var Je=(s&4)!==0,Bt=!Je&&(i==="scroll"||i==="scrollend"),Y=Je?ae!==null?ae+"Capture":null:ae;Je=[];for(var q=ee,Z;q!==null;){var ge=q;if(Z=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||Z===null||Y===null||(ge=Tc(q,Y),ge!=null&&Je.push(ru(q,ge,Z))),Bt)break;q=q.return}0<Je.length&&(ae=new oe(ae,rt,null,u,pe),be.push({event:ae,listeners:Je}))}}if((s&7)===0){e:{if(ae=i==="mouseover"||i==="pointerover",oe=i==="mouseout"||i==="pointerout",ae&&u!==zm&&(rt=u.relatedTarget||u.fromElement)&&(pt(rt)||rt[Be]))break e;if((oe||ae)&&(ae=pe.window===pe?pe:(ae=pe.ownerDocument)?ae.defaultView||ae.parentWindow:window,oe?(rt=u.relatedTarget||u.toElement,oe=ee,rt=rt?pt(rt):null,rt!==null&&(Bt=o(rt),Je=rt.tag,rt!==Bt||Je!==5&&Je!==27&&Je!==6)&&(rt=null)):(oe=null,rt=ee),oe!==rt)){if(Je=gv,ge="onMouseLeave",Y="onMouseEnter",q="mouse",(i==="pointerout"||i==="pointerover")&&(Je=bv,ge="onPointerLeave",Y="onPointerEnter",q="pointer"),Bt=oe==null?ae:bn(oe),Z=rt==null?ae:bn(rt),ae=new Je(ge,q+"leave",oe,u,pe),ae.target=Bt,ae.relatedTarget=Z,ge=null,pt(pe)===ee&&(Je=new Je(Y,q+"enter",rt,u,pe),Je.target=Z,Je.relatedTarget=Bt,ge=Je),Bt=ge,oe&&rt)t:{for(Je=oe,Y=rt,q=0,Z=Je;Z;Z=El(Z))q++;for(Z=0,ge=Y;ge;ge=El(ge))Z++;for(;0<q-Z;)Je=El(Je),q--;for(;0<Z-q;)Y=El(Y),Z--;for(;q--;){if(Je===Y||Y!==null&&Je===Y.alternate)break t;Je=El(Je),Y=El(Y)}Je=null}else Je=null;oe!==null&&sx(be,ae,oe,Je,!1),rt!==null&&Bt!==null&&sx(be,Bt,rt,Je,!0)}}e:{if(ae=ee?bn(ee):window,oe=ae.nodeName&&ae.nodeName.toLowerCase(),oe==="select"||oe==="input"&&ae.type==="file")var Fe=Cv;else if(Av(ae))if(Dv)Fe=$N;else{Fe=MN;var yt=LN}else oe=ae.nodeName,!oe||oe.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?ee&&Hm(ee.elementType)&&(Fe=Cv):Fe=PN;if(Fe&&(Fe=Fe(i,ee))){Sv(be,Fe,u,pe);break e}yt&&yt(i,ae,ee),i==="focusout"&&ee&&ae.type==="number"&&ee.memoizedProps.value!=null&&Um(ae,"number",ae.value)}switch(yt=ee?bn(ee):window,i){case"focusin":(Av(yt)||yt.contentEditable==="true")&&(Ws=yt,ng=ee,Rc=null);break;case"focusout":Rc=ng=Ws=null;break;case"mousedown":rg=!0;break;case"contextmenu":case"mouseup":case"dragend":rg=!1,Mv(be,u,pe);break;case"selectionchange":if(jN)break;case"keydown":case"keyup":Mv(be,u,pe)}var Qe;if(Zm)e:{switch(i){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else Qs?_v(i,u)&&(et="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(et="onCompositionStart");et&&(Ev&&u.locale!=="ko"&&(Qs||et!=="onCompositionStart"?et==="onCompositionEnd"&&Qs&&(Qe=pv()):(Ki=pe,Ym="value"in Ki?Ki.value:Ki.textContent,Qs=!0)),yt=Jf(ee,et),0<yt.length&&(et=new yv(et,i,null,u,pe),be.push({event:et,listeners:yt}),Qe?et.data=Qe:(Qe=xv(u),Qe!==null&&(et.data=Qe)))),(Qe=RN?wN(i,u):IN(i,u))&&(et=Jf(ee,"onBeforeInput"),0<et.length&&(yt=new yv("onBeforeInput","beforeinput",null,u,pe),be.push({event:yt,listeners:et}),yt.data=Qe)),TO(be,i,ee,u,pe)}ix(be,s)})}function ru(i,s,u){return{instance:i,listener:s,currentTarget:u}}function Jf(i,s){for(var u=s+"Capture",h=[];i!==null;){var g=i,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=Tc(i,u),g!=null&&h.unshift(ru(i,g,v)),g=Tc(i,s),g!=null&&h.push(ru(i,g,v))),i.tag===3)return h;i=i.return}return[]}function El(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function sx(i,s,u,h,g){for(var v=s._reactName,R=[];u!==null&&u!==h;){var O=u,U=O.alternate,ee=O.stateNode;if(O=O.tag,U!==null&&U===h)break;O!==5&&O!==26&&O!==27||ee===null||(U=ee,g?(ee=Tc(u,v),ee!=null&&R.unshift(ru(u,ee,U))):g||(ee=Tc(u,v),ee!=null&&R.push(ru(u,ee,U)))),u=u.return}R.length!==0&&i.push({event:s,listeners:R})}var SO=/\r\n?/g,CO=/\u0000|\uFFFD/g;function lx(i){return(typeof i=="string"?i:""+i).replace(SO,`
|
|
26
|
+
`).replace(CO,"")}function cx(i,s){return s=lx(s),lx(i)===s}function eh(){}function jt(i,s,u,h,g,v){switch(u){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Vs(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Vs(i,""+h);break;case"className":mi(i,"class",h);break;case"tabIndex":mi(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(i,u,h);break;case"style":dv(i,h,v);break;case"data":if(s!=="object"){mi(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=lf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(u==="formAction"?(s!=="input"&&jt(i,s,"name",g.name,g,null),jt(i,s,"formEncType",g.formEncType,g,null),jt(i,s,"formMethod",g.formMethod,g,null),jt(i,s,"formTarget",g.formTarget,g,null)):(jt(i,s,"encType",g.encType,g,null),jt(i,s,"method",g.method,g,null),jt(i,s,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=lf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=eh);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=lf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":vt("beforetoggle",i),vt("toggle",i),pi(i,"popover",h);break;case"xlinkActuate":gt(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":gt(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":gt(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":gt(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":gt(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":gt(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":gt(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":gt(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":gt(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pi(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=nN.get(u)||u,pi(i,u,h))}}function C0(i,s,u,h,g,v){switch(u){case"style":dv(i,h,v);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?Vs(i,h):(typeof h=="number"||typeof h=="bigint")&&Vs(i,""+h);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!za.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),s=u.slice(2,g?u.length-7:void 0),v=i[De]||null,v=v!=null?v[u]:null,typeof v=="function"&&i.removeEventListener(s,v,g),typeof h=="function")){typeof v!="function"&&v!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,h,g);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):pi(i,u,h)}}}function nr(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",i),vt("load",i);var h=!1,g=!1,v;for(v in u)if(u.hasOwnProperty(v)){var R=u[v];if(R!=null)switch(v){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:jt(i,s,v,R,u,null)}}g&&jt(i,s,"srcSet",u.srcSet,u,null),h&&jt(i,s,"src",u.src,u,null);return;case"input":vt("invalid",i);var O=v=R=g=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var pe=u[h];if(pe!=null)switch(h){case"name":g=pe;break;case"type":R=pe;break;case"checked":U=pe;break;case"defaultChecked":ee=pe;break;case"value":v=pe;break;case"defaultValue":O=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,s));break;default:jt(i,s,h,pe,u,null)}}sv(i,v,O,U,ee,R,g,!1),of(i);return;case"select":vt("invalid",i),h=R=v=null;for(g in u)if(u.hasOwnProperty(g)&&(O=u[g],O!=null))switch(g){case"value":v=O;break;case"defaultValue":R=O;break;case"multiple":h=O;default:jt(i,s,g,O,u,null)}s=v,u=R,i.multiple=!!h,s!=null?Gs(i,!!h,s,!1):u!=null&&Gs(i,!!h,u,!0);return;case"textarea":vt("invalid",i),v=g=h=null;for(R in u)if(u.hasOwnProperty(R)&&(O=u[R],O!=null))switch(R){case"value":h=O;break;case"defaultValue":g=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:jt(i,s,R,O,u,null)}cv(i,h,g,v),of(i);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:jt(i,s,U,h,u,null)}return;case"dialog":vt("beforetoggle",i),vt("toggle",i),vt("cancel",i),vt("close",i);break;case"iframe":case"object":vt("load",i);break;case"video":case"audio":for(h=0;h<nu.length;h++)vt(nu[h],i);break;case"image":vt("error",i),vt("load",i);break;case"details":vt("toggle",i);break;case"embed":case"source":case"link":vt("error",i),vt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:jt(i,s,ee,h,u,null)}return;default:if(Hm(s)){for(pe in u)u.hasOwnProperty(pe)&&(h=u[pe],h!==void 0&&C0(i,s,pe,h,u,void 0));return}}for(O in u)u.hasOwnProperty(O)&&(h=u[O],h!=null&&jt(i,s,O,h,u,null))}function DO(i,s,u,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,R=null,O=null,U=null,ee=null,pe=null;for(oe in u){var be=u[oe];if(u.hasOwnProperty(oe)&&be!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":U=be;default:h.hasOwnProperty(oe)||jt(i,s,oe,null,h,be)}}for(var ae in h){var oe=h[ae];if(be=u[ae],h.hasOwnProperty(ae)&&(oe!=null||be!=null))switch(ae){case"type":v=oe;break;case"name":g=oe;break;case"checked":ee=oe;break;case"defaultChecked":pe=oe;break;case"value":R=oe;break;case"defaultValue":O=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,s));break;default:oe!==be&&jt(i,s,ae,oe,h,be)}}Bm(i,R,O,U,ee,pe,v,g);return;case"select":oe=R=O=ae=null;for(v in u)if(U=u[v],u.hasOwnProperty(v)&&U!=null)switch(v){case"value":break;case"multiple":oe=U;default:h.hasOwnProperty(v)||jt(i,s,v,null,h,U)}for(g in h)if(v=h[g],U=u[g],h.hasOwnProperty(g)&&(v!=null||U!=null))switch(g){case"value":ae=v;break;case"defaultValue":O=v;break;case"multiple":R=v;default:v!==U&&jt(i,s,g,v,h,U)}s=O,u=R,h=oe,ae!=null?Gs(i,!!u,ae,!1):!!h!=!!u&&(s!=null?Gs(i,!!u,s,!0):Gs(i,!!u,u?[]:"",!1));return;case"textarea":oe=ae=null;for(O in u)if(g=u[O],u.hasOwnProperty(O)&&g!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:jt(i,s,O,null,h,g)}for(R in h)if(g=h[R],v=u[R],h.hasOwnProperty(R)&&(g!=null||v!=null))switch(R){case"value":ae=g;break;case"defaultValue":oe=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==v&&jt(i,s,R,g,h,v)}lv(i,ae,oe);return;case"option":for(var rt in u)if(ae=u[rt],u.hasOwnProperty(rt)&&ae!=null&&!h.hasOwnProperty(rt))switch(rt){case"selected":i.selected=!1;break;default:jt(i,s,rt,null,h,ae)}for(U in h)if(ae=h[U],oe=u[U],h.hasOwnProperty(U)&&ae!==oe&&(ae!=null||oe!=null))switch(U){case"selected":i.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:jt(i,s,U,ae,h,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Je in u)ae=u[Je],u.hasOwnProperty(Je)&&ae!=null&&!h.hasOwnProperty(Je)&&jt(i,s,Je,null,h,ae);for(ee in h)if(ae=h[ee],oe=u[ee],h.hasOwnProperty(ee)&&ae!==oe&&(ae!=null||oe!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:jt(i,s,ee,ae,h,oe)}return;default:if(Hm(s)){for(var Bt in u)ae=u[Bt],u.hasOwnProperty(Bt)&&ae!==void 0&&!h.hasOwnProperty(Bt)&&C0(i,s,Bt,void 0,h,ae);for(pe in h)ae=h[pe],oe=u[pe],!h.hasOwnProperty(pe)||ae===oe||ae===void 0&&oe===void 0||C0(i,s,pe,ae,h,oe);return}}for(var Y in u)ae=u[Y],u.hasOwnProperty(Y)&&ae!=null&&!h.hasOwnProperty(Y)&&jt(i,s,Y,null,h,ae);for(be in h)ae=h[be],oe=u[be],!h.hasOwnProperty(be)||ae===oe||ae==null&&oe==null||jt(i,s,be,ae,h,oe)}var D0=null,k0=null;function th(i){return i.nodeType===9?i:i.ownerDocument}function ux(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dx(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function R0(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var w0=null;function kO(){var i=window.event;return i&&i.type==="popstate"?i===w0?!1:(w0=i,!0):(w0=null,!1)}var fx=typeof setTimeout=="function"?setTimeout:void 0,RO=typeof clearTimeout=="function"?clearTimeout:void 0,hx=typeof Promise=="function"?Promise:void 0,wO=typeof queueMicrotask=="function"?queueMicrotask:typeof hx<"u"?function(i){return hx.resolve(null).then(i).catch(IO)}:fx;function IO(i){setTimeout(function(){throw i})}function ho(i){return i==="head"}function px(i,s){var u=s,h=0,g=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"){if(0<h&&8>h){u=h;var R=i.ownerDocument;if(u&1&&au(R.documentElement),u&2&&au(R.body),u&4)for(u=R.head,au(u),R=u.firstChild;R;){var O=R.nextSibling,U=R.nodeName;R[ze]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&R.rel.toLowerCase()==="stylesheet"||u.removeChild(R),R=O}}if(g===0){i.removeChild(v),fu(s);return}g--}else u==="$"||u==="$?"||u==="$!"?g++:h=u.charCodeAt(0)-48;else h=0;u=v}while(u);fu(s)}function I0(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":I0(u),qe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function NO(i,s,u,h){for(;i.nodeType===1;){var g=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[ze])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=Na(i.nextSibling),i===null)break}return null}function OO(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Na(i.nextSibling),i===null))return null;return i}function N0(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function LO(i,s){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")s();else{var h=function(){s(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Na(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}var O0=null;function mx(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(s===0)return i;s--}else u==="/$"&&s++}i=i.previousSibling}return null}function gx(i,s,u){switch(s=th(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function au(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);qe(i)}var pa=new Map,yx=new Set;function nh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ri=le.d;le.d={f:MO,r:PO,D:$O,C:FO,L:jO,m:BO,X:HO,S:UO,M:zO};function MO(){var i=Ri.f(),s=Yf();return i||s}function PO(i){var s=Lt(i);s!==null&&s.tag===5&&s.type==="form"?$T(s):Ri.r(i)}var vl=typeof document>"u"?null:document;function bx(i,s,u){var h=vl;if(h&&typeof s=="string"&&s){var g=sa(s);g='link[rel="'+i+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),yx.has(g)||(yx.add(g),i={rel:i,crossOrigin:u,href:s},h.querySelector(g)===null&&(s=h.createElement("link"),nr(s,"link",i),ft(s),h.head.appendChild(s)))}}function $O(i){Ri.D(i),bx("dns-prefetch",i,null)}function FO(i,s){Ri.C(i,s),bx("preconnect",i,s)}function jO(i,s,u){Ri.L(i,s,u);var h=vl;if(h&&i&&s){var g='link[rel="preload"][as="'+sa(s)+'"]';s==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+sa(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+sa(u.imageSizes)+'"]')):g+='[href="'+sa(i)+'"]';var v=g;switch(s){case"style":v=Tl(i);break;case"script":v=_l(i)}pa.has(v)||(i=p({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),pa.set(v,i),h.querySelector(g)!==null||s==="style"&&h.querySelector(iu(v))||s==="script"&&h.querySelector(ou(v))||(s=h.createElement("link"),nr(s,"link",i),ft(s),h.head.appendChild(s)))}}function BO(i,s){Ri.m(i,s);var u=vl;if(u&&i){var h=s&&typeof s.as=="string"?s.as:"script",g='link[rel="modulepreload"][as="'+sa(h)+'"][href="'+sa(i)+'"]',v=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=_l(i)}if(!pa.has(v)&&(i=p({rel:"modulepreload",href:i},s),pa.set(v,i),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ou(v)))return}h=u.createElement("link"),nr(h,"link",i),ft(h),u.head.appendChild(h)}}}function UO(i,s,u){Ri.S(i,s,u);var h=vl;if(h&&i){var g=En(h).hoistableStyles,v=Tl(i);s=s||"default";var R=g.get(v);if(!R){var O={loading:0,preload:null};if(R=h.querySelector(iu(v)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":s},u),(u=pa.get(v))&&L0(i,u);var U=R=h.createElement("link");ft(U),nr(U,"link",i),U._p=new Promise(function(ee,pe){U.onload=ee,U.onerror=pe}),U.addEventListener("load",function(){O.loading|=1}),U.addEventListener("error",function(){O.loading|=2}),O.loading|=4,rh(R,s,h)}R={type:"stylesheet",instance:R,count:1,state:O},g.set(v,R)}}}function HO(i,s){Ri.X(i,s);var u=vl;if(u&&i){var h=En(u).hoistableScripts,g=_l(i),v=h.get(g);v||(v=u.querySelector(ou(g)),v||(i=p({src:i,async:!0},s),(s=pa.get(g))&&M0(i,s),v=u.createElement("script"),ft(v),nr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function zO(i,s){Ri.M(i,s);var u=vl;if(u&&i){var h=En(u).hoistableScripts,g=_l(i),v=h.get(g);v||(v=u.querySelector(ou(g)),v||(i=p({src:i,async:!0,type:"module"},s),(s=pa.get(g))&&M0(i,s),v=u.createElement("script"),ft(v),nr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function Ex(i,s,u,h){var g=(g=we.current)?nh(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=Tl(u.href),u=En(g).hoistableStyles,h=u.get(s),h||(h={type:"style",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Tl(u.href);var v=En(g).hoistableStyles,R=v.get(i);if(R||(g=g.ownerDocument||g,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,R),(v=g.querySelector(iu(i)))&&!v._p&&(R.instance=v,R.state.loading=5),pa.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},pa.set(i,u),v||GO(g,i,u,R.state))),s&&h===null)throw Error(r(528,""));return R}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=_l(u),u=En(g).hoistableScripts,h=u.get(s),h||(h={type:"script",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Tl(i){return'href="'+sa(i)+'"'}function iu(i){return'link[rel="stylesheet"]['+i+"]"}function vx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function GO(i,s,u,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),nr(s,"link",u),ft(s),i.head.appendChild(s))}function _l(i){return'[src="'+sa(i)+'"]'}function ou(i){return"script[async]"+i}function Tx(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+sa(u.href)+'"]');if(h)return s.instance=h,ft(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),ft(h),nr(h,"style",g),rh(h,u.precedence,i),s.instance=h;case"stylesheet":g=Tl(u.href);var v=i.querySelector(iu(g));if(v)return s.state.loading|=4,s.instance=v,ft(v),v;h=vx(u),(g=pa.get(g))&&L0(h,g),v=(i.ownerDocument||i).createElement("link"),ft(v);var R=v;return R._p=new Promise(function(O,U){R.onload=O,R.onerror=U}),nr(v,"link",h),s.state.loading|=4,rh(v,u.precedence,i),s.instance=v;case"script":return v=_l(u.src),(g=i.querySelector(ou(v)))?(s.instance=g,ft(g),g):(h=u,(g=pa.get(v))&&(h=p({},u),M0(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),ft(g),nr(g,"link",h),i.head.appendChild(g),s.instance=g);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,rh(h,u.precedence,i));return s.instance}function rh(i,s,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,v=g,R=0;R<h.length;R++){var O=h[R];if(O.dataset.precedence===s)v=O;else if(v!==g)break}v?v.parentNode.insertBefore(i,v.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function L0(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function M0(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var ah=null;function _x(i,s,u){if(ah===null){var h=new Map,g=ah=new Map;g.set(u,h)}else g=ah,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),g=0;g<u.length;g++){var v=u[g];if(!(v[ze]||v[Ee]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var R=v.getAttribute(s)||"";R=i+R;var O=h.get(R);O?O.push(v):h.set(R,[v])}}return h}function xx(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function VO(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Ax(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var su=null;function qO(){}function YO(i,s,u){if(su===null)throw Error(r(475));var h=su;if(s.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var g=Tl(u.href),v=i.querySelector(iu(g));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=ih.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=v,ft(v);return}v=i.ownerDocument||i,u=vx(u),(g=pa.get(g))&&L0(u,g),v=v.createElement("link"),ft(v);var R=v;R._p=new Promise(function(O,U){R.onload=O,R.onerror=U}),nr(v,"link",u),s.instance=v}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=ih.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function QO(){if(su===null)throw Error(r(475));var i=su;return i.stylesheets&&i.count===0&&P0(i,i.stylesheets),0<i.count?function(s){var u=setTimeout(function(){if(i.stylesheets&&P0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(u)}}:null}function ih(){if(this.count--,this.count===0){if(this.stylesheets)P0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var oh=null;function P0(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,oh=new Map,s.forEach(WO,i),oh=null,ih.call(i))}function WO(i,s){if(!(s.state.loading&4)){var u=oh.get(i);if(u)var h=u.get(null);else{u=new Map,oh.set(i,u);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var R=g[v];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),h=R)}h&&u.set(null,h)}g=s.instance,R=g.getAttribute("data-precedence"),v=u.get(R)||h,v===h&&u.set(null,g),u.set(R,g),this.count++,h=ih.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),v?v.parentNode.insertBefore(g,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),s.state.loading|=4}}var lu={$$typeof:S,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function KO(i,s,u,h,g,v,R,O){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Er(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Er(0),this.hiddenUpdates=Er(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Sx(i,s,u,h,g,v,R,O,U,ee,pe,be){return i=new KO(i,s,u,R,O,U,ee,be),s=1,v===!0&&(s|=24),v=zr(3,null,null,s),i.current=v,v.stateNode=i,s=yg(),s.refCount++,i.pooledCache=s,s.refCount++,v.memoizedState={element:h,isDehydrated:u,cache:s},Tg(v),i}function Cx(i){return i?(i=Js,i):Js}function Dx(i,s,u,h,g,v){g=Cx(g),h.context===null?h.context=g:h.pendingContext=g,h=Ji(s),h.payload={element:u},v=v===void 0?null:v,v!==null&&(h.callback=v),u=eo(i,h,s),u!==null&&(Qr(u,i,s),Fc(u,i,s))}function kx(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function $0(i,s){kx(i,s),(i=i.alternate)&&kx(i,s)}function Rx(i){if(i.tag===13){var s=Zs(i,67108864);s!==null&&Qr(s,i,67108864),$0(i,67108864)}}var sh=!0;function XO(i,s,u,h){var g=G.T;G.T=null;var v=le.p;try{le.p=2,F0(i,s,u,h)}finally{le.p=v,G.T=g}}function ZO(i,s,u,h){var g=G.T;G.T=null;var v=le.p;try{le.p=8,F0(i,s,u,h)}finally{le.p=v,G.T=g}}function F0(i,s,u,h){if(sh){var g=j0(h);if(g===null)S0(i,s,h,lh,u),Ix(i,h);else if(e4(g,i,s,u,h))h.stopPropagation();else if(Ix(i,h),s&4&&-1<JO.indexOf(i)){for(;g!==null;){var v=Lt(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var R=_e(v.pendingLanes);if(R!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;R;){var U=1<<31-nt(R);O.entanglements[1]|=U,R&=~U}Qa(v),(Mt&6)===0&&(Vf=Ve()+500,tu(0))}}break;case 13:O=Zs(v,2),O!==null&&Qr(O,v,2),Yf(),$0(v,2)}if(v=j0(h),v===null&&S0(i,s,h,lh,u),v===g)break;g=v}g!==null&&h.stopPropagation()}else S0(i,s,h,null,u)}}function j0(i){return i=Gm(i),B0(i)}var lh=null;function B0(i){if(lh=null,i=pt(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return lh=i,null}function wx(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Jn()){case an:return 2;case sn:return 8;case Ye:case Ct:return 32;case Cr:return 268435456;default:return 32}default:return 32}}var U0=!1,po=null,mo=null,go=null,cu=new Map,uu=new Map,yo=[],JO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ix(i,s){switch(i){case"focusin":case"focusout":po=null;break;case"dragenter":case"dragleave":mo=null;break;case"mouseover":case"mouseout":go=null;break;case"pointerover":case"pointerout":cu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":uu.delete(s.pointerId)}}function du(i,s,u,h,g,v){return i===null||i.nativeEvent!==v?(i={blockedOn:s,domEventName:u,eventSystemFlags:h,nativeEvent:v,targetContainers:[g]},s!==null&&(s=Lt(s),s!==null&&Rx(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),i)}function e4(i,s,u,h,g){switch(s){case"focusin":return po=du(po,i,s,u,h,g),!0;case"dragenter":return mo=du(mo,i,s,u,h,g),!0;case"mouseover":return go=du(go,i,s,u,h,g),!0;case"pointerover":var v=g.pointerId;return cu.set(v,du(cu.get(v)||null,i,s,u,h,g)),!0;case"gotpointercapture":return v=g.pointerId,uu.set(v,du(uu.get(v)||null,i,s,u,h,g)),!0}return!1}function Nx(i){var s=pt(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,X(i.priority,function(){if(u.tag===13){var h=Yr();h=Br(h);var g=Zs(u,h);g!==null&&Qr(g,u,h),$0(u,h)}});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function ch(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=j0(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);zm=h,u.target.dispatchEvent(h),zm=null}else return s=Lt(u),s!==null&&Rx(s),i.blockedOn=u,!1;s.shift()}return!0}function Ox(i,s,u){ch(i)&&u.delete(s)}function t4(){U0=!1,po!==null&&ch(po)&&(po=null),mo!==null&&ch(mo)&&(mo=null),go!==null&&ch(go)&&(go=null),cu.forEach(Ox),uu.forEach(Ox)}function uh(i,s){i.blockedOn===s&&(i.blockedOn=null,U0||(U0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,t4)))}var dh=null;function Lx(i){dh!==i&&(dh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){dh===i&&(dh=null);for(var s=0;s<i.length;s+=3){var u=i[s],h=i[s+1],g=i[s+2];if(typeof h!="function"){if(B0(h||u)===null)continue;break}var v=Lt(u);v!==null&&(i.splice(s,3),s-=3,Bg(v,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function fu(i){function s(U){return uh(U,i)}po!==null&&uh(po,i),mo!==null&&uh(mo,i),go!==null&&uh(go,i),cu.forEach(s),uu.forEach(s);for(var u=0;u<yo.length;u++){var h=yo[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<yo.length&&(u=yo[0],u.blockedOn===null);)Nx(u),u.blockedOn===null&&yo.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],v=u[h+1],R=g[De]||null;if(typeof v=="function")R||Lx(u);else if(R){var O=null;if(v&&v.hasAttribute("formAction")){if(g=v,R=v[De]||null)O=R.formAction;else if(B0(g)!==null)continue}else O=R.action;typeof O=="function"?u[h+1]=O:(u.splice(h,3),h-=3),Lx(u)}}}function H0(i){this._internalRoot=i}fh.prototype.render=H0.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,h=Yr();Dx(u,h,i,s,null,null)},fh.prototype.unmount=H0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Dx(i.current,2,null,i,null,null),Yf(),s[Be]=null}};function fh(i){this._internalRoot=i}fh.prototype.unstable_scheduleHydration=function(i){if(i){var s=z();i={blockedOn:null,target:i,priority:s};for(var u=0;u<yo.length&&s!==0&&s<yo[u].priority;u++);yo.splice(u,0,i),u===0&&Nx(i)}};var Mx=t.version;if(Mx!=="19.1.1")throw Error(r(527,Mx,"19.1.1"));le.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(s),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var n4={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hh.isDisabled&&hh.supportsFiber)try{ue=hh.inject(n4),ve=hh}catch{}}return hu.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,h="",g=XT,v=ZT,R=JT,O=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(v=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(O=s.unstable_transitionCallbacks)),s=Sx(i,1,!1,null,null,u,h,g,v,R,O,null),i[Be]=s.current,A0(i),new H0(s)},hu.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var h=!1,g="",v=XT,R=ZT,O=JT,U=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(O=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(U=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),s=Sx(i,1,!0,s,u??null,h,g,v,R,O,U,ee),s.context=Cx(null),u=s.current,h=Yr(),h=Br(h),g=Ji(h),g.callback=null,eo(u,g,h),u=h,s.current.lanes=u,lr(s,u),Qa(s),i[Be]=s.current,A0(i),new fh(s)},hu.version="19.1.1",hu}var Ux;function F4(){if(Ux)return z0.exports;Ux=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),z0.exports=$4(),z0.exports}var j4=F4();/**
|
|
27
|
+
* react-router v7.7.1
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Remix Software Inc.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
33
|
+
*
|
|
34
|
+
* @license MIT
|
|
35
|
+
*/var V2=e=>{throw TypeError(e)},B4=(e,t,n)=>t.has(e)||V2("Cannot "+n),q0=(e,t,n)=>(B4(e,t,"read from private field"),n?n.call(e):t.get(e)),U4=(e,t,n)=>t.has(e)?V2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Hx="popstate";function H4(e={}){function t(r,a){let{pathname:o,search:l,hash:c}=r.location;return sd("",{pathname:o,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Lo(a)}return G4(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function z4(){return Math.random().toString(36).substring(2,10)}function zx(e,t){return{usr:e.state,key:e.key,idx:t}}function sd(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$o(t):t,state:n,key:t&&t.key||r||z4()}}function Lo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function $o(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function G4(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let C=p(),x=C==null?null:C-f;f=C,d&&d({action:c,location:A.location,delta:x})}function b(C,x){c="PUSH";let D=sd(A.location,C,x);f=p()+1;let S=zx(D,f),L=A.createHref(D);try{l.pushState(S,"",L)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(L)}o&&d&&d({action:c,location:A.location,delta:1})}function y(C,x){c="REPLACE";let D=sd(A.location,C,x);f=p();let S=zx(D,f),L=A.createHref(D);l.replaceState(S,"",L),o&&d&&d({action:c,location:A.location,delta:0})}function T(C){return q2(C)}let A={get action(){return c},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Hx,m),d=C,()=>{a.removeEventListener(Hx,m),d=null}},createHref(C){return t(a,C)},createURL:T,encodeLocation(C){let x=T(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:b,replace:y,go(C){return l.go(C)}};return A}function q2(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Lo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Lu,Gx=class{constructor(e){if(U4(this,Lu,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(q0(this,Lu).has(e))return q0(this,Lu).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){q0(this,Lu).set(e,t)}};Lu=new WeakMap;var V4=new Set(["lazy","caseSensitive","path","id","index","children"]);function q4(e){return V4.has(e)}var Y4=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Q4(e){return Y4.has(e)}function W4(e){return e.index===!0}function ld(e,t,n=[],r={},a=!1){return e.map((o,l)=>{let c=[...n,String(l)],d=typeof o.id=="string"?o.id:c.join("-");if(Tt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Tt(a||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),W4(o)){let f={...o,...t(o),id:d};return r[d]=f,f}else{let f={...o,...t(o),id:d,children:void 0};return r[d]=f,o.children&&(f.children=ld(o.children,t,c,r,a)),f}})}function Co(e,t,n="/"){return Ph(e,t,n,!1)}function Ph(e,t,n,r){let a=typeof t=="string"?$o(t):t,o=Ca(a.pathname||"/",n);if(o==null)return null;let l=Y2(e);X4(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=l5(o);c=o5(l[d],f,r)}return c}function K4(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function Y2(e,t=[],n=[],r=""){let a=(o,l,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(Tt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=ii([r,d.relativePath]),p=n.concat(d);o.children&&o.children.length>0&&(Tt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Y2(o.children,t,p,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:a5(f,o.index),routesMeta:p})};return e.forEach((o,l)=>{if(o.path===""||!o.path?.includes("?"))a(o,l);else for(let c of Q2(o.path))a(o,l,c)}),t}function Q2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Q2(r.join("/")),c=[];return c.push(...l.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function X4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:i5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Z4=/^:[\w-]+$/,J4=3,e5=2,t5=1,n5=10,r5=-2,Vx=e=>e==="*";function a5(e,t){let n=e.split("/"),r=n.length;return n.some(Vx)&&(r+=r5),t&&(r+=e5),n.filter(a=>!Vx(a)).reduce((a,o)=>a+(Z4.test(o)?J4:o===""?t5:n5),r)}function i5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function o5(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",m=sp({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),b=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=sp({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:ii([o,m.pathname]),pathnameBase:f5(ii([o,m.pathnameBase])),route:b}),m.pathnameBase!=="/"&&(o=ii([o,m.pathnameBase]))}return l}function sp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=s5(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:m},b)=>{if(p==="*"){let T=c[b]||"";l=o.slice(0,o.length-T.length).replace(/(.)\/+$/,"$1")}const y=c[b];return m&&!y?f[p]=void 0:f[p]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function s5(e,t=!1,n=!0){Fn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function l5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ca(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function c5({basename:e,pathname:t}){return t==="/"?e:ii([e,t])}function u5(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?$o(e):e;return{pathname:n?n.startsWith("/")?n:d5(n,t):t,search:h5(r),hash:p5(a)}}function d5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Y0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function W2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yb(e){let t=W2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function bb(e,t,n,r=!1){let a;typeof e=="string"?a=$o(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Y0("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Y0("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Y0("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let b=l.split("/");for(;b[0]==="..";)b.shift(),m-=1;a.pathname=b.join("/")}c=m>=0?t[m]:"/"}let d=u5(a,c),f=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var ii=e=>e.join("/").replace(/\/\/+/g,"/"),f5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),h5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,p5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lp=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function cd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var K2=["POST","PUT","PATCH","DELETE"],m5=new Set(K2),g5=["GET",...K2],y5=new Set(g5),b5=new Set([301,302,303,307,308]),E5=new Set([307,308]),Q0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},T5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Eb=e=>T5.test(e),_5=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),X2="remix-router-transitions",Z2=Symbol("ResetLoaderData");function x5(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Tt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||_5,o={},l=ld(e.routes,a,void 0,o),c,d=e.basename||"/",f=e.dataStrategy||k5,p={unstable_middleware:!1,...e.future},m=null,b=new Set,y=null,T=null,A=null,C=e.hydrationData!=null,x=Co(l,e.history.location,d),D=!1,S=null,L;if(x==null&&!e.patchRoutesOnNavigation){let z=ya(404,{pathname:e.history.location.pathname}),{matches:X,route:ie}=rA(l);L=!0,x=X,S={[ie.id]:z}}else if(x&&!e.hydrationData&&Ha(x,l,e.history.location.pathname).active&&(x=null),x)if(x.some(z=>z.route.lazy))L=!1;else if(!x.some(z=>z.route.loader))L=!0;else{let z=e.hydrationData?e.hydrationData.loaderData:null,X=e.hydrationData?e.hydrationData.errors:null;if(X){let ie=x.findIndex(Ee=>X[Ee.route.id]!==void 0);L=x.slice(0,ie+1).every(Ee=>!ry(Ee.route,z,X))}else L=x.every(ie=>!ry(ie.route,z,X))}else{L=!1,x=[];let z=Ha(null,l,e.history.location.pathname);z.active&&z.matches&&(D=!0,x=z.matches)}let M,w={historyAction:e.history.action,location:e.history.location,matches:x,initialized:L,navigation:Q0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},V="POP",ne=!1,W,k=!1,H=new Map,Q=null,K=!1,re=!1,me=new Set,G=new Map,le=0,se=-1,ye=new Map,P=new Set,Le=new Map,ce=new Map,I=new Set,te=new Map,Ce,we=null;function Pe(){if(m=e.history.listen(({action:z,location:X,delta:ie})=>{if(Ce){Ce(),Ce=void 0;return}Fn(te.size===0||ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ee=Ke({currentLocation:w.location,nextLocation:X,historyAction:z});if(Ee&&ie!=null){let De=new Promise(Be=>{Ce=Be});e.history.go(ie*-1),ot(Ee,{state:"blocked",location:X,proceed(){ot(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),De.then(()=>e.history.go(ie))},reset(){let Be=new Map(w.blockers);Be.set(Ee,pu),dt({blockers:Be})}});return}return $e(z,X)}),n){j5(t,H);let z=()=>B5(t,H);t.addEventListener("pagehide",z),Q=()=>t.removeEventListener("pagehide",z)}return w.initialized||$e("POP",w.location,{initialHydration:!0}),M}function Me(){m&&m(),Q&&Q(),b.clear(),W&&W.abort(),w.fetchers.forEach((z,X)=>nt(X)),w.blockers.forEach((z,X)=>Te(X))}function st(z){return b.add(z),()=>b.delete(z)}function dt(z,X={}){z.matches&&(z.matches=z.matches.map(De=>{let Be=o[De.route.id],Ge=De.route;return Ge.element!==Be.element||Ge.errorElement!==Be.errorElement||Ge.hydrateFallbackElement!==Be.hydrateFallbackElement?{...De,route:Be}:De})),w={...w,...z};let ie=[],Ee=[];w.fetchers.forEach((De,Be)=>{De.state==="idle"&&(I.has(Be)?ie.push(Be):Ee.push(Be))}),I.forEach(De=>{!w.fetchers.has(De)&&!G.has(De)&&ie.push(De)}),[...b].forEach(De=>De(w,{deletedFetchers:ie,viewTransitionOpts:X.viewTransitionOpts,flushSync:X.flushSync===!0})),ie.forEach(De=>nt(De)),Ee.forEach(De=>w.fetchers.delete(De))}function Ue(z,X,{flushSync:ie}={}){let Ee=w.actionData!=null&&w.navigation.formMethod!=null&&Or(w.navigation.formMethod)&&w.navigation.state==="loading"&&z.state?._isRedirect!==!0,De;X.actionData?Object.keys(X.actionData).length>0?De=X.actionData:De=null:Ee?De=w.actionData:De=null;let Be=X.loaderData?tA(w.loaderData,X.loaderData,X.matches||[],X.errors):w.loaderData,Ge=w.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((ze,qe)=>Ge.set(qe,pu)));let He=K?!1:cr(z,X.matches||w.matches),We=ne===!0||w.navigation.formMethod!=null&&Or(w.navigation.formMethod)&&z.state?._isRedirect!==!0;c&&(l=c,c=void 0),K||V==="POP"||(V==="PUSH"?e.history.push(z,z.state):V==="REPLACE"&&e.history.replace(z,z.state));let Ze;if(V==="POP"){let ze=H.get(w.location.pathname);ze&&ze.has(z.pathname)?Ze={currentLocation:w.location,nextLocation:z}:H.has(z.pathname)&&(Ze={currentLocation:z,nextLocation:w.location})}else if(k){let ze=H.get(w.location.pathname);ze?ze.add(z.pathname):(ze=new Set([z.pathname]),H.set(w.location.pathname,ze)),Ze={currentLocation:w.location,nextLocation:z}}dt({...X,actionData:De,loaderData:Be,historyAction:V,location:z,initialized:!0,navigation:Q0,revalidation:"idle",restoreScrollPosition:He,preventScrollReset:We,blockers:Ge},{viewTransitionOpts:Ze,flushSync:ie===!0}),V="POP",ne=!1,k=!1,K=!1,re=!1,we?.resolve(),we=null}async function Wt(z,X){if(typeof z=="number"){e.history.go(z);return}let ie=ny(w.location,w.matches,d,z,X?.fromRouteId,X?.relative),{path:Ee,submission:De,error:Be}=qx(!1,ie,X),Ge=w.location,He=sd(w.location,Ee,X&&X.state);He={...He,...e.history.encodeLocation(He)};let We=X&&X.replace!=null?X.replace:void 0,Ze="PUSH";We===!0?Ze="REPLACE":We===!1||De!=null&&Or(De.formMethod)&&De.formAction===w.location.pathname+w.location.search&&(Ze="REPLACE");let ze=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,qe=(X&&X.flushSync)===!0,pt=Ke({currentLocation:Ge,nextLocation:He,historyAction:Ze});if(pt){ot(pt,{state:"blocked",location:He,proceed(){ot(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),Wt(z,X)},reset(){let Lt=new Map(w.blockers);Lt.set(pt,pu),dt({blockers:Lt})}});return}await $e(Ze,He,{submission:De,pendingError:Be,preventScrollReset:ze,replace:X&&X.replace,enableViewTransition:X&&X.viewTransition,flushSync:qe})}function Nt(){we||(we=U5()),Rt(),dt({revalidation:"loading"});let z=we.promise;return w.navigation.state==="submitting"?z:w.navigation.state==="idle"?($e(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),z):($e(V||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),z)}async function $e(z,X,ie){W&&W.abort(),W=null,V=z,K=(ie&&ie.startUninterruptedRevalidation)===!0,lr(w.location,w.matches),ne=(ie&&ie.preventScrollReset)===!0,k=(ie&&ie.enableViewTransition)===!0;let Ee=c||l,De=ie&&ie.overrideNavigation,Be=ie?.initialHydration&&w.matches&&w.matches.length>0&&!D?w.matches:Co(Ee,X,d),Ge=(ie&&ie.flushSync)===!0;if(Be&&w.initialized&&!re&&L5(w.location,X)&&!(ie&&ie.submission&&Or(ie.submission.formMethod))){Ue(X,{matches:Be},{flushSync:Ge});return}let He=Ha(Be,Ee,X.pathname);if(He.active&&He.matches&&(Be=He.matches),!Be){let{error:En,notFoundMatches:ft,route:$t}=Dn(X.pathname);Ue(X,{matches:ft,loaderData:{},errors:{[$t.id]:En}},{flushSync:Ge});return}W=new AbortController;let We=Ll(e.history,X,W.signal,ie&&ie.submission),Ze=new Gx(e.unstable_getContext?await e.unstable_getContext():void 0),ze;if(ie&&ie.pendingError)ze=[cs(Be).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Or(ie.submission.formMethod)){let En=await sr(We,X,ie.submission,Be,Ze,He.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:Ge});if(En.shortCircuited)return;if(En.pendingActionResult){let[ft,$t]=En.pendingActionResult;if(Xr($t)&&cd($t.error)&&$t.error.status===404){W=null,Ue(X,{matches:En.matches,loaderData:{},errors:{[ft]:$t.error}});return}}Be=En.matches||Be,ze=En.pendingActionResult,De=W0(X,ie.submission),Ge=!1,He.active=!1,We=Ll(e.history,We.url,We.signal)}let{shortCircuited:qe,matches:pt,loaderData:Lt,errors:bn}=await fn(We,X,Be,Ze,He.active,De,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,Ge,ze);qe||(W=null,Ue(X,{matches:pt||Be,...nA(ze),loaderData:Lt,errors:bn}))}async function sr(z,X,ie,Ee,De,Be,Ge,He={}){Rt();let We=$5(X,ie);if(dt({navigation:We},{flushSync:He.flushSync===!0}),Be){let qe=await hn(Ee,X.pathname,z.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let pt=cs(qe.partialMatches).route.id;return{matches:qe.partialMatches,pendingActionResult:[pt,{type:"error",error:qe.error}]}}else if(qe.matches)Ee=qe.matches;else{let{notFoundMatches:pt,error:Lt,route:bn}=Dn(X.pathname);return{matches:pt,pendingActionResult:[bn.id,{type:"error",error:Lt}]}}}let Ze,ze=$h(Ee,X);if(!ze.route.action&&!ze.route.lazy)Ze={type:"error",error:ya(405,{method:z.method,pathname:X.pathname,routeId:ze.route.id})};else{let qe=Hl(a,o,z,Ee,ze,Ge?[]:r,De),pt=await Cr(z,qe,De,null);if(Ze=pt[ze.route.id],!Ze){for(let Lt of Ee)if(pt[Lt.route.id]){Ze=pt[Lt.route.id];break}}if(z.signal.aborted)return{shortCircuited:!0}}if(fs(Ze)){let qe;return He&&He.replace!=null?qe=He.replace:qe=Zx(Ze.response.headers.get("Location"),new URL(z.url),d)===w.location.pathname+w.location.search,await Ct(z,Ze,!0,{submission:ie,replace:qe}),{shortCircuited:!0}}if(Xr(Ze)){let qe=cs(Ee,ze.route.id);return(He&&He.replace)!==!0&&(V="PUSH"),{matches:Ee,pendingActionResult:[qe.route.id,Ze,ze.route.id]}}return{matches:Ee,pendingActionResult:[ze.route.id,Ze]}}async function fn(z,X,ie,Ee,De,Be,Ge,He,We,Ze,ze,qe){let pt=Be||W0(X,Ge),Lt=Ge||He||iA(pt),bn=!K&&!Ze;if(De){if(bn){let Nn=Ve(qe);dt({navigation:pt,...Nn!==void 0?{actionData:Nn}:{}},{flushSync:ze})}let gt=await hn(ie,X.pathname,z.signal);if(gt.type==="aborted")return{shortCircuited:!0};if(gt.type==="error"){let Nn=cs(gt.partialMatches).route.id;return{matches:gt.partialMatches,loaderData:{},errors:{[Nn]:gt.error}}}else if(gt.matches)ie=gt.matches;else{let{error:Nn,notFoundMatches:Ho,route:ia}=Dn(X.pathname);return{matches:Ho,loaderData:{},errors:{[ia.id]:Nn}}}}let En=c||l,{dsMatches:ft,revalidatingFetchers:$t}=Yx(z,Ee,a,o,e.history,w,ie,Lt,X,Ze?[]:r,Ze===!0,re,me,I,Le,P,En,d,e.patchRoutesOnNavigation!=null,qe);if(se=++le,!e.dataStrategy&&!ft.some(gt=>gt.shouldLoad)&&$t.length===0){let gt=yn();return Ue(X,{matches:ie,loaderData:{},errors:qe&&Xr(qe[1])?{[qe[0]]:qe[1].error}:null,...nA(qe),...gt?{fetchers:new Map(w.fetchers)}:{}},{flushSync:ze}),{shortCircuited:!0}}if(bn){let gt={};if(!De){gt.navigation=pt;let Nn=Ve(qe);Nn!==void 0&&(gt.actionData=Nn)}$t.length>0&&(gt.fetchers=Jn($t)),dt(gt,{flushSync:ze})}$t.forEach(gt=>{Ot(gt.key),gt.controller&&G.set(gt.key,gt.controller)});let za=()=>$t.forEach(gt=>Ot(gt.key));W&&W.signal.addEventListener("abort",za);let{loaderResults:Ur,fetcherResults:vr}=await Ua(ft,$t,z,Ee);if(z.signal.aborted)return{shortCircuited:!0};W&&W.signal.removeEventListener("abort",za),$t.forEach(gt=>G.delete(gt.key));let aa=mh(Ur);if(aa)return await Ct(z,aa.result,!0,{replace:We}),{shortCircuited:!0};if(aa=mh(vr),aa)return P.add(aa.key),await Ct(z,aa.result,!0,{replace:We}),{shortCircuited:!0};let{loaderData:zs,errors:Qi}=eA(w,ie,Ur,qe,$t,vr);Ze&&w.errors&&(Qi={...w.errors,...Qi});let hi=yn(),pi=Cn(se),mi=hi||pi||$t.length>0;return{matches:ie,loaderData:zs,errors:Qi,...mi?{fetchers:new Map(w.fetchers)}:{}}}function Ve(z){if(z&&!Xr(z[1]))return{[z[0]]:z[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function Jn(z){return z.forEach(X=>{let ie=w.fetchers.get(X.key),Ee=mu(void 0,ie?ie.data:void 0);w.fetchers.set(X.key,Ee)}),new Map(w.fetchers)}async function an(z,X,ie,Ee){Ot(z);let De=(Ee&&Ee.flushSync)===!0,Be=c||l,Ge=ny(w.location,w.matches,d,ie,X,Ee?.relative),He=Co(Be,Ge,d),We=Ha(He,Be,Ge);if(We.active&&We.matches&&(He=We.matches),!He){ve(z,X,ya(404,{pathname:Ge}),{flushSync:De});return}let{path:Ze,submission:ze,error:qe}=qx(!0,Ge,Ee);if(qe){ve(z,X,qe,{flushSync:De});return}let pt=new Gx(e.unstable_getContext?await e.unstable_getContext():void 0),Lt=(Ee&&Ee.preventScrollReset)===!0;if(ze&&Or(ze.formMethod)){await sn(z,X,Ze,He,pt,We.active,De,Lt,ze);return}Le.set(z,{routeId:X,path:Ze}),await Ye(z,X,Ze,He,pt,We.active,De,Lt,ze)}async function sn(z,X,ie,Ee,De,Be,Ge,He,We){Rt(),Le.delete(z);let Ze=w.fetchers.get(z);ue(z,F5(We,Ze),{flushSync:Ge});let ze=new AbortController,qe=Ll(e.history,ie,ze.signal,We);if(Be){let pn=await hn(Ee,new URL(qe.url).pathname,qe.signal,z);if(pn.type==="aborted")return;if(pn.type==="error"){ve(z,X,pn.error,{flushSync:Ge});return}else if(pn.matches)Ee=pn.matches;else{ve(z,X,ya(404,{pathname:ie}),{flushSync:Ge});return}}let pt=$h(Ee,ie);if(!pt.route.action&&!pt.route.lazy){let pn=ya(405,{method:We.formMethod,pathname:ie,routeId:X});ve(z,X,pn,{flushSync:Ge});return}G.set(z,ze);let Lt=le,bn=Hl(a,o,qe,Ee,pt,r,De),ft=(await Cr(qe,bn,De,z))[pt.route.id];if(qe.signal.aborted){G.get(z)===ze&&G.delete(z);return}if(I.has(z)){if(fs(ft)||Xr(ft)){ue(z,xo(void 0));return}}else{if(fs(ft))if(G.delete(z),se>Lt){ue(z,xo(void 0));return}else return P.add(z),ue(z,mu(We)),Ct(qe,ft,!1,{fetcherSubmission:We,preventScrollReset:He});if(Xr(ft)){ve(z,X,ft.error);return}}let $t=w.navigation.location||w.location,za=Ll(e.history,$t,ze.signal),Ur=c||l,vr=w.navigation.state!=="idle"?Co(Ur,w.navigation.location,d):w.matches;Tt(vr,"Didn't find any matches after fetcher action");let aa=++le;ye.set(z,aa);let zs=mu(We,ft.data);w.fetchers.set(z,zs);let{dsMatches:Qi,revalidatingFetchers:hi}=Yx(za,De,a,o,e.history,w,vr,We,$t,r,!1,re,me,I,Le,P,Ur,d,e.patchRoutesOnNavigation!=null,[pt.route.id,ft]);hi.filter(pn=>pn.key!==z).forEach(pn=>{let Wi=pn.key,rf=w.fetchers.get(Wi),af=mu(void 0,rf?rf.data:void 0);w.fetchers.set(Wi,af),Ot(Wi),pn.controller&&G.set(Wi,pn.controller)}),dt({fetchers:new Map(w.fetchers)});let pi=()=>hi.forEach(pn=>Ot(pn.key));ze.signal.addEventListener("abort",pi);let{loaderResults:mi,fetcherResults:gt}=await Ua(Qi,hi,za,De);if(ze.signal.aborted)return;if(ze.signal.removeEventListener("abort",pi),ye.delete(z),G.delete(z),hi.forEach(pn=>G.delete(pn.key)),w.fetchers.has(z)){let pn=xo(ft.data);w.fetchers.set(z,pn)}let Nn=mh(mi);if(Nn)return Ct(za,Nn.result,!1,{preventScrollReset:He});if(Nn=mh(gt),Nn)return P.add(Nn.key),Ct(za,Nn.result,!1,{preventScrollReset:He});let{loaderData:Ho,errors:ia}=eA(w,vr,mi,void 0,hi,gt);Cn(aa),w.navigation.state==="loading"&&aa>se?(Tt(V,"Expected pending action"),W&&W.abort(),Ue(w.navigation.location,{matches:vr,loaderData:Ho,errors:ia,fetchers:new Map(w.fetchers)})):(dt({errors:ia,loaderData:tA(w.loaderData,Ho,vr,ia),fetchers:new Map(w.fetchers)}),re=!1)}async function Ye(z,X,ie,Ee,De,Be,Ge,He,We){let Ze=w.fetchers.get(z);ue(z,mu(We,Ze?Ze.data:void 0),{flushSync:Ge});let ze=new AbortController,qe=Ll(e.history,ie,ze.signal);if(Be){let $t=await hn(Ee,new URL(qe.url).pathname,qe.signal,z);if($t.type==="aborted")return;if($t.type==="error"){ve(z,X,$t.error,{flushSync:Ge});return}else if($t.matches)Ee=$t.matches;else{ve(z,X,ya(404,{pathname:ie}),{flushSync:Ge});return}}let pt=$h(Ee,ie);G.set(z,ze);let Lt=le,bn=Hl(a,o,qe,Ee,pt,r,De),ft=(await Cr(qe,bn,De,z))[pt.route.id];if(G.get(z)===ze&&G.delete(z),!qe.signal.aborted){if(I.has(z)){ue(z,xo(void 0));return}if(fs(ft))if(se>Lt){ue(z,xo(void 0));return}else{P.add(z),await Ct(qe,ft,!1,{preventScrollReset:He});return}if(Xr(ft)){ve(z,X,ft.error);return}ue(z,xo(ft.data))}}async function Ct(z,X,ie,{submission:Ee,fetcherSubmission:De,preventScrollReset:Be,replace:Ge}={}){X.response.headers.has("X-Remix-Revalidate")&&(re=!0);let He=X.response.headers.get("Location");Tt(He,"Expected a Location header on the redirect Response"),He=Zx(He,new URL(z.url),d);let We=sd(w.location,He,{_isRedirect:!0});if(n){let bn=!1;if(X.response.headers.has("X-Remix-Reload-Document"))bn=!0;else if(Eb(He)){const En=q2(He,!0);bn=En.origin!==t.location.origin||Ca(En.pathname,d)==null}if(bn){Ge?t.location.replace(He):t.location.assign(He);return}}W=null;let Ze=Ge===!0||X.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ze,formAction:qe,formEncType:pt}=w.navigation;!Ee&&!De&&ze&&qe&&pt&&(Ee=iA(w.navigation));let Lt=Ee||De;if(E5.has(X.response.status)&&Lt&&Or(Lt.formMethod))await $e(Ze,We,{submission:{...Lt,formAction:He},preventScrollReset:Be||ne,enableViewTransition:ie?k:void 0});else{let bn=W0(We,Ee);await $e(Ze,We,{overrideNavigation:bn,fetcherSubmission:De,preventScrollReset:Be||ne,enableViewTransition:ie?k:void 0})}}async function Cr(z,X,ie,Ee){let De,Be={};try{De=await R5(f,z,X,Ee,ie,!1)}catch(Ge){return X.filter(He=>He.shouldLoad).forEach(He=>{Be[He.route.id]={type:"error",error:Ge}}),Be}if(z.signal.aborted)return Be;for(let[Ge,He]of Object.entries(De))if(M5(He)){let We=He.result;Be[Ge]={type:"redirect",response:N5(We,z,Ge,X,d)}}else Be[Ge]=await I5(He);return Be}async function Ua(z,X,ie,Ee){let De=Cr(ie,z,Ee,null),Be=Promise.all(X.map(async We=>{if(We.matches&&We.match&&We.request&&We.controller){let ze=(await Cr(We.request,We.matches,Ee,We.key))[We.match.route.id];return{[We.key]:ze}}else return Promise.resolve({[We.key]:{type:"error",error:ya(404,{pathname:We.path})}})})),Ge=await De,He=(await Be).reduce((We,Ze)=>Object.assign(We,Ze),{});return{loaderResults:Ge,fetcherResults:He}}function Rt(){re=!0,Le.forEach((z,X)=>{G.has(X)&&me.add(X),Ot(X)})}function ue(z,X,ie={}){w.fetchers.set(z,X),dt({fetchers:new Map(w.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ve(z,X,ie,Ee={}){let De=cs(w.matches,X);nt(z),dt({errors:{[De.route.id]:ie},fetchers:new Map(w.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function je(z){return ce.set(z,(ce.get(z)||0)+1),I.has(z)&&I.delete(z),w.fetchers.get(z)||v5}function nt(z){let X=w.fetchers.get(z);G.has(z)&&!(X&&X.state==="loading"&&ye.has(z))&&Ot(z),Le.delete(z),ye.delete(z),P.delete(z),I.delete(z),me.delete(z),w.fetchers.delete(z)}function Dt(z){let X=(ce.get(z)||0)-1;X<=0?(ce.delete(z),I.add(z)):ce.set(z,X),dt({fetchers:new Map(w.fetchers)})}function Ot(z){let X=G.get(z);X&&(X.abort(),G.delete(z))}function Vn(z){for(let X of z){let ie=je(X),Ee=xo(ie.data);w.fetchers.set(X,Ee)}}function yn(){let z=[],X=!1;for(let ie of P){let Ee=w.fetchers.get(ie);Tt(Ee,`Expected fetcher: ${ie}`),Ee.state==="loading"&&(P.delete(ie),z.push(ie),X=!0)}return Vn(z),X}function Cn(z){let X=[];for(let[ie,Ee]of ye)if(Ee<z){let De=w.fetchers.get(ie);Tt(De,`Expected fetcher: ${ie}`),De.state==="loading"&&(Ot(ie),ye.delete(ie),X.push(ie))}return Vn(X),X.length>0}function _e(z,X){let ie=w.blockers.get(z)||pu;return te.get(z)!==X&&te.set(z,X),ie}function Te(z){w.blockers.delete(z),te.delete(z)}function ot(z,X){let ie=w.blockers.get(z)||pu;Tt(ie.state==="unblocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="proceeding"||ie.state==="blocked"&&X.state==="unblocked"||ie.state==="proceeding"&&X.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${X.state}`);let Ee=new Map(w.blockers);Ee.set(z,X),dt({blockers:Ee})}function Ke({currentLocation:z,nextLocation:X,historyAction:ie}){if(te.size===0)return;te.size>1&&Fn(!1,"A router only supports one blocker at a time");let Ee=Array.from(te.entries()),[De,Be]=Ee[Ee.length-1],Ge=w.blockers.get(De);if(!(Ge&&Ge.state==="proceeding")&&Be({currentLocation:z,nextLocation:X,historyAction:ie}))return De}function Dn(z){let X=ya(404,{pathname:z}),ie=c||l,{matches:Ee,route:De}=rA(ie);return{notFoundMatches:Ee,route:De,error:X}}function jr(z,X,ie){if(y=z,A=X,T=ie||null,!C&&w.navigation===Q0){C=!0;let Ee=cr(w.location,w.matches);Ee!=null&&dt({restoreScrollPosition:Ee})}return()=>{y=null,A=null,T=null}}function Er(z,X){return T&&T(z,X.map(Ee=>K4(Ee,w.loaderData)))||z.key}function lr(z,X){if(y&&A){let ie=Er(z,X);y[ie]=A()}}function cr(z,X){if(y){let ie=Er(z,X),Ee=y[ie];if(typeof Ee=="number")return Ee}return null}function Ha(z,X,ie){if(e.patchRoutesOnNavigation)if(z){if(Object.keys(z[0].params).length>0)return{active:!0,matches:Ph(X,ie,d,!0)}}else return{active:!0,matches:Ph(X,ie,d,!0)||[]};return{active:!1,matches:null}}async function hn(z,X,ie,Ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:z};let De=z;for(;;){let Be=c==null,Ge=c||l,He=o;try{await e.patchRoutesOnNavigation({signal:ie,path:X,matches:De,fetcherKey:Ee,patch:(ze,qe)=>{ie.aborted||Qx(ze,qe,Ge,He,a,!1)}})}catch(ze){return{type:"error",error:ze,partialMatches:De}}finally{Be&&!ie.aborted&&(l=[...l])}if(ie.aborted)return{type:"aborted"};let We=Co(Ge,X,d);if(We)return{type:"success",matches:We};let Ze=Ph(Ge,X,d,!0);if(!Ze||De.length===Ze.length&&De.every((ze,qe)=>ze.route.id===Ze[qe].route.id))return{type:"success",matches:null};De=Ze}}function Br(z){o={},c=ld(z,a,void 0,o)}function Ra(z,X,ie=!1){let Ee=c==null;Qx(z,X,c||l,o,a,ie),Ee&&(l=[...l],dt({}))}return M={get basename(){return d},get future(){return p},get state(){return w},get routes(){return l},get window(){return t},initialize:Pe,subscribe:st,enableScrollRestoration:jr,navigate:Wt,fetch:an,revalidate:Nt,createHref:z=>e.history.createHref(z),encodeLocation:z=>e.history.encodeLocation(z),getFetcher:je,deleteFetcher:Dt,dispose:Me,getBlocker:_e,deleteBlocker:Te,patchRoutes:Ra,_internalFetchControllers:G,_internalSetRoutes:Br,_internalSetStateDoNotUseOrYouWillBreakYourApp(z){dt(z)}},M}function A5(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ny(e,t,n,r,a,o){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=bb(r||".",yb(l),Ca(e.pathname,n)||e.pathname,o==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&c){let f=vb(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(d.search),m=p.getAll("index");p.delete("index"),m.filter(y=>y).forEach(y=>p.append("index",y));let b=p.toString();d.search=b?`?${b}`:""}}return n!=="/"&&(d.pathname=c5({basename:n,pathname:d.pathname})),Lo(d)}function qx(e,t,n){if(!n||!A5(n))return{path:t};if(n.formMethod&&!P5(n.formMethod))return{path:t,error:ya(405,{method:n.formMethod})};let r=()=>({path:t,error:ya(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),l=aD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Or(o))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,[y,T])=>`${b}${y}=${T}
|
|
36
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Or(o))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}Tt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(n.formData)c=iy(n.formData),d=n.formData;else if(n.body instanceof FormData)c=iy(n.body),d=n.body;else if(n.body instanceof URLSearchParams)c=n.body,d=Jx(c);else if(n.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(n.body),d=Jx(c)}catch{return r()}let f={formMethod:o,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Or(f.formMethod))return{path:t,submission:f};let p=$o(t);return e&&p.search&&vb(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Lo(p),submission:f}}function Yx(e,t,n,r,a,o,l,c,d,f,p,m,b,y,T,A,C,x,D,S){let L=S?Xr(S[1])?S[1].error:S[1].data:void 0,M=a.createURL(o.location),w=a.createURL(d),V;if(p&&o.errors){let K=Object.keys(o.errors)[0];V=l.findIndex(re=>re.route.id===K)}else if(S&&Xr(S[1])){let K=S[0];V=l.findIndex(re=>re.route.id===K)-1}let ne=S?S[1].statusCode:void 0,W=ne&&ne>=400,k={currentUrl:M,currentParams:o.matches[0]?.params||{},nextUrl:w,nextParams:l[0].params,...c,actionResult:L,actionStatus:ne},H=l.map((K,re)=>{let{route:me}=K,G=null;if(V!=null&&re>V?G=!1:me.lazy?G=!0:me.loader==null?G=!1:p?G=ry(me,o.loaderData,o.errors):S5(o.loaderData,o.matches[re],K)&&(G=!0),G!==null)return ay(n,r,e,K,f,t,G);let le=W?!1:m||M.pathname+M.search===w.pathname+w.search||M.search!==w.search||C5(o.matches[re],K),se={...k,defaultShouldRevalidate:le},ye=cp(K,se);return ay(n,r,e,K,f,t,ye,se)}),Q=[];return T.forEach((K,re)=>{if(p||!l.some(ce=>ce.route.id===K.routeId)||y.has(re))return;let me=o.fetchers.get(re),G=me&&me.state!=="idle"&&me.data===void 0,le=Co(C,K.path,x);if(!le){if(D&&G)return;Q.push({key:re,routeId:K.routeId,path:K.path,matches:null,match:null,request:null,controller:null});return}if(A.has(re))return;let se=$h(le,K.path),ye=new AbortController,P=Ll(a,K.path,ye.signal),Le=null;if(b.has(re))b.delete(re),Le=Hl(n,r,P,le,se,f,t);else if(G)m&&(Le=Hl(n,r,P,le,se,f,t));else{let ce={...k,defaultShouldRevalidate:W?!1:m};cp(se,ce)&&(Le=Hl(n,r,P,le,se,f,t,ce))}Le&&Q.push({key:re,routeId:K.routeId,path:K.path,matches:Le,match:se,request:P,controller:ye})}),{dsMatches:H,revalidatingFetchers:Q}}function ry(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function S5(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function C5(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function cp(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Qx(e,t,n,r,a,o){let l;if(e){let f=r[e];Tt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n;let c=[],d=[];if(t.forEach(f=>{let p=l.find(m=>J2(f,m));p?d.push({existingRoute:p,newRoute:f}):c.push(f)}),c.length>0){let f=ld(c,a,[e||"_","patch",String(l?.length||"0")],r);l.push(...f)}if(o&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:p,newRoute:m}=d[f],b=p,[y]=ld([m],a,[],{},!0);Object.assign(b,{element:y.element?y.element:b.element,errorElement:y.errorElement?y.errorElement:b.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:b.hydrateFallbackElement})}}function J2(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(a=>J2(n,a))):!1}var Wx=new WeakMap,eD=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Tt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let l=Wx.get(a);l||(l={},Wx.set(a,l));let c=l[e];if(c)return c;let d=(async()=>{let f=q4(e),m=a[e]!==void 0&&e!=="hasErrorBoundary";if(f)Fn(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(m)Fn(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let b=await o();b!=null&&(Object.assign(a,{[e]:b}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(b=>b===void 0)&&(a.lazy=void 0))})();return l[e]=d,d},Kx=new WeakMap;function D5(e,t,n,r,a){let o=n[e.id];if(Tt(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=Kx.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let m=(async()=>{Tt(typeof e.lazy=="function","No lazy route function found");let b=await e.lazy(),y={};for(let T in b){let A=b[T];if(A===void 0)continue;let C=Q4(T),D=o[T]!==void 0&&T!=="hasErrorBoundary";C?Fn(!C,"Route property "+T+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?Fn(!D,`Route "${o.id}" has a static property "${T}" defined but its lazy function is also returning a value for this property. The lazy route property "${T}" will be ignored.`):y[T]=A}Object.assign(o,y),Object.assign(o,{...r(o),lazy:void 0})})();return Kx.set(o,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let l=Object.keys(e.lazy),c=[],d;for(let p of l){if(a&&a.includes(p))continue;let m=eD({key:p,route:e,manifest:n,mapRouteProperties:r});m&&(c.push(m),p===t&&(d=m))}let f=c.length>0?Promise.all(c).then(()=>{}):void 0;return f?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function Xx(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,o)=>{n[t[o].route.id]=a}),n}async function k5(e){return e.matches.some(t=>t.route.unstable_middleware)?tD(e,!1,()=>Xx(e),(t,n)=>({[n]:{type:"error",result:t}})):Xx(e)}async function tD(e,t,n,r){let{matches:a,request:o,params:l,context:c}=e,d={handlerResult:void 0};try{let f=a.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(b=>[m.route.id,b]):[]),p=await nD({request:o,params:l,context:c},f,t,d,n);return t?p:d.handlerResult}catch(f){if(!d.middlewareError)throw f;let p=await r(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,p):p}}async function nD(e,t,n,r,a,o=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason?l.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${l.method} ${l.url}`);let c=t[o];if(!c)return r.handlerResult=await a(),r.handlerResult;let[d,f]=c,p=!1,m,b=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await nD(e,t,n,r,a,o+1)};try{let y=await f({request:e.request,params:e.params,context:e.context},b);return p?y===void 0?m:y:b()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:d,error:y}):r.middlewareError={routeId:d,error:y},y}}function rD(e,t,n,r,a){let o=eD({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),l=D5(r.route,Or(n.method)?"action":"loader",t,e,a);return{middleware:o,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function ay(e,t,n,r,a,o,l,c=null){let d=!1,f=rD(e,t,n,r,a);return{...r,_lazyPromises:f,shouldLoad:l,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return d=!0,c?typeof p=="boolean"?cp(r,{...c,defaultShouldRevalidate:p}):cp(r,c):l},resolve(p){return d||l||p&&!Or(n.method)&&(r.route.lazy||r.route.loader)?w5({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:p,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Hl(e,t,n,r,a,o,l,c=null){return r.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:rD(e,t,n,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ay(e,t,n,d,o,l,!0,c))}async function R5(e,t,n,r,a,o){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let l={request:t,params:n[0].params,context:a,matches:n},d=await e({...l,fetcherKey:r,unstable_runClientMiddleware:f=>{let p=l;return tD(p,!1,()=>f({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,b)=>({[b]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return d}async function w5({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:o}){let l,c,d=Or(e.method),f=d?"action":"loader",p=m=>{let b,y=new Promise((C,x)=>b=x);c=()=>b(),e.signal.addEventListener("abort",c);let T=C=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:o},...C!==void 0?[C]:[]),A=(async()=>{try{return{type:"data",result:await(a?a(x=>T(x)):T())}}catch(C){return{type:"error",result:C}}})();return Promise.race([A,y])};try{let m=d?t.route.action:t.route.loader;if(n||r)if(m){let b,[y]=await Promise.all([p(m).catch(T=>{b=T}),n,r]);if(b!==void 0)throw b;l=y}else{await n;let b=d?t.route.action:t.route.loader;if(b)[l]=await Promise.all([p(b),r]);else if(f==="action"){let y=new URL(e.url),T=y.pathname+y.search;throw ya(405,{method:e.method,pathname:T,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)l=await p(m);else{let b=new URL(e.url),y=b.pathname+b.search;throw ya(404,{pathname:y})}}catch(m){return{type:"error",result:m}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function I5(e){let{result:t,type:n}=e;if(iD(t)){let r;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new lp(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?aA(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new lp(t.init?.status||500,void 0,t.data),statusCode:cd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:cd(t)?t.status:void 0}:aA(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function N5(e,t,n,r,a){let o=e.headers.get("Location");if(Tt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Eb(o)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);o=ny(new URL(t.url),l,a,o),e.headers.set("Location",o)}return e}function Zx(e,t,n){if(Eb(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Ca(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Ll(e,t,n,r){let a=e.createURL(aD(t)).toString(),o={signal:n};if(r&&Or(r.formMethod)){let{formMethod:l,formEncType:c}=r;o.method=l.toUpperCase(),c==="application/json"?(o.headers=new Headers({"Content-Type":c}),o.body=JSON.stringify(r.json)):c==="text/plain"?o.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?o.body=iy(r.formData):o.body=r.formData}return new Request(a,o)}function iy(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Jx(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function O5(e,t,n,r=!1,a=!1){let o={},l=null,c,d=!1,f={},p=n&&Xr(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let b=m.route.id,y=t[b];if(Tt(!fs(y),"Cannot handle redirect results in processLoaderData"),Xr(y)){let T=y.error;if(p!==void 0&&(T=p,p=void 0),l=l||{},a)l[b]=T;else{let A=cs(e,b);l[A.route.id]==null&&(l[A.route.id]=T)}r||(o[b]=Z2),d||(d=!0,c=cd(y.error)?y.error.status:500),y.headers&&(f[b]=y.headers)}else o[b]=y.data,y.statusCode&&y.statusCode!==200&&!d&&(c=y.statusCode),y.headers&&(f[b]=y.headers)}),p!==void 0&&n&&(l={[n[0]]:p},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:l,statusCode:c||200,loaderHeaders:f}}function eA(e,t,n,r,a,o){let{loaderData:l,errors:c}=O5(t,n,r);return a.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:p,controller:m}=d,b=o[f];if(Tt(b,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Xr(b)){let y=cs(e.matches,p?.route.id);c&&c[y.route.id]||(c={...c,[y.route.id]:b.error}),e.fetchers.delete(f)}else if(fs(b))Tt(!1,"Unhandled fetcher revalidation redirect");else{let y=xo(b.data);e.fetchers.set(f,y)}}),{loaderData:l,errors:c}}function tA(e,t,n,r){let a=Object.entries(t).filter(([,o])=>o!==Z2).reduce((o,[l,c])=>(o[l]=c,o),{});for(let o of n){let l=o.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&o.route.loader&&(a[l]=e[l]),r&&r.hasOwnProperty(l))break}return a}function nA(e){return e?Xr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function cs(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function rA(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ya(e,{pathname:t,routeId:n,method:r,type:a,message:o}={}){let l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",c=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new lp(e||500,l,new Error(c),!0)}function mh(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(fs(a))return{key:r,result:a}}}function aD(e){let t=typeof e=="string"?$o(e):e;return Lo({...t,hash:""})}function L5(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function M5(e){return iD(e.result)&&b5.has(e.result.status)}function Xr(e){return e.type==="error"}function fs(e){return(e&&e.type)==="redirect"}function aA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function iD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function P5(e){return y5.has(e.toUpperCase())}function Or(e){return m5.has(e.toUpperCase())}function vb(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $h(e,t){let n=typeof t=="string"?$o(t).search:t.search;if(e[e.length-1].route.index&&vb(n||""))return e[e.length-1];let r=W2(e);return r[r.length-1]}function iA(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:l}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function W0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $5(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function mu(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function F5(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xo(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function j5(e,t){try{let n=e.sessionStorage.getItem(X2);if(n){let r=JSON.parse(n);for(let[a,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function B5(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(X2,JSON.stringify(n))}catch(r){Fn(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function U5(){let e,t,n=new Promise((r,a)=>{e=async o=>{r(o);try{await n}catch{}},t=async o=>{a(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ps=N.createContext(null);Ps.displayName="DataRouter";var Nd=N.createContext(null);Nd.displayName="DataRouterState";N.createContext(!1);var Tb=N.createContext({isTransitioning:!1});Tb.displayName="ViewTransition";var oD=N.createContext(new Map);oD.displayName="Fetchers";var H5=N.createContext(null);H5.displayName="Await";var ci=N.createContext(null);ci.displayName="Navigation";var qp=N.createContext(null);qp.displayName="Location";var Fa=N.createContext({outlet:null,matches:[],isDataRoute:!1});Fa.displayName="Route";var _b=N.createContext(null);_b.displayName="RouteError";function z5(e,{relative:t}={}){Tt(Od(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=N.useContext(ci),{hash:a,pathname:o,search:l}=Ld(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ii([n,o])),r.createHref({pathname:c,search:l,hash:a})}function Od(){return N.useContext(qp)!=null}function $s(){return Tt(Od(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(qp).location}var sD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lD(e){N.useContext(ci).static||N.useLayoutEffect(e)}function xb(){let{isDataRoute:e}=N.useContext(Fa);return e?r6():G5()}function G5(){Tt(Od(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(Ps),{basename:t,navigator:n}=N.useContext(ci),{matches:r}=N.useContext(Fa),{pathname:a}=$s(),o=JSON.stringify(yb(r)),l=N.useRef(!1);return lD(()=>{l.current=!0}),N.useCallback((d,f={})=>{if(Fn(l.current,sD),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=bb(d,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ii([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,o,a,e])}var V5=N.createContext(null);function q5(e){let t=N.useContext(Fa).outlet;return t&&N.createElement(V5.Provider,{value:e},t)}function oc(){let{matches:e}=N.useContext(Fa),t=e[e.length-1];return t?t.params:{}}function Ld(e,{relative:t}={}){let{matches:n}=N.useContext(Fa),{pathname:r}=$s(),a=JSON.stringify(yb(n));return N.useMemo(()=>bb(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Y5(e,t,n,r){Tt(Od(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext(ci),{matches:o}=N.useContext(Fa),l=o[o.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let x=p&&p.path||"";uD(d,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
37
|
+
|
|
38
|
+
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let m=$s(),b;b=m;let y=b.pathname||"/",T=y;if(f!=="/"){let x=f.replace(/^\//,"").split("/");T="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let A=Co(e,{pathname:T});return Fn(p||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Fn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Z5(A&&A.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:ii([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:ii([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r)}function Q5(){let e=cD(),t=cd(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:o},"ErrorBoundary")," or"," ",N.createElement("code",{style:o},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:a},n):null,l)}var W5=N.createElement(Q5,null),K5=class extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?N.createElement(Fa.Provider,{value:this.props.routeContext},N.createElement(_b.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function X5({routeContext:e,match:t,children:n}){let r=N.useContext(Ps);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Fa.Provider,{value:e},n)}function Z5(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let d=a.findIndex(f=>f.route.id&&o?.[f.route.id]!==void 0);Tt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:m}=n,b=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||b){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let m,b=!1,y=null,T=null;n&&(m=o&&f.route.id?o[f.route.id]:void 0,y=f.route.errorElement||W5,l&&(c<0&&p===0?(uD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,T=null):c===p&&(b=!0,T=f.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,p+1)),C=()=>{let x;return m?x=y:b?x=T:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(X5,{match:f,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(K5,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):C()},null)}function Ab(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function J5(e){let t=N.useContext(Ps);return Tt(t,Ab(e)),t}function e6(e){let t=N.useContext(Nd);return Tt(t,Ab(e)),t}function t6(e){let t=N.useContext(Fa);return Tt(t,Ab(e)),t}function Sb(e){let t=t6(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function n6(){return Sb("useRouteId")}function cD(){let e=N.useContext(_b),t=e6("useRouteError"),n=Sb("useRouteError");return e!==void 0?e:t.errors?.[n]}function r6(){let{router:e}=J5("useNavigate"),t=Sb("useNavigate"),n=N.useRef(!1);return lD(()=>{n.current=!0}),N.useCallback(async(a,o={})=>{Fn(n.current,sD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var oA={};function uD(e,t,n){!t&&!oA[e]&&(oA[e]=!0,Fn(!1,n))}var sA={};function lA(e,t){!e&&!sA[t]&&(sA[t]=!0,console.warn(t))}function a6(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Fn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:N.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Fn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Fn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var i6=["HydrateFallback","hydrateFallbackElement"],o6=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function s6({router:e,flushSync:t}){let[n,r]=N.useState(e.state),[a,o]=N.useState(),[l,c]=N.useState({isTransitioning:!1}),[d,f]=N.useState(),[p,m]=N.useState(),[b,y]=N.useState(),T=N.useRef(new Map),A=N.useCallback((S,{deletedFetchers:L,flushSync:M,viewTransitionOpts:w})=>{S.fetchers.forEach((ne,W)=>{ne.data!==void 0&&T.current.set(W,ne.data)}),L.forEach(ne=>T.current.delete(ne)),lA(M===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let V=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(lA(w==null||V,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!w||!V){t&&M?t(()=>r(S)):N.startTransition(()=>r(S));return}if(t&&M){t(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:w.currentLocation,nextLocation:w.nextLocation})});let ne=e.window.document.startViewTransition(()=>{t(()=>r(S))});ne.finished.finally(()=>{t(()=>{f(void 0),m(void 0),o(void 0),c({isTransitioning:!1})})}),t(()=>m(ne));return}p?(d&&d.resolve(),p.skipTransition(),y({state:S,currentLocation:w.currentLocation,nextLocation:w.nextLocation})):(o(S),c({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}))},[e.window,t,p,d]);N.useLayoutEffect(()=>e.subscribe(A),[e,A]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new o6)},[l]),N.useEffect(()=>{if(d&&a&&e.window){let S=a,L=d.promise,M=e.window.document.startViewTransition(async()=>{N.startTransition(()=>r(S)),await L});M.finished.finally(()=>{f(void 0),m(void 0),o(void 0),c({isTransitioning:!1})}),m(M)}},[a,d,e.window]),N.useEffect(()=>{d&&a&&n.location.key===a.location.key&&d.resolve()},[d,p,n.location,a]),N.useEffect(()=>{!l.isTransitioning&&b&&(o(b.state),c({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),y(void 0))},[l.isTransitioning,b]);let C=N.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:S=>e.navigate(S),push:(S,L,M)=>e.navigate(S,{state:L,preventScrollReset:M?.preventScrollReset}),replace:(S,L,M)=>e.navigate(S,{replace:!0,state:L,preventScrollReset:M?.preventScrollReset})}),[e]),x=e.basename||"/",D=N.useMemo(()=>({router:e,navigator:C,static:!1,basename:x}),[e,C,x]);return N.createElement(N.Fragment,null,N.createElement(Ps.Provider,{value:D},N.createElement(Nd.Provider,{value:n},N.createElement(oD.Provider,{value:T.current},N.createElement(Tb.Provider,{value:l},N.createElement(d6,{basename:x,location:n.location,navigationType:n.historyAction,navigator:C},N.createElement(l6,{routes:e.routes,future:e.future,state:n})))))),null)}var l6=N.memo(c6);function c6({routes:e,future:t,state:n}){return Y5(e,void 0,n,t)}function u6(e){return q5(e.context)}function d6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!Od(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=$o(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:b="default"}=n,y=N.useMemo(()=>{let T=Ca(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:m,key:b},navigationType:r}},[l,d,f,p,m,b,r]);return Fn(y!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:N.createElement(ci.Provider,{value:c},N.createElement(qp.Provider,{children:t,value:y}))}var Fh="get",jh="application/x-www-form-urlencoded";function Yp(e){return e!=null&&typeof e.tagName=="string"}function f6(e){return Yp(e)&&e.tagName.toLowerCase()==="button"}function h6(e){return Yp(e)&&e.tagName.toLowerCase()==="form"}function p6(e){return Yp(e)&&e.tagName.toLowerCase()==="input"}function m6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function g6(e,t){return e.button===0&&(!t||t==="_self")&&!m6(e)}var gh=null;function y6(){if(gh===null)try{new FormData(document.createElement("form"),0),gh=!1}catch{gh=!0}return gh}var b6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function K0(e){return e!=null&&!b6.has(e)?(Fn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jh}"`),null):e}function E6(e,t){let n,r,a,o,l;if(h6(e)){let c=e.getAttribute("action");r=c?Ca(c,t):null,n=e.getAttribute("method")||Fh,a=K0(e.getAttribute("enctype"))||jh,o=new FormData(e)}else if(f6(e)||p6(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Ca(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Fh,a=K0(e.getAttribute("formenctype"))||K0(c.getAttribute("enctype"))||jh,o=new FormData(c,e),!y6()){let{name:f,type:p,value:m}=e;if(p==="image"){let b=f?`${f}.`:"";o.append(`${b}x`,"0"),o.append(`${b}y`,"0")}else f&&o.append(f,m)}}else{if(Yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fh,r=null,a=jh,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Cb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function v6(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Ca(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function T6(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _6(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function x6(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await T6(o,n);return l.links?l.links():[]}return[]}));return D6(r.flat(1).filter(_6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function cA(e,t,n,r,a,o){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return o==="assets"?t.filter((d,f)=>l(d,f)||c(d,f)):o==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function A6(e,t,{includeHydrateFallback:n}={}){return S6(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function S6(e){return[...new Set(e)]}function C6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function D6(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(C6(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function dD(){let e=N.useContext(Ps);return Cb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function k6(){let e=N.useContext(Nd);return Cb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Db=N.createContext(void 0);Db.displayName="FrameworkContext";function fD(){let e=N.useContext(Db);return Cb(e,"You must render this element inside a <HydratedRouter> element"),e}function R6(e,t){let n=N.useContext(Db),[r,a]=N.useState(!1),[o,l]=N.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,b=N.useRef(null);N.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=x=>{x.forEach(D=>{l(D.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[e]),N.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let y=()=>{a(!0)},T=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,b,{}]:[o,b,{onFocus:gu(c,y),onBlur:gu(d,T),onMouseEnter:gu(f,y),onMouseLeave:gu(p,T),onTouchStart:gu(m,y)}]:[!1,b,{}]}function gu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function w6({page:e,...t}){let{router:n}=dD(),r=N.useMemo(()=>Co(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?N.createElement(N6,{page:e,matches:r,...t}):null}function I6(e){let{manifest:t,routeModules:n}=fD(),[r,a]=N.useState([]);return N.useEffect(()=>{let o=!1;return x6(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function N6({page:e,matches:t,...n}){let r=$s(),{manifest:a,routeModules:o}=fD(),{basename:l}=dD(),{loaderData:c,matches:d}=k6(),f=N.useMemo(()=>cA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=N.useMemo(()=>cA(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,A=!1;if(t.forEach(x=>{let D=a.routes[x.route.id];!D||!D.hasLoader||(!f.some(S=>S.route.id===x.route.id)&&x.route.id in c&&o[x.route.id]?.shouldRevalidate||D.hasClientLoader?A=!0:T.add(x.route.id))}),T.size===0)return[];let C=v6(e,l,"data");return A&&T.size>0&&C.searchParams.set("_routes",t.filter(x=>T.has(x.route.id)).map(x=>x.route.id).join(",")),[C.pathname+C.search]},[l,c,r,a,f,t,e,o]),b=N.useMemo(()=>A6(p,a),[p,a]),y=I6(p);return N.createElement(N.Fragment,null,m.map(T=>N.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),b.map(T=>N.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),y.map(({key:T,link:A})=>N.createElement("link",{key:T,...A})))}function O6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var hD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hD&&(window.__reactRouterVersion="7.7.1")}catch{}function L6(e,t){return x5({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:H4({window:t?.window}),hydrationData:M6(),routes:e,mapRouteProperties:a6,hydrationRouteProperties:i6,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function M6(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:P6(e.errors)}),e}function P6(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new lp(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let l=new o(a.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(a.message);o.stack="",n[r]=o}}else n[r]=a;return n}var pD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mD=N.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:c,target:d,to:f,preventScrollReset:p,viewTransition:m,...b},y){let{basename:T}=N.useContext(ci),A=typeof f=="string"&&pD.test(f),C,x=!1;if(typeof f=="string"&&A&&(C=f,hD))try{let W=new URL(window.location.href),k=f.startsWith("//")?new URL(W.protocol+f):new URL(f),H=Ca(k.pathname,T);k.origin===W.origin&&H!=null?f=H+k.search+k.hash:x=!0}catch{Fn(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=z5(f,{relative:a}),[S,L,M]=R6(r,b),w=B6(f,{replace:l,state:c,target:d,preventScrollReset:p,relative:a,viewTransition:m});function V(W){t&&t(W),W.defaultPrevented||w(W)}let ne=N.createElement("a",{...b,...M,href:C||D,onClick:x||o?t:V,ref:O6(y,L),target:d,"data-discover":!A&&n==="render"?"true":void 0});return S&&!A?N.createElement(N.Fragment,null,ne,N.createElement(w6,{page:D})):ne});mD.displayName="Link";var $6=N.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:c,children:d,...f},p){let m=Ld(l,{relative:f.relative}),b=$s(),y=N.useContext(Nd),{navigator:T,basename:A}=N.useContext(ci),C=y!=null&&V6(m)&&c===!0,x=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,D=b.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&A&&(S=Ca(S,A)||S);const L=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let M=D===x||!a&&D.startsWith(x)&&D.charAt(L)==="/",w=S!=null&&(S===x||!a&&S.startsWith(x)&&S.charAt(x.length)==="/"),V={isActive:M,isPending:w,isTransitioning:C},ne=M?t:void 0,W;typeof r=="function"?W=r(V):W=[r,M?"active":null,w?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let k=typeof o=="function"?o(V):o;return N.createElement(mD,{...f,"aria-current":ne,className:W,ref:p,style:k,to:l,viewTransition:c},typeof d=="function"?d(V):d)});$6.displayName="NavLink";var F6=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=Fh,action:c,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...b},y)=>{let T=z6(),A=G6(c,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&pD.test(c),D=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let L=S.nativeEvent.submitter,M=L?.getAttribute("formmethod")||l;T(L||S.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:o,relative:f,preventScrollReset:p,viewTransition:m})};return N.createElement("form",{ref:y,method:C,action:A,onSubmit:r?d:D,...b,"data-discover":!x&&e==="render"?"true":void 0})});F6.displayName="Form";function j6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gD(e){let t=N.useContext(Ps);return Tt(t,j6(e)),t}function B6(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let c=xb(),d=$s(),f=Ld(e,{relative:o});return N.useCallback(p=>{if(g6(p,t)){p.preventDefault();let m=n!==void 0?n:Lo(d)===Lo(f);c(e,{replace:m,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[d,c,f,n,r,t,e,a,o,l])}var U6=0,H6=()=>`__${String(++U6)}__`;function z6(){let{router:e}=gD("useSubmit"),{basename:t}=N.useContext(ci),n=n6();return N.useCallback(async(r,a={})=>{let{action:o,method:l,encType:c,formData:d,body:f}=E6(r,t);if(a.navigate===!1){let p=a.fetcherKey||H6();await e.fetch(p,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function G6(e,{relative:t}={}){let{basename:n}=N.useContext(ci),r=N.useContext(Fa);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Ld(e||".",{relative:t})},l=$s();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),d=c.getAll("index");if(d.some(p=>p==="")){c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));let p=c.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ii([n,o.pathname])),Lo(o)}function V6(e,{relative:t}={}){let n=N.useContext(Tb);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gD("useViewTransitionState"),a=Ld(e,{relative:t});if(!n.isTransitioning)return!1;let o=Ca(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ca(n.nextLocation.pathname,r)||n.nextLocation.pathname;return sp(a.pathname,l)!=null||sp(a.pathname,o)!=null}function q6(e){return N.createElement(s6,{flushSync:U2.flushSync,...e})}function yD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=yD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $n(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=yD(e))&&(r&&(r+=" "),r+=t);return r}const kb=a4,uA=e=>e,Y6=()=>{let e=uA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=uA}}},Q6=Y6(),W6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Fo(e,t,n="Mui"){const r=W6[t];return r?`${n}-${r}`:`${Q6.generate(e)}-${t}`}function jo(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Fo(e,a,n)}),r}function K6(e){return Fo("MuiSvgIcon",e)}jo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);function up(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const o=a;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const l=e[o],c=t[o];if(!c)r[o]=l||{};else if(!l)r[o]=c;else{r[o]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const f=d;r[o][f]=up(l[f],c[f],n)}}}else o==="className"&&n&&t.className?r.className=$n(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}const X6=N.createContext(void 0);function Z6(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?up(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?up(a,r,t.components.mergeClassNameAndStyle):r}function J6({props:e,name:t}){const n=N.useContext(X6);return Z6({props:e,name:t,theme:{components:n}})}function sc(e){return J6(e)}const ud={black:"#000",white:"#fff"},eL={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Al={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Sl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Cl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Dl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var X0={exports:{}},Ut={};/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-is.production.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var dA;function tL(){if(dA)return Ut;dA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function T(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case e:switch(A=A.type,A){case n:case a:case r:case d:case f:case b:return A;default:switch(A=A&&A.$$typeof,A){case l:case c:case m:case p:return A;case o:return A;default:return C}}case t:return C}}}return Ut.ContextConsumer=o,Ut.ContextProvider=l,Ut.Element=e,Ut.ForwardRef=c,Ut.Fragment=n,Ut.Lazy=m,Ut.Memo=p,Ut.Portal=t,Ut.Profiler=a,Ut.StrictMode=r,Ut.Suspense=d,Ut.SuspenseList=f,Ut.isContextConsumer=function(A){return T(A)===o},Ut.isContextProvider=function(A){return T(A)===l},Ut.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Ut.isForwardRef=function(A){return T(A)===c},Ut.isFragment=function(A){return T(A)===n},Ut.isLazy=function(A){return T(A)===m},Ut.isMemo=function(A){return T(A)===p},Ut.isPortal=function(A){return T(A)===t},Ut.isProfiler=function(A){return T(A)===a},Ut.isStrictMode=function(A){return T(A)===r},Ut.isSuspense=function(A){return T(A)===d},Ut.isSuspenseList=function(A){return T(A)===f},Ut.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===a||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===p||A.$$typeof===l||A.$$typeof===o||A.$$typeof===c||A.$$typeof===y||A.getModuleId!==void 0)},Ut.typeOf=T,Ut}var fA;function nL(){return fA||(fA=1,X0.exports=tL()),X0.exports}var bD=nL();function $i(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ED(e){if(N.isValidElement(e)||bD.isValidElementType(e)||!$i(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ED(e[n])}),t}function ea(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return $i(e)&&$i(t)&&Object.keys(t).forEach(a=>{N.isValidElement(t[a])||bD.isValidElementType(t[a])?r[a]=t[a]:$i(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&$i(e[a])?r[a]=ea(e[a],t[a],n):n.clone?r[a]=$i(t[a])?ED(t[a]):t[a]:r[a]=t[a]}),r}function Ds(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function rL(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Rb(e,t=0,n=1){return rL(e,t,n)}function aL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Mo(e){if(e.type)return e;if(e.charAt(0)==="#")return Mo(aL(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ds(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Ds(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const iL=e=>{const t=Mo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Mu=(e,t)=>{try{return iL(e)}catch{return e}};function Qp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vD(e){e=Mo(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),l=(f,p=(f+n/30)%12)=>a-o*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Qp({type:c,values:d})}function oy(e){e=Mo(e);let t=e.type==="hsl"||e.type==="hsla"?Mo(vD(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oL(e,t){const n=oy(e),r=oy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function sy(e,t){return e=Mo(e),t=Rb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Qp(e)}function yh(e,t,n){try{return sy(e,t)}catch{return e}}function wb(e,t){if(e=Mo(e),t=Rb(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Qp(e)}function Gt(e,t,n){try{return wb(e,t)}catch{return e}}function Ib(e,t){if(e=Mo(e),t=Rb(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Qp(e)}function Vt(e,t,n){try{return Ib(e,t)}catch{return e}}function sL(e,t=.15){return oy(e)>.5?wb(e,t):Ib(e,t)}function bh(e,t,n){try{return sL(e,t)}catch{return e}}function TD(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ud.white,default:ud.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const lL=TD();function _D(){return{text:{primary:ud.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ud.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const hA=_D();function pA(e,t,n,r){const a=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ib(e.main,a):t==="dark"&&(e.dark=wb(e.main,o)))}function cL(e="light"){return e==="dark"?{main:Sl[200],light:Sl[50],dark:Sl[400]}:{main:Sl[700],light:Sl[400],dark:Sl[800]}}function uL(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[500],light:xl[300],dark:xl[700]}}function dL(e="light"){return e==="dark"?{main:Al[500],light:Al[300],dark:Al[700]}:{main:Al[700],light:Al[400],dark:Al[800]}}function fL(e="light"){return e==="dark"?{main:Cl[400],light:Cl[300],dark:Cl[700]}:{main:Cl[700],light:Cl[500],dark:Cl[900]}}function hL(e="light"){return e==="dark"?{main:Dl[400],light:Dl[300],dark:Dl[700]}:{main:Dl[800],light:Dl[500],dark:Dl[900]}}function pL(e="light"){return e==="dark"?{main:yu[400],light:yu[300],dark:yu[700]}:{main:"#ed6c02",light:yu[500],dark:yu[900]}}function Nb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,o=e.primary||cL(t),l=e.secondary||uL(t),c=e.error||dL(t),d=e.info||fL(t),f=e.success||hL(t),p=e.warning||pL(t);function m(T){return oL(T,hA.text.primary)>=n?hA.text.primary:lL.text.primary}const b=({color:T,name:A,mainShade:C=500,lightShade:x=300,darkShade:D=700})=>{if(T={...T},!T.main&&T[C]&&(T.main=T[C]),!T.hasOwnProperty("main"))throw new Error(Ds(11,A?` (${A})`:"",C));if(typeof T.main!="string")throw new Error(Ds(12,A?` (${A})`:"",JSON.stringify(T.main)));return pA(T,"light",x,r),pA(T,"dark",D,r),T.contrastText||(T.contrastText=m(T.main)),T};let y;return t==="light"?y=TD():t==="dark"&&(y=_D()),ea({common:{...ud},mode:t,primary:b({color:o,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:c,name:"error"}),warning:b({color:p,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:f,name:"success"}),grey:eL,contrastThreshold:n,getContrastText:m,augmentColor:b,tonalOffset:r,...y},a)}function mL(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function gL(e){return Math.round(e*1e5)/1e5}const mA={textTransform:"uppercase"},gA='"Roboto", "Helvetica", "Arial", sans-serif';function yL(e,t){const{fontFamily:n=gA,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p,...m}=typeof t=="function"?t(e):t,b=r/14,y=p||(C=>`${C/d*b}rem`),T=(C,x,D,S,L)=>({fontFamily:n,fontWeight:C,fontSize:y(x),lineHeight:D,...n===gA?{letterSpacing:`${gL(S/x)}em`}:{},...L,...f}),A={h1:T(a,96,1.167,-1.5),h2:T(a,60,1.2,-.5),h3:T(o,48,1.167,0),h4:T(o,34,1.235,.25),h5:T(o,24,1.334,0),h6:T(l,20,1.6,.15),subtitle1:T(o,16,1.75,.15),subtitle2:T(l,14,1.57,.1),body1:T(o,16,1.5,.15),body2:T(o,14,1.43,.15),button:T(l,14,1.75,.4,mA),caption:T(o,12,1.66,.4),overline:T(o,12,2.66,1,mA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ea({htmlFontSize:d,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:l,fontWeightBold:c,...A},m,{clone:!1})}function cn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}const bL=["none",cn(0,2,1,-1,0,1,1,0,0,1,3,0),cn(0,3,1,-2,0,2,2,0,0,1,5,0),cn(0,3,3,-2,0,3,4,0,0,1,8,0),cn(0,2,4,-1,0,4,5,0,0,1,10,0),cn(0,3,5,-1,0,5,8,0,0,1,14,0),cn(0,3,5,-1,0,6,10,0,0,1,18,0),cn(0,4,5,-2,0,7,10,1,0,2,16,1),cn(0,5,5,-3,0,8,10,1,0,3,14,2),cn(0,5,6,-3,0,9,12,1,0,3,16,2),cn(0,6,6,-3,0,10,14,1,0,4,18,3),cn(0,6,7,-4,0,11,15,1,0,4,20,3),cn(0,7,8,-4,0,12,17,2,0,5,22,4),cn(0,7,8,-4,0,13,19,2,0,5,24,4),cn(0,7,9,-4,0,14,21,2,0,5,26,4),cn(0,8,9,-5,0,15,22,2,0,6,28,5),cn(0,8,10,-5,0,16,24,2,0,6,30,5),cn(0,8,11,-5,0,17,26,2,0,6,32,5),cn(0,9,11,-5,0,18,28,2,0,7,34,6),cn(0,9,12,-6,0,19,29,2,0,7,36,6),cn(0,10,13,-6,0,20,31,3,0,8,38,7),cn(0,10,13,-6,0,21,33,3,0,8,40,7),cn(0,10,14,-6,0,22,35,3,0,8,42,7),cn(0,11,14,-7,0,23,36,3,0,9,44,8),cn(0,11,15,-7,0,24,38,3,0,9,46,8)],EL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yA(e){return`${Math.round(e)}ms`}function vL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function TL(e){const t={...EL,...e.easing},n={...xD,...e.duration};return{getAutoHeightDuration:vL,create:(r=["all"],a={})=>{const{duration:o=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=a;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof o=="string"?o:yA(o)} ${l} ${typeof c=="string"?c:yA(c)}`).join(",")},...e,easing:t,duration:n}}const _L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xL(e){return $i(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function AD(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let o=0;o<a.length;o++){const[l,c]=a[o];!xL(c)||l.startsWith("unstable_")?delete r[l]:$i(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
47
|
+
|
|
48
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
49
|
+
|
|
50
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
51
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
52
|
+
|
|
53
|
+
export default theme;`}const AL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function SL(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=AL(t),l=Object.keys(o);function c(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-r/100}${n})`}function f(b,y){const T=l.indexOf(y);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(T!==-1&&typeof t[l[T]]=="number"?t[l[T]]:y)-r/100}${n})`}function p(b){return l.indexOf(b)+1<l.length?f(b,l[l.indexOf(b)+1]):c(b)}function m(b){const y=l.indexOf(b);return y===0?c(l[1]):y===l.length-1?d(l[y]):f(b,l[l.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:l,values:o,up:c,down:d,between:f,only:p,not:m,unit:n,...a}}const CL={borderRadius:4};function bA(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function DL(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function kL(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function RL(e){const t=(o,l)=>o.replace("@media",l?`@container ${l}`:"@container");function n(o,l){o.up=(...c)=>t(e.breakpoints.up(...c),l),o.down=(...c)=>t(e.breakpoints.down(...c),l),o.between=(...c)=>t(e.breakpoints.between(...c),l),o.only=(...c)=>t(e.breakpoints.only(...c),l),o.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const Wp={xs:0,sm:600,md:900,lg:1200,xl:1536},EA={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wp[e]}px)`},wL={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Wp[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||EA;return t.reduce((o,l,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||EA;return Object.keys(t).reduce((o,l)=>{if(DL(a.keys,l)){const c=kL(r.containerQueries?r:wL,l);c&&(o[c]=n(t[l],l))}else if(Object.keys(a.values||Wp).includes(l)){const c=a.up(l);o[c]=n(t[l],l)}else{const c=l;o[c]=t[c]}return o},{})}return n(t)}function IL(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function vA(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function Pa(e){if(typeof e!="string")throw new Error(Ds(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kp(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function dp(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Kp(e,n)||r,t&&(a=t(a,r,e)),a}function In(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=Kp(d,r)||{};return Gi(l,c,p=>{let m=dp(f,a,p);return p===m&&typeof p=="string"&&(m=dp(f,a,`${t}${p==="default"?"":Pa(p)}`,p)),n===!1?m:{[n]:m}})};return o.propTypes={},o.filterProps=[t],o}function Uu(e,t){return t?ea(e,t,{clone:!1}):e}function NL(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const OL={m:"margin",p:"padding"},LL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},TA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ML=NL(e=>{if(e.length>2)if(TA[e])e=TA[e];else return[e];const[t,n]=e.split(""),r=OL[t],a=LL[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),Ob=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Lb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ob,...Lb];function Md(e,t,n,r){const a=Kp(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const l=Math.abs(o),c=a[l];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function Mb(e){return Md(e,"spacing",8)}function Pd(e,t){return typeof t=="string"||t==null?t:e(t)}function PL(e,t){return n=>e.reduce((r,a)=>(r[a]=Pd(t,n),r),{})}function $L(e,t,n,r){if(!t.includes(n))return null;const a=ML(n),o=PL(a,r),l=e[n];return Gi(e,l,o)}function SD(e,t){const n=Mb(e.theme);return Object.keys(e).map(r=>$L(e,t,r,n)).reduce(Uu,{})}function _n(e){return SD(e,Ob)}_n.propTypes={};_n.filterProps=Ob;function xn(e){return SD(e,Lb)}xn.propTypes={};xn.filterProps=Lb;function FL(e=8,t=Mb({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function Xp(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?Uu(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Zr(e){return e<=1&&e!==0?`${e*100}%`:e}const jL=In({prop:"width",transform:Zr}),Pb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Wp[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Zr(n)}};return Gi(e,e.maxWidth,t)}return null};Pb.filterProps=["maxWidth"];const BL=In({prop:"minWidth",transform:Zr}),UL=In({prop:"height",transform:Zr}),HL=In({prop:"maxHeight",transform:Zr}),zL=In({prop:"minHeight",transform:Zr});In({prop:"size",cssProperty:"width",transform:Zr});In({prop:"size",cssProperty:"height",transform:Zr});const GL=In({prop:"boxSizing"});Xp(jL,Pb,BL,UL,HL,zL,GL);const Zp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Md(e.theme,"spacing",8),n=r=>({gap:Pd(t,r)});return Gi(e,e.gap,n)}return null};Zp.propTypes={};Zp.filterProps=["gap"];const Jp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Md(e.theme,"spacing",8),n=r=>({columnGap:Pd(t,r)});return Gi(e,e.columnGap,n)}return null};Jp.propTypes={};Jp.filterProps=["columnGap"];const em=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Md(e.theme,"spacing",8),n=r=>({rowGap:Pd(t,r)});return Gi(e,e.rowGap,n)}return null};em.propTypes={};em.filterProps=["rowGap"];const VL=In({prop:"gridColumn"}),qL=In({prop:"gridRow"}),YL=In({prop:"gridAutoFlow"}),QL=In({prop:"gridAutoColumns"}),WL=In({prop:"gridAutoRows"}),KL=In({prop:"gridTemplateColumns"}),XL=In({prop:"gridTemplateRows"}),ZL=In({prop:"gridTemplateAreas"}),JL=In({prop:"gridArea"});Xp(Zp,Jp,em,VL,qL,YL,QL,WL,KL,XL,ZL,JL);function zl(e,t){return t==="grey"?t:e}const eM=In({prop:"color",themeKey:"palette",transform:zl}),tM=In({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zl}),nM=In({prop:"backgroundColor",themeKey:"palette",transform:zl});Xp(eM,tM,nM);function va(e){return typeof e!="number"?e:`${e}px solid`}function Da(e,t){return In({prop:e,themeKey:"borders",transform:t})}const rM=Da("border",va),aM=Da("borderTop",va),iM=Da("borderRight",va),oM=Da("borderBottom",va),sM=Da("borderLeft",va),lM=Da("borderColor"),cM=Da("borderTopColor"),uM=Da("borderRightColor"),dM=Da("borderBottomColor"),fM=Da("borderLeftColor"),hM=Da("outline",va),pM=Da("outlineColor"),tm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Md(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Pd(t,r)});return Gi(e,e.borderRadius,n)}return null};tm.propTypes={};tm.filterProps=["borderRadius"];Xp(rM,aM,iM,oM,sM,lM,cM,uM,dM,fM,tm,hM,pM);const nm={border:{themeKey:"borders",transform:va},borderTop:{themeKey:"borders",transform:va},borderRight:{themeKey:"borders",transform:va},borderBottom:{themeKey:"borders",transform:va},borderLeft:{themeKey:"borders",transform:va},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:va},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tm},color:{themeKey:"palette",transform:zl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zl},backgroundColor:{themeKey:"palette",transform:zl},p:{style:xn},pt:{style:xn},pr:{style:xn},pb:{style:xn},pl:{style:xn},px:{style:xn},py:{style:xn},padding:{style:xn},paddingTop:{style:xn},paddingRight:{style:xn},paddingBottom:{style:xn},paddingLeft:{style:xn},paddingX:{style:xn},paddingY:{style:xn},paddingInline:{style:xn},paddingInlineStart:{style:xn},paddingInlineEnd:{style:xn},paddingBlock:{style:xn},paddingBlockStart:{style:xn},paddingBlockEnd:{style:xn},m:{style:_n},mt:{style:_n},mr:{style:_n},mb:{style:_n},ml:{style:_n},mx:{style:_n},my:{style:_n},margin:{style:_n},marginTop:{style:_n},marginRight:{style:_n},marginBottom:{style:_n},marginLeft:{style:_n},marginX:{style:_n},marginY:{style:_n},marginInline:{style:_n},marginInlineStart:{style:_n},marginInlineEnd:{style:_n},marginBlock:{style:_n},marginBlockStart:{style:_n},marginBlockEnd:{style:_n},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zp},rowGap:{style:em},columnGap:{style:Jp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zr},maxWidth:{style:Pb},minWidth:{transform:Zr},height:{transform:Zr},maxHeight:{transform:Zr},minHeight:{transform:Zr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mM(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function gM(e,t){return typeof e=="function"?e(t):e}function yM(){function e(n,r,a,o){const l={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:p,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const b=Kp(a,f)||{};return m?m(l):Gi(l,r,y=>{let T=dp(b,p,y);return y===T&&typeof y=="string"&&(T=dp(b,p,`${n}${y==="default"?"":Pa(y)}`,y)),d===!1?T:{[d]:T}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const l=a.unstable_sxConfig??nm;function c(d){let f=d;if(typeof d=="function")f=d(a);else if(typeof d!="object")return d;if(!f)return null;const p=IL(a.breakpoints),m=Object.keys(p);let b=p;return Object.keys(f).forEach(y=>{const T=gM(f[y],a);if(T!=null)if(typeof T=="object")if(l[y])b=Uu(b,e(y,T,a,l));else{const A=Gi({theme:a},T,C=>({[y]:C}));mM(A,T)?b[y]=t({sx:T,theme:a,nested:!0}):b=Uu(b,A)}else b=Uu(b,e(y,T,a,l))}),!o&&a.modularCssLayers?{"@layer sx":bA(a,vA(m,b))}:bA(a,vA(m,b))}return Array.isArray(r)?r.map(c):c(r)}return t}const Jl=yM();Jl.filterProps=["sx"];function bM(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function $b(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...l}=e,c=SL(n),d=FL(a);let f=ea({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...CL,...o}},l);return f=RL(f),f.applyStyles=bM,f=t.reduce((p,m)=>ea(p,m),f),f.unstable_sxConfig={...nm,...l?.unstable_sxConfig},f.unstable_sx=function(p){return Jl({sx:p,theme:this})},f}function ly(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:l={},typography:c={},shape:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ds(20));const p=Nb(o),m=$b(e);let b=ea(m,{mixins:mL(m.breakpoints,r),palette:p,shadows:bL.slice(),typography:yL(p,c),transitions:TL(l),zIndex:{..._L}});return b=ea(b,f),b=t.reduce((y,T)=>ea(y,T),b),b.unstable_sxConfig={...nm,...f?.unstable_sxConfig},b.unstable_sx=function(y){return Jl({sx:y,theme:this})},b.toRuntimeSource=AD,b}function EM(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const vM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=EM(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function CD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function DD(e){return e==="dark"?vM:[]}function TM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=Nb(t);return{palette:o,opacity:{...CD(o.mode),...n},overlays:r||DD(o.mode),...a}}function _M(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const xM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],AM=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return xM(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:o?{[o.replace("%s",t)]:l,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function SM(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const _A=(e,t,n,r=[])=>{let a=e;t.forEach((o,l)=>{l===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},CM=(e,t,n)=>{function r(a,o=[],l=[]){Object.entries(a).forEach(([c,d])=>{(!n||n&&!n([...o,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...o,c],Array.isArray(d)?[...l,c]:l):t([...o,c],d,l))})}r(e)},DM=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Z0(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},l={};return CM(e,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,m=DM(c,d);Object.assign(a,{[p]:m}),_A(o,c,`var(${p})`,f),_A(l,c,`var(${p}, ${m})`,f)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:l}}function kM(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:p,varsWithDefaults:m}=Z0(d,t);let b=m;const y={},{[c]:T,...A}=o;if(Object.entries(A||{}).forEach(([x,D])=>{const{vars:S,css:L,varsWithDefaults:M}=Z0(D,t);b=ea(b,M),y[x]={css:L,vars:S}}),T){const{css:x,vars:D,varsWithDefaults:S}=Z0(T,t);b=ea(b,S),y[c]={css:x,vars:D}}function C(x,D){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${o[x]?.palette?.mode||x})`]:{":root":D}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...f};return Object.entries(y).forEach(([,{vars:D}])=>{x=ea(x,D)}),x},generateStyleSheets:()=>{const x=[],D=e.defaultColorScheme||"light";function S(w,V){Object.keys(V).length&&x.push(typeof w=="string"?{[w]:{...V}}:w)}S(n(void 0,{...p}),p);const{[D]:L,...M}=y;if(L){const{css:w}=L,V=o[D]?.palette?.mode,ne=!r&&V?{colorScheme:V,...w}:{...w};S(n(D,{...ne}),ne)}return Object.entries(M).forEach(([w,{css:V}])=>{const ne=o[w]?.palette?.mode,W=!r&&ne?{colorScheme:ne,...V}:{...V};S(n(w,{...W}),W)}),x}}}function RM(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function wM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function he(e,t,n){!e[t]&&n&&(e[t]=n)}function Pu(e){return typeof e!="string"||!e.startsWith("hsl")?e:vD(e)}function wi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mu(Pu(e[t])))}function IM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Wa=e=>{try{return e()}catch{}},NM=(e="mui")=>i4(e);function J0(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=TM({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...l}=ly({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...CD(a),...t?.opacity},overlays:t?.overlays||DD(a)},l}function OM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=_M,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),b=NM(o),{[m]:y,light:T,dark:A,...C}=n,x={...C};let D=y;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Ds(21,m));const S=J0(x,D,f,m);T&&!x.light&&J0(x,T,void 0,"light"),A&&!x.dark&&J0(x,A,void 0,"dark");let L={defaultColorScheme:m,...S,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:d,getCssVar:b,colorSchemes:x,font:{...SM(S.typography),...S.font},spacing:IM(f.spacing)};Object.keys(L.colorSchemes).forEach(W=>{const k=L.colorSchemes[W].palette,H=Q=>{const K=Q.split("-"),re=K[1],me=K[2];return b(Q,k[re][me])};if(k.mode==="light"&&(he(k.common,"background","#fff"),he(k.common,"onBackground","#000")),k.mode==="dark"&&(he(k.common,"background","#000"),he(k.common,"onBackground","#fff")),wM(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){he(k.Alert,"errorColor",Gt(k.error.light,.6)),he(k.Alert,"infoColor",Gt(k.info.light,.6)),he(k.Alert,"successColor",Gt(k.success.light,.6)),he(k.Alert,"warningColor",Gt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",H("palette-error-main")),he(k.Alert,"infoFilledBg",H("palette-info-main")),he(k.Alert,"successFilledBg",H("palette-success-main")),he(k.Alert,"warningFilledBg",H("palette-warning-main")),he(k.Alert,"errorFilledColor",Wa(()=>k.getContrastText(k.error.main))),he(k.Alert,"infoFilledColor",Wa(()=>k.getContrastText(k.info.main))),he(k.Alert,"successFilledColor",Wa(()=>k.getContrastText(k.success.main))),he(k.Alert,"warningFilledColor",Wa(()=>k.getContrastText(k.warning.main))),he(k.Alert,"errorStandardBg",Vt(k.error.light,.9)),he(k.Alert,"infoStandardBg",Vt(k.info.light,.9)),he(k.Alert,"successStandardBg",Vt(k.success.light,.9)),he(k.Alert,"warningStandardBg",Vt(k.warning.light,.9)),he(k.Alert,"errorIconColor",H("palette-error-main")),he(k.Alert,"infoIconColor",H("palette-info-main")),he(k.Alert,"successIconColor",H("palette-success-main")),he(k.Alert,"warningIconColor",H("palette-warning-main")),he(k.AppBar,"defaultBg",H("palette-grey-100")),he(k.Avatar,"defaultBg",H("palette-grey-400")),he(k.Button,"inheritContainedBg",H("palette-grey-300")),he(k.Button,"inheritContainedHoverBg",H("palette-grey-A100")),he(k.Chip,"defaultBorder",H("palette-grey-400")),he(k.Chip,"defaultAvatarColor",H("palette-grey-700")),he(k.Chip,"defaultIconColor",H("palette-grey-700")),he(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),he(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),he(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),he(k.LinearProgress,"primaryBg",Vt(k.primary.main,.62)),he(k.LinearProgress,"secondaryBg",Vt(k.secondary.main,.62)),he(k.LinearProgress,"errorBg",Vt(k.error.main,.62)),he(k.LinearProgress,"infoBg",Vt(k.info.main,.62)),he(k.LinearProgress,"successBg",Vt(k.success.main,.62)),he(k.LinearProgress,"warningBg",Vt(k.warning.main,.62)),he(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),he(k.Slider,"primaryTrack",Vt(k.primary.main,.62)),he(k.Slider,"secondaryTrack",Vt(k.secondary.main,.62)),he(k.Slider,"errorTrack",Vt(k.error.main,.62)),he(k.Slider,"infoTrack",Vt(k.info.main,.62)),he(k.Slider,"successTrack",Vt(k.success.main,.62)),he(k.Slider,"warningTrack",Vt(k.warning.main,.62));const Q=bh(k.background.default,.8);he(k.SnackbarContent,"bg",Q),he(k.SnackbarContent,"color",Wa(()=>k.getContrastText(Q))),he(k.SpeedDialAction,"fabHoverBg",bh(k.background.paper,.15)),he(k.StepConnector,"border",H("palette-grey-400")),he(k.StepContent,"border",H("palette-grey-400")),he(k.Switch,"defaultColor",H("palette-common-white")),he(k.Switch,"defaultDisabledColor",H("palette-grey-100")),he(k.Switch,"primaryDisabledColor",Vt(k.primary.main,.62)),he(k.Switch,"secondaryDisabledColor",Vt(k.secondary.main,.62)),he(k.Switch,"errorDisabledColor",Vt(k.error.main,.62)),he(k.Switch,"infoDisabledColor",Vt(k.info.main,.62)),he(k.Switch,"successDisabledColor",Vt(k.success.main,.62)),he(k.Switch,"warningDisabledColor",Vt(k.warning.main,.62)),he(k.TableCell,"border",Vt(yh(k.divider,1),.88)),he(k.Tooltip,"bg",yh(k.grey[700],.92))}if(k.mode==="dark"){he(k.Alert,"errorColor",Vt(k.error.light,.6)),he(k.Alert,"infoColor",Vt(k.info.light,.6)),he(k.Alert,"successColor",Vt(k.success.light,.6)),he(k.Alert,"warningColor",Vt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",H("palette-error-dark")),he(k.Alert,"infoFilledBg",H("palette-info-dark")),he(k.Alert,"successFilledBg",H("palette-success-dark")),he(k.Alert,"warningFilledBg",H("palette-warning-dark")),he(k.Alert,"errorFilledColor",Wa(()=>k.getContrastText(k.error.dark))),he(k.Alert,"infoFilledColor",Wa(()=>k.getContrastText(k.info.dark))),he(k.Alert,"successFilledColor",Wa(()=>k.getContrastText(k.success.dark))),he(k.Alert,"warningFilledColor",Wa(()=>k.getContrastText(k.warning.dark))),he(k.Alert,"errorStandardBg",Gt(k.error.light,.9)),he(k.Alert,"infoStandardBg",Gt(k.info.light,.9)),he(k.Alert,"successStandardBg",Gt(k.success.light,.9)),he(k.Alert,"warningStandardBg",Gt(k.warning.light,.9)),he(k.Alert,"errorIconColor",H("palette-error-main")),he(k.Alert,"infoIconColor",H("palette-info-main")),he(k.Alert,"successIconColor",H("palette-success-main")),he(k.Alert,"warningIconColor",H("palette-warning-main")),he(k.AppBar,"defaultBg",H("palette-grey-900")),he(k.AppBar,"darkBg",H("palette-background-paper")),he(k.AppBar,"darkColor",H("palette-text-primary")),he(k.Avatar,"defaultBg",H("palette-grey-600")),he(k.Button,"inheritContainedBg",H("palette-grey-800")),he(k.Button,"inheritContainedHoverBg",H("palette-grey-700")),he(k.Chip,"defaultBorder",H("palette-grey-700")),he(k.Chip,"defaultAvatarColor",H("palette-grey-300")),he(k.Chip,"defaultIconColor",H("palette-grey-300")),he(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),he(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),he(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),he(k.LinearProgress,"primaryBg",Gt(k.primary.main,.5)),he(k.LinearProgress,"secondaryBg",Gt(k.secondary.main,.5)),he(k.LinearProgress,"errorBg",Gt(k.error.main,.5)),he(k.LinearProgress,"infoBg",Gt(k.info.main,.5)),he(k.LinearProgress,"successBg",Gt(k.success.main,.5)),he(k.LinearProgress,"warningBg",Gt(k.warning.main,.5)),he(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),he(k.Slider,"primaryTrack",Gt(k.primary.main,.5)),he(k.Slider,"secondaryTrack",Gt(k.secondary.main,.5)),he(k.Slider,"errorTrack",Gt(k.error.main,.5)),he(k.Slider,"infoTrack",Gt(k.info.main,.5)),he(k.Slider,"successTrack",Gt(k.success.main,.5)),he(k.Slider,"warningTrack",Gt(k.warning.main,.5));const Q=bh(k.background.default,.98);he(k.SnackbarContent,"bg",Q),he(k.SnackbarContent,"color",Wa(()=>k.getContrastText(Q))),he(k.SpeedDialAction,"fabHoverBg",bh(k.background.paper,.15)),he(k.StepConnector,"border",H("palette-grey-600")),he(k.StepContent,"border",H("palette-grey-600")),he(k.Switch,"defaultColor",H("palette-grey-300")),he(k.Switch,"defaultDisabledColor",H("palette-grey-600")),he(k.Switch,"primaryDisabledColor",Gt(k.primary.main,.55)),he(k.Switch,"secondaryDisabledColor",Gt(k.secondary.main,.55)),he(k.Switch,"errorDisabledColor",Gt(k.error.main,.55)),he(k.Switch,"infoDisabledColor",Gt(k.info.main,.55)),he(k.Switch,"successDisabledColor",Gt(k.success.main,.55)),he(k.Switch,"warningDisabledColor",Gt(k.warning.main,.55)),he(k.TableCell,"border",Gt(yh(k.divider,1),.68)),he(k.Tooltip,"bg",yh(k.grey[700],.92))}wi(k.background,"default"),wi(k.background,"paper"),wi(k.common,"background"),wi(k.common,"onBackground"),wi(k,"divider"),Object.keys(k).forEach(Q=>{const K=k[Q];Q!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&he(k[Q],"mainChannel",Mu(Pu(K.main))),K.light&&he(k[Q],"lightChannel",Mu(Pu(K.light))),K.dark&&he(k[Q],"darkChannel",Mu(Pu(K.dark))),K.contrastText&&he(k[Q],"contrastTextChannel",Mu(Pu(K.contrastText))),Q==="text"&&(wi(k[Q],"primary"),wi(k[Q],"secondary")),Q==="action"&&(K.active&&wi(k[Q],"active"),K.selected&&wi(k[Q],"selected")))})}),L=t.reduce((W,k)=>ea(W,k),L);const M={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:AM(L)},{vars:w,generateThemeVars:V,generateStyleSheets:ne}=kM(L,M);return L.vars=w,Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([W,k])=>{L[W]=k}),L.generateThemeVars=V,L.generateStyleSheets=ne,L.generateSpacing=function(){return o4(f.spacing,Mb(this))},L.getColorSchemeSelector=RM(c),L.spacing=L.generateSpacing(),L.shouldSkipGeneratingVar=l,L.unstable_sxConfig={...nm,...f?.unstable_sxConfig},L.unstable_sx=function(W){return Jl({sx:W,theme:this})},L.toRuntimeSource=AD,L}function xA(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Nb({...n===!0?{}:n.palette,mode:t})})}function LM(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...l}=e,c=o||"light",d=a?.[c],f={...a,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ly(e,...t);let p=n;"palette"in e||f[c]&&(f[c]!==!0?p=f[c].palette:c==="dark"&&(p={mode:"dark"}));const m=ly({...e,palette:p},...t);return m.defaultColorScheme=c,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},xA(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},xA(m,"light",f.light)),m}return!n&&!("light"in f)&&c==="light"&&(f.light=!0),OM({...l,colorSchemes:f,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Fb=LM(),jb="$$material";function MM(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bb=e=>MM(e)&&e!=="classes";function PM(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $M={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function FM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jM=/[A-Z]|^ms/g,BM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kD=function(e){return e.charCodeAt(1)===45},AA=function(e){return e!=null&&typeof e!="boolean"},e1=FM(function(e){return kD(e)?e:e.replace(jM,"-$&").toLowerCase()}),SA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(BM,function(n,r,a){return Do={name:r,styles:a,next:Do},r})}return $M[e]!==1&&!kD(e)&&typeof t=="number"&&t!==0?t+"px":t};function fp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Do={name:a.name,styles:a.styles,next:Do},a.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)Do={name:l.name,styles:l.styles,next:Do},l=l.next;var c=o.styles+";";return c}return UM(e,t,n)}}var d=n;return d}function UM(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=fp(e,t,n[a])+";";else for(var o in n){var l=n[o];if(typeof l!="object"){var c=l;AA(c)&&(r+=e1(o)+":"+SA(o,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var d=0;d<l.length;d++)AA(l[d])&&(r+=e1(o)+":"+SA(o,l[d])+";");else{var f=fp(e,t,l);switch(o){case"animation":case"animationName":{r+=e1(o)+":"+f+";";break}default:r+=o+"{"+f+"}"}}}return r}var CA=/label:\s*([^\s;{]+)\s*(;|$)/g,Do;function HM(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Do=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=fp(n,t,o);else{var l=o;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=fp(n,t,e[c]),r){var d=o;a+=d[c]}CA.lastIndex=0;for(var f="",p;(p=CA.exec(a))!==null;)f+="-"+p[1];var m=PM(a)+f;return{name:m,styles:a,next:Do}}function zM(e,t){return s4(e,t)}function GM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const DA=[];function _s(e){return DA[0]=e,HM(DA)}function VM(e){const{variants:t,...n}=e,r={variants:t,style:_s(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=_s(a.style))}),r}const qM=$b();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hs(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function YM(e){return e?(t,n)=>n[e]:null}function QM(e,t,n){e.theme=KM(e.theme)?n:e.theme[t]||e.theme}function Bh(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Bh(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?hs(r.style,n):r.style;else{const{variants:o,...l}=r;a=n?hs(_s(l),n):l}return RD(e,r.variants,[a],n)}return r?.isProcessed?n?hs(_s(r.style),n):r.style:n?hs(_s(r),n):r}function RD(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const l=t[o];if(typeof l.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(a))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hs(_s(l.style(a)),r):l.style(a))):n.push(r?hs(_s(l.style),r):l.style)}return n}function WM(e={}){const{themeId:t,defaultTheme:n=qM,rootShouldForwardProp:r=Io,slotShouldForwardProp:a=Io}=e;function o(l){QM(l,t,n)}return(l,c={})=>{GM(l,M=>M.filter(w=>w!==Jl));const{name:d,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:b=YM(ZM(f)),...y}=c,T=d&&d.startsWith("Mui")||f?"components":"custom",A=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,C=m||!1;let x=Io;f==="Root"||f==="root"?x=r:f?x=a:XM(l)&&(x=void 0);const D=zM(l,{shouldForwardProp:x,label:void 0,...y}),S=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(w){return Bh(w,M,w.theme.modularCssLayers?T:void 0)};if($i(M)){const w=VM(M);return function(V){return w.variants?Bh(V,w,V.theme.modularCssLayers?T:void 0):V.theme.modularCssLayers?hs(w.style,T):w.style}}return M},L=(...M)=>{const w=[],V=M.map(S),ne=[];if(w.push(o),d&&b&&ne.push(function(H){const Q=H.theme.components?.[d]?.styleOverrides;if(!Q)return null;const K={};for(const re in Q)K[re]=Bh(H,Q[re],H.theme.modularCssLayers?"theme":void 0);return b(H,K)}),d&&!A&&ne.push(function(H){const Q=H.theme?.components?.[d]?.variants;return Q?RD(H,Q,[],H.theme.modularCssLayers?"theme":void 0):null}),C||ne.push(Jl),Array.isArray(V[0])){const H=V.shift(),Q=new Array(w.length).fill(""),K=new Array(ne.length).fill("");let re;re=[...Q,...H,...K],re.raw=[...Q,...H.raw,...K],w.unshift(re)}const W=[...w,...V,...ne],k=D(...W);return l.muiName&&(k.muiName=l.muiName),k};return D.withConfig&&(L.withConfig=D.withConfig),L}}function KM(e){for(const t in e)return!1;return!0}function XM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ZM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const on=WM({themeId:jb,defaultTheme:Fb,rootShouldForwardProp:Bb});function Fs(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let l="",c=!0;for(let d=0;d<o.length;d+=1){const f=o[d];f&&(l+=(c===!0?"":" ")+t(f),c=!1,n&&n[f]&&(l+=" "+n[f]))}r[a]=l}return r}const JM=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${Pa(t)}`,`fontSize${Pa(n)}`]};return Fs(a,K6,r)},eP=on("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pa(n.color)}`],t[`fontSize${Pa(n.fontSize)}`]]}})(kb(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),cy=N.forwardRef(function(e,t){const n=sc({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:o="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...b}=n,y=N.isValidElement(r)&&r.type==="svg",T={...n,color:o,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y},A={};f||(A.viewBox=m);const C=JM(T);return E.jsxs(eP,{as:l,className:$n(C.root,a),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...A,...b,...y&&r.props,ownerState:T,children:[y?r.props.children:r,p?E.jsx("title",{children:p}):null]})});cy.muiName="SvgIcon";function Qt(e,t){function n(r,a){return E.jsx(cy,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=cy.muiName,N.memo(N.forwardRef(n))}const rm=Qt(E.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),$d=Qt(E.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),tP="modulepreload",nP=function(e){return"/"+e},kA={},F=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=l(n.map(f=>{if(f=nP(f),f in kA)return;kA[f]=!0;const p=f.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":tP,p||(b.as="script"),b.crossOrigin="",b.href=f,d&&b.setAttribute("nonce",d),document.head.appendChild(b),p)return new Promise((y,T)=>{b.addEventListener("load",y),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})},wD=[{id:"abap",name:"ABAP",import:()=>F(()=>import("./index.es136-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>F(()=>import("./index.es137-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>F(()=>import("./index.es138-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>F(()=>import("./index.es139-nr8meTUp.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>F(()=>import("./index.es140-f9ybcYUt.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>F(()=>import("./index.es141-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>F(()=>import("./index.es142-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>F(()=>import("./index.es143-BrmH4hWW.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>F(()=>import("./index.es144-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>F(()=>import("./index.es145-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>F(()=>import("./index.es146-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>F(()=>import("./index.es147-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>F(()=>import("./index.es148-KJPSzIi5.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>F(()=>import("./index.es149-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>F(()=>import("./index.es150-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>F(()=>import("./index.es151-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>F(()=>import("./index.es152-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>F(()=>import("./index.es153-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>F(()=>import("./index.es154-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>F(()=>import("./index.es155-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>F(()=>import("./index.es156-AslbYSUk.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>F(()=>import("./index.es157-CGx9vJCM.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>F(()=>import("./index.es158-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>F(()=>import("./index.es159-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>F(()=>import("./index.es160-B4514fRp.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>F(()=>import("./index.es161-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>F(()=>import("./index.es162-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>F(()=>import("./index.es163-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>F(()=>import("./index.es164-BdfNgGb4.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>F(()=>import("./index.es165-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>F(()=>import("./index.es166-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>F(()=>import("./index.es167-Cytvwvs5.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>F(()=>import("./index.es168-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>F(()=>import("./index.es169-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>F(()=>import("./index.es170-BF0Mj3Dj.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>F(()=>import("./index.es171-bDBK09mk.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>F(()=>import("./index.es172-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>F(()=>import("./index.es173-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>F(()=>import("./index.es174-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>F(()=>import("./index.es175-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>F(()=>import("./index.es176-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>F(()=>import("./index.es177-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>F(()=>import("./index.es178-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>F(()=>import("./index.es179-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>F(()=>import("./index.es180-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>F(()=>import("./index.es181-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>F(()=>import("./index.es182-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>F(()=>import("./index.es183-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>F(()=>import("./index.es184-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>F(()=>import("./index.es185-BECCJjWR.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>F(()=>import("./index.es186-DORBN8KQ.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>F(()=>import("./index.es187-C1QXB69O.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>F(()=>import("./index.es188-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>F(()=>import("./index.es189-BxZOchW8.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>F(()=>import("./index.es190-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>F(()=>import("./index.es191-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>F(()=>import("./index.es192-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>F(()=>import("./index.es193-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>F(()=>import("./index.es194-AsRZMTWT.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>F(()=>import("./index.es195-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>F(()=>import("./index.es196-x3jX2idz.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>F(()=>import("./index.es197-Dtz8tRxv.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>F(()=>import("./index.es198-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>F(()=>import("./index.es199-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>F(()=>import("./index.es200-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>F(()=>import("./index.es201--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>F(()=>import("./index.es202-BMtZpqF-.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>F(()=>import("./index.es203-gWIQWffw.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>F(()=>import("./index.es204-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>F(()=>import("./index.es205-D7Lk4BX7.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>F(()=>import("./index.es206-BiJF4jj3.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>F(()=>import("./index.es207-B-UJ_bzC.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>F(()=>import("./index.es208-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>F(()=>import("./index.es209-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>F(()=>import("./index.es210-Cuht9bXE.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>F(()=>import("./index.es211-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>F(()=>import("./index.es212-OHX8E5rN.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>F(()=>import("./index.es213-ZuPzTQ_g.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>F(()=>import("./index.es214-D803Db5p.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>F(()=>import("./index.es215-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>F(()=>import("./index.es216-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>F(()=>import("./index.es217-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>F(()=>import("./index.es218-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>F(()=>import("./index.es219-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>F(()=>import("./index.es220-7QoCPP2j.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>F(()=>import("./index.es221-XNqXVFFm.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>F(()=>import("./index.es222-Cdb4luVg.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>F(()=>import("./index.es223-CORMGf1M.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>F(()=>import("./index.es224-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>F(()=>import("./index.es225-Cq-kOlxp.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>F(()=>import("./index.es226-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>F(()=>import("./index.es227-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>F(()=>import("./index.es228-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>F(()=>import("./index.es229-E5IGXk-q.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>F(()=>import("./index.es230-Fc3aBcCM.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>F(()=>import("./index.es231-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>F(()=>import("./index.es232-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>F(()=>import("./index.es233-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>F(()=>import("./index.es234-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>F(()=>import("./index.es235-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>F(()=>import("./index.es236-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>F(()=>import("./index.es237-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>F(()=>import("./index.es238-PSs3scPq.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>F(()=>import("./index.es239-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>F(()=>import("./index.es240-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>F(()=>import("./index.es241-CL-_GK9e.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>F(()=>import("./index.es242-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>F(()=>import("./index.es243-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>F(()=>import("./index.es244-DKPCX9xC.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>F(()=>import("./index.es245-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>F(()=>import("./index.es246-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>F(()=>import("./index.es247-BSAYNLHy.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>F(()=>import("./index.es248-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>F(()=>import("./index.es249-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>F(()=>import("./index.es250-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>F(()=>import("./index.es251--0-h5QiV.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>F(()=>import("./index.es252-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>F(()=>import("./index.es253-BEn9NcoZ.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>F(()=>import("./index.es254-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>F(()=>import("./index.es255-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>F(()=>import("./index.es256-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>F(()=>import("./index.es257-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>F(()=>import("./index.es258-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>F(()=>import("./index.es259-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>F(()=>import("./index.es260-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>F(()=>import("./index.es261-MjZ_rv4c.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>F(()=>import("./index.es262-HBJu6fHJ.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>F(()=>import("./index.es263-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>F(()=>import("./index.es264-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>F(()=>import("./index.es265-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>F(()=>import("./index.es266-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>F(()=>import("./index.es267-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>F(()=>import("./index.es268-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>F(()=>import("./index.es269-DLa2GgqN.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>F(()=>import("./index.es270-CalwIzIq.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>F(()=>import("./index.es271-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>F(()=>import("./index.es272-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>F(()=>import("./index.es273-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>F(()=>import("./index.es274-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>F(()=>import("./index.es275-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>F(()=>import("./index.es276-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>F(()=>import("./index.es277-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>F(()=>import("./index.es278-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>F(()=>import("./index.es279-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>F(()=>import("./index.es280-BmnnGhn2.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>F(()=>import("./index.es281-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>F(()=>import("./index.es282-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>F(()=>import("./index.es283-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>F(()=>import("./index.es284-C2YEYS8h.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>F(()=>import("./index.es285-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>F(()=>import("./index.es286-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>F(()=>import("./index.es287-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>F(()=>import("./index.es288-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>F(()=>import("./index.es289-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>F(()=>import("./index.es290-BHjEYaA_.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>F(()=>import("./index.es291-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>F(()=>import("./index.es292-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>F(()=>import("./index.es293-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>F(()=>import("./index.es294-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>F(()=>import("./index.es295-CLE8Egbz.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>F(()=>import("./index.es296-Bsq8yJGD.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>F(()=>import("./index.es297-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>F(()=>import("./index.es298-CTsw_aX6.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>F(()=>import("./index.es299-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>F(()=>import("./index.es300-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>F(()=>import("./index.es301-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>F(()=>import("./index.es302-BgJs_s58.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>F(()=>import("./index.es303-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>F(()=>import("./index.es304-Y67tbm3o.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>F(()=>import("./index.es305-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>F(()=>import("./index.es306-Dsx0880i.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>F(()=>import("./index.es307-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>F(()=>import("./index.es308-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>F(()=>import("./index.es309-COa7lSGF.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>F(()=>import("./index.es310-C11TmHug.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>F(()=>import("./index.es311-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>F(()=>import("./index.es312-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>F(()=>import("./index.es313-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>F(()=>import("./index.es314-BExIez_V.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>F(()=>import("./index.es315-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>F(()=>import("./index.es316-DFqBRZWD.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>F(()=>import("./index.es317-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>F(()=>import("./index.es318-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>F(()=>import("./index.es319-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>F(()=>import("./index.es320-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>F(()=>import("./index.es321-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>F(()=>import("./index.es322-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>F(()=>import("./index.es323-BClNDw1H.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>F(()=>import("./index.es324-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>F(()=>import("./index.es325-f5hVUVjI.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>F(()=>import("./index.es326-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>F(()=>import("./index.es327-DsTyRd6E.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>F(()=>import("./index.es328-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>F(()=>import("./index.es329-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>F(()=>import("./index.es330-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>F(()=>import("./index.es331-BLhdwz0E.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>F(()=>import("./index.es332-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>F(()=>import("./index.es333-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>F(()=>import("./index.es334-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>F(()=>import("./index.es335-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>F(()=>import("./index.es336-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>F(()=>import("./index.es337-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>F(()=>import("./index.es338-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>F(()=>import("./index.es339-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>F(()=>import("./index.es340-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>F(()=>import("./index.es341-oDRBDM86.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>F(()=>import("./index.es342-DialnTnH.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>F(()=>import("./index.es343-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>F(()=>import("./index.es344-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>F(()=>import("./index.es345-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>F(()=>import("./index.es346-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>F(()=>import("./index.es347-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>F(()=>import("./index.es348-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>F(()=>import("./index.es349-DrBCM5L2.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>F(()=>import("./index.es350-B1R-_5vW.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>F(()=>import("./index.es351-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>F(()=>import("./index.es352-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>F(()=>import("./index.es353-BVz_zdnA.js"),[])}],rP=Object.fromEntries(wD.map(e=>[e.id,e.import])),aP=Object.fromEntries(wD.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),iP={...rP,...aP},oP=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>F(()=>import("./index.es354-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>F(()=>import("./index.es355-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>F(()=>import("./index.es356-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>F(()=>import("./index.es357-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>F(()=>import("./index.es358-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>F(()=>import("./index.es359-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>F(()=>import("./index.es360-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>F(()=>import("./index.es361-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>F(()=>import("./index.es362-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>F(()=>import("./index.es363-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>F(()=>import("./index.es364-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>F(()=>import("./index.es365-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>F(()=>import("./index.es366-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>F(()=>import("./index.es367-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>F(()=>import("./index.es368-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>F(()=>import("./index.es369-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>F(()=>import("./index.es370-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>F(()=>import("./index.es371-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>F(()=>import("./index.es372-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>F(()=>import("./index.es373-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>F(()=>import("./index.es374-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>F(()=>import("./index.es375-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>F(()=>import("./index.es376-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>F(()=>import("./index.es377-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>F(()=>import("./index.es378-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>F(()=>import("./index.es379-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>F(()=>import("./index.es380-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>F(()=>import("./index.es381-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>F(()=>import("./index.es382-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>F(()=>import("./index.es383-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>F(()=>import("./index.es384-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>F(()=>import("./index.es385-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>F(()=>import("./index.es386-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>F(()=>import("./index.es387-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>F(()=>import("./index.es388-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>F(()=>import("./index.es389-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>F(()=>import("./index.es390-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>F(()=>import("./index.es391-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>F(()=>import("./index.es392-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>F(()=>import("./index.es393-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>F(()=>import("./index.es394-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>F(()=>import("./index.es395-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>F(()=>import("./index.es396-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>F(()=>import("./index.es397-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>F(()=>import("./index.es398-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>F(()=>import("./index.es399-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>F(()=>import("./index.es400-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>F(()=>import("./index.es401-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>F(()=>import("./index.es402-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>F(()=>import("./index.es403-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>F(()=>import("./index.es404-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>F(()=>import("./index.es405-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>F(()=>import("./index.es406-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>F(()=>import("./index.es407-CVO1_9PV.js"),[])}],sP=Object.fromEntries(oP.map(e=>[e.id,e.import]));let zi=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Ub=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function lP(){return 2147483648}function cP(){return typeof performance<"u"?performance.now():Date.now()}const uP=(e,t)=>e+(t-e%t)%t;async function dP(e){let t,n;const r={};function a(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function o(y,T,A){r.HEAPU8.copyWithin(y,T,T+A)}function l(y){try{return t.grow(y-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(y){const T=r.HEAPU8.length;y=y>>>0;const A=lP();if(y>A)return!1;for(let C=1;C<=4;C*=2){let x=T*(1+.2/C);x=Math.min(x,y+100663296);const D=Math.min(A,uP(Math.max(y,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(y,T,A=1024){const C=T+A;let x=T;for(;y[x]&&!(x>=C);)++x;if(x-T>16&&y.buffer&&d)return d.decode(y.subarray(T,x));let D="";for(;T<x;){let S=y[T++];if(!(S&128)){D+=String.fromCharCode(S);continue}const L=y[T++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|L);continue}const M=y[T++]&63;if((S&240)===224?S=(S&15)<<12|L<<6|M:S=(S&7)<<18|L<<12|M<<6|y[T++]&63,S<65536)D+=String.fromCharCode(S);else{const w=S-65536;D+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return D}function p(y,T){return y?f(r.HEAPU8,y,T):""}const m={emscripten_get_now:cP,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function b(){const y=await e({env:m,wasi_snapshot_preview1:m});t=y.memory,a(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await b(),r}var fP=Object.defineProperty,hP=(e,t,n)=>t in e?fP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Un=(e,t,n)=>(hP(e,typeof t!="symbol"?t+"":t,n),n);let Kn=null;function pP(e){throw new Ub(e.UTF8ToString(e.getLastOnigError()))}let ID=class ND{constructor(t){Un(this,"utf16Length"),Un(this,"utf8Length"),Un(this,"utf16Value"),Un(this,"utf8Value"),Un(this,"utf16OffsetToUtf8"),Un(this,"utf8OffsetToUtf16");const n=t.length,r=ND._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,b=!1;if(p>=55296&&p<=56319&&f+1<n){const y=t.charCodeAt(f+1);y>=56320&&y<=57343&&(m=(p-55296<<10)+65536|y-56320,b=!0)}a&&(o[f]=d,b&&(o[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),b&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(o-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Za=class{constructor(t){if(Un(this,"id",++Za.LAST_ID),Un(this,"_onigBinding"),Un(this,"content"),Un(this,"utf16Length"),Un(this,"utf8Length"),Un(this,"utf16OffsetToUtf8"),Un(this,"utf8OffsetToUtf16"),Un(this,"ptr"),!Kn)throw new Ub("Must invoke loadWasm first.");this._onigBinding=Kn,this.content=t;const n=new ID(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Za._sharedPtrInUse?(Za._sharedPtr||(Za._sharedPtr=Kn.omalloc(1e4)),Za._sharedPtrInUse=!0,Kn.HEAPU8.set(n.utf8Value,Za._sharedPtr),this.ptr=Za._sharedPtr):this.ptr=n.createString(Kn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Za._sharedPtr?Za._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Fd=Za;Un(Fd,"LAST_ID",0);Un(Fd,"_sharedPtr",0);Un(Fd,"_sharedPtrInUse",!1);let mP=class{constructor(t){if(Un(this,"_onigBinding"),Un(this,"_ptr"),!Kn)throw new Ub("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new ID(t[c]);n[c]=f.createString(Kn),r[c]=f.utf8Length}const a=Kn.omalloc(4*t.length);Kn.HEAPU32.set(n,a/4);const o=Kn.omalloc(4*t.length);Kn.HEAPU32.set(r,o/4);const l=Kn.createOnigScanner(a,o,t.length);for(let c=0,d=t.length;c<d;c++)Kn.ofree(n[c]);Kn.ofree(o),Kn.ofree(a),l===0&&pP(Kn),this._onigBinding=Kn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Fd(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=o.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let b=0;b<p;b++){const y=t.convertUtf8OffsetToUtf16(c[d++]),T=t.convertUtf8OffsetToUtf16(c[d++]);m[b]={start:y,end:T,length:T-y}}return{index:f,captureIndices:m}}};function gP(e){return typeof e.instantiator=="function"}function yP(e){return typeof e.default=="function"}function bP(e){return typeof e.data<"u"}function EP(e){return typeof Response<"u"&&e instanceof Response}function vP(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Eh;function TP(e){if(Eh)return Eh;async function t(){Kn=await dP(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),gP(r)?r=await r.instantiator(n):yP(r)?r=await r.default(n):(bP(r)&&(r=r.data),EP(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await _P(r)(n):r=await xP(r)(n):vP(r)?r=await t1(r)(n):r instanceof WebAssembly.Module?r=await t1(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await t1(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Eh=t(),Eh}function t1(e){return t=>WebAssembly.instantiate(e,t)}function _P(e){return t=>WebAssembly.instantiateStreaming(e,t)}function xP(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let AP;function SP(){return AP}async function OD(e){return e&&await TP(e),{createScanner(t){return new mP(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Fd(t)}}}function CP(e){return Hb(e)}function Hb(e){return Array.isArray(e)?DP(e):e instanceof RegExp?e:typeof e=="object"?kP(e):e}function DP(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Hb(e[n]);return t}function kP(e){let t={};for(let n in e)t[n]=Hb(e[n]);return t}function LD(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function MD(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?MD(e.substring(0,e.length-1)):e.substr(~t+1)}var n1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vh=class{static hasCaptures(t){return t===null?!1:(n1.lastIndex=0,n1.test(t))}static replaceCaptures(t,n,r){return t.replace(n1,(a,o,l,c)=>{let d=r[parseInt(o||l,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function PD(e,t){return e<t?-1:e>t?1:0}function $D(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=PD(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function RA(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function FD(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var jD=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},hp=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(IP(t),n)}static createFromParsedTheme(t,n){return OP(t,n)}_cachedMatchRoot=new jD(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>RP(t.parent,a.parentScopes));return r?new BD(r.fontStyle,r.foreground,r.background):null}},r1=class Uh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Uh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Uh(n,t[r]);return n}push(t){return new Uh(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function RP(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!wP(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function wP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var BD=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function IP(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let b=0,y=m.length;b<y;b++)switch(m[b]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&RA(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&RA(l.settings.background)&&(p=l.settings.background);for(let m=0,b=c.length;m<b;m++){let y=c[m].trim().split(" "),T=y[y.length-1],A=null;y.length>1&&(A=y.slice(0,y.length-1),A.reverse()),n[r++]=new NP(T,A,a,d,f,p)}}return n}var NP=class{constructor(t,n,r,a,o,l){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=l}},Bi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Bi||{});function OP(e,t){e.sort((d,f)=>{let p=PD(d.scope,f.scope);return p!==0||(p=$D(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let o=new LP(t),l=new BD(n,o.getId(r),o.getId(a)),c=new PP(new uy(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new hp(o,l,c)}var LP=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},MP=Object.freeze([]),uy=class UD{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||MP,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new UD(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},PP=class dy{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(dy._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new dy(this._mainRule.clone(),uy.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if($D(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new uy(t,n,r,a,o))}},ec=class ma{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ma.getLanguageId(t),r=ma.getTokenType(t),a=ma.getFontStyle(t),o=ma.getForeground(t),l=ma.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,l,c){let d=ma.getLanguageId(t),f=ma.getTokenType(t),p=ma.containsBalancedBrackets(t)?1:0,m=ma.getFontStyle(t),b=ma.getForeground(t),y=ma.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),o!==-1&&(m=o),l!==0&&(b=l),c!==0&&(y=c),(d<<0|f<<8|p<<10|m<<11|b<<15|y<<24)>>>0}};function pp(e,t){const n=[],r=$P(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const d=o();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(wA(a)){const d=[];do d.push(a),a=r.next();while(wA(a));return f=>t(d,f)}return null}function l(){const d=[];let f=o();for(;f;)d.push(f),f=o();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function wA(e){return!!e&&!!e.match(/[\w\.:]+/)}function $P(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function HD(e){typeof e.dispose=="function"&&e.dispose()}var dd=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},FP=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},jP=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},BP=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new dd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new jP;for(const r of t)UP(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof dd){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function UP(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof dd?Hh({baseGrammar:o,selfGrammar:a},r):fy(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new dd(c))}function fy(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];mp([r],t,n)}}function Hh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&mp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&mp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function mp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?LD({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&mp(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=zD(o);switch(l.kind){case 0:Hh({...t,selfGrammar:t.baseGrammar},n);break;case 1:Hh(t,n);break;case 2:fy(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?fy(l.ruleName,d,n):Hh(d,n)}else l.kind===4?n.add(new FP(l.scopeName,l.ruleName)):n.add(new dd(l.scopeName));break}}}var HP=class{kind=0},zP=class{kind=1},GP=class{constructor(t){this.ruleName=t}kind=2},VP=class{constructor(t){this.scopeName=t}kind=3},qP=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function zD(e){if(e==="$base")return new HP;if(e==="$self")return new zP;const t=e.indexOf("#");if(t===-1)return new VP(e);if(t===0)return new GP(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new qP(n,r)}}var YP=/\\(\d+)/,IA=/\\(\d+)/g,QP=-1,GD=-2,jd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=vh.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=vh.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${MD(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:vh.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vh.replaceCaptures(this._contentName,t,n)}},WP=class extends jd{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},KP=class extends jd{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new fd(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},NA=class extends jd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},hy=class extends jd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,l,c,d,f,p){super(t,n,r,a),this._begin=new fd(o,this.id),this.beginCaptures=l,this._end=new fd(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new hd;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},gp=class extends jd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,l,c,d,f){super(t,n,r,a),this._begin=new fd(o,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new fd(c,GD),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new hd;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new hd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},VD=class dr{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new WP(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new KP(t.$vscodeTextmateLocation,t.id,t.name,t.match,dr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=LD({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new NA(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,dr._compilePatterns(o,n,r))}return t.while?new gp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,dr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,dr._compileCaptures(t.whileCaptures||t.captures,n,r),dr._compilePatterns(t.patterns,n,r)):new hy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,dr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,dr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,dr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>o&&(o=c)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=dr.getCompiledRuleId(t[l],n,r)),a[c]=dr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const c=t[o];let d=-1;if(c.include){const f=zD(c.include);switch(f.kind){case 0:case 1:d=dr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=dr.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,b=f.kind===4?f.ruleName:null,y=n.getExternalGrammar(m,r);if(y)if(b){let T=y.repository[b];T&&(d=dr.getCompiledRuleId(T,n,y.repository))}else d=dr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else d=dr.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof NA||f instanceof hy||f instanceof gp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},fd=class qD{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=YP.test(this.source):this.hasBackReferences=!1}clone(){return new qD(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return IA.lastIndex=0,this.source.replace(IA,(a,o)=>FD(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,l,c,d;for(o=0,l=this.source.length;o<l;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<l&&(d=this.source.charAt(o+1),d==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):d==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=d,n[o+1]=d,r[o+1]=d,a[o+1]=d),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},hd=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new OA(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new OA(t,a,this._items.map(o=>o.ruleId))}},OA=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
54
|
+
`)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},a1=class{constructor(t,n){this.languageId=t,this.tokenType=n}},XP=class py{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new a1(t,8),this._embeddedLanguagesMatcher=new ZP(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?py._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new a1(0,0);_getBasicScopeAttributes=new jD(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new a1(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(py.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ZP=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>FD(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},LA=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function YD(e,t,n,r,a,o,l,c){const d=t.content.length;let f=!1,p=-1;if(l){const y=JP(e,t,n,r,a,o);a=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const m=Date.now();for(;!f;){if(c!==0&&Date.now()-m>c)return new LA(a,!0);b()}return new LA(a,!1);function b(){const y=e7(e,t,n,r,a,p);if(!y){o.produce(a,d),f=!0;return}const T=y.captureIndices,A=y.matchedRuleId,C=T&&T.length>0?T[0].end>r:!1;if(A===QP){const x=a.getRule(e);o.produce(a,T[0].start),a=a.withContentNameScopesList(a.nameScopesList),$u(e,t,n,a,o,x.endCaptures,T),o.produce(a,T[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!C&&D.getEnterPos()===r){a=D,o.produce(a,d),f=!0;return}}else{const x=e.getRule(A);o.produce(a,T[0].start);const D=a,S=x.getName(t.content,T),L=a.contentNameScopesList.pushAttributed(S,e);if(a=a.push(A,r,p,T[0].end===d,null,L,L),x instanceof hy){const M=x;$u(e,t,n,a,o,M.beginCaptures,T),o.produce(a,T[0].end),p=T[0].end;const w=M.getContentName(t.content,T),V=L.pushAttributed(w,e);if(a=a.withContentNameScopesList(V),M.endHasBackReferences&&(a=a.withEndRule(M.getEndWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(x instanceof gp){const M=x;$u(e,t,n,a,o,M.beginCaptures,T),o.produce(a,T[0].end),p=T[0].end;const w=M.getContentName(t.content,T),V=L.pushAttributed(w,e);if(a=a.withContentNameScopesList(V),M.whileHasBackReferences&&(a=a.withEndRule(M.getWhileWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if($u(e,t,n,a,o,x.captures,T),o.produce(a,T[0].end),a=a.pop(),!C){a=a.safePop(),o.produce(a,d),f=!0;return}}T[0].end>r&&(r=T[0].end,n=!1)}}function JP(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const c=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof gp&&c.push({rule:f,stack:d})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:f,findOptions:p}=r7(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==GD){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(d.stack,m.captureIndices[0].start),$u(e,t,n,d.stack,o,d.rule.whileCaptures,m.captureIndices),o.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function e7(e,t,n,r,a,o){const l=t7(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return l;const d=n7(c,e,t,n,r,a,o);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function t7(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:c,findOptions:d}=QD(l,e,a.endRule,n,r===o),f=c.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function n7(e,t,n,r,a,o,l){let c=Number.MAX_VALUE,d=null,f,p=0;const m=o.contentNameScopesList.getScopeNames();for(let b=0,y=e.length;b<y;b++){const T=e[b];if(!T.matcher(m))continue;const A=t.getRule(T.ruleId),{ruleScanner:C,findOptions:x}=QD(A,t,null,r,a===l),D=C.findNextMatchSync(n,a,x);if(!D)continue;const S=D.captureIndices[0].start;if(!(S>=c)&&(c=S,d=D.captureIndices,f=D.ruleId,p=T.priority,c===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function QD(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function r7(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function $u(e,t,n,r,a,o,l){if(o.length===0)return;const c=t.content,d=Math.min(o.length,l.length),f=[],p=l[0].end;for(let m=0;m<d;m++){const b=o[m];if(b===null)continue;const y=l[m];if(y.length===0)continue;if(y.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=y.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,y.start):a.produce(r,y.start),b.retokenizeCapturedWithRuleId){const A=b.getName(c,l),C=r.contentNameScopesList.pushAttributed(A,e),x=b.getContentName(c,l),D=C.pushAttributed(x,e),S=r.push(b.retokenizeCapturedWithRuleId,y.start,-1,!1,null,C,D),L=e.createOnigString(c.substring(0,y.end));YD(e,L,n&&y.start===0,y.start,S,a,!1,0),HD(L);continue}const T=b.getName(c,l);if(T!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(T,e);f.push(new a7(A,y.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var a7=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function i7(e,t,n,r,a,o,l,c){return new s7(e,t,n,r,a,o,l,c)}function MA(e,t,n,r,a){const o=pp(t,yp),l=VD.getCompiledRuleId(n,r,a.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:a,priority:c.priority})}function yp(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(o7(t[a],r))return n=a+1,!0;return!1})}function o7(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var s7=class{constructor(t,n,r,a,o,l,c,d){if(this._rootScopeName=t,this.balancedBracketSelectors=l,this._onigLib=d,this._basicScopeAttributesProvider=new XP(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=PA(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const f of Object.keys(o)){const p=pp(f,yp);for(const m of p)this._tokenTypeMatchers.push({matcher:m.matcher,type:o[f]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const o=a.injections;if(o)for(let c in o)MA(n,c,o[c],this,a);const l=this._grammarRepository.injections(r);l&&l.forEach(c=>{const d=this.getExternalGrammar(c);if(d){const f=d.injectionSelector;f&&MA(n,f,d,this,d)}})}return n.sort((o,l)=>o.priority-l.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=PA(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=VD.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===my.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),b=ec.set(0,p.languageId,p.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),y=this.getRule(this._rootId).getName(null,null);let T;y?T=Hu.createRootAndLookUpScopeName(y,b,this):T=Hu.createRoot("unknown",b),n=new my(null,this._rootId,-1,-1,!1,null,T,T)}else o=!1,n.reset();t=t+`
|
|
55
|
+
`;const l=this.createOnigString(t),c=l.content.length,d=new c7(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),f=YD(this,l,o,0,n,d,!0,a);return HD(l),{lineLength:c,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function PA(e,t){return e=CP(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Hu=class Ja{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=r1.push(a,o.scopeNames),r=new Ja(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Ja(null,new r1(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new r1(null,t),l=r.themeProvider.themeMatch(o),c=Ja.mergeAttributes(n,a,l);return new Ja(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Ja.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),ec.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Ja._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Ja._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),c=Ja.mergeAttributes(t.tokenAttributes,a,l);return new Ja(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},my=class os{constructor(t,n,r,a,o,l,c,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new os(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:os._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Hu.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){os._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,c){return new os(this,t,n,r,a,o,l,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new os(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Hu.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new os(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Hu.fromExtension(r,n.contentNameScopesList))}},l7=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):pp(r,yp).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>pp(r,yp).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},c7=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(l)&&(a=ec.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=ec.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},u7=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let l=this._rawGrammars.get(t);if(!l)return null;this._grammars.set(t,i7(t,l,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},d7=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new u7(hp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(hp.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new l7(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new BP(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(c=>this._loadSingleGrammar(c.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},gy=my.NULL;const WD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Bd=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Bd.prototype.normal={};Bd.prototype.property={};Bd.prototype.space=void 0;function KD(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Bd(n,r,t)}function pd(e){return e.toLowerCase()}let Fr=class{constructor(t,n){this.attribute=n,this.property=t}};Fr.prototype.attribute="";Fr.prototype.booleanish=!1;Fr.prototype.boolean=!1;Fr.prototype.commaOrSpaceSeparated=!1;Fr.prototype.commaSeparated=!1;Fr.prototype.defined=!1;Fr.prototype.mustUseProperty=!1;Fr.prototype.number=!1;Fr.prototype.overloadedBoolean=!1;Fr.prototype.property="";Fr.prototype.spaceSeparated=!1;Fr.prototype.space=void 0;let f7=0;const ht=js(),Mn=js(),yy=js(),ke=js(),Xt=js(),Gl=js(),Wr=js();function js(){return 2**++f7}const by=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:Mn,commaOrSpaceSeparated:Wr,commaSeparated:Gl,number:ke,overloadedBoolean:yy,spaceSeparated:Xt},Symbol.toStringTag,{value:"Module"})),i1=Object.keys(by);let zb=class extends Fr{constructor(t,n,r,a){let o=-1;if(super(t,n),$A(this,"space",a),typeof r=="number")for(;++o<i1.length;){const l=i1[o];$A(this,i1[o],(r&by[l])===by[l])}}};zb.prototype.defined=!0;function $A(e,t,n){n&&(e[t]=n)}function lc(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new zb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[pd(r)]=r,n[pd(o.attribute)]=r}return new Bd(t,n,e.space)}const XD=lc({properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Xt,ariaCurrent:null,ariaDescribedBy:Xt,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:Xt,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:Xt,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xt,ariaLevel:ke,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:Xt,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:Xt,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Mn,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ZD(e,t){return t in e?e[t]:t}function JD(e,t){return ZD(e,t.toLowerCase())}const h7=lc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gl,acceptCharset:Xt,accessKey:Xt,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:Xt,autoFocus:ht,autoPlay:ht,blocking:Xt,capture:null,charSet:null,checked:ht,cite:null,className:Xt,cols:ke,colSpan:null,content:null,contentEditable:Mn,controls:ht,controlsList:Xt,coords:ke|Gl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:yy,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:Xt,height:ke,hidden:yy,high:ke,href:null,hrefLang:null,htmlFor:Xt,httpEquiv:Xt,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:Xt,itemRef:Xt,itemScope:ht,itemType:Xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ht,optimum:ke,pattern:null,ping:Xt,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:Xt,required:ht,reversed:ht,rows:ke,rowSpan:ke,sandbox:Xt,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:Mn,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xt,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:JD}),p7=lc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:Xt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gl,g2:Gl,glyphName:Gl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Wr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wr,rev:Wr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wr,requiredFeatures:Wr,requiredFonts:Wr,requiredFormats:Wr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Wr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ZD}),ek=lc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),tk=lc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:JD}),nk=lc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cc=KD([XD,h7,ek,tk,nk],"html"),Vi=KD([XD,p7,ek,tk,nk],"svg"),FA={}.hasOwnProperty;function am(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const c=r.handlers;if(a&&FA.call(a,e)){const d=String(a[e]);l=FA.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const m7=/["&'<>`]/g,g7=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y7=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,b7=/[|\\{}()[\]^$+*?.]/g,jA=new WeakMap;function E7(e,t){if(e=e.replace(t.subset?v7(t.subset):m7,r),t.subset||t.escapeOnly)return e;return e.replace(g7,n).replace(y7,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function v7(e){let t=jA.get(e);return t||(t=T7(e),jA.set(e,t)),t}function T7(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(b7,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const _7=/[\dA-Fa-f]/;function x7(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!_7.test(String.fromCharCode(t))?r:r+";"}const A7=/\d/;function S7(e,t,n){const r="&#"+String(e);return n&&t&&!A7.test(String.fromCharCode(t))?r:r+";"}const C7=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],o1={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},D7=["cent","copy","divide","gt","lt","not","para","times"],rk={}.hasOwnProperty,Ey={};let Th;for(Th in o1)rk.call(o1,Th)&&(Ey[o1[Th]]=Th);const k7=/[^\dA-Za-z]/;function R7(e,t,n,r){const a=String.fromCharCode(e);if(rk.call(Ey,a)){const o=Ey[a],l="&"+o;return n&&C7.includes(o)&&!D7.includes(o)&&(!r||t&&t!==61&&k7.test(String.fromCharCode(t)))?l:l+";"}return""}function w7(e,t,n){let r=x7(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=R7(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=S7(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Vl(e,t){return E7(e,Object.assign({format:w7},t))}const I7=/^>|^->|<!--|-->|--!>|<!-$/g,N7=[">"],O7=["<",">"];function L7(e,t,n,r){return r.settings.bogusComments?"<?"+Vl(e.value,Object.assign({},r.settings.characterReferences,{subset:N7}))+">":"<!--"+e.value.replace(I7,a)+"-->";function a(o){return Vl(o,Object.assign({},r.settings.characterReferences,{subset:O7}))}}function M7(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function bp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function vy(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(a,r).trim();(l||!o)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function im(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ty(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function om(e){return e.join(" ").trim()}const P7=/[ \t\n\f\r]/g;function Ud(e){return typeof e=="object"?e.type==="text"?BA(e.value):!1:BA(e)}function BA(e){return e.replace(P7,"")===""}const Gn=ik(1),ak=ik(-1),$7=[];function ik(e){return t;function t(n,r,a){const o=n?n.children:$7;let l=(r||0)+e,c=o[l];if(!a)for(;c&&Ud(c);)l+=e,c=o[l];return c}}const F7={}.hasOwnProperty;function ok(e){return t;function t(n,r,a){return F7.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const Gb=ok({body:B7,caption:s1,colgroup:s1,dd:G7,dt:z7,head:s1,html:j7,li:H7,optgroup:V7,option:q7,p:U7,rp:UA,rt:UA,tbody:Q7,td:HA,tfoot:W7,th:HA,thead:Y7,tr:K7});function s1(e,t,n){const r=Gn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ud(r.value.charAt(0)))}function j7(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function B7(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function U7(e,t,n){const r=Gn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function H7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function z7(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function G7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function UA(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function V7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function q7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Y7(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Q7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function W7(e,t,n){return!Gn(n,t)}function K7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function HA(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const X7=ok({body:e$,colgroup:t$,head:J7,html:Z7,tbody:n$});function Z7(e){const t=Gn(e,-1);return!t||t.type!=="comment"}function J7(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function e$(e){const t=Gn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ud(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function t$(e,t,n){const r=ak(n,t),a=Gn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Gb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function n$(e,t,n){const r=ak(n,t),a=Gn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Gb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const r$=/[A-Z]/g,zA=/-[a-z]/g,a$=/^data[-\w.:]+$/i;function Hd(e,t){const n=pd(t);let r=t,a=Fr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&a$.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(zA,o$);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!zA.test(o)){let l=o.replace(r$,i$);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=zb}return new a(r,t)}function i$(e){return"-"+e.toLowerCase()}function o$(e){return e.charAt(1).toUpperCase()}const _h={name:[[`
|
|
56
|
+
\f\r &/=>`.split(""),`
|
|
57
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
58
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
59
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
60
|
+
\f\r &>`.split(""),`\0
|
|
61
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
62
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
63
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function s$(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=Vi);const f=l$(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!o||!X7(e,t,n))&&(c.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!l&&(!o||!Gb(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function l$(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=c$(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function c$(e,t,n){const r=Hd(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Vl(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_h.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?im:om)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(c=Vl(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_h.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&bp(n,l)>bp(n,e.alternative)&&(l=e.alternative),c=l+Vl(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?_h.single:_h.double)[a][o],attribute:!0}))+l),d+(c&&"="+c))}const u$=["<","&"];function sk(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Vl(e.value,Object.assign({},r.settings.characterReferences,{subset:u$}))}function d$(e,t,n,r){return r.settings.allowDangerousHtml?e.value:sk(e,t,n,r)}function f$(e,t,n,r){return r.all(e)}const h$=am("type",{invalid:p$,unknown:m$,handlers:{comment:L7,doctype:M7,element:s$,raw:d$,root:f$,text:sk}});function p$(e){throw new Error("Expected node, not `"+e+"`")}function m$(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const g$={},y$={},b$=[];function E$(e,t){const n=g$,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:v$,all:T$,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||WD,characterReferences:n.characterReferences||y$,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Vi:cc,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function v$(e,t,n){return h$(e,t,n,this)}function T$(e){const t=[],n=e&&e.children||b$;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function _$(e){return Array.isArray(e)?e:[e]}function sm(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const l=t?n[o]+(n[o+1]||""):n[o];a.push([l,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function Vb(e){return!e||["plaintext","txt","text","plain"].includes(e)}function lk(e){return e==="ansi"||Vb(e)}function qb(e){return e==="none"}function ck(e){return qb(e)}function uk(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function x$(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function A$(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,c)=>l-c);return o.length?x$(a,o):a})):e}async function dk(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ep(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function ps(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fk(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Bi.Italic&&(t["font-style"]="italic"),e.fontStyle&Bi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Bi.Underline&&(t["text-decoration"]="underline")),t}function S$(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function C$(e){const t=sm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,l=0;for(const c of t){if(o<c.length)break;o-=c.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let c=0;c<a;c++)l+=t[c].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}let xr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const hk=new WeakMap;function lm(e,t){hk.set(e,t)}function md(e){return hk.get(e)}let cm=class pk{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new pk(Object.fromEntries(_$(n).map(r=>[r,gy])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return GA(this._stacks[this.theme])}getScopes(t=this.theme){return GA(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function GA(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function D$(e,t){if(!(e instanceof cm))throw new xr("Invalid grammar state");return e.getInternalStack(t)}function k$(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new xr(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const c=a.lines[l.line];if(c===void 0)throw new xr(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>c.length)throw new xr(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=C$(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));R$(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return A$(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new xr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,m,b,y){const T=a[p];let A="",C=-1,x=-1;if(m===0&&(C=0),b===0&&(x=0),b===Number.POSITIVE_INFINITY&&(x=T.children.length),C===-1||x===-1)for(let S=0;S<T.children.length;S++)A+=mk(T.children[S]),C===-1&&A.length===m&&(C=S+1),x===-1&&A.length===b&&(x=S+1);if(C===-1)throw new xr(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(x===-1)throw new xr(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=T.children.slice(C,x);if(!y.alwaysWrap&&D.length===T.children.length)c(T,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const S={type:"element",tagName:"span",properties:{},children:D};c(S,y,"wrapper"),T.children.splice(C,D.length,S)}}function l(p,m){a[p]=c(a[p],m,"line")}function c(p,m,b){const y=m.properties||{},T=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},m.properties?.class&&uk(p,m.properties.class),p=T(p,b)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of f){const{start:m,end:b}=p;if(m.line===b.line)o(m.line,m.character,b.character,p);else if(m.line<b.line){o(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let y=m.line+1;y<b.line;y++)d.unshift(()=>l(y,p));o(b.line,0,b.character,p)}}d.forEach(p=>p())}}}function R$(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new xr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||l||c||d){if(l&&l||c&&d)continue;throw new xr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function mk(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(mk).join(""):""}const w$=[k$()];function vp(e){return[...e.transformers||[],...w$]}var ms=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],l1={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function I$(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function VA(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function N$(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)l1[a]&&t.push({type:"setDecoration",value:l1[a]});else if(a<=29){const o=l1[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ms[a-30]}});else if(a===38){const[o,l]=VA(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ms[a-40]}});else if(a===48){const[o,l]=VA(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ms[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ms[a-100+8]}})}return t}function O$(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=I$(r,o),c=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=N$(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}o=l.position}while(o<r.length);return a}}}var L$={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function M$(e=L$){function t(c){return e[c]}function n(c){return`#${c.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<ms.length;f++)r.push(t(ms[f]));let c=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)r.push(n([c[f],c[p],c[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function o(c){return a()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:l}}function P$(e,t,n){const r=Ep(e,n),a=sm(t),o=M$(Object.fromEntries(ms.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),l=O$();return a.map(c=>l.parse(c[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?o.value(d.background):e.bg,p=d.foreground?o.value(d.foreground):e.fg):(f=d.foreground?o.value(d.foreground):e.fg,p=d.background?o.value(d.background):void 0),f=ps(f,r),p=ps(p,r),d.decorations.has("dim")&&(f=$$(f));let m=Bi.None;return d.decorations.has("bold")&&(m|=Bi.Bold),d.decorations.has("italic")&&(m|=Bi.Italic),d.decorations.has("underline")&&(m|=Bi.Underline),{content:d.value,offset:c[1],color:f,bgColor:p,fontStyle:m}}))}function $$(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Yb(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(Vb(r)||qb(a))return sm(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return P$(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new zi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new zi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return j$(t,c,o,l,n)}function F$(...e){if(e.length===2)return md(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(Vb(a)||qb(o))throw new zi("Plain language does not have grammar state");if(a==="ansi")throw new zi("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(o),d=t.getLanguage(a);return new cm(Tp(n,d,l,c,r).stateStack,d.name,l.name)}function j$(e,t,n,r,a){const o=Tp(e,t,n,r,a),l=new cm(Tp(e,t,n,r,a).stateStack,t.name,n.name);return lm(o.tokens,l),o.tokens}function Tp(e,t,n,r,a){const o=Ep(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=a,d=sm(e);let f=a.grammarState?D$(a.grammarState,n.name)??gy:a.grammarContextCode!=null?Tp(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:gy,p=[];const m=[];for(let b=0,y=d.length;b<y;b++){const[T,A]=d[b];if(T===""){p=[],m.push([]);continue}if(l>0&&T.length>=l){p=[],m.push([{content:T,offset:A,color:"",fontStyle:0}]);continue}let C,x,D;a.includeExplanation&&(C=t.tokenizeLine(T,f),x=C.tokens,D=0);const S=t.tokenizeLine2(T,f,c),L=S.tokens.length/2;for(let M=0;M<L;M++){const w=S.tokens[2*M],V=M+1<L?S.tokens[2*M+2]:T.length;if(w===V)continue;const ne=S.tokens[2*M+1],W=ps(r[ec.getForeground(ne)],o),k=ec.getFontStyle(ne),H={content:T.substring(w,V),offset:A+w,color:W,fontStyle:k};if(a.includeExplanation){const Q=[];if(a.includeExplanation!=="scopeName")for(const re of n.settings){let me;switch(typeof re.scope){case"string":me=re.scope.split(/,/).map(G=>G.trim());break;case"object":me=re.scope;break;default:continue}Q.push({settings:re,selectors:me.map(G=>G.split(/ /))})}H.explanation=[];let K=0;for(;w+K<V;){const re=x[D],me=T.substring(re.startIndex,re.endIndex);K+=me.length,H.explanation.push({content:me,scopes:a.includeExplanation==="scopeName"?B$(re.scopes):U$(Q,re.scopes)}),D+=1}}p.push(H)}m.push(p),p=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function B$(e){return e.map(t=>({scopeName:t}))}function U$(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:z$(e,o,t.slice(0,r))}}return n}function qA(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function H$(e,t,n){if(!qA(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)qA(e[r],n[a])&&(r-=1),a-=1;return r===-1}function z$(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(H$(l,t,n)){r.push(o);break}return r}function gk(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=Yb(e,t,{...n,theme:d.theme}),p=md(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),o=G$(...a.map(d=>d.tokens)),l=o[0].map((d,f)=>d.map((p,m)=>{const b={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(b.explanation=p.explanation),o.forEach((y,T)=>{const{content:A,explanation:C,offset:x,...D}=y[f][m];b.variants[r[T].color]=D}),b})),c=a[0].state?new cm(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return c&&lm(l,c),l}function G$(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),o=t.map(()=>[]);t.forEach((d,f)=>d.push(o[f]));const l=a.map(()=>0),c=a.map(d=>d[0]);for(;c.every(d=>d);){const d=Math.min(...c.map(f=>f.content.length));for(let f=0;f<n;f++){const p=c[f];p.content.length===d?(o[f].push(p),l[f]+=1,c[f]=a[f][l[f]]):(o[f].push({...p,content:p.content.slice(0,d)}),c[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function _p(e,t,n){let r,a,o,l,c,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-"}=n,m=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,x)=>C.color===f?-1:x.color===f?1:0);if(m.length===0)throw new zi("`themes` option must not be empty");const b=gk(e,t,n);if(d=md(b),f&&!m.find(C=>C.color===f))throw new zi(`\`themes\` option must contain the defaultColor key \`${f}\``);const y=m.map(C=>e.getTheme(C.theme)),T=m.map(C=>C.color);o=b.map(C=>C.map(x=>V$(x,T,p,f))),d&&lm(o,d);const A=m.map(C=>Ep(C.theme,n));a=m.map((C,x)=>(x===0&&f?"":`${p+C.color}:`)+(ps(y[x].fg,A[x])||"inherit")).join(";"),r=m.map((C,x)=>(x===0&&f?"":`${p+C.color}-bg:`)+(ps(y[x].bg,A[x])||"inherit")).join(";"),l=`shiki-themes ${y.map(C=>C.name).join(" ")}`,c=f?void 0:[a,r].join(";")}else if("theme"in n){const f=Ep(n.theme,n);o=Yb(e,t,n);const p=e.getTheme(n.theme);r=ps(p.bg,f),a=ps(p.fg,f),l=p.name,d=md(o)}else throw new zi("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:c,grammarState:d}}function V$(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>fk(e.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),c={};return o.forEach((d,f)=>{for(const p of l){const m=d[p]||"inherit";if(f===0&&r)c[p]=m;else{const b=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[f]+(p==="color"?"":b);c[y]=m}}}),a.htmlStyle=c,a}function xp(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>xp(e,a,o),codeToTokens:(a,o)=>_p(e,a,o)}){let a=t;for(const y of vp(n))a=y.preprocess?.call(r,a,n)||a;let{tokens:o,fg:l,bg:c,themeName:d,rootStyle:f,grammarState:p}=_p(e,a,n);const{mergeWhitespaces:m=!0}=n;m===!0?o=Y$(o):m==="never"&&(o=Q$(o));const b={...r,get source(){return a}};for(const y of vp(n))o=y.tokens?.call(b,o)||o;return q$(o,{...n,fg:l,bg:c,themeName:d,rootStyle:f},b,p)}function q$(e,t,n,r=md(e)){const a=vp(t),o=[],l={type:"root",children:[]},{structure:c="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([T])=>!T.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const m=[],b={...n,structure:c,addClassToHast:uk,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return m}};if(e.forEach((T,A)=>{A&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
|
|
64
|
+
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of T){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const L=S$(D.htmlStyle||fk(D));L&&(S.properties.style=L);for(const M of a)S=M?.span?.call(b,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(b,C,A+1)||C;m.push(C),o.push(C)}}),c==="classic"){for(const T of a)p=T?.code?.call(b,p)||p;f.children.push(p);for(const T of a)f=T?.pre?.call(b,f)||f;l.children.push(f)}let y=l;for(const T of a)y=T?.root?.call(b,y)||y;return r&&lm(y,r),y}function Y$(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const c=!(o.fontStyle&&o.fontStyle&Bi.Underline);c&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function Q$(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+o.length}),c}))}function W$(e,t,n){const r={meta:{},options:n,codeToHast:(o,l)=>xp(e,o,l),codeToTokens:(o,l)=>_p(e,o,l)};let a=E$(xp(e,t,n,r));for(const o of vp(n))a=o.postprocess?.call(r,a,n)||a;return a}const YA={light:"#333333",dark:"#bbbbbb"},QA={light:"#fffffe",dark:"#1e1e1e"},WA="__shiki_resolved";function Qb(e){if(e?.[WA])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?YA.light:YA.dark),n||(n=t.type==="light"?QA.light:QA.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function l(c){if(o.has(c))return o.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(o.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,WA,{enumerable:!1,writable:!1,value:!0}),t}async function yk(e){return Array.from(new Set((await Promise.all(e.filter(t=>!lk(t)).map(async t=>await dk(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function bk(e){return(await Promise.all(e.map(async t=>ck(t)?null:Qb(await dk(t))))).filter(t=>!!t)}let K$=class extends d7{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Qb(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=hp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new xr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(o=>!r.includes(o));throw new xr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},X$=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},bu=0;function Z$(e){bu+=1,e.warnings!==!1&&bu>=10&&bu%10===0&&console.warn(`[Shiki] ${bu} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new xr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Qb),a=new X$(e.engine,n),o=new K$(a,r,n,e.langAlias);let l;function c(D){C();const S=o.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new xr(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=o.getTheme(D);if(!S)throw new xr(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(o.setTheme(S),l=D);const L=o.getColorMap();return{theme:S,colorMap:L}}function p(){return C(),o.getLoadedThemes()}function m(){return C(),o.getLoadedLanguages()}function b(...D){C(),o.loadLanguages(D.flat(1))}async function y(...D){return b(await yk(D))}function T(...D){C();for(const S of D.flat(1))o.loadTheme(S)}async function A(...D){return C(),T(await bk(D))}function C(){if(t)throw new xr("Shiki instance has been disposed")}function x(){t||(t=!0,o.dispose(),bu-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:y,loadLanguageSync:b,loadTheme:A,loadThemeSync:T,dispose:x,[Symbol.dispose]:x}}async function J$(e={}){e.loadWasm;const[t,n,r]=await Promise.all([bk(e.themes||[]),yk(e.langs||[]),e.engine||OD(e.loadWasm||SP())]);return Z$({...e,themes:t,langs:n,engine:r})}async function e8(e={}){const t=await J$(e);return{getLastGrammarState:(...n)=>F$(t,...n),codeToTokensBase:(n,r)=>Yb(t,n,r),codeToTokensWithThemes:(n,r)=>gk(t,n,r),codeToTokens:(n,r)=>_p(t,n,r),codeToHast:(n,r)=>xp(t,n,r),codeToHtml:(n,r)=>W$(t,n,r),...t,getInternalContext:()=>t}}function t8(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function l(c){function d(y){if(typeof y=="string"){if(lk(y))return[];const T=r[y];if(!T)throw new zi(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return T}return y}function f(y){if(ck(y))return"none";if(typeof y=="string"){const T=a[y];if(!T)throw new zi(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return T}return y}const p=(c.themes??[]).map(y=>f(y)),m=(c.langs??[]).map(y=>d(y)),b=await e8({engine:c.engine??o(),...c,themes:p,langs:m});return{...b,loadLanguage(...y){return b.loadLanguage(...y.map(d))},loadTheme(...y){return b.loadTheme(...y.map(f))}}}return l}const n8=t8({langs:iP,themes:sP,engine:()=>OD(F(()=>import("./index.es128-CG6Dc4jp.js"),[]))}),c1={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},r8={...c1,patterns:[...c1.patterns,{include:"#docvar"}],repository:{...c1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},a8={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},Ek="catppuccin-latte",i8=n8({themes:[Ek],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...r8},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...a8}]});async function ks(e,t){return(await i8).codeToHtml(e,{lang:t,theme:Ek})}const zn=Po($l)({display:"flex",flexDirection:"column",height:"100%"}),na=Po(Fl)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),Wb=Po(l4)({padding:"10px"}),o8=Po("div")({height:"100%"});Po("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const vk=Po("div")({height:"75vh",width:"100%",overflowY:"auto"});Po("div")({position:"relative",height:"100%",flex:"0 0 auto"});function ir({error:e,context:t}){const n=e.data?.message||"Unknown Error";return E.jsxs(E.Fragment,{children:[t&&E.jsx(Ie,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),E.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function mr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:l="body2"}){const c=E.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[E.jsx(c4,{size:t,color:n,thickness:r}),e&&E.jsx(Ie,{variant:l,color:"text.secondary",children:e})]});return a?E.jsx(it,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const s8=Qt([E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"0"),E.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]);function Tk(e,t){return function(){return e.apply(t,arguments)}}const{toString:l8}=Object.prototype,{getPrototypeOf:Kb}=Object,{iterator:um,toStringTag:_k}=Symbol,dm=(e=>t=>{const n=l8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ja=e=>(e=e.toLowerCase(),t=>dm(t)===e),fm=e=>t=>typeof t===e,{isArray:uc}=Array,gd=fm("undefined");function zd(e){return e!==null&&!gd(e)&&e.constructor!==null&&!gd(e.constructor)&&Mr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xk=ja("ArrayBuffer");function c8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xk(e.buffer),t}const u8=fm("string"),Mr=fm("function"),Ak=fm("number"),Gd=e=>e!==null&&typeof e=="object",d8=e=>e===!0||e===!1,zh=e=>{if(dm(e)!=="object")return!1;const t=Kb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_k in e)&&!(um in e)},f8=e=>{if(!Gd(e)||zd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},h8=ja("Date"),p8=ja("File"),m8=ja("Blob"),g8=ja("FileList"),y8=e=>Gd(e)&&Mr(e.pipe),b8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mr(e.append)&&((t=dm(e))==="formdata"||t==="object"&&Mr(e.toString)&&e.toString()==="[object FormData]"))},E8=ja("URLSearchParams"),[v8,T8,_8,x8]=["ReadableStream","Request","Response","Headers"].map(ja),A8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),uc(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(zd(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let c;for(r=0;r<l;r++)c=o[r],t.call(null,e[c],c,e)}}function Sk(e,t){if(zd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ck=e=>!gd(e)&&e!==gs;function _y(){const{caseless:e}=Ck(this)&&this||{},t={},n=(r,a)=>{const o=e&&Sk(t,a)||a;zh(t[o])&&zh(r)?t[o]=_y(t[o],r):zh(r)?t[o]=_y({},r):uc(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Vd(arguments[r],n);return t}const S8=(e,t,n,{allOwnKeys:r}={})=>(Vd(t,(a,o)=>{n&&Mr(a)?e[o]=Tk(a,n):e[o]=a},{allOwnKeys:r}),e),C8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},k8=(e,t,n,r)=>{let a,o,l;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)l=a[o],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Kb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},R8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},w8=e=>{if(!e)return null;if(uc(e))return e;let t=e.length;if(!Ak(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},I8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kb(Uint8Array)),N8=(e,t)=>{const r=(e&&e[um]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},O8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L8=ja("HTMLFormElement"),M8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),KA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),P8=ja("RegExp"),Dk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vd(n,(a,o)=>{let l;(l=t(a,o,e))!==!1&&(r[o]=l||a)}),Object.defineProperties(e,r)},$8=e=>{Dk(e,(t,n)=>{if(Mr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},F8=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return uc(e)?r(e):r(String(e).split(t)),n},j8=()=>{},B8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function U8(e){return!!(e&&Mr(e.append)&&e[_k]==="FormData"&&e[um])}const H8=e=>{const t=new Array(10),n=(r,a)=>{if(Gd(r)){if(t.indexOf(r)>=0)return;if(zd(r))return r;if(!("toJSON"in r)){t[a]=r;const o=uc(r)?[]:{};return Vd(r,(l,c)=>{const d=n(l,a+1);!gd(d)&&(o[c]=d)}),t[a]=void 0,o}}return r};return n(e,0)},z8=ja("AsyncFunction"),G8=e=>e&&(Gd(e)||Mr(e))&&Mr(e.then)&&Mr(e.catch),kk=((e,t)=>e?setImmediate:t?((n,r)=>(gs.addEventListener("message",({source:a,data:o})=>{a===gs&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),gs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mr(gs.postMessage)),V8=typeof queueMicrotask<"u"?queueMicrotask.bind(gs):typeof process<"u"&&process.nextTick||kk,q8=e=>e!=null&&Mr(e[um]),de={isArray:uc,isArrayBuffer:xk,isBuffer:zd,isFormData:b8,isArrayBufferView:c8,isString:u8,isNumber:Ak,isBoolean:d8,isObject:Gd,isPlainObject:zh,isEmptyObject:f8,isReadableStream:v8,isRequest:T8,isResponse:_8,isHeaders:x8,isUndefined:gd,isDate:h8,isFile:p8,isBlob:m8,isRegExp:P8,isFunction:Mr,isStream:y8,isURLSearchParams:E8,isTypedArray:I8,isFileList:g8,forEach:Vd,merge:_y,extend:S8,trim:A8,stripBOM:C8,inherits:D8,toFlatObject:k8,kindOf:dm,kindOfTest:ja,endsWith:R8,toArray:w8,forEachEntry:N8,matchAll:O8,isHTMLForm:L8,hasOwnProperty:KA,hasOwnProp:KA,reduceDescriptors:Dk,freezeMethods:$8,toObjectSet:F8,toCamelCase:M8,noop:j8,toFiniteNumber:B8,findKey:Sk,global:gs,isContextDefined:Ck,isSpecCompliantForm:U8,toJSONObject:H8,isAsyncFn:z8,isThenable:G8,setImmediate:kk,asap:V8,isIterable:q8};function ut(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}de.inherits(ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const Rk=ut.prototype,wk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wk[e]={value:e}});Object.defineProperties(ut,wk);Object.defineProperty(Rk,"isAxiosError",{value:!0});ut.from=(e,t,n,r,a,o)=>{const l=Object.create(Rk);return de.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),ut.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const Y8=null;function xy(e){return de.isPlainObject(e)||de.isArray(e)}function Ik(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function XA(e,t,n){return e?e.concat(t).map(function(a,o){return a=Ik(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function Q8(e){return de.isArray(e)&&!e.some(xy)}const W8=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function hm(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!de.isUndefined(C[A])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function f(T){if(T===null)return"";if(de.isDate(T))return T.toISOString();if(de.isBoolean(T))return T.toString();if(!d&&de.isBlob(T))throw new ut("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(T)||de.isTypedArray(T)?d&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function p(T,A,C){let x=T;if(T&&!C&&typeof T=="object"){if(de.endsWith(A,"{}"))A=r?A:A.slice(0,-2),T=JSON.stringify(T);else if(de.isArray(T)&&Q8(T)||(de.isFileList(T)||de.endsWith(A,"[]"))&&(x=de.toArray(T)))return A=Ik(A),x.forEach(function(S,L){!(de.isUndefined(S)||S===null)&&t.append(l===!0?XA([A],L,o):l===null?A:A+"[]",f(S))}),!1}return xy(T)?!0:(t.append(XA(C,A,o),f(T)),!1)}const m=[],b=Object.assign(W8,{defaultVisitor:p,convertValue:f,isVisitable:xy});function y(T,A){if(!de.isUndefined(T)){if(m.indexOf(T)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(T),de.forEach(T,function(x,D){(!(de.isUndefined(x)||x===null)&&a.call(t,x,de.isString(D)?D.trim():D,A,b))===!0&&y(x,A?A.concat(D):[D])}),m.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ZA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xb(e,t){this._pairs=[],e&&hm(e,this,t)}const Nk=Xb.prototype;Nk.append=function(t,n){this._pairs.push([t,n])};Nk.toString=function(t){const n=t?function(r){return t.call(this,r,ZA)}:ZA;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function K8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ok(e,t,n){if(!t)return e;const r=n&&n.encode||K8;de.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=de.isURLSearchParams(t)?t.toString():new Xb(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class JA{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Lk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X8=typeof URLSearchParams<"u"?URLSearchParams:Xb,Z8=typeof FormData<"u"?FormData:null,J8=typeof Blob<"u"?Blob:null,e9={isBrowser:!0,classes:{URLSearchParams:X8,FormData:Z8,Blob:J8},protocols:["http","https","file","blob","url","data"]},Zb=typeof window<"u"&&typeof document<"u",Ay=typeof navigator=="object"&&navigator||void 0,t9=Zb&&(!Ay||["ReactNative","NativeScript","NS"].indexOf(Ay.product)<0),n9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r9=Zb&&window.location.href||"http://localhost",a9=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zb,hasStandardBrowserEnv:t9,hasStandardBrowserWebWorkerEnv:n9,navigator:Ay,origin:r9},Symbol.toStringTag,{value:"Module"})),fr={...a9,...e9};function i9(e,t){return hm(e,new fr.classes.URLSearchParams,{visitor:function(n,r,a,o){return fr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function o9(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function s9(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function Mk(e){function t(n,r,a,o){let l=n[o++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=o>=n.length;return l=!l&&de.isArray(a)?a.length:l,d?(de.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!c):((!a[l]||!de.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],o)&&de.isArray(a[l])&&(a[l]=s9(a[l])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,a)=>{t(o9(r),a,n,0)}),n}return null}function l9(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qd={transitional:Lk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=de.isObject(t);if(o&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return a?JSON.stringify(Mk(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return i9(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return hm(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),l9(t)):t}],transformResponse:[function(t){const n=this.transitional||qd.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?ut.from(c,ut.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fr.classes.FormData,Blob:fr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{qd.headers[e]={}});const c9=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),u9=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
65
|
+
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&c9[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},eS=Symbol("internals");function Eu(e){return e&&String(e).trim().toLowerCase()}function Gh(e){return e===!1||e==null?e:de.isArray(e)?e.map(Gh):String(e)}function d9(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const f9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u1(e,t,n,r,a){if(de.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function h9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function p9(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,l){return this[r].call(this,t,a,o,l)},configurable:!0})})}let Pr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,d,f){const p=Eu(d);if(!p)throw new Error("header name must be a non-empty string");const m=de.findKey(a,p);(!m||a[m]===void 0||f===!0||f===void 0&&a[m]!==!1)&&(a[m||d]=Gh(c))}const l=(c,d)=>de.forEach(c,(f,p)=>o(f,p,d));if(de.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(de.isString(t)&&(t=t.trim())&&!f9(t))l(u9(t),n);else if(de.isObject(t)&&de.isIterable(t)){let c={},d,f;for(const p of t){if(!de.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[f=p[0]]=(d=c[f])?de.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Eu(t),t){const r=de.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return d9(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Eu(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||u1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(l){if(l=Eu(l),l){const c=de.findKey(r,l);c&&(!n||u1(r,r[c],c,n))&&(delete r[c],a=!0)}}return de.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||u1(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return de.forEach(this,(a,o)=>{const l=de.findKey(r,o);if(l){n[l]=Gh(a),delete n[o];return}const c=t?h9(o):String(o).trim();c!==o&&delete n[o],n[c]=Gh(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
66
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[eS]=this[eS]={accessors:{}}).accessors,a=this.prototype;function o(l){const c=Eu(l);r[c]||(p9(a,l),r[c]=!0)}return de.isArray(t)?t.forEach(o):o(t),this}};Pr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Pr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Pr);function d1(e,t){const n=this||qd,r=t||n,a=Pr.from(r.headers);let o=r.data;return de.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Pk(e){return!!(e&&e.__CANCEL__)}function dc(e,t,n){ut.call(this,e??"canceled",ut.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(dc,ut,{__CANCEL__:!0});function $k(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function m9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function g9(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[o];l||(l=f),n[a]=d,r[a]=f;let m=o,b=0;for(;m!==a;)b+=n[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),f-l<t)return;const y=p&&f-p;return y?Math.round(b*1e3/y):void 0}}function y9(e,t){let n=0,r=1e3/t,a,o;const l=(f,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(a=f,o||(o=setTimeout(()=>{o=null,l(a)},r-m)))},()=>a&&l(a)]}const Ap=(e,t,n=3)=>{let r=0;const a=g9(50,250);return y9(o=>{const l=o.loaded,c=o.lengthComputable?o.total:void 0,d=l-r,f=a(d),p=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&p?(c-l)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},tS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nS=e=>(...t)=>de.asap(()=>e(...t)),b9=fr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fr.origin),fr.navigator&&/(msie|trident)/i.test(fr.navigator.userAgent)):()=>!0,E9=fr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const l=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),de.isString(r)&&l.push("path="+r),de.isString(a)&&l.push("domain="+a),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fk(e,t,n){let r=!v9(t);return e&&(r||n==!1)?T9(e,t):t}const rS=e=>e instanceof Pr?{...e}:e;function Rs(e,t){t=t||{};const n={};function r(f,p,m,b){return de.isPlainObject(f)&&de.isPlainObject(p)?de.merge.call({caseless:b},f,p):de.isPlainObject(p)?de.merge({},p):de.isArray(p)?p.slice():p}function a(f,p,m,b){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f,m,b)}else return r(f,p,m,b)}function o(f,p){if(!de.isUndefined(p))return r(void 0,p)}function l(f,p){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,p,m)=>a(rS(f),rS(p),m,!0)};return de.forEach(Object.keys({...e,...t}),function(p){const m=d[p]||a,b=m(e[p],t[p],p);de.isUndefined(b)&&m!==c||(n[p]=b)}),n}const jk=e=>{const t=Rs({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:l,auth:c}=t;t.headers=l=Pr.from(l),t.url=Ok(Fk(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(de.isFormData(n)){if(fr.hasStandardBrowserEnv||fr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(fr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&b9(t.url))){const f=a&&o&&E9.read(o);f&&l.set(a,f)}return t},_9=typeof XMLHttpRequest<"u",x9=_9&&function(e){return new Promise(function(n,r){const a=jk(e);let o=a.data;const l=Pr.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,p,m,b,y,T;function A(){y&&y(),T&&T(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function x(){if(!C)return;const S=Pr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:S,config:e,request:C};$k(function(V){n(V),A()},function(V){r(V),A()},M),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new ut("Request aborted",ut.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ut("Network Error",ut.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const M=a.transitional||Lk;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),r(new ut(L,M.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,C)),C=null},o===void 0&&l.setContentType(null),"setRequestHeader"in C&&de.forEach(l.toJSON(),function(L,M){C.setRequestHeader(M,L)}),de.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),f&&([b,T]=Ap(f,!0),C.addEventListener("progress",b)),d&&C.upload&&([m,y]=Ap(d),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(p=S=>{C&&(r(!S||S.type?new dc(null,e,C):S),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=m9(a.url);if(D&&fr.protocols.indexOf(D)===-1){r(new ut("Unsupported protocol "+D+":",ut.ERR_BAD_REQUEST,e));return}C.send(o||null)})},A9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(f){if(!a){a=!0,c();const p=f instanceof Error?f:this.reason;r.abort(p instanceof ut?p:new dc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,o(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>de.asap(c),d}},S9=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},C9=async function*(e,t){for await(const n of D9(e))yield*S9(n,t)},D9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},aS=(e,t,n,r)=>{const a=C9(e,t);let o=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await a.next();if(f){c(),d.close();return}let m=p.byteLength;if(n){let b=o+=m;n(b)}d.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},pm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bk=pm&&typeof ReadableStream=="function",k9=pm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Uk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},R9=Bk&&Uk(()=>{let e=!1;const t=new Request(fr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),iS=64*1024,Sy=Bk&&Uk(()=>de.isReadableStream(new Response("").body)),Sp={stream:Sy&&(e=>e.body)};pm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sp[t]&&(Sp[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ut(`Response type '${t}' is not supported`,ut.ERR_NOT_SUPPORT,r)})})})(new Response);const w9=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(fr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await k9(e)).byteLength},I9=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??w9(t)},N9=pm&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:b}=jk(e);f=f?(f+"").toLowerCase():"text";let y=A9([a,o&&o.toAbortSignal()],l),T;const A=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let C;try{if(d&&R9&&n!=="get"&&n!=="head"&&(C=await I9(p,r))!==0){let M=new Request(t,{method:"POST",body:r,duplex:"half"}),w;if(de.isFormData(r)&&(w=M.headers.get("content-type"))&&p.setContentType(w),M.body){const[V,ne]=tS(C,Ap(nS(d)));r=aS(M.body,iS,V,ne)}}de.isString(m)||(m=m?"include":"omit");const x="credentials"in Request.prototype;T=new Request(t,{...b,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?m:void 0});let D=await fetch(T,b);const S=Sy&&(f==="stream"||f==="response");if(Sy&&(c||S&&A)){const M={};["status","statusText","headers"].forEach(W=>{M[W]=D[W]});const w=de.toFiniteNumber(D.headers.get("content-length")),[V,ne]=c&&tS(w,Ap(nS(c),!0))||[];D=new Response(aS(D.body,iS,V,()=>{ne&&ne(),A&&A()}),M)}f=f||"text";let L=await Sp[de.findKey(Sp,f)||"text"](D,e);return!S&&A&&A(),await new Promise((M,w)=>{$k(M,w,{data:L,headers:Pr.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:T})})}catch(x){throw A&&A(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,e,T),{cause:x.cause||x}):ut.from(x,x&&x.code,e,T)}}),Cy={http:Y8,xhr:x9,fetch:N9};de.forEach(Cy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const oS=e=>`- ${e}`,O9=e=>de.isFunction(e)||e===null||e===!1,Hk={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let l;if(r=n,!O9(n)&&(r=Cy[(l=String(n)).toLowerCase()],r===void 0))throw new ut(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
|
|
67
|
+
`+o.map(oS).join(`
|
|
68
|
+
`):" "+oS(o[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Cy};function f1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dc(null,e)}function sS(e){return f1(e),e.headers=Pr.from(e.headers),e.data=d1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hk.getAdapter(e.adapter||qd.adapter)(e).then(function(r){return f1(e),r.data=d1.call(e,e.transformResponse,r),r.headers=Pr.from(r.headers),r},function(r){return Pk(r)||(f1(e),r&&r.response&&(r.response.data=d1.call(e,e.transformResponse,r.response),r.response.headers=Pr.from(r.response.headers))),Promise.reject(r)})}const zk="1.11.0",mm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lS={};mm.transitional=function(t,n,r){function a(o,l){return"[Axios v"+zk+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,c)=>{if(t===!1)throw new ut(a(l," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!lS[l]&&(lS[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};mm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function L9(e,t,n){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const c=e[o],d=c===void 0||l(c,o,e);if(d!==!0)throw new ut("option "+o+" must be "+d,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+o,ut.ERR_BAD_OPTION)}}const Vh={assertOptions:L9,validators:mm},Ka=Vh.validators;let xs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new JA,response:new JA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
69
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Rs(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Vh.assertOptions(r,{silentJSONParsing:Ka.transitional(Ka.boolean),forcedJSONParsing:Ka.transitional(Ka.boolean),clarifyTimeoutError:Ka.transitional(Ka.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Vh.assertOptions(a,{encode:Ka.function,serialize:Ka.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Vh.assertOptions(n,{baseUrl:Ka.spelling("baseURL"),withXsrfToken:Ka.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],T=>{delete o[T]}),n.headers=Pr.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,b;if(!d){const T=[sS.bind(this),void 0];for(T.unshift(...c),T.push(...f),b=T.length,p=Promise.resolve(n);m<b;)p=p.then(T[m++],T[m++]);return p}b=c.length;let y=n;for(m=0;m<b;){const T=c[m++],A=c[m++];try{y=T(y)}catch(C){A.call(this,C);break}}try{p=sS.call(this,y)}catch(T){return Promise.reject(T)}for(m=0,b=f.length;m<b;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Rs(this.defaults,t);const n=Fk(t.baseURL,t.url,t.allowAbsoluteUrls);return Ok(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){xs.prototype[t]=function(n,r){return this.request(Rs(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,c){return this.request(Rs(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}xs.prototype[t]=n(),xs.prototype[t+"Form"]=n(!0)});let M9=class Gk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const l=new Promise(c=>{r.subscribe(c),o=c}).then(a);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,c){r.reason||(r.reason=new dc(o,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Gk(function(a){t=a}),cancel:t}}};function P9(e){return function(n){return e.apply(null,n)}}function $9(e){return de.isObject(e)&&e.isAxiosError===!0}const Dy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dy).forEach(([e,t])=>{Dy[t]=e});function Vk(e){const t=new xs(e),n=Tk(xs.prototype.request,t);return de.extend(n,xs.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Vk(Rs(e,a))},n}const at=Vk(qd);at.Axios=xs;at.CanceledError=dc;at.CancelToken=M9;at.isCancel=Pk;at.VERSION=zk;at.toFormData=hm;at.AxiosError=ut;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=P9;at.isAxiosError=$9;at.mergeConfig=Rs;at.AxiosHeaders=Pr;at.formToJSON=e=>Mk(de.isHTMLForm(e)?new FormData(e):e);at.getAdapter=Hk.getAdapter;at.HttpStatusCode=Dy;at.default=at;const{Axios:gae,AxiosError:yae,CanceledError:bae,isCancel:Eae,CancelToken:vae,VERSION:Tae,all:_ae,Cancel:xae,isAxiosError:Aae,spread:Sae,toFormData:Cae,AxiosHeaders:Dae,HttpStatusCode:kae,formToJSON:Rae,getAdapter:wae,mergeConfig:Iae}=at,qt="http://localhost/api/v0".replace(/\/+$/,"");let Bo=class{constructor(t,n=qt,r=at){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},F9=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Jt={},en="https://example.com",tt=function(e,t,n){if(n==null)throw new F9(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function ky(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>ky(e,r,n)):Object.keys(t).forEach(r=>ky(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const tn=function(e,...t){const n=new URLSearchParams(e.search);ky(n,t),e.search=n.toString()},Cp=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},nn=function(e){return e.pathname+e.search+e.hash},rn=function(e,t,n,r){return(a=t,o=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(l)}},j9=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};tn(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),tn(c,m);let b=d&&d.headers?d.headers:{};return f.headers={...p,...b,...o.headers},{url:nn(c),options:f}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),tn(c,m);let b=d&&d.headers?d.headers:{};return f.headers={...p,...b,...o.headers},{url:nn(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}},getTest:async(t,n,r={})=>{tt("getTest","projectName",t),tt("getTest","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};tn(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(o),options:c}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,en);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};tn(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:nn(a),options:l}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};tn(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};tn(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:nn(l),options:d}}}},Ii=function(e){const t=j9(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=Jt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)},async getQuerydata(n,r,a,o,l){const c=await t.getQuerydata(n,r,a,o,l),d=e?.serverIndex??0,f=Jt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>rn(c,at,qt,e)(p,f||m)},async getSqlsource(n,r,a,o){const l=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,d=Jt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)},async getTablesource(n,r,a,o,l){const c=await t.getTablesource(n,r,a,o,l),d=e?.serverIndex??0,f=Jt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>rn(c,at,qt,e)(p,f||m)},async getTemporarytable(n,r,a,o){const l=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,d=Jt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)},async getTest(n,r,a){const o=await t.getTest(n,r,a),l=e?.serverIndex??0,c=Jt["ConnectionsApi.getTest"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,l=Jt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,d)=>rn(a,at,qt,e)(c,l||d)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=Jt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)},async listTables(n,r,a,o){const l=await t.listTables(n,r,a,o),c=e?.serverIndex??0,d=Jt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)}}};let qk=class extends Bo{getConnection(t,n,r){return Ii(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Ii(this.configuration).getQuerydata(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ii(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Ii(this.configuration).getTablesource(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ii(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTest(t,n,r){return Ii(this.configuration).getTest(t,n,r).then(a=>a(this.axios,this.basePath))}listConnections(t,n){return Ii(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ii(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ii(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const B9=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},U9=function(e){const t=B9(e);return{async listDatabases(n,r,a,o){const l=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,d=Jt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)}}};let H9=class extends Bo{listDatabases(t,n,r,a){return U9(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const z9=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),tn(c,m);let b=d&&d.headers?d.headers:{};return f.headers={...p,...b,...o.headers},{url:nn(c),options:f}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},cS=function(e){const t=z9(e);return{async getModel(n,r,a,o,l){const c=await t.getModel(n,r,a,o,l),d=e?.serverIndex??0,f=Jt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>rn(c,at,qt,e)(p,f||m)},async listModels(n,r,a,o){const l=await t.listModels(n,r,a,o),c=e?.serverIndex??0,d=Jt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)}}};let gm=class extends Bo{getModel(t,n,r,a,o){return cS(this.configuration).getModel(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return cS(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const G9=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),tn(c,m);let b=d&&d.headers?d.headers:{};return f.headers={...p,...b,...o.headers},{url:nn(c),options:f}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},uS=function(e){const t=G9(e);return{async getNotebook(n,r,a,o,l){const c=await t.getNotebook(n,r,a,o,l),d=e?.serverIndex??0,f=Jt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>rn(c,at,qt,e)(p,f||m)},async listNotebooks(n,r,a,o){const l=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,d=Jt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)}}};let Yk=class extends Bo{getNotebook(t,n,r,a,o){return uS(this.configuration).getNotebook(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return uS(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const V9=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",tn(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=Cp(n,c,e),{url:nn(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};tn(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),tn(c,m);let b=d&&d.headers?d.headers:{};return f.headers={...p,...b,...o.headers},{url:nn(c),options:f}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,en);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};tn(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:nn(a),options:l}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=Cp(r,d,e),{url:nn(l),options:d}}}},vu=function(e){const t=V9(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=Jt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=Jt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)},async getPackage(n,r,a,o,l){const c=await t.getPackage(n,r,a,o,l),d=e?.serverIndex??0,f=Jt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>rn(c,at,qt,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,l=Jt["PackagesApi.listPackages"]?.[o]?.url;return(c,d)=>rn(a,at,qt,e)(c,l||d)},async updatePackage(n,r,a,o){const l=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,d=Jt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)}}};let Qk=class extends Bo{createPackage(t,n,r){return vu(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return vu(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return vu(this.configuration).getPackage(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return vu(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return vu(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const q9=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,en);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",tn(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=Cp(t,l,e),{url:nn(a),options:l}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,en);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...n},c={};tn(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:nn(a),options:l}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),tn(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:nn(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,en);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},l={};tn(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...l,...c,...t.headers},{url:nn(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",tn(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=Cp(n,c,e),{url:nn(o),options:c}}}},Tu=function(e){const t=q9(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,l=Jt["ProjectsApi.createProject"]?.[o]?.url;return(c,d)=>rn(a,at,qt,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,l=Jt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,d)=>rn(a,at,qt,e)(c,l||d)},async getProject(n,r,a){const o=await t.getProject(n,r,a),l=e?.serverIndex??0,c=Jt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=Jt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>rn(r,at,qt,e)(l,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=Jt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>rn(o,at,qt,e)(d,c||f)}}};let Wk=class extends Bo{createProject(t,n){return Tu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Tu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Tu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return Tu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Tu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const Y9=function(e){return{executeQuery:async(t,n,r,a,o,l,c,d={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,en);let m;e&&(m=e.baseOptions);const b={method:"GET",...m,...d},y={},T={};a!==void 0&&(T.query=a),o!==void 0&&(T.sourceName=o),l!==void 0&&(T.queryName=l),c!==void 0&&(T.versionId=c),tn(p,T);let A=m&&m.headers?m.headers:{};return b.headers={...y,...A,...d.headers},{url:nn(p),options:b}}}},Q9=function(e){const t=Y9(e);return{async executeQuery(n,r,a,o,l,c,d,f){const p=await t.executeQuery(n,r,a,o,l,c,d,f),m=e?.serverIndex??0,b=Jt["QueryresultsApi.executeQuery"]?.[m]?.url;return(y,T)=>rn(p,at,qt,e)(y,b||T)}}};let Jb=class extends Bo{executeQuery(t,n,r,a,o,l,c,d){return Q9(this.configuration).executeQuery(t,n,r,a,o,l,c,d).then(f=>f(this.axios,this.basePath))}};const W9=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},K9=function(e){const t=W9(e);return{async listSchedules(n,r,a,o){const l=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,d=Jt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>rn(l,at,qt,e)(f,d||p)}}};let X9=class extends Bo{listSchedules(t,n,r,a){return K9(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}},or=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const Kk=N.createContext(void 0),Dp=({projectName:e,packageName:t,versionId:n,children:r})=>E.jsx(Kk.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function ra(e=!0){const t=N.useContext(Kk);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}var fc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ws=typeof window>"u"||"Deno"in globalThis;function _r(){}function Z9(e,t){return typeof e=="function"?e(t):e}function Ry(e){return typeof e=="number"&&e>=0&&e!==1/0}function Xk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function No(e,t){return typeof e=="function"?e(t):e}function ba(e,t){return typeof e=="function"?e(t):e}function dS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==eE(l,t.options))return!1}else if(!yd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function fS(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Is(t.options.mutationKey)!==Is(o))return!1}else if(!yd(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function eE(e,t){return(t?.queryKeyHashFn||Is)(e)}function Is(e){return JSON.stringify(e,(t,n)=>wy(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function yd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>yd(e[n],t[n])):!1}function Zk(e,t){if(e===t)return e;const n=hS(e)&&hS(t);if(n||wy(e)&&wy(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),l=o.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:o[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=Zk(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function kp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function hS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wy(e){if(!pS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pS(e){return Object.prototype.toString.call(e)==="[object Object]"}function J9(e){return new Promise(t=>{setTimeout(t,e)})}function Iy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Zk(e,t):t}function eF(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tF(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tE=Symbol();function Jk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===tE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function e3(e,t){return typeof e=="function"?e(...t):!!e}var nF=class extends fc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!ws&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},nE=new nF,rF=class extends fc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!ws&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Rp=new rF;function Ny(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function aF(e){return Math.min(1e3*2**e,3e4)}function t3(e){return(e??"online")==="online"?Rp.isOnline():!0}var n3=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function h1(e){return e instanceof n3}function r3(e){let t=!1,n=0,r=!1,a;const o=Ny(),l=A=>{r||(b(new n3(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>nE.isFocused()&&(e.networkMode==="always"||Rp.isOnline())&&e.canRun(),p=()=>t3(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),o.resolve(A))},b=A=>{r||(r=!0,e.onError?.(A),a?.(),o.reject(A))},y=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),T=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(ws?0:3),S=e.retryDelay??aF,L=typeof S=="function"?S(n,x):S,M=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!M){b(x);return}n++,e.onFail?.(n,x),J9(L).then(()=>f()?void 0:y()).then(()=>{t?b(x):T()})})};return{promise:o,cancel:l,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?T():y().then(T),o)}}var iF=e=>setTimeout(e,0);function oF(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=iF;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Hn=oF(),a3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ry(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ws?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},sF=class extends a3{#t;#e;#n;#r;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=lF(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Iy(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(_r).catch(_r):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ba(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>No(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Xk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const d=Jk(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{h1(d)&&d.silent||this.#i({type:"error",error:d}),h1(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=r3({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...i3(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return h1(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Hn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function i3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:t3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lF(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var cF=class extends fc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??eE(r,t);let o=this.get(a);return o||(o=new sF({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Hn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>dS(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>dS(e,n)):t}notify(e){Hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Hn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Hn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},uF=class extends a3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||o3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=r3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Hn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function o3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dF=class extends fc{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new uF({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=xh(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=xh(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=xh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=xh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Hn.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>fS(t,n))}findAll(e={}){return this.getAll().filter(t=>fS(e,t))}notify(e){Hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Hn.batch(()=>Promise.all(e.map(t=>t.continue().catch(_r))))}};function xh(e){return e.options.scope?.id}function mS(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},b=Jk(t.options,t.fetchOptions),y=async(T,A,C)=>{if(p)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const D=(()=>{const w={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(w),w})(),S=await b(D),{maxPages:L}=t.options,M=C?tF:eF;return{pages:M(T.pages,S,L),pageParams:M(T.pageParams,A,L)}};if(a&&o.length){const T=a==="backward",A=T?fF:gS,C={pages:o,pageParams:l},x=A(r,C);c=await y(C,x,T)}else{const T=e??o.length;do{const A=d===0?l[0]??r.initialPageParam:gS(r,c);if(d>0&&A==null)break;c=await y(c,A),d++}while(d<T)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function gS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fF(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var hF=class{#t;#e;#n;#r;#a;#o;#s;#i;constructor(e={}){this.#t=e.queryCache||new cF,this.#e=e.mutationCache||new dF,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=nE.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Rp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(No(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=Z9(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Hn.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Hn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Hn.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(_r).catch(_r)}invalidateQueries(e,t={}){return Hn.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Hn.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(_r)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_r)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(No(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_r).catch(_r)}fetchInfiniteQuery(e){return e.behavior=mS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_r).catch(_r)}ensureInfiniteQueryData(e){return e.behavior=mS(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Rp.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Is(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{yd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Is(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{yd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===tE&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},pF=class extends fc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#s=Ny(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#o;#s;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),yS(this.#e,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oy(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oy(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ba(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!kp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&bS(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||ba(this.options.enabled,this.#e)!==ba(t.enabled,this.#e)||No(this.options.staleTime,this.#e)!==No(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||ba(this.options.enabled,this.#e)!==ba(t.enabled,this.#e)||a!==this.#l)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return gF(this,n)&&(this.#r=n,this.#o=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(_r)),t}#g(){this.#v();const e=No(this.options.staleTime,this.#e);if(ws||this.#r.isStale||!Ry(e))return;const n=Xk(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#T(),this.#l=e,!(ws||ba(this.options.enabled,this.#e)===!1||!Ry(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||nE.isFocused())&&this.#d()},this.#l))}#E(){this.#g(),this.#b(this.#y())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,b;if(t._optimisticResults){const ne=this.hasListeners(),W=!ne&&yS(e,t),k=ne&&bS(e,n,t,r);(W||k)&&(p={...p,...i3(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:T,status:A}=p;b=p.data;let C=!1;if(t.placeholderData!==void 0&&b===void 0&&A==="pending"){let ne;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(ne=a.data,C=!0):ne=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,ne!==void 0&&(A="success",b=Iy(a?.data,ne,t),m=!0)}if(t.select&&b!==void 0&&!C)if(a&&b===o?.data&&t.select===this.#m)b=this.#f;else try{this.#m=t.select,b=t.select(b),b=Iy(a?.data,b,t),this.#f=b,this.#i=null}catch(ne){this.#i=ne}this.#i&&(y=this.#i,b=this.#f,T=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",L=D&&x,M=b!==void 0,V={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:L,isLoading:L,data:b,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:T,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!M,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&M,isStale:rE(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ba(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ne=H=>{V.status==="error"?H.reject(V.error):V.data!==void 0&&H.resolve(V.data)},W=()=>{const H=this.#s=V.promise=Ny();ne(H)},k=this.#s;switch(k.status){case"pending":e.queryHash===n.queryHash&&ne(k);break;case"fulfilled":(V.status==="error"||V.data!==k.value)&&W();break;case"rejected":(V.status!=="error"||V.error!==k.reason)&&W();break}}return V}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#h=this.#e),kp(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const o=new Set(a??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&o.has(c)})};this.#x({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}#x(e){Hn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function mF(e,t){return ba(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function yS(e,t){return mF(e,t)||e.state.data!==void 0&&Oy(e,t,t.refetchOnMount)}function Oy(e,t,n){if(ba(t.enabled,e)!==!1&&No(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&rE(e,t)}return!1}function bS(e,t,n,r){return(e!==t||ba(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&rE(e,n)}function rE(e,t){return ba(t.enabled,e)!==!1&&e.isStaleByTime(No(t.staleTime,e))}function gF(e,t){return!kp(e.getCurrentResult(),t)}var yF=class extends fc{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),kp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Is(n.mutationKey)!==Is(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??o3();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Hn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},bF=N.createContext(void 0),s3=e=>{const t=N.useContext(bF);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},l3=N.createContext(!1),EF=()=>N.useContext(l3);l3.Provider;function vF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var TF=N.createContext(vF()),_F=()=>N.useContext(TF),xF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},AF=e=>{N.useEffect(()=>{e.clearReset()},[e])},SF=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||e3(n,[e.error,r])),CF=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},DF=(e,t)=>e.isLoading&&e.isFetching&&!t,kF=(e,t)=>e?.suspense&&t.isPending,ES=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function RF(e,t,n){const r=EF(),a=_F(),o=s3(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",CF(l),xF(l,a),AF(a);const c=!o.getQueryCache().get(l.queryHash),[d]=N.useState(()=>new t(o,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(m=>{const b=p?d.subscribe(Hn.batchCalls(m)):_r;return d.updateResult(),b},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),N.useEffect(()=>{d.setOptions(l)},[l,d]),kF(l,f))throw ES(l,d,a);if(SF({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!ws&&DF(f,r)&&(c?ES(l,d,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(_r).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function wF(e,t){return RF(e,pF,t)}function IF(e,t){const n=s3(t),[r]=N.useState(()=>new yF(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const a=N.useSyncExternalStore(N.useCallback(l=>r.subscribe(Hn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=N.useCallback((l,c)=>{r.mutate(l,c).catch(_r)},[r]);if(a.error&&e3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const NF=new Jb(new or),OF=on(H2)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),LF=on(rr)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function c3({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:a}){const[o,l]=Ne.useState(n?e.findIndex(f=>f.sourceInfo.name===n):0),[c,d]=Ne.useState(t||zu());return Ne.useEffect(()=>{a&&a(o)},[o,a]),E.jsxs(zn,{variant:"outlined",children:[E.jsx(na,{children:E.jsx(Px,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&E.jsx(OF,{children:e.map((f,p)=>E.jsx(LF,{selected:o===p,onClick:()=>l(p),children:f.sourceInfo.name||`Source ${p+1}`},f.sourceInfo.name||p))})})}),E.jsx(Wb,{children:E.jsxs(Px,{spacing:2,component:"section",children:[E.jsx(u3,{sourceAndPath:e[o],existingQuery:c,onChange:f=>{d(f),r&&r(f)}}),E.jsx(H2,{height:"5px"})]})})]})}function zu(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function MF({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a}){const[o,l]=Ne.useState(n||zu()),[c,d]=Ne.useState([]),{MalloyExplorerProvider:f,QueryPanel:p,ResizableCollapsiblePanel:m,ResultPanel:b,SourcePanel:y}=r;Ne.useEffect(()=>{t&&t(o)},[t,o]);const{projectName:T,packageName:A,versionId:C}=ra(),x=Xne({mutationFn:(M,w)=>{const V=new a.ASTQuery({source:e.sourceInfo,query:o?.malloyQuery}).toMalloy();return l({...o,query:V}),NF.executeQuery(T,A,e.modelPath,V,void 0,void 0,C,w)},onSuccess:M=>{if(M){const w=JSON.parse(M.data.result);l({...o,malloyResult:w})}}}),[D,S]=Ne.useState(e.sourceInfo.name);Ne.useEffect(()=>{D!==e.sourceInfo.name&&(S(e.sourceInfo.name),l(zu()))},[e,D]);const L=Ne.useCallback(M=>{l({...o,malloyQuery:M,malloyResult:void 0})},[o]);return D!==e.sourceInfo.name?E.jsx("div",{children:"Loading..."}):E.jsx(vk,{children:E.jsx(f,{source:e.sourceInfo,query:o?.malloyQuery,onQueryChange:L,focusedNestViewPath:c,onFocusedNestViewPathChange:d,onDrill:M=>{console.info(M)},children:E.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[E.jsx(m,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:E.jsx(y,{onRefresh:()=>l(zu())})}),E.jsx(m,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:E.jsx(p,{runQuery:()=>{x.mutate()}})}),E.jsx(b,{source:e.sourceInfo,draftQuery:o?.malloyQuery,setDraftQuery:M=>l({...o,malloyQuery:M}),submittedQuery:o?.malloyQuery?{executionState:x.isPending?"running":"finished",response:{result:o.malloyResult},query:o.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:x.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function u3(e){const[t,n]=N.useState(null),[r,a]=N.useState(null),[o,l]=N.useState(!0);return N.useEffect(()=>{let c=!0;return Promise.all([F(()=>import("./index-DJPvt7yu.js"),__vite__mapDeps([93,94,95,96,97])),F(()=>import("./index-Bq29VQqL.js").then(d=>d.i),__vite__mapDeps([96,95]))]).then(([d,f])=>{c&&(n(d),a(f),l(!1))}).catch(d=>{console.error("Failed to load Malloy components:",d),c&&l(!1)}),()=>{c=!1}},[]),o||!t||!r?E.jsx(o8,{children:E.jsx(vk,{children:E.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):E.jsx(MF,{...e,explorerComponents:t,QueryBuilder:r})}const PF=new gm(new or);function d3(e,t){const{projectName:n,packageName:r,versionId:a}=ra(),o=t||a;return br({queryKey:["package",n,r,e,o],queryFn:async l=>(await PF.getModel(n,r,e,o,l)).data})}const f3=Qt(E.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}));function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(this,arguments)}const $F=["children","options"],vS=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),TS={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},FF=["style","script","pre"],jF=["src","href","data","formAction","srcDoc","action"],BF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,UF=/mailto:/i,HF=/\n{2,}$/,_S=/^(\s*>[\s\S]*?)(?=\n\n|$)/,zF=/^ *> ?/gm,GF=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,VF=/^ {2,}\n/,qF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,xS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,AS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,YF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,QF=/^(?:\n *)*\n/,WF=/\r\n?/g,KF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,XF=/^\[\^([^\]]+)]/,ZF=/\f/g,JF=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,ej=/^\s*?\[(x|\s)\]/,SS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,CS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,DS=/^([^\n]+)\n *(=|-){3,} *\n/,p1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,tj=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,kS=/^<!--[\s\S]*?(?:-->)/,nj=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,m1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,rj=/^\{.*\}$/,aj=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ij=/^<([^ >]+@[^ >]+)>/,oj=/^<([^ >]+:\/[^ >]+)>/,sj=/-([a-z])?/gi,RS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,lj=/^[^\n]+(?: \n|\n{2,})/,cj=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,uj=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dj=/^\[([^\]]*)\] ?\[([^\]]*)\]/,fj=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hj=/\t/g,pj=/(^ *\||\| *$)/g,mj=/^ *:-+: *$/,gj=/^ *:-+ *$/,yj=/^ *-+: *$/,ym="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",bj=RegExp(`^([*_])\\1${ym}\\1\\1(?!\\1)`),Ej=RegExp(`^([*_])${ym}\\1(?!\\1)`),vj=RegExp(`^(==)${ym}\\1`),Tj=RegExp(`^(~~)${ym}\\1`),_j=/^(:[a-zA-Z0-9-_]+:)/,xj=/^\\([^0-9A-Za-z\s])/,Aj=/\\([^0-9A-Za-z\s])/g,Sj=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Cj=/^\n+/,Dj=/^([ \t]*)/,kj=/(?:^|\n)( *)$/,aE="(?:\\d+\\.)",iE="(?:[*+-])";function h3(e){return"( *)("+(e===1?aE:iE)+") +"}const p3=h3(1),m3=h3(2);function g3(e){return RegExp("^"+(e===1?p3:m3))}const Rj=g3(1),wj=g3(2);function y3(e){return RegExp("^"+(e===1?p3:m3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?aE:iE)+" )[^\\n]*)*(\\n|$)","gm")}const Ij=y3(1),Nj=y3(2);function b3(e){const t=e===1?aE:iE;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const E3=b3(1),v3=b3(2);function wS(e,t){const n=t===1,r=n?E3:v3,a=n?Ij:Nj,o=n?Rj:wj;return{t:l=>o.test(l),o:tc(function(l,c){const d=kj.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(HF,`
|
|
70
|
+
`).match(a);let m=!1;return{items:p.map(function(b,y){const T=o.exec(b)[0].length,A=RegExp("^ {1,"+T+"}","gm"),C=b.replace(A,"").replace(o,""),x=y===p.length-1,D=C.indexOf(`
|
|
71
|
+
|
|
72
|
+
`)!==-1||x&&m;m=D;const S=d.inline,L=d.list;let M;d.list=!0,D?(d.inline=!1,M=Gu(C)+`
|
|
73
|
+
|
|
74
|
+
`):(d.inline=!0,M=Gu(C));const w=c(M,d);return d.inline=S,d.list=L,w}),ordered:n,start:f}},l:(l,c,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},c(f,d))}))}}const Oj=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Lj=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Gu(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function qh(e,t){return e.startsWith(t)}function Mj(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(qh(e,n[r]))return!0;return!1}return n(e,t)}function _u(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Pj(e){return yj.test(e)?"right":mj.test(e)?"center":gj.test(e)?"left":null}function IS(e,t,n,r){const a=n.inTable;n.inTable=!0;let o=[[]],l="";function c(){if(!l)return;const d=o[o.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(c(),r)?f!==0&&f!==p.length-1&&o.push([]):l+=d}),c(),n.inTable=a,o}function $j(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(pj,"").split("|").map(Pj):[],a=e[3]?function(l,c,d){return l.trim().split(`
|
|
75
|
+
`).map(function(f){return IS(f,c,d,!0)})}(e[3],t,n):[],o=IS(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:o,type:"25"}:{children:o,type:"21"}}function NS(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function tc(e){return e.inline=1,e}function Eo(e){return tc(function(t,n){return n.inline?e.exec(t):null})}function vo(e){return tc(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ni(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Ah(e){return tc(function(t){return e.exec(t)})}const Fj=/(javascript|vbscript|data(?!:image)):/i;function jj(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Fj.test(t))return null}catch{return null}return e}function Xa(e){return e&&e.replace(Aj,"$1")}function Yh(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function Bj(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function Uj(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const g1=(e,t,n)=>({children:Yh(t,e[2],n)});function y1(){return{}}function b1(){return null}function Hj(...e){return e.filter(Boolean).join(" ")}function E1(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function zj(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?us({},TS,t.namedCodesToUnicode):TS;const n=t.slugify||_u,r=t.sanitizer||jj,a=t.createElement||N.createElement,o=[_S,xS,AS,t.enforceAtxHeadings?CS:SS,DS,RS,E3,v3],l=[...o,lj,p1,kS,m1];function c(x,D,...S){const L=E1(t.overrides,x+".props",{});return a(function(M,w){const V=E1(w,M);return V?typeof V=="function"||typeof V=="object"&&"render"in V?V:E1(w,M+".component",M):M}(x,t.overrides),us({},D,L,{className:Hj(D?.className,L.className)||void 0}),...S)}function d(x){x=x.replace(JF,"");let D=!1;t.forceInline?D=!0:t.forceBlock||(D=fj.test(x)===!1);const S=T(y(D?x:Gu(x).replace(Cj,"")+`
|
|
76
|
+
|
|
77
|
+
`,{inline:D}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const L=t.wrapper||(D?"span":"div");let M;if(S.length>1||t.forceWrapper)M=S;else{if(S.length===1)return M=S[0],typeof M=="string"?c("span",{key:"outer"},M):M;M=null}return a(L,{key:"outer"},M)}function f(x,D){if(!D||!D.trim())return null;const S=D.match(BF);return S?S.reduce(function(L,M){const w=M.indexOf("=");if(w!==-1){const V=function(H){return H.indexOf("-")!==-1&&H.match(nj)===null&&(H=H.replace(sj,function(Q,K){return K.toUpperCase()})),H}(M.slice(0,w)).trim(),ne=function(H){const Q=H[0];return(Q==='"'||Q==="'")&&H.length>=2&&H[H.length-1]===Q?H.slice(1,-1):H}(M.slice(w+1).trim()),W=vS[V]||V;if(W==="ref")return L;const k=L[W]=function(H,Q,K,re){return Q==="style"?function(me){const G=[];let le="",se=!1,ye=!1,P="";if(!me)return G;for(let ce=0;ce<me.length;ce++){const I=me[ce];if(I!=='"'&&I!=="'"||se||(ye?I===P&&(ye=!1,P=""):(ye=!0,P=I)),I==="("&&le.endsWith("url")?se=!0:I===")"&&se&&(se=!1),I!==";"||ye||se)le+=I;else{const te=le.trim();if(te){const Ce=te.indexOf(":");if(Ce>0){const we=te.slice(0,Ce).trim(),Pe=te.slice(Ce+1).trim();G.push([we,Pe])}}le=""}}const Le=le.trim();if(Le){const ce=Le.indexOf(":");if(ce>0){const I=Le.slice(0,ce).trim(),te=Le.slice(ce+1).trim();G.push([I,te])}}return G}(K).reduce(function(me,[G,le]){return me[G.replace(/(-[a-z])/g,se=>se[1].toUpperCase())]=re(le,H,G),me},{}):jF.indexOf(Q)!==-1?re(Xa(K),H,Q):(K.match(rj)&&(K=Xa(K.slice(1,K.length-1))),K==="true"||K!=="false"&&K)}(x,V,ne,r);typeof k=="string"&&(p1.test(k)||m1.test(k))&&(L[W]=d(k.trim()))}else M!=="style"&&(L[vS[M]||M]=!0);return L},{}):null}const p=[],m={},b={0:{t:[">"],o:Ni(_S),i:1,u(x,D,S){const[,L,M]=x[0].replace(zF,"").match(GF);return{alert:L,children:D(M,S)}},l(x,D,S){const L={key:S.key};return x.alert&&(L.className="markdown-alert-"+n(x.alert.toLowerCase(),_u),x.children.unshift({attrs:{},children:[{type:"27",text:x.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",L,D(x.children,S))}},1:{o:Ah(VF),i:1,u:y1,l:(x,D,S)=>c("br",{key:S.key})},2:{t:x=>{const D=x[0];return D==="-"||D==="*"||D==="_"},o:Ni(qF),i:1,u:y1,l:(x,D,S)=>c("hr",{key:S.key})},3:{t:[" "],o:Ni(AS),i:0,u:x=>({lang:void 0,text:Xa(Gu(x[0].replace(/^ {4}/gm,"")))}),l:(x,D,S)=>c("pre",{key:S.key},c("code",us({},x.attrs,{className:x.lang?"lang-"+x.lang:""}),x.text))},4:{t:["```","~~~"],o:Ni(xS),i:0,u:x=>({attrs:f("code",x[3]||""),lang:x[2]||void 0,text:x[4],type:"3"})},5:{t:["`"],o:vo(YF),i:3,u:x=>({text:Xa(x[2])}),l:(x,D,S)=>c("code",{key:S.key},x.text)},6:{t:["[^"],o:Ni(KF),i:0,u:x=>(p.push({footnote:x[2],identifier:x[1]}),{}),l:b1},7:{t:["[^"],o:Eo(XF),i:1,u:x=>({target:"#"+n(x[1],_u),text:x[1]}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href")},c("sup",{key:S.key},x.text))},8:{t:["[ ]","[x]"],o:Eo(ej),i:1,u:x=>({completed:x[1].toLowerCase()==="x"}),l:(x,D,S)=>c("input",{checked:x.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ni(t.enforceAtxHeadings?CS:SS),i:1,u:(x,D,S)=>({children:Yh(D,x[2],S),id:n(x[2],_u),level:x[1].length}),l:(x,D,S)=>c("h"+x.level,{id:x.id,key:S.key},D(x.children,S))},10:{o:Ni(DS),i:0,u:(x,D,S)=>({children:Yh(D,x[1],S),level:x[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Ah(p1),i:1,u(x,D,S){const[,L]=x[3].match(Dj),M=RegExp("^"+L,"gm"),w=x[3].replace(M,""),V=(ne=w,l.some(K=>K.test(ne))?Uj:Yh);var ne;const W=x[1].toLowerCase(),k=FF.indexOf(W)!==-1,H=(k?W:x[1]).trim(),Q={attrs:f(H,x[2]),noInnerParse:k,tag:H};if(S.inAnchor=S.inAnchor||W==="a",k)Q.text=x[3];else{const K=S.inHTML;S.inHTML=!0,Q.children=V(D,w,S),S.inHTML=K}return S.inAnchor=!1,Q},l:(x,D,S)=>c(x.tag,us({key:S.key},x.attrs),x.text||(x.children?D(x.children,S):""))},13:{t:["<"],o:Ah(m1),i:1,u(x){const D=x[1].trim();return{attrs:f(D,x[2]||""),tag:D}},l:(x,D,S)=>c(x.tag,us({},x.attrs,{key:S.key}))},12:{t:["<!--"],o:Ah(kS),i:1,u:()=>({}),l:b1},14:{t:["!["],o:vo(Lj),i:1,u:x=>({alt:Xa(x[1]),target:Xa(x[2]),title:Xa(x[3])}),l:(x,D,S)=>c("img",{key:S.key,alt:x.alt||void 0,title:x.title||void 0,src:r(x.target,"img","src")})},15:{t:["["],o:Eo(Oj),i:3,u:(x,D,S)=>({children:Bj(D,x[1],S),target:Xa(x[2]),title:Xa(x[3])}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href"),title:x.title},D(x.children,S))},16:{t:["<"],o:Eo(oj),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],type:"15"})},17:{t:(x,D)=>!D.inAnchor&&!t.disableAutoLink&&(qh(x,"http://")||qh(x,"https://")),o:Eo(aj),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],title:void 0,type:"15"})},18:{t:["<"],o:Eo(ij),i:0,u(x){let D=x[1],S=x[1];return UF.test(S)||(S="mailto:"+S),{children:[{text:D.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:wS(c,1),33:wS(c,2),19:{o:Ni(QF),i:3,u:y1,l:()=>`
|
|
78
|
+
`},21:{o:tc(function(x,D){if(D.inline||D.simple||D.inHTML&&x.indexOf(`
|
|
79
|
+
|
|
80
|
+
`)===-1&&D.prevCapture.indexOf(`
|
|
81
|
+
|
|
82
|
+
`)===-1)return null;let S="";x.split(`
|
|
83
|
+
`).every(M=>(M+=`
|
|
84
|
+
`,!o.some(w=>w.test(M))&&(S+=M,!!M.trim())));const L=Gu(S);return L===""?null:[S,,L]}),i:3,u:g1,l:(x,D,S)=>c("p",{key:S.key},D(x.children,S))},22:{t:["["],o:Eo(cj),i:0,u:x=>(m[x[1]]={target:x[2],title:x[4]},{}),l:b1},23:{t:["!["],o:vo(uj),i:0,u:x=>({alt:x[1]?Xa(x[1]):void 0,ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("img",{key:S.key,alt:x.alt,src:r(m[x.ref].target,"img","src"),title:m[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:Eo(dj),i:0,u:(x,D,S)=>({children:D(x[1],S),fallbackChildren:x[0],ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("a",{key:S.key,href:r(m[x.ref].target,"a","href"),title:m[x.ref].title},D(x.children,S)):c("span",{key:S.key},x.fallbackChildren)},25:{t:["|"],o:Ni(RS),i:1,u:$j,l(x,D,S){const L=x;return c("table",{key:S.key},c("thead",null,c("tr",null,L.header.map(function(M,w){return c("th",{key:w,style:NS(L,w)},D(M,S))}))),c("tbody",null,L.cells.map(function(M,w){return c("tr",{key:w},M.map(function(V,ne){return c("td",{key:ne,style:NS(L,ne)},D(V,S))}))})))}},27:{o:tc(function(x,D){let S;return qh(x,":")&&(S=_j.exec(x)),S||Sj.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(tj,(S,L)=>t.namedCodesToUnicode[L]||S)}},l:x=>x.text},28:{t:["**","__"],o:vo(bj),i:2,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("strong",{key:S.key},D(x.children,S))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:vo(Ej),i:3,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("em",{key:S.key},D(x.children,S))},30:{t:["\\"],o:vo(xj),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:vo(vj),i:3,u:g1,l:(x,D,S)=>c("mark",{key:S.key},D(x.children,S))},32:{t:["~~"],o:vo(Tj),i:3,u:g1,l:(x,D,S)=>c("del",{key:S.key},D(x.children,S))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const y=function(x){var D=Object.keys(x);function S(L,M){var w=[];if(M.prevCapture=M.prevCapture||"",L.trim())for(;L;)for(var V=0;V<D.length;){var ne=D[V],W=x[ne];if(!W.t||Mj(L,M,W.t)){var k=W.o(L,M);if(k&&k[0]){L=L.substring(k[0].length);var H=W.u(k,S,M);M.prevCapture+=k[0],H.type||(H.type=ne),w.push(H);break}V++}else V++}return M.prevCapture="",w}return D.sort(function(L,M){return x[L].i-x[M].i||(L<M?-1:1)}),function(L,M){return S(function(w){return w.replace(WF,`
|
|
85
|
+
`).replace(ZF,"").replace(hj," ")}(L),M)}}(b),T=(A=function(x,D){return function(S,L,M){const w=x[S.type].l;return D?D(()=>w(S,L,M),S,L,M):w(S,L,M)}}(b,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const L=S.key,M=[];let w=!1;for(let V=0;V<D.length;V++){S.key=V;const ne=x(D[V],S),W=typeof ne=="string";W&&w?M[M.length-1]+=ne:ne!==null&&M.push(ne),w=W}return S.key=L,M}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,_u),key:x.identifier},x.identifier,T(y(x.footnote,{inline:!0})))}))):C}const oE=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)o.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,$F);return N.cloneElement(zj(t,n),r)},Gj=N.lazy(()=>F(()=>import("./index.es50-Dwe0S21o.js"),__vite__mapDeps([98,94,95])));function T3({result:e,minHeight:t,maxHeight:n}){const[r,a]=N.useState(!1),[o,l]=N.useState(0),[c,d]=N.useState(!1),f=N.useRef(null),p=N.useRef(null),[m,b]=N.useState(void 0),[y,T]=N.useState(!1),A=N.useCallback(()=>{const L=r;a(!r),L&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),C=N.useCallback(L=>{l(L)},[]);if(N.useEffect(()=>{if(y){d(!0);return}if(o===0){d(!1);return}const L=t-20,M=o>L;o<L&&b(o+20),d(M)},[o,y,t]),!e)return null;const x=E.jsx(mr,{text:"Loading...",centered:!0,size:32}),D=y?r?n-40:t-40:void 0,S=m?{minHeight:`${m}px`,height:"100%"}:{height:"100%"};return E.jsx(E.Fragment,{children:E.jsxs(it,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...S},children:[E.jsx(it,{ref:f,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:c?"40px":1},children:e&&E.jsx(N.Suspense,{fallback:x,children:E.jsx(Gj,{result:e,height:D,isFillElement:L=>{T(L)},onSizeChange:C})})||x}),c&&E.jsx(it,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsx(An,{size:"small",onClick:A,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:r?"Collapse to original size":"Expand to full size",children:r?E.jsx(u4,{sx:{fontSize:30}}):E.jsx(d4,{sx:{fontSize:30}})})})]})})}const _3=Qt(E.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),Vj=new Qk(new or);function qj(){const{projectName:e,packageName:t,versionId:n}=ra(),{data:r,isSuccess:a,isError:o,error:l}=br({queryKey:["package",e,t,n],queryFn:c=>Vj.getPackage(e,t,n,!1,c)});return E.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Package Config"}),E.jsx(Zn,{}),E.jsx(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:E.jsxs(Gp,{dense:!0,disablePadding:!0,children:[E.jsx(jl,{dense:!0,disablePadding:!0,children:E.jsx(Ui,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!o&&E.jsx(jl,{children:E.jsx(mr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&E.jsx(jl,{dense:!0,disablePadding:!0,children:E.jsx(Ui,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||E.jsxs(jl,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[E.jsx(_3,{sx:{color:"grey.600",mr:"10px"}}),E.jsx(Ui,{primary:"No package manifest"})]})),o&&E.jsx(ir,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const Yj=Qt(E.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),Qj=new Wk(new or);function Wj(){const{projectName:e}=Yd(),{data:t,isSuccess:n,isError:r,error:a}=br({queryKey:["about",e],queryFn:o=>Qj.getProject(e,!1,o)});return E.jsxs(E.Fragment,{children:[!n&&!r&&E.jsx(mr,{text:"Fetching About..."}),n&&t.data?.readme&&E.jsxs(zn,{variant:"outlined",sx:{p:2},children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),E.jsx(zn,{sx:{p:1},children:E.jsx(oE,{children:t.data.readme})})]}),r&&E.jsx(ir,{error:a,context:`${e} > About`})]})}const Kj=new Qk(new or);function Xj({navigate:e}){const{projectName:t}=Yd(),{data:n,isSuccess:r,isError:a,error:o}=br({queryKey:["packages",t],queryFn:l=>Kj.listPackages(t,l)});return E.jsxs(E.Fragment,{children:[!r&&!a&&E.jsx(mr,{text:"Fetching Packages..."}),r&&E.jsxs(zn,{variant:"outlined",sx:{p:2},children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),E.jsx(gn,{container:!0,spacing:2,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>E.jsx(gn,{size:{xs:12,sm:12,md:12,lg:4},children:E.jsx(zn,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:c=>e(l.name,c),children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",color:"primary.main",children:l.name}),E.jsx(it,{sx:{maxHeight:"120px",overflowY:"auto"},children:E.jsx(Ie,{variant:"body2",children:l.description})})]})})},l.name))})]}),a&&E.jsx(ir,{error:o,context:`${t} > Packages`})]})}const x3=N.createContext(void 0);function Yd(){const e=N.useContext(x3);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function A3({children:e,projectName:t}){return E.jsx(x3.Provider,{value:{projectName:t},children:e})}function Zj({navigate:e}){return E.jsxs(gn,{container:!0,spacing:2,columns:12,children:[E.jsx(gn,{size:{xs:12,md:12},children:E.jsx(Xj,{navigate:e})}),E.jsx(gn,{size:{xs:12,md:12},children:E.jsx(Wj,{})})]})}const sE=new qk(new or);function Jj({connectionName:e,schema:t}){const{projectName:n}=Yd(),[r,a]=Ne.useState(void 0),[o,l]=Ne.useState(t||null),[c,d]=Ne.useState(!1),{data:f,isSuccess:p,isError:m,error:b,isLoading:y}=br({queryKey:["tablePath",n,e],queryFn:T=>sE.listSchemas(n,e,T)});return E.jsxs(gn,{container:!0,spacing:1,children:[!t&&E.jsx(gn,{size:{xs:12,md:4},children:E.jsxs(Mh,{sx:{p:1,m:0},children:[E.jsxs(it,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),E.jsx(f4,{control:E.jsx(h4,{checked:c,onChange:T=>d(T.target.checked)}),label:"Hidden Schemas"})]}),E.jsx(Zn,{sx:{mt:"2px"}}),E.jsxs(it,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[y&&E.jsx(mr,{text:"Fetching Table Paths..."}),m&&E.jsx(ir,{error:b,context:`${n} > ${e}`}),p&&f.data.length===0&&E.jsx(Ie,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&E.jsx(Gp,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:T})=>c||!T).sort((T,A)=>T.isDefault===A.isDefault?0:T.isDefault?-1:1).map(T=>{const A=(T.description||"").trim(),C=A!=="",x=C?A.split(/\r?\n/)[0]:void 0,D=E.jsx(z2,{selected:o===T.name,onClick:()=>l(T.name),children:E.jsx(Ui,{primary:T.name,secondary:x})},T.name);return C?E.jsx(Sn,{title:A,arrow:!0,children:D},T.name):D})})]})]})}),E.jsx(gn,{size:{xs:12,md:t?6:4},children:o&&E.jsx(Mh,{sx:{p:1,m:0},children:E.jsx(tB,{connectionName:e,schemaName:o,onTableClick:T=>{a(T)}})})}),E.jsx(gn,{size:{xs:12,md:t?6:4},children:r&&o&&E.jsx(Mh,{sx:{p:1,m:0},children:E.jsx(eB,{connectionName:e,schemaName:o,tableName:r})})})]})}function eB({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Yd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=br({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>sE.getTablesource(r,e,n,`${t}.${n}`,f)});return E.jsxs(E.Fragment,{children:[E.jsxs(Ie,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),E.jsx(Zn,{}),E.jsxs(it,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&E.jsx(mr,{text:"Fetching Table Details..."}),l&&E.jsx(ir,{error:c,context:`${r} > ${e} > ${t}.${n}`}),o&&a&&E.jsx(hb,{children:E.jsxs(id,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[E.jsx(op,{children:E.jsxs(ai,{children:[E.jsx(Ht,{children:"NAME"}),E.jsx(Ht,{children:"TYPE"})]})}),E.jsx(od,{children:a.data.columns?.map(f=>E.jsxs(ai,{children:[E.jsx(Ht,{children:f.name}),E.jsx(Ht,{children:f.type})]},f.name))})]})})]})]})}function tB({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Yd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=br({queryKey:["tablesInSchema",r,e,t],queryFn:f=>sE.listTables(r,e,t,f)});return E.jsxs(E.Fragment,{children:[E.jsxs(Ie,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),E.jsx(Zn,{}),E.jsxs(it,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&E.jsx(mr,{text:"Fetching Tables..."}),l&&E.jsx(ir,{error:c,context:`${r} > ${e} > ${t}`}),o&&a.data.length===0&&E.jsx(Ie,{variant:"body2",children:"No Tables"}),o&&a.data.length>0&&E.jsx(Gp,{dense:!0,disablePadding:!0,children:a.data.map(f=>E.jsx(z2,{onClick:()=>n(f),children:E.jsx(Ui,{primary:f})},f))})]})]})}const nB=new qk(new or);function rB({connection:e,onClick:t}){return E.jsxs(ai,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[E.jsx(Ht,{children:E.jsxs(it,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(Ie,{variant:"body2",children:e.name}),E.jsx(Yj,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),E.jsx(Ht,{children:E.jsx(Ie,{variant:"body2",children:e.type})})]},e.name)}function aB(){const{projectName:e}=ra(),[t,n]=N.useState(null),{data:r,isSuccess:a,isError:o,error:l}=br({queryKey:["connections",e],queryFn:f=>nB.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return E.jsxs(A3,{projectName:e,children:[E.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),E.jsx(Zn,{}),E.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!o&&E.jsx(Ie,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&E.jsx(id,{size:"small",children:E.jsxs(od,{children:[E.jsxs(ai,{children:[E.jsx(Ht,{children:E.jsx(Ie,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),E.jsx(Ht,{children:E.jsx(Ie,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(f=>E.jsx(rB,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&E.jsx(Ie,{variant:"body2",children:"No Connections"}),o&&E.jsx(ir,{error:l,context:`${e} > Connections`})]})]})}),E.jsxs(Kl,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[E.jsxs(Xl,{children:["Connection Explorer: ",t,E.jsx(An,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:E.jsx(it,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),E.jsx(Zl,{children:t&&E.jsx(Jj,{connectionName:t})})]})]})}const iB=new H9(new or);function oB(){const{projectName:e,packageName:t,versionId:n}=ra(),[r,a]=Ne.useState(!1),[o,l]=Ne.useState(null),c=T=>{l(T),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:b}=br({queryKey:["databases",e,t,n],queryFn:T=>iB.listDatabases(e,t,n,T)}),y=T=>T>=1024*1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} T`:T>=1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} G`:T>=1024*1024?`${(T/(1024*1024)).toFixed(2)} M`:`${(T/1024).toFixed(2)} K`;return E.jsxs(E.Fragment,{children:[E.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),E.jsx(Zn,{}),E.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!b&&!p&&E.jsx(mr,{text:"Fetching Databases..."}),p&&E.jsx(ir,{error:m,context:`${e} > ${t} > Databases`}),b&&f.data.length>0&&E.jsxs(id,{size:"small",children:[E.jsx(op,{children:E.jsxs(ai,{children:[E.jsx(Ht,{children:"Name"}),E.jsx(Ht,{align:"right",children:"Rows"})]})}),E.jsx(od,{children:f.data.map(T=>E.jsxs(ai,{onClick:()=>c(T),sx:{cursor:"pointer"},children:[E.jsx(Ht,{component:"th",scope:"row",children:T.path}),E.jsx(Ht,{align:"right",children:y(T.info.rowCount)})]},T.path))})]}),b&&f.data.length===0&&E.jsx(Ie,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),E.jsxs(Kl,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[E.jsx(Xl,{children:o?.path}),E.jsx(Zl,{children:o?.info?.columns&&E.jsx(hb,{children:E.jsxs(id,{size:"small",children:[E.jsx(op,{children:E.jsxs(ai,{children:[E.jsx(Ht,{children:"Column"}),E.jsx(Ht,{children:"Type"})]})}),E.jsx(od,{children:o.info.columns.map(T=>E.jsxs(ai,{children:[E.jsx(Ht,{component:"th",scope:"row",children:T.name}),E.jsx(Ht,{children:T.type})]},T.name))})]})})})]})]})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}const S3=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},C3=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let o=a-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:C3(e,n.parentId);let l=r[o],c=S3(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Qh=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let o=a+1;for(;!e.isItemNavigable(r[o])&&o<r.length-1;)o+=1;if(e.isItemNavigable(r[o]))return r[o]}n=e.getItemMeta(n.parentId)}return null},D3=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=S3(e,n);if(r==null)return t;t=r}return t},bd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),k3=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const o=[r.id],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=o.indexOf(d)!==-1,m=!0,b=!0;for(;!p&&!f;)m&&(o.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),b&&!f&&(l.push(d),p=o.indexOf(d)!==-1,b=d!==null,!p&&b&&(d=e.getItemMeta(d).parentId));const y=f?c:d,T=e.getItemOrderedChildrenIds(y),A=o[o.indexOf(y)-1],C=l[l.indexOf(y)-1];return T.indexOf(A)<T.indexOf(C)?[t,n]:[n,t]},sB=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,o]=k3(e,t,n),l=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},lB=e=>{let t=bd(e);const n=[];for(;t!=null;)n.push(t),t=Qh(e,t);return n},Ed=(e,t)=>t!==e.closest('*[role="treeitem"]');let OS=0;const cB=()=>(OS+=1,`mui-tree-view-${OS}`),lE=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,R3=N.createContext(null),Bs=()=>{const e=N.useContext(R3);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
86
|
+
`));return e},cE=N.createContext(()=>-1),As=(e,t)=>e.getAvailablePlugins().has(t),uB=({props:e})=>{const{instance:t}=Bs(),{label:n,itemId:r}=e,[a,o]=N.useState(n),l=t.isItemBeingEdited(r);return N.useEffect(()=>{l||o(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:d})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{c.onChange?.(f),o(f.target.value)},onKeyDown:f=>{if(c.onKeyDown?.(f),f.defaultMuiPrevented)return;const p=f.target;f.key==="Enter"&&p.value?d.handleSaveItemLabel(f,p.value):f.key==="Escape"&&d.handleCancelItemLabelEditing(f)},onBlur:f=>{c.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&d.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},Sa=({instance:e,state:t,setState:n,params:r})=>{const a=N.useRef(t.editedItemId),o=m=>a.current===m,l=m=>{n(b=>Ae({},b,{editedItemId:m})),a.current=m},c=m=>m===t.editedItemId,d=!!r.isItemEditable,f=m=>{if(m==null||!d)return!1;const b=e.getItem(m);return b?typeof r.isItemEditable=="function"?r.isItemEditable(b):!!r.isItemEditable:!1},p=(m,b)=>{if(!b)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",m].join(`
|
|
87
|
+
`));n(y=>{const T=y.items.itemMetaMap[m];return T.label!==b?Ae({},y,{items:Ae({},y.items,{itemMetaMap:Ae({},y.items.itemMetaMap,{[m]:Ae({},T,{label:b})})})}):y}),r.onItemLabelChange&&r.onItemLabelChange(m,b)};return{instance:{setEditedItemId:l,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:f,isTreeViewEditable:d,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:p}}};Sa.itemPlugin=uB;Sa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ae({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};Sa.getInitialState=()=>({editedItemId:null});Sa.params={onItemLabelChange:!0,isItemEditable:!0};const w3=e=>Array.isArray(e)?e.length>0&&e.some(w3):!!e,dB=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=Bs(),o={expandable:w3(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},l=p=>{if(o.disabled)return;o.focused||n.focusItem(p,e);const m=r&&(p.shiftKey||p.ctrlKey||p.metaKey);o.expandable&&!(m&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{o.disabled||(!o.focused&&!o.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},d=p=>{const m=p.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},f=()=>{As(n,Sa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:l,handleSelection:c,handleCheckboxSelection:d,toggleItemEditing:f,handleSaveItemLabel:(p,m)=>{As(n,Sa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{As(n,Sa)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(p,e))}},status:o,publicAPI:a}};function si(...e){const t=N.useRef(void 0),n=N.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const l=o,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return N.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function ga(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const fB=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:o,checkboxSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f,publicAPI:p}=Bs(),m=N.useContext(cE),{id:b,itemId:y,label:T,children:A,rootRef:C}=e,{rootRef:x,contentRef:D,propsEnhancers:S}=t(e),{interactions:L,status:M}=dB({itemId:y,children:A}),w=N.useRef(null),V=N.useRef(null),ne=si(C,x,w),W=si(D,V),k=N.useRef(null),H=lE({itemId:y,treeId:d,id:b}),Q=f.canItemBeTabbed(y)?0:-1,K={rootRefObject:w,contentRefObject:V,interactions:L},re=ce=>I=>{if(ce.onFocus?.(I),I.defaultMuiPrevented)return;const te=!M.disabled||r;!M.focused&&te&&I.currentTarget===I.target&&f.focusItem(I,y)},me=ce=>I=>{if(ce.onBlur?.(I),I.defaultMuiPrevented)return;const te=f.getItemDOMElement(y);M.editing||I.relatedTarget&&Ed(I.relatedTarget,te)&&(I.target&&I.target?.dataset?.element==="labelInput"&&Ed(I.target,te)||I.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},G=ce=>I=>{ce.onKeyDown?.(I),!(I.defaultMuiPrevented||I.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(I,y)},le=ce=>I=>{ce.onDoubleClick?.(I),!I.defaultMuiPrevented&&L.toggleItemEditing()},se=ce=>I=>{ce.onClick?.(I),n?.(I,y),!(I.defaultMuiPrevented||k.current?.contains(I.target))&&(c==="content"&&L.handleExpansion(I),l||L.handleSelection(I))},ye=ce=>I=>{ce.onMouseDown?.(I),!I.defaultMuiPrevented&&(I.shiftKey||I.ctrlKey||I.metaKey||M.disabled)&&I.preventDefault()},P=ce=>I=>{ce.onChange?.(I),!I.defaultMuiPrevented&&(o||M.disabled||L.handleCheckboxSelection(I))},Le=ce=>I=>{ce.onClick?.(I),!I.defaultMuiPrevented&&c==="iconContainer"&&L.handleExpansion(I)};return{getRootProps:(ce={})=>{const I=Ae({},ga(e),ga(ce));let te;M.selected?te=!0:o||M.disabled?te=void 0:te=!1;const Ce=Ae({},I,{ref:ne,role:"treeitem",tabIndex:Q,id:H,"aria-expanded":M.expandable?M.expanded:void 0,"aria-selected":te,"aria-disabled":M.disabled||void 0},ce,{onFocus:re(I),onBlur:me(I),onKeyDown:G(I)});a&&(Ce.style={"--TreeView-itemDepth":typeof m=="function"?m(y):m});const we=S.root?.(Ae({},K,{externalEventHandlers:I}))??{};return Ae({},Ce,we)},getContentProps:(ce={})=>{const I=ga(ce),te=Ae({},I,ce,{ref:W,onClick:se(I),onMouseDown:ye(I),status:M});a&&(te.indentationAtItemLevel=!0);const Ce=S.content?.(Ae({},K,{externalEventHandlers:I}))??{};return Ae({},te,Ce)},getGroupTransitionProps:(ce={})=>{const I=ga(ce),te=Ae({},I,{unmountOnExit:!0,component:"ul",role:"group",in:M.expanded,children:A},ce);return a&&(te.indentationAtItemLevel=!0),te},getIconContainerProps:(ce={})=>{const I=ga(ce);return Ae({},I,ce,{onClick:Le(I)})},getCheckboxProps:(ce={})=>{const I=ga(ce);return Ae({},I,{visible:l,ref:k,checked:M.selected,disabled:o||M.disabled,tabIndex:-1},ce,{onChange:P(I)})},getLabelProps:(ce={})=>{const I=Ae({},ga(ce)),te=Ae({},I,{children:T},ce,{onDoubleClick:le(I)});return f.isTreeViewEditable&&(te.editable=M.editable),te},getLabelInputProps:(ce={})=>{const I=ga(ce),te=S.labelInput?.({rootRefObject:w,contentRefObject:V,externalEventHandlers:I,interactions:L})??{};return Ae({},ce,te)},getDragAndDropOverlayProps:(ce={})=>{const I=ga(ce),te=S.dragAndDropOverlay?.(Ae({},K,{externalEventHandlers:I}))??{};return Ae({},ce,te)},rootRef:ne,status:M,publicAPI:p}},hB=fB,pB=Qt(E.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),mB=Qt([E.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),E.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]);var uE=Wd(),lt=e=>Qd(e,uE),dE=Wd();lt.write=e=>Qd(e,dE);var bm=Wd();lt.onStart=e=>Qd(e,bm);var fE=Wd();lt.onFrame=e=>Qd(e,fE);var hE=Wd();lt.onFinish=e=>Qd(e,hE);var ql=[];lt.setTimeout=(e,t)=>{const n=lt.now()+t,r=()=>{const o=ql.findIndex(l=>l.cancel==r);~o&&ql.splice(o,1),Ro-=~o?1:0},a={time:n,handler:e,cancel:r};return ql.splice(I3(n),0,a),Ro+=1,N3(),a};var I3=e=>~(~ql.findIndex(t=>t.time>e)||~ql.length);lt.cancel=e=>{bm.delete(e),fE.delete(e),hE.delete(e),uE.delete(e),dE.delete(e)};lt.sync=e=>{Ly=!0,lt.batchedUpdates(e),Ly=!1};lt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,lt.onStart(n)}return r.handler=e,r.cancel=()=>{bm.delete(n),t=null},r};var pE=typeof window<"u"?window.requestAnimationFrame:()=>{};lt.use=e=>pE=e;lt.now=typeof performance<"u"?()=>performance.now():Date.now;lt.batchedUpdates=e=>e();lt.catch=console.error;lt.frameLoop="always";lt.advance=()=>{lt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):L3()};var ko=-1,Ro=0,Ly=!1;function Qd(e,t){Ly?(t.delete(e),e(0)):(t.add(e),N3())}function N3(){ko<0&&(ko=0,lt.frameLoop!=="demand"&&pE(O3))}function gB(){ko=-1}function O3(){~ko&&(pE(O3),lt.batchedUpdates(L3))}function L3(){const e=ko;ko=lt.now();const t=I3(ko);if(t&&(M3(ql.splice(0,t),n=>n.handler()),Ro-=t),!Ro){gB();return}bm.flush(),uE.flush(e?Math.min(64,ko-e):16.667),fE.flush(),dE.flush(),hE.flush()}function Wd(){let e=new Set,t=e;return{add(n){Ro+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Ro-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Ro-=t.size,M3(t,r=>r(n)&&e.add(r)),Ro+=e.size,t=e)}}}function M3(e,t){e.forEach(n=>{try{t(n)}catch(r){lt.catch(r)}})}var yB=Object.defineProperty,bB=(e,t)=>{for(var n in t)yB(e,n,{get:t[n],enumerable:!0})},$a={};bB($a,{assign:()=>vB,colors:()=>Oo,createStringInterpolator:()=>gE,skipAnimation:()=>$3,to:()=>P3,willAdvance:()=>yE});function My(){}var EB=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Oe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Pi(e,t){if(Oe.arr(e)){if(!Oe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xt=(e,t)=>e.forEach(t);function li(e,t,n){if(Oe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Jr=e=>Oe.und(e)?[]:Oe.arr(e)?e:[e];function Vu(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var Fu=(e,...t)=>Vu(e,n=>n(...t)),mE=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gE,P3,Oo=null,$3=!1,yE=My,vB=e=>{e.to&&(P3=e.to),e.now&&(lt.now=e.now),e.colors!==void 0&&(Oo=e.colors),e.skipAnimation!=null&&($3=e.skipAnimation),e.createStringInterpolator&&(gE=e.createStringInterpolator),e.requestAnimationFrame&<.use(e.requestAnimationFrame),e.batchedUpdates&&(lt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yE=e.willAdvance),e.frameLoop&&(lt.frameLoop=e.frameLoop)},qu=new Set,Aa=[],v1=[],wp=0,Em={get idle(){return!qu.size&&!Aa.length},start(e){wp>e.priority?(qu.add(e),lt.onStart(TB)):(F3(e),lt(Py))},advance:Py,sort(e){if(wp)lt.onFrame(()=>Em.sort(e));else{const t=Aa.indexOf(e);~t&&(Aa.splice(t,1),j3(e))}},clear(){Aa=[],qu.clear()}};function TB(){qu.forEach(F3),qu.clear(),lt(Py)}function F3(e){Aa.includes(e)||j3(e)}function j3(e){Aa.splice(_B(Aa,t=>t.priority>e.priority),0,e)}function Py(e){const t=v1;for(let n=0;n<Aa.length;n++){const r=Aa[n];wp=r.priority,r.idle||(yE(r),r.advance(e),r.idle||t.push(r))}return wp=0,v1=Aa,v1.length=0,Aa=t,Aa.length>0}function _B(e,t){const n=e.findIndex(t);return n<0?e.length:n}var xB={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},La="[-+]?\\d*\\.?\\d+",Ip=La+"%";function vm(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var AB=new RegExp("rgb"+vm(La,La,La)),SB=new RegExp("rgba"+vm(La,La,La,La)),CB=new RegExp("hsl"+vm(La,Ip,Ip)),DB=new RegExp("hsla"+vm(La,Ip,Ip,La)),kB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,RB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wB=/^#([0-9a-fA-F]{6})$/,IB=/^#([0-9a-fA-F]{8})$/;function NB(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=wB.exec(e))?parseInt(t[1]+"ff",16)>>>0:Oo&&Oo[e]!==void 0?Oo[e]:(t=AB.exec(e))?(kl(t[1])<<24|kl(t[2])<<16|kl(t[3])<<8|255)>>>0:(t=SB.exec(e))?(kl(t[1])<<24|kl(t[2])<<16|kl(t[3])<<8|PS(t[4]))>>>0:(t=kB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=IB.exec(e))?parseInt(t[1],16)>>>0:(t=RB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=CB.exec(e))?(LS(MS(t[1]),Sh(t[2]),Sh(t[3]))|255)>>>0:(t=DB.exec(e))?(LS(MS(t[1]),Sh(t[2]),Sh(t[3]))|PS(t[4]))>>>0:null}function T1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function LS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=T1(a,r,e+1/3),l=T1(a,r,e),c=T1(a,r,e-1/3);return Math.round(o*255)<<24|Math.round(l*255)<<16|Math.round(c*255)<<8}function kl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function MS(e){return(parseFloat(e)%360+360)%360/360}function PS(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Sh(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function $S(e){let t=NB(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${o})`}var vd=(e,t,n)=>{if(Oe.fun(e))return e;if(Oe.arr(e))return vd({range:e,output:t,extrapolate:n});if(Oe.str(e.output[0]))return gE(e);const r=e,a=r.output,o=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=LB(f,o);return OB(f,o[p],o[p+1],a[p],a[p+1],d,l,c,r.map)}};function OB(e,t,n,r,a,o,l,c,d){let f=d?d(e):e;if(f<t){if(l==="identity")return f;l==="clamp"&&(f=t)}if(f>n){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=o(f),r===-1/0?f=-f:a===1/0?f=f+r:f=f*(a-r)+r,f)}function LB(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var MB={linear:e=>e},Td=Symbol.for("FluidValue.get"),nc=Symbol.for("FluidValue.observers"),Ta=e=>!!(e&&e[Td]),Lr=e=>e&&e[Td]?e[Td]():e,FS=e=>e[nc]||null;function PB(e,t){e.eventObserved?e.eventObserved(t):e(t)}function _d(e,t){const n=e[nc];n&&n.forEach(r=>{PB(r,t)})}var B3=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");$B(this,e)}},$B=(e,t)=>U3(e,Td,t);function hc(e,t){if(e[Td]){let n=e[nc];n||U3(e,nc,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xd(e,t){const n=e[nc];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[nc]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var U3=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Wh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,FB=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,jS=new RegExp(`(${Wh.source})(%|[a-z]+)`,"i"),jB=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Tm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,H3=e=>{const[t,n]=BB(e);if(!t||mE())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Tm.test(n))return H3(n);if(n)return n}return e},BB=e=>{const t=Tm.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},_1,UB=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,z3=e=>{_1||(_1=Oo?new RegExp(`(${Object.keys(Oo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Lr(o).replace(Tm,H3).replace(FB,$S).replace(_1,$S)),n=t.map(o=>o.match(Wh).map(Number)),a=n[0].map((o,l)=>n.map(c=>{if(!(l in c))throw Error('The arity of each "output" value must be equal');return c[l]})).map(o=>vd({...e,output:o}));return o=>{const l=!jS.test(t[0])&&t.find(d=>jS.test(d))?.replace(Wh,"");let c=0;return t[0].replace(Wh,()=>`${a[c++](o)}${l||""}`).replace(jB,UB)}},bE="react-spring: ",G3=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${bE}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},HB=G3(console.warn);function zB(){HB(`${bE}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var GB=G3(console.warn);function VB(){GB(`${bE}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function _m(e){return Oe.str(e)&&(e[0]=="#"||/\d/.test(e)||!mE()&&Tm.test(e)||e in(Oo||{}))}var EE=mE()?N.useEffect:N.useLayoutEffect,qB=()=>{const e=N.useRef(!1);return EE(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function V3(){const e=N.useState()[1],t=qB();return()=>{t.current&&e(Math.random())}}var q3=e=>N.useEffect(e,YB),YB=[];function BS(e){const t=N.useRef(void 0);return N.useEffect(()=>{t.current=e}),t.current}var Ad=Symbol.for("Animated:node"),QB=e=>!!e&&e[Ad]===e,ti=e=>e&&e[Ad],vE=(e,t)=>EB(e,Ad,t),xm=e=>e&&e[Ad]&&e[Ad].getPayload(),Y3=class{constructor(){vE(this,this)}getPayload(){return this.payload||[]}},Am=class Q3 extends Y3{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Oe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Q3(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return Oe.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Oe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Np=class W3 extends Am{constructor(t){super(0),this._string=null,this._toString=vd({output:[t,t]})}static create(t){return new W3(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Oe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=vd({output:[this.getValue(),t]})),this._value=0,super.reset()}},Op={dependencies:null},Sm=class extends Y3{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return li(this.source,(n,r)=>{QB(n)?t[r]=n.getValue(e):Ta(n)?t[r]=Lr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return li(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Op.dependencies&&Ta(e)&&Op.dependencies.add(e);const t=xm(e);t&&xt(t,n=>this.add(n))}},WB=class K3 extends Sm{constructor(t){super(t)}static create(t){return new K3(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,a)=>r.setValue(t[a])).some(Boolean):(super.setValue(t.map(KB)),!0)}};function KB(e){return(_m(e)?Np:Am).create(e)}function $y(e){const t=ti(e);return t?t.constructor:Oe.arr(e)?WB:_m(e)?Np:Am}var US=(e,t)=>{const n=!Oe.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((r,a)=>{const o=N.useRef(null),l=n&&N.useCallback(T=>{o.current=JB(a,T)},[a]),[c,d]=ZB(r,t),f=V3(),p=()=>{const T=o.current;if(n&&!T)return;(T?t.applyAnimatedValues(T,c.getValue(!0)):!1)===!1&&f()},m=new XB(p,d),b=N.useRef(void 0);EE(()=>(b.current=m,xt(d,T=>hc(T,m)),()=>{b.current&&(xt(b.current.deps,T=>xd(T,b.current)),lt.cancel(b.current.update))})),N.useEffect(p,[]),q3(()=>()=>{const T=b.current;xt(T.deps,A=>xd(A,T))});const y=t.getComponentProps(c.getValue());return N.createElement(e,{...y,ref:l})})},XB=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&<.write(this.update)}};function ZB(e,t){const n=new Set;return Op.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Sm(e),Op.dependencies=null,[e,n]}function JB(e,t){return e&&(Oe.fun(e)?e(t):e.current=t),t}var HS=Symbol.for("AnimatedComponent"),eU=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Sm(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=l=>{const c=zS(l)||"Anonymous";return Oe.str(l)?l=o[l]||(o[l]=US(l,a)):l=l[HS]||(l[HS]=US(l,a)),l.displayName=`Animated(${c})`,l};return li(e,(l,c)=>{Oe.arr(e)&&(c=zS(l)),o[c]=o(l)}),{animated:o}},zS=e=>Oe.str(e)?e:e&&Oe.str(e.displayName)?e.displayName:Oe.fun(e)&&e.name||null;function ds(e,...t){return Oe.fun(e)?e(...t):e}var Yu=(e,t)=>e===!0||!!(t&&e&&(Oe.fun(e)?e(t):Jr(e).includes(t))),X3=(e,t)=>Oe.obj(e)?t&&e[t]:e,Z3=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,tU=e=>e,TE=(e,t=tU)=>{let n=nU;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const o=t(e[a],a);Oe.und(o)||(r[a]=o)}return r},nU=["config","onProps","onStart","onChange","onPause","onResume","onRest"],rU={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function aU(e){const t={};let n=0;if(li(e,(r,a)=>{rU[a]||(t[a]=r,n++)}),n)return t}function J3(e){const t=aU(e);if(t){const n={to:t};return li(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Sd(e){return e=Lr(e),Oe.arr(e)?e.map(Sd):_m(e)?$a.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function iU(e){for(const t in e)return!0;return!1}function Fy(e){return Oe.fun(e)||Oe.arr(e)&&Oe.obj(e[0])}function oU(e,t){e.ref?.delete(e),t?.delete(e)}function sU(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var lU={default:{tension:170,friction:26}},jy={...lU.default,mass:1,damping:1,easing:MB.linear,clamp:!1},cU=class{constructor(){this.velocity=0,Object.assign(this,jy)}};function uU(e,t,n){n&&(n={...n},GS(n,t),t={...n,...t}),GS(e,t),Object.assign(e,t);for(const l in jy)e[l]==null&&(e[l]=jy[l]);let{frequency:r,damping:a}=e;const{mass:o}=e;return Oe.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r),e}function GS(e,t){if(!Oe.und(t.decay))e.duration=void 0;else{const n=!Oe.und(t.tension)||!Oe.und(t.friction);(n||!Oe.und(t.frequency)||!Oe.und(t.damping)||!Oe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var VS=[],dU=class{constructor(){this.changed=!1,this.values=VS,this.toValues=null,this.fromValues=VS,this.config=new cU,this.immediate=!1}};function eR(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((l,c)=>{let d,f,p=Yu(n.cancel??r?.cancel,t);if(p)y();else{Oe.und(n.pause)||(a.paused=Yu(n.pause,t));let T=r?.pause;T!==!0&&(T=a.paused||Yu(T,t)),d=ds(n.delay||0,t),T?(a.resumeQueue.add(b),o.pause()):(o.resume(),b())}function m(){a.resumeQueue.add(b),a.timeouts.delete(f),f.cancel(),d=f.time-lt.now()}function b(){d>0&&!$a.skipAnimation?(a.delayed=!0,f=lt.setTimeout(y,d),a.pauseQueue.add(m),a.timeouts.add(f)):y()}function y(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(f),e<=(a.cancelId||0)&&(p=!0);try{o.start({...n,callId:e,cancel:p},l)}catch(T){c(T)}}})}var _E=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Yl(e.get()):t.every(n=>n.noop)?tR(e.get()):Oa(e.get(),t.every(n=>n.finished)),tR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Oa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Yl=e=>({value:e,cancelled:!0,finished:!1});function nR(e,t,n,r){const{callId:a,parentId:o,onRest:l}=t,{asyncTo:c,promise:d}=n;return!o&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=TE(t,(C,x)=>x==="onRest"?void 0:C);let p,m;const b=new Promise((C,x)=>(p=C,m=x)),y=C=>{const x=a<=(n.cancelId||0)&&Yl(r)||a!==n.asyncId&&Oa(r,!1);if(x)throw C.result=x,m(C),C},T=(C,x)=>{const D=new qS,S=new YS;return(async()=>{if($a.skipAnimation)throw Cd(n),S.result=Oa(r,!1),m(S),S;y(D);const L=Oe.obj(C)?{...C}:{...x,to:C};L.parentId=a,li(f,(w,V)=>{Oe.und(L[V])&&(L[V]=w)});const M=await r.start(L);return y(D),n.paused&&await new Promise(w=>{n.resumeQueue.add(w)}),M})()};let A;if($a.skipAnimation)return Cd(n),Oa(r,!1);try{let C;Oe.arr(e)?C=(async x=>{for(const D of x)await T(D)})(e):C=Promise.resolve(e(T,r.stop.bind(r))),await Promise.all([C.then(p),b]),A=Oa(r.get(),!0,!1)}catch(C){if(C instanceof qS)A=C.result;else if(C instanceof YS)A=C.result;else throw C}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?c:void 0,n.promise=o?d:void 0)}return Oe.fun(l)&<.batchedUpdates(()=>{l(A,r,r.item)}),A})()}function Cd(e,t){Vu(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var qS=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},YS=class extends Error{constructor(){super("SkipAnimationSignal")}},By=e=>e instanceof xE,fU=1,xE=class extends B3{constructor(){super(...arguments),this.id=fU++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ti(this);return e&&e.getValue()}to(...e){return $a.to(this,e)}interpolate(...e){return zB(),$a.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){_d(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Em.sort(this),_d(this,{type:"priority",parent:this,priority:e})}},Ns=Symbol.for("SpringPhase"),rR=1,Uy=2,Hy=4,x1=e=>(e[Ns]&rR)>0,To=e=>(e[Ns]&Uy)>0,xu=e=>(e[Ns]&Hy)>0,QS=(e,t)=>t?e[Ns]|=Uy|rR:e[Ns]&=~Uy,WS=(e,t)=>t?e[Ns]|=Hy:e[Ns]&=~Hy,hU=class extends xE{constructor(e,t){if(super(),this.animation=new dU,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Oe.und(e)||!Oe.und(t)){const n=Oe.obj(e)?{...e}:{...t,from:e};Oe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(To(this)||this._state.asyncTo)||xu(this)}get goal(){return Lr(this.animation.to)}get velocity(){const e=ti(this);return e instanceof Am?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return x1(this)}get isAnimating(){return To(this)}get isPaused(){return xu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,l=xm(r.to);!l&&Ta(r.to)&&(a=Jr(Lr(r.to))),r.values.forEach((f,p)=>{if(f.done)return;const m=f.constructor==Np?1:l?l[p].lastPosition:a[p];let b=r.immediate,y=m;if(!b){if(y=f.lastPosition,o.tension<=0){f.done=!0;return}let T=f.elapsedTime+=e;const A=r.fromValues[p],C=f.v0!=null?f.v0:f.v0=Oe.arr(o.velocity)?o.velocity[p]:o.velocity;let x;const D=o.precision||(A==m?.005:Math.min(1,Math.abs(m-A)*.001));if(Oe.und(o.duration))if(o.decay){const S=o.decay===!0?.998:o.decay,L=Math.exp(-(1-S)*T);y=A+C/(1-S)*(1-L),b=Math.abs(f.lastPosition-y)<=D,x=C*L}else{x=f.lastVelocity==null?C:f.lastVelocity;const S=o.restVelocity||D/10,L=o.clamp?0:o.bounce,M=!Oe.und(L),w=A==m?f.v0>0:A<m;let V,ne=!1;const W=1,k=Math.ceil(e/W);for(let H=0;H<k&&(V=Math.abs(x)>S,!(!V&&(b=Math.abs(m-y)<=D,b)));++H){M&&(ne=y==m||y>m==w,ne&&(x=-x*L,y=m));const Q=-o.tension*1e-6*(y-m),K=-o.friction*.001*x,re=(Q+K)/o.mass;x=x+re*W,y=y+x*W}}else{let S=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,f.durationProgress>0&&(f.elapsedTime=o.duration*f.durationProgress,T=f.elapsedTime+=e)),S=(o.progress||0)+T/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),y=A+o.easing(S)*(m-A),x=(y-f.lastPosition)/e,b=S==1}f.lastVelocity=x,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),b=!0)}l&&!l[p].done&&(b=!1),b?f.done=!0:t=!1,f.setValue(y,o.round)&&(n=!0)});const c=ti(this),d=c.getValue();if(t){const f=Lr(r.to);(d!==f||n)&&!o.decay?(c.setValue(f),this._onChange(f)):n&&o.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(e){return lt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(To(this)){const{to:e,config:t}=this.animation;lt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Oe.und(e)?(n=this.queue||[],this.queue=[]):n=[Oe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>_E(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cd(this._state,e&&this._lastCallId),lt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Oe.obj(n)?n[t]:n,(n==null||Fy(n))&&(n=void 0),r=Oe.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return x1(this)||(e.reverse&&([n,r]=[r,n]),r=Lr(r),Oe.und(r)?ti(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,TE(e,(l,c)=>/^on/.test(c)?X3(l,n):l)),XS(this,e,"onProps"),Su(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return eR(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xu(this)||(WS(this,!0),Fu(o.pauseQueue),Su(this,"onPause",Oa(this,Au(this,this.animation.to)),this))},resume:()=>{xu(this)&&(WS(this,!1),To(this)&&this._resume(),Fu(o.resumeQueue),Su(this,"onResume",Oa(this,Au(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(e.loop&&l.finished&&!(t&&l.noop)){const c=aR(e);if(c)return this._update(c,!0)}return l})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Yl(this));const r=!Oe.und(e.to),a=!Oe.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Yl(this));const{key:o,defaultProps:l,animation:c}=this,{to:d,from:f}=c;let{to:p=d,from:m=f}=e;a&&!r&&(!t.default||Oe.und(p))&&(p=m),t.reverse&&([p,m]=[m,p]);const b=!Pi(m,f);b&&(c.from=m),m=Lr(m);const y=!Pi(p,d);y&&this._focus(p);const T=Fy(t.to),{config:A}=c,{decay:C,velocity:x}=A;(r||a)&&(A.velocity=0),t.config&&!T&&uU(A,ds(t.config,o),t.config!==l.config?ds(l.config,o):void 0);let D=ti(this);if(!D||Oe.und(p))return n(Oa(this,!0));const S=Oe.und(t.reset)?a&&!t.default:!Oe.und(m)&&Yu(t.reset,o),L=S?m:this.get(),M=Sd(p),w=Oe.num(M)||Oe.arr(M)||_m(M),V=!T&&(!w||Yu(l.immediate||t.immediate,o));if(y){const H=$y(p);if(H!==D.constructor)if(V)D=this._set(M);else throw Error(`Cannot animate between ${D.constructor.name} and ${H.name}, as the "to" prop suggests`)}const ne=D.constructor;let W=Ta(p),k=!1;if(!W){const H=S||!x1(this)&&b;(y||H)&&(k=Pi(Sd(L),M),W=!k),(!Pi(c.immediate,V)&&!V||!Pi(A.decay,C)||!Pi(A.velocity,x))&&(W=!0)}if(k&&To(this)&&(c.changed&&!S?W=!0:W||this._stop(d)),!T&&((W||Ta(d))&&(c.values=D.getPayload(),c.toValues=Ta(p)?null:ne==Np?[1]:Jr(M)),c.immediate!=V&&(c.immediate=V,!V&&!S&&this._set(d)),W)){const{onRest:H}=c;xt(mU,K=>XS(this,t,K));const Q=Oa(this,Au(this,d));Fu(this._pendingCalls,Q),this._pendingCalls.add(n),c.changed&<.batchedUpdates(()=>{c.changed=!S,H?.(Q,this),S?ds(l.onRest,Q):c.onStart?.(Q,this)})}S&&this._set(L),T?n(nR(t.to,t,this._state,this)):W?this._start():To(this)&&!y?this._pendingCalls.add(n):n(tR(L))}_focus(e){const t=this.animation;e!==t.to&&(FS(this)&&this._detach(),t.to=e,FS(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ta(t)&&(hc(t,this),By(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ta(e)&&xd(e,this)}_set(e,t=!0){const n=Lr(e);if(!Oe.und(n)){const r=ti(this);if(!r||!Pi(n,r.getValue())){const a=$y(n);!r||r.constructor!=a?vE(this,a.create(n)):r.setValue(n),r&<.batchedUpdates(()=>{this._onChange(n,t)})}}return ti(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Su(this,"onStart",Oa(this,Au(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ds(this.animation.onChange,e,this)),ds(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ti(this).reset(Lr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),To(this)||(QS(this,!0),xu(this)||this._resume())}_resume(){$a.skipAnimation?this.finish():Em.start(this)}_stop(e,t){if(To(this)){QS(this,!1);const n=this.animation;xt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),_d(this,{type:"idle",parent:this});const r=t?Yl(this.get()):Oa(this.get(),Au(this,e??n.to));Fu(this._pendingCalls,r),n.changed&&(n.changed=!1,Su(this,"onRest",r,this))}}};function Au(e,t){const n=Sd(t),r=Sd(e.get());return Pi(r,n)}function aR(e,t=e.loop,n=e.to){const r=ds(t);if(r){const a=r!==!0&&J3(r),o=(a||e).reverse,l=!a||a.reset;return Dd({...e,loop:t,default:!1,pause:void 0,to:!o||Fy(n)?n:void 0,from:l?e.from:void 0,reset:l,...a})}}function Dd(e){const{to:t,from:n}=e=J3(e),r=new Set;return Oe.obj(t)&&KS(t,r),Oe.obj(n)&&KS(n,r),e.keys=r.size?Array.from(r):null,e}function pU(e){const t=Dd(e);return Oe.und(t.default)&&(t.default=TE(t)),t}function KS(e,t){li(e,(n,r)=>n!=null&&t.add(r))}var mU=["onStart","onRest","onChange","onPause","onResume"];function XS(e,t,n){e.animation[n]=t[n]!==Z3(t,n)?X3(t[n],e.key):void 0}function Su(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var gU=["onStart","onChange","onRest"],yU=1,bU=class{constructor(e,t){this.id=yU++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Oe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Dd(e)),this}start(e){let{queue:t}=this;return e?t=Jr(e).map(Dd):this.queue=[],this._flush?this._flush(this,t):(cR(this,t),zy(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Jr(t),r=>n[r].stop(!!e))}else Cd(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Oe.und(e))this.start({pause:!0});else{const t=this.springs;xt(Jr(e),n=>t[n].pause())}return this}resume(e){if(Oe.und(e))this.start({pause:!1});else{const t=this.springs;xt(Jr(e),n=>t[n].resume())}return this}each(e){li(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Vu(e,([c,d])=>{d.value=this.get(),c(d,this,this._item)}));const o=!r&&this._started,l=a||o&&n.size?this.get():null;a&&t.size&&Vu(t,([c,d])=>{d.value=l,c(d,this,this._item)}),o&&(this._started=!1,Vu(n,([c,d])=>{d.value=l,c(d,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;lt.onFrame(this._onFrame)}};function zy(e,t){return Promise.all(t.map(n=>iR(e,n))).then(n=>_E(e,n))}async function iR(e,t,n){const{keys:r,to:a,from:o,loop:l,onRest:c,onResolve:d}=t,f=Oe.obj(t.default)&&t.default;l&&(t.loop=!1),a===!1&&(t.to=null),o===!1&&(t.from=null);const p=Oe.arr(a)||Oe.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):xt(gU,A=>{const C=t[A];if(Oe.fun(C)){const x=e._events[A];t[A]=({finished:D,cancelled:S})=>{const L=x.get(C);L?(D||(L.finished=!1),S&&(L.cancelled=!0)):x.set(C,{value:null,finished:D||!1,cancelled:S||!1})},f&&(f[A]=t[A])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,Fu(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const b=(r||Object.keys(e.springs)).map(A=>e.springs[A].start(t)),y=t.cancel===!0||Z3(t,"cancel")===!0;(p||y&&m.asyncId)&&b.push(eR(++e._lastAsyncId,{props:t,state:m,actions:{pause:My,resume:My,start(A,C){y?(Cd(m,e._lastAsyncId),C(Yl(e))):(A.onRest=c,C(nR(p,A,m,e)))}}})),m.paused&&await new Promise(A=>{m.resumeQueue.add(A)});const T=_E(e,await Promise.all(b));if(l&&T.finished&&!(n&&T.noop)){const A=aR(t,l,a);if(A)return cR(e,[A]),iR(e,A,!0)}return d&<.batchedUpdates(()=>d(T,e,e.item)),T}function ZS(e,t){const n={...e.springs};return t&&xt(Jr(t),r=>{Oe.und(r.keys)&&(r=Dd(r)),Oe.obj(r.to)||(r={...r,to:void 0}),lR(n,r,a=>sR(a))}),oR(e,n),n}function oR(e,t){li(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,hc(n,e))})}function sR(e,t){const n=new hU;return n.key=e,t&&hc(n,t),n}function lR(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function cR(e,t){xt(t,n=>{lR(e.springs,n,r=>sR(r,e))})}var EU=N.createContext({pause:!1,immediate:!1}),vU=()=>{const e=[],t=function(r){VB();const a=[];return xt(e,(o,l)=>{if(Oe.und(r))a.push(o.start());else{const c=n(r,o,l);c&&a.push(o.start(c))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(a,o)=>{const l=Oe.fun(r)?r(o,a):r;l&&a.set(l)})},t.start=function(r){const a=[];return xt(e,(o,l)=>{if(Oe.und(r))a.push(o.start());else{const c=this._getProps(r,o,l);c&&a.push(o.start(c))}}),a},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(a,o)=>a.update(this._getProps(r,a,o))),this};const n=function(r,a,o){return Oe.fun(r)?r(o,a):r};return t._getProps=n,t};function TU(e,t,n){const r=Oe.fun(t)&&t;r&&!n&&(n=[]);const a=N.useMemo(()=>r||arguments.length==3?vU():void 0,[]),o=N.useRef(0),l=V3(),c=N.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const S=ZS(x,D);return o.current>0&&!c.queue.length&&!Object.keys(S).some(M=>!x.springs[M])?zy(x,D):new Promise(M=>{oR(x,S),c.queue.push(()=>{M(zy(x,D))}),l()})}}),[]),d=N.useRef([...c.ctrls]),f=N.useRef([]),p=BS(e)||0;N.useMemo(()=>{xt(d.current.slice(e,p),x=>{oU(x,a),x.stop(!0)}),d.current.length=e,m(p,e)},[e]),N.useMemo(()=>{m(0,Math.min(p,e))},n);function m(x,D){for(let S=x;S<D;S++){const L=d.current[S]||(d.current[S]=new bU(null,c.flush)),M=r?r(S,L):t[S];M&&(f.current[S]=pU(M))}}const b=d.current.map((x,D)=>ZS(x,f.current[D])),y=N.useContext(EU),T=BS(y),A=y!==T&&iU(y);EE(()=>{o.current++,c.ctrls=d.current;const{queue:x}=c;x.length&&(c.queue=[],xt(x,D=>D())),xt(d.current,(D,S)=>{a?.add(D),A&&D.start({default:y});const L=f.current[S];L&&(sU(D,L.ref),D.ref?D.queue.push(L):D.start(L))})}),q3(()=>()=>{xt(c.ctrls,x=>x.stop(!0))});const C=b.map(x=>({...x}));return a?[C,a]:C}function _U(e,t){const n=Oe.fun(e),[[r],a]=TU(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var xU=class extends xE{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vd(...t);const n=this._get(),r=$y(n);vE(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pi(t,n)||(ti(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&JS(this._active)&&A1(this)}_get(){const e=Oe.arr(this.source)?this.source.map(Lr):Jr(Lr(this.source));return this.calc(...e)}_start(){this.idle&&!JS(this._active)&&(this.idle=!1,xt(xm(this),e=>{e.done=!1}),$a.skipAnimation?(lt.batchedUpdates(()=>this.advance()),A1(this)):Em.start(this))}_attach(){let e=1;xt(Jr(this.source),t=>{Ta(t)&&hc(t,this),By(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Jr(this.source),e=>{Ta(e)&&xd(e,this)}),this._active.clear(),A1(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Jr(this.source).reduce((t,n)=>Math.max(t,(By(n)?n.priority:0)+1),0))}};function AU(e){return e.idle!==!1}function JS(e){return!e.size||Array.from(e).every(AU)}function A1(e){e.idle||(e.idle=!0,xt(xm(e),t=>{t.done=!0}),_d(e,{type:"idle",parent:e}))}$a.assign({createStringInterpolator:z3,to:(e,t)=>new xU(e,t)});var uR=/^--/;function SU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!uR.test(e)&&!(Qu.hasOwnProperty(e)&&Qu[e])?t+"px":(""+t).trim()}var eC={};function CU(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:o,scrollTop:l,scrollLeft:c,viewBox:d,...f}=t,p=Object.values(f),m=Object.keys(f).map(b=>n||e.hasAttribute(b)?b:eC[b]||(eC[b]=b.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));o!==void 0&&(e.textContent=o);for(const b in a)if(a.hasOwnProperty(b)){const y=SU(b,a[b]);uR.test(b)?e.style.setProperty(b,y):e.style[b]=y}m.forEach((b,y)=>{e.setAttribute(b,p[y])}),r!==void 0&&(e.className=r),l!==void 0&&(e.scrollTop=l),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}var Qu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},DU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),kU=["Webkit","Ms","Moz","O"];Qu=Object.keys(Qu).reduce((e,t)=>(kU.forEach(n=>e[DU(n,t)]=e[t]),e),Qu);var RU=/^(matrix|translate|scale|rotate|skew)/,wU=/^(translate)/,IU=/^(rotate|skew)/,S1=(e,t)=>Oe.num(e)&&e!==0?e+t:e,Kh=(e,t)=>Oe.arr(e)?e.every(n=>Kh(n,t)):Oe.num(e)?e===t:parseFloat(e)===t,NU=class extends Sm{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(l=>[`translate3d(${l.map(c=>S1(c,"px")).join(",")})`,Kh(l,0)])),li(r,(l,c)=>{if(c==="transform")a.push([l||""]),o.push(d=>[d,d===""]);else if(RU.test(c)){if(delete r[c],Oe.und(l))return;const d=wU.test(c)?"px":IU.test(c)?"deg":"";a.push(Jr(l)),o.push(c==="rotate3d"?([f,p,m,b])=>[`rotate3d(${f},${p},${m},${S1(b,d)})`,Kh(b,0)]:f=>[`${c}(${f.map(p=>S1(p,d)).join(",")})`,Kh(f,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new OU(a,o)),super(r)}},OU=class extends B3{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return xt(this.inputs,(n,r)=>{const a=Lr(n[0]),[o,l]=this.transforms[r](Oe.arr(a)?a:n.map(Lr));e+=" "+o,t=t&&l}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>Ta(n)&&hc(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>Ta(n)&&xd(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),_d(this,e)}},LU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];$a.assign({batchedUpdates:U2.unstable_batchedUpdates,createStringInterpolator:z3,colors:xB});var MU=eU(LU,{applyAnimatedValues:CU,createAnimatedStyle:e=>new NU(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),PU=MU.animated;const $U=Qt(E.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),FU=Qt(E.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function jU(){const e=p4(Fb);return e[jb]||e}function tC(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function BU(e){return Fo("MuiCollapse",e)}jo("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function hr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gy(e,t){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gy(e,t)}function dR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gy(e,t)}const nC={disabled:!1},Lp=Ne.createContext(null);var UU=function(e){return e.scrollTop},ju="unmounted",ss="exited",ls="entering",Ml="entered",Vy="exiting",qi=function(e){dR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=a,c=l&&!l.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?c?(d=ss,o.appearStatus=ls):d=Ml:r.unmountOnExit||r.mountOnEnter?d=ju:d=ss,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===ju?{status:ss}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==ls&&o!==Ml&&(a=ls):(o===ls||o===Ml)&&(a=Vy)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,o,l;return a=o=l=r,r!=null&&typeof r!="number"&&(a=r.exit,o=r.enter,l=r.appear!==void 0?r.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===ls){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ph.findDOMNode(this);o&&UU(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ss&&this.setState({status:ju})},n.performEnter=function(r){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[ph.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!r&&!o||nC.disabled){this.safeSetState({status:Ml},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:ls},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Ml},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:ph.findDOMNode(this);if(!a||nC.disabled){this.safeSetState({status:ss},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Vy},function(){r.props.onExiting(l),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:ss},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,r(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:ph.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ju)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=hr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ne.createElement(Lp.Provider,{value:null},typeof o=="function"?o(r,l):Ne.cloneElement(Ne.Children.only(o),l))},t}(Ne.Component);qi.contextType=Lp;qi.propTypes={};function Rl(){}qi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rl,onEntering:Rl,onEntered:Rl,onExit:Rl,onExiting:Rl,onExited:Rl};qi.UNMOUNTED=ju;qi.EXITED=ss;qi.ENTERING=ls;qi.ENTERED=Ml;qi.EXITING=Vy;const rC={};function fR(e,t){const n=N.useRef(rC);return n.current===rC&&(n.current=e(t)),n}const HU=[];function zU(e){N.useEffect(e,HU)}let GU=class hR{static create(){return new hR}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function pR(){const e=fR(GU.create).current;return zU(e.disposeEffect),e}const VU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Fs(r,BU,n)},qU=on("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(kb(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),YU=on("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),QU=on("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),kd=N.forwardRef(function(e,t){const n=sc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:o,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:b,onExit:y,onExited:T,onExiting:A,orientation:C="vertical",style:x,timeout:D=xD.standard,TransitionComponent:S=qi,...L}=n,M={...n,orientation:C,collapsedSize:l},w=VU(M),V=jU(),ne=pR(),W=N.useRef(null),k=N.useRef(),H=typeof l=="number"?`${l}px`:l,Q=C==="horizontal",K=Q?"width":"height",re=N.useRef(null),me=si(t,re),G=te=>Ce=>{if(te){const we=re.current;Ce===void 0?te(we):te(we,Ce)}},le=()=>W.current?W.current[Q?"clientWidth":"clientHeight"]:0,se=G((te,Ce)=>{W.current&&Q&&(W.current.style.position="absolute"),te.style[K]=H,p&&p(te,Ce)}),ye=G((te,Ce)=>{const we=le();W.current&&Q&&(W.current.style.position="");const{duration:Pe,easing:Me}=tC({style:x,timeout:D,easing:d},{mode:"enter"});if(D==="auto"){const st=V.transitions.getAutoHeightDuration(we);te.style.transitionDuration=`${st}ms`,k.current=st}else te.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;te.style[K]=`${we}px`,te.style.transitionTimingFunction=Me,b&&b(te,Ce)}),P=G((te,Ce)=>{te.style[K]="auto",m&&m(te,Ce)}),Le=G(te=>{te.style[K]=`${le()}px`,y&&y(te)}),ce=G(T),I=G(te=>{const Ce=le(),{duration:we,easing:Pe}=tC({style:x,timeout:D,easing:d},{mode:"exit"});if(D==="auto"){const Me=V.transitions.getAutoHeightDuration(Ce);te.style.transitionDuration=`${Me}ms`,k.current=Me}else te.style.transitionDuration=typeof we=="string"?we:`${we}ms`;te.style[K]=H,te.style.transitionTimingFunction=Pe,A&&A(te)});return E.jsx(S,{in:f,onEnter:se,onEntered:P,onEntering:ye,onExit:Le,onExited:ce,onExiting:I,addEndListener:te=>{D==="auto"&&ne.start(k.current||0,te),r&&r(re.current,te)},nodeRef:re,timeout:D==="auto"?null:D,...L,children:(te,{ownerState:Ce,...we})=>E.jsx(qU,{as:c,className:$n(w.root,o,{entered:w.entered,exited:!f&&H==="0px"&&w.hidden}[te]),style:{[Q?"minWidth":"minHeight"]:H,...x},ref:me,ownerState:{...M,state:te},...we,children:E.jsx(YU,{ownerState:{...M,state:te},className:w.wrapper,ref:W,children:E.jsx(QU,{ownerState:{...M,state:te},className:w.wrapperInner,children:a})})})})});kd&&(kd.muiSupportAuto=!0);function Cm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C1={exports:{}},D1,aC;function WU(){if(aC)return D1;aC=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return D1=e,D1}var k1,iC;function KU(){if(iC)return k1;iC=1;var e=WU();function t(){}function n(){}return n.resetWarningCache=t,k1=function(){function r(l,c,d,f,p,m){if(m!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},k1}var oC;function XU(){return oC||(oC=1,C1.exports=KU()()),C1.exports}var ZU=XU();const sC=Cm(ZU);function AE(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=Bs();return r({children:t,itemId:n,instance:a})}AE.propTypes={children:sC.node,itemId:sC.string.isRequired};const JU=N.createContext(void 0);function eH(){return N.useContext(JU)}function tH(e){return Fo("PrivateSwitchBase",e)}jo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function ni(e,t,n){return typeof e=="function"?e(t,n):e}function lC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function mR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const y=$n(n?.className,o,a?.className,r?.className),T={...n?.style,...a?.style,...r?.style},A={...n,...a,...r};return y.length>0&&(A.className=y),Object.keys(T).length>0&&(A.style=T),{props:A,internalRef:void 0}}const l=ga({...a,...r}),c=lC(r),d=lC(a),f=t(l),p=$n(f?.className,n?.className,o,a?.className,r?.className),m={...f?.style,...n?.style,...a?.style,...r?.style},b={...f,...n,...d,...c};return p.length>0&&(b.className=p),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:f.ref}}function nH(e){return typeof e=="string"}function gR(e,t,n){return e===void 0||nH(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qy(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...b}=o,y=p[e]||r,T=ni(m[e],a),{props:{component:A,...C},internalRef:x}=mR({className:n,...d,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:T}),D=si(x,T?.ref,t.ref),S=e==="root"?A||f:A,L=gR(y,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...C,...S&&!c&&{as:S},...S&&c&&{component:S},ref:D},a);return[y,L]}function rH(e){const{controlled:t,default:n}=e,{current:r}=N.useRef(t!==void 0),[a,o]=N.useState(n),l=r?t:a,c=N.useCallback(d=>{r||o(d)},[]);return[l,c]}function aH(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:l,in:c,onExited:d,timeout:f}=e,[p,m]=N.useState(!1),b=$n(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:l,height:l,top:-(l/2)+o,left:-(l/2)+a},T=$n(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&m(!0),N.useEffect(()=>{if(!c&&d!=null){const A=setTimeout(d,f);return()=>{clearTimeout(A)}}},[d,c,f]),E.jsx("span",{className:b,style:y,children:E.jsx("span",{className:T})})}const Ea=jo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function iH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SE(e,t){var n=function(a){return t&&N.isValidElement(a)?t(a):a},r=Object.create(null);return e&&N.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function oH(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<a.length;l++)c[a[l]]=n(a[l]);return c}function ys(e,t,n){return n[t]!=null?n[t]:e.props[t]}function sH(e,t){return SE(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ys(n,"appear",e),enter:ys(n,"enter",e),exit:ys(n,"exit",e)})})}function lH(e,t,n){var r=SE(e.children),a=oH(t,r);return Object.keys(a).forEach(function(o){var l=a[o];if(N.isValidElement(l)){var c=o in t,d=o in r,f=t[o],p=N.isValidElement(f)&&!f.props.in;d&&(!c||p)?a[o]=N.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:ys(l,"exit",e),enter:ys(l,"enter",e)}):!d&&c&&!p?a[o]=N.cloneElement(l,{in:!1}):d&&c&&N.isValidElement(f)&&(a[o]=N.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:ys(l,"exit",e),enter:ys(l,"enter",e)}))}}),a}var cH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},uH={component:"div",childFactory:function(e){return e}},CE=function(e){dR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=o.handleExited.bind(iH(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,a){var o=a.children,l=a.handleExited,c=a.firstRender;return{children:c?sH(r,l):lH(r,o,l),firstRender:!1}},n.handleExited=function(r,a){var o=SE(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=Ae({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,o=r.childFactory,l=hr(r,["component","childFactory"]),c=this.state.contextValue,d=cH(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?Ne.createElement(Lp.Provider,{value:c},d):Ne.createElement(Lp.Provider,{value:c},Ne.createElement(a,l,d))},t}(Ne.Component);CE.propTypes={};CE.defaultProps=uH;const Yy=550,dH=80,fH=pb`
|
|
88
|
+
0% {
|
|
89
|
+
transform: scale(0);
|
|
90
|
+
opacity: 0.1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
100% {
|
|
94
|
+
transform: scale(1);
|
|
95
|
+
opacity: 0.3;
|
|
96
|
+
}
|
|
97
|
+
`,hH=pb`
|
|
98
|
+
0% {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
100% {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
105
|
+
`,pH=pb`
|
|
106
|
+
0% {
|
|
107
|
+
transform: scale(1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
50% {
|
|
111
|
+
transform: scale(0.92);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
100% {
|
|
115
|
+
transform: scale(1);
|
|
116
|
+
}
|
|
117
|
+
`,mH=on("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gH=on(aH,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
118
|
+
opacity: 0;
|
|
119
|
+
position: absolute;
|
|
120
|
+
|
|
121
|
+
&.${Ea.rippleVisible} {
|
|
122
|
+
opacity: 0.3;
|
|
123
|
+
transform: scale(1);
|
|
124
|
+
animation-name: ${fH};
|
|
125
|
+
animation-duration: ${Yy}ms;
|
|
126
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.${Ea.ripplePulsate} {
|
|
130
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
& .${Ea.child} {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
display: block;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
border-radius: 50%;
|
|
139
|
+
background-color: currentColor;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
& .${Ea.childLeaving} {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
animation-name: ${hH};
|
|
145
|
+
animation-duration: ${Yy}ms;
|
|
146
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
& .${Ea.childPulsate} {
|
|
150
|
+
position: absolute;
|
|
151
|
+
/* @noflip */
|
|
152
|
+
left: 0px;
|
|
153
|
+
top: 0;
|
|
154
|
+
animation-name: ${pH};
|
|
155
|
+
animation-duration: 2500ms;
|
|
156
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
157
|
+
animation-iteration-count: infinite;
|
|
158
|
+
animation-delay: 200ms;
|
|
159
|
+
}
|
|
160
|
+
`,yH=N.forwardRef(function(e,t){const n=sc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:o,...l}=n,[c,d]=N.useState([]),f=N.useRef(0),p=N.useRef(null);N.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=N.useRef(!1),b=pR(),y=N.useRef(null),T=N.useRef(null),A=N.useCallback(S=>{const{pulsate:L,rippleX:M,rippleY:w,rippleSize:V,cb:ne}=S;d(W=>[...W,E.jsx(gH,{classes:{ripple:$n(a.ripple,Ea.ripple),rippleVisible:$n(a.rippleVisible,Ea.rippleVisible),ripplePulsate:$n(a.ripplePulsate,Ea.ripplePulsate),child:$n(a.child,Ea.child),childLeaving:$n(a.childLeaving,Ea.childLeaving),childPulsate:$n(a.childPulsate,Ea.childPulsate)},timeout:Yy,pulsate:L,rippleX:M,rippleY:w,rippleSize:V},f.current)]),f.current+=1,p.current=ne},[a]),C=N.useCallback((S={},L={},M=()=>{})=>{const{pulsate:w=!1,center:V=r||L.pulsate,fakeElement:ne=!1}=L;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const W=ne?null:T.current,k=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,Q,K;if(V||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)H=Math.round(k.width/2),Q=Math.round(k.height/2);else{const{clientX:re,clientY:me}=S.touches&&S.touches.length>0?S.touches[0]:S;H=Math.round(re-k.left),Q=Math.round(me-k.top)}if(V)K=Math.sqrt((2*k.width**2+k.height**2)/3),K%2===0&&(K+=1);else{const re=Math.max(Math.abs((W?W.clientWidth:0)-H),H)*2+2,me=Math.max(Math.abs((W?W.clientHeight:0)-Q),Q)*2+2;K=Math.sqrt(re**2+me**2)}S?.touches?y.current===null&&(y.current=()=>{A({pulsate:w,rippleX:H,rippleY:Q,rippleSize:K,cb:M})},b.start(dH,()=>{y.current&&(y.current(),y.current=null)})):A({pulsate:w,rippleX:H,rippleY:Q,rippleSize:K,cb:M})},[r,A,b]),x=N.useCallback(()=>{C({},{pulsate:!0})},[C]),D=N.useCallback((S,L)=>{if(b.clear(),S?.type==="touchend"&&y.current){y.current(),y.current=null,b.start(0,()=>{D(S,L)});return}y.current=null,d(M=>M.length>0?M.slice(1):M),p.current=L},[b]);return N.useImperativeHandle(t,()=>({pulsate:x,start:C,stop:D}),[x,C,D]),E.jsx(mH,{className:$n(Ea.root,a.root,o),ref:T,...l,children:E.jsx(CE,{component:null,exit:!0,children:c})})});function bH(e){return Fo("MuiButtonBase",e)}const EH=jo("MuiButtonBase",["root","disabled","focusVisible"]);let vH=class Qy{static create(){return new Qy}static use(){const t=fR(Qy.create).current,[n,r]=N.useState(!1);return t.shouldMount=n,t.setShouldMount=r,N.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=_H(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function TH(){return vH.use()}function _H(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const xH=typeof window<"u"?N.useLayoutEffect:N.useEffect;function oi(e){const t=N.useRef(e);return xH(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function cC(e){try{return e.matches(":focus-visible")}catch{}return!1}const AH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},bH,a);return n&&r&&(o.root+=` ${r}`),o},SH=on("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${EH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),CH=N.forwardRef(function(e,t){const n=sc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:o,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:b,LinkComponent:y="a",onBlur:T,onClick:A,onContextMenu:C,onDragLeave:x,onFocus:D,onFocusVisible:S,onKeyDown:L,onKeyUp:M,onMouseDown:w,onMouseLeave:V,onMouseUp:ne,onTouchEnd:W,onTouchMove:k,onTouchStart:H,tabIndex:Q=0,TouchRippleProps:K,touchRippleRef:re,type:me,...G}=n,le=N.useRef(null),se=TH(),ye=si(se.ref,re),[P,Le]=N.useState(!1);d&&P&&Le(!1),N.useImperativeHandle(r,()=>({focusVisible:()=>{Le(!0),le.current.focus()}}),[]);const ce=se.shouldMount&&!f&&!d;N.useEffect(()=>{P&&m&&!f&&se.pulsate()},[f,m,P,se]);const I=Oi(se,"start",w,p),te=Oi(se,"stop",C,p),Ce=Oi(se,"stop",x,p),we=Oi(se,"stop",ne,p),Pe=Oi(se,"stop",Ye=>{P&&Ye.preventDefault(),V&&V(Ye)},p),Me=Oi(se,"start",H,p),st=Oi(se,"stop",W,p),dt=Oi(se,"stop",k,p),Ue=Oi(se,"stop",Ye=>{cC(Ye.target)||Le(!1),T&&T(Ye)},!1),Wt=oi(Ye=>{le.current||(le.current=Ye.currentTarget),cC(Ye.target)&&(Le(!0),S&&S(Ye)),D&&D(Ye)}),Nt=()=>{const Ye=le.current;return c&&c!=="button"&&!(Ye.tagName==="A"&&Ye.href)},$e=oi(Ye=>{m&&!Ye.repeat&&P&&Ye.key===" "&&se.stop(Ye,()=>{se.start(Ye)}),Ye.target===Ye.currentTarget&&Nt()&&Ye.key===" "&&Ye.preventDefault(),L&&L(Ye),Ye.target===Ye.currentTarget&&Nt()&&Ye.key==="Enter"&&!d&&(Ye.preventDefault(),A&&A(Ye))}),sr=oi(Ye=>{m&&Ye.key===" "&&P&&!Ye.defaultPrevented&&se.stop(Ye,()=>{se.pulsate(Ye)}),M&&M(Ye),A&&Ye.target===Ye.currentTarget&&Nt()&&Ye.key===" "&&!Ye.defaultPrevented&&A(Ye)});let fn=c;fn==="button"&&(G.href||G.to)&&(fn=y);const Ve={};fn==="button"?(Ve.type=me===void 0?"button":me,Ve.disabled=d):(!G.href&&!G.to&&(Ve.role="button"),d&&(Ve["aria-disabled"]=d));const Jn=si(t,le),an={...n,centerRipple:a,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:Q,focusVisible:P},sn=AH(an);return E.jsxs(SH,{as:fn,className:$n(sn.root,l),ownerState:an,onBlur:Ue,onClick:A,onContextMenu:te,onFocus:Wt,onKeyDown:$e,onKeyUp:sr,onMouseDown:I,onMouseLeave:Pe,onMouseUp:we,onDragLeave:Ce,onTouchEnd:st,onTouchMove:dt,onTouchStart:Me,ref:Jn,tabIndex:d?-1:Q,type:me,...Ve,...G,children:[o,ce?E.jsx(yH,{ref:ye,center:a,...K}):null]})});function Oi(e,t,n,r=!1){return oi(a=>(n&&n(a),r||e[t](a),!0))}const DH=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${Pa(a)}`],input:["input"]};return Fs(o,tH,t)},kH=on(CH,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),RH=on("input",{name:"MuiSwitchBase",shouldForwardProp:Bb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wH=N.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:b,name:y,onBlur:T,onChange:A,onFocus:C,readOnly:x,required:D=!1,tabIndex:S,type:L,value:M,slots:w={},slotProps:V={},...ne}=e,[W,k]=rH({controlled:r,default:!!o}),H=eH(),Q=te=>{C&&C(te),H&&H.onFocus&&H.onFocus(te)},K=te=>{T&&T(te),H&&H.onBlur&&H.onBlur(te)},re=te=>{if(te.nativeEvent.defaultPrevented)return;const Ce=te.target.checked;k(Ce),A&&A(te,Ce)};let me=l;H&&typeof me>"u"&&(me=H.disabled);const G=L==="checkbox"||L==="radio",le={...e,checked:W,disabled:me,disableFocusRipple:c,edge:d},se=DH(le),ye={slots:w,slotProps:{input:m,...V}},[P,Le]=qy("root",{ref:t,elementType:kH,className:se.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,component:"span",...ne},getSlotProps:te=>({...te,onFocus:Ce=>{te.onFocus?.(Ce),Q(Ce)},onBlur:Ce=>{te.onBlur?.(Ce),K(Ce)}}),ownerState:le,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:me,role:void 0,tabIndex:null}}),[ce,I]=qy("input",{ref:b,elementType:RH,className:se.input,externalForwardedProps:ye,getSlotProps:te=>({...te,onChange:Ce=>{te.onChange?.(Ce),re(Ce)}}),ownerState:le,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:me,id:G?p:void 0,name:y,readOnly:x,required:D,tabIndex:S,type:L,...L==="checkbox"&&M===void 0?{}:{value:M}}});return E.jsxs(P,{...Le,children:[E.jsx(ce,{...I}),W?a:f]})}),IH=Qt(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),NH=Qt(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),OH=Qt(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function LH(e){return Fo("MuiCheckbox",e)}const R1=jo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function MH(e){return typeof e.main=="string"}function PH(e,t=[]){if(!MH(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function uC(e=[]){return([,t])=>t&&PH(t,e)}function $H(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function FH(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(f=>{$H(f,c[f])&&typeof l[f]=="function"&&(d[f]=(...p)=>{l[f](...p),c[f](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,f=$n(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!f&&{className:f},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),o=$n(r?.className,e?.className);return{...t,...e,...a,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const jH=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${Pa(r)}`,`size${Pa(a)}`]},l=Fs(o,LH,t);return{...t,...l}},BH=on(wH,{shouldForwardProp:e=>Bb(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Pa(n.size)}`],n.color!=="default"&&t[`color${Pa(n.color)}`]]}})(kb(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:sy(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(uC()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:sy(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(uC()).map(([t])=>({props:{color:t},style:{[`&.${R1.checked}, &.${R1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${R1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),UH=E.jsx(NH,{}),HH=E.jsx(IH,{}),zH=E.jsx(OH,{}),yR=N.forwardRef(function(e,t){const n=sc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=UH,color:a="primary",icon:o=HH,indeterminate:l=!1,indeterminateIcon:c=zH,inputProps:d,size:f="medium",disableRipple:p=!1,className:m,slots:b={},slotProps:y={},...T}=n,A=l?c:o,C=l?c:r,x={...n,disableRipple:p,color:a,indeterminate:l,size:f},D=jH(x),S=y.input??d,[L,M]=qy("root",{ref:t,elementType:BH,className:$n(D.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:y,...T},ownerState:x,additionalProps:{type:"checkbox",icon:N.cloneElement(A,{fontSize:A.props.fontSize??f}),checkedIcon:N.cloneElement(C,{fontSize:C.props.fontSize??f}),disableRipple:p,slots:b,slotProps:{input:FH(typeof S=="function"?S(x):S,{"data-indeterminate":l})}}});return E.jsx(L,{...M,classes:D})}),GH=["visible"],VH=on("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),qH=on("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Io(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),YH=on("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Io(e)&&e!=="editable"})(({theme:e})=>Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),QH=on("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});on(kd,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Io(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});on(N.forwardRef((e,t)=>{const{visible:n}=e,r=hr(e,GH);return n?E.jsx(yR,Ae({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function bs(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,l=a?{}:ni(n,r),{props:c,internalRef:d}=mR({...o,externalSlotProps:l}),f=si(d,l?.ref,e.additionalProps?.ref);return gR(t,{...c,ref:f},r)}const bR=Qt(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ER=Qt(E.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function WH(e){const{slots:t,slotProps:n,status:r}=e,a=Bs(),o=Ae({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??bR,collapseIcon:a.icons.slots.collapseIcon??ER}),l=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const d=t?.[c]??o[c],f=bs({elementType:d,externalSlotProps:p=>Ae({},ni(l[c],p),ni(n?.[c],p)),ownerState:{}});return d?E.jsx(d,Ae({},f)):null}function KH(e){return Fo("MuiRichTreeView",e)}jo("MuiRichTreeView",["root"]);function XH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:up(t.components[n].defaultProps,r)}function ZH(e){return Object.keys(e).length===0}function JH(e=null){const t=N.useContext(m4);return!t||ZH(t)?e:t}const ez=$b();function tz(e=ez){return JH(e)}function nz({props:e,name:t,defaultTheme:n,themeId:r}){let a=tz(n);return a=a[r]||a,XH({theme:a,name:t,props:e})}function rz({props:e,name:t}){return nz({props:e,name:t,defaultTheme:Fb,themeId:jb})}function vR(e){return rz}const az=(e,t,n)=>{e.$$publishEvent(t,n)},Bl="__TREE_VIEW_ROOT_PARENT_ID__",iz=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},oz=["children"],TR=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},l={[Bl]:[]},c=(f,p,m)=>{const b=r?r(f):f.id;if(b==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(f)].join(`
|
|
161
|
+
`));if(a[b]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${b}"`].join(`
|
|
162
|
+
`));const y=n?n(f):f.label;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(f)].join(`
|
|
163
|
+
`));a[b]={id:b,label:y,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},o[b]=f;const T=m??Bl;l[T]||(l[T]=[]),l[T].push(b),f.children?.forEach(A=>c(A,p+1,b))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=iz(l[f])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},Kd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=N.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=N.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=N.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=hr(D,oz),L=n.items.itemOrderedChildrenIds[x];return L&&(S.children=L.map(C)),S};return n.items.itemOrderedChildrenIds[Bl].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=N.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=N.useCallback(C=>{const x=e.getItemMeta(C).parentId??Bl;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=N.useCallback(C=>n.items.itemOrderedChildrenIds[C??Bl]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(lE({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},b=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),y=N.useRef(!1),T=N.useCallback(()=>{y.current=!0},[]),A=N.useCallback(()=>y.current,[]);return N.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=TR({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||az(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[Bl].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:b,preventItemUpdates:T,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Kd.getInitialState=e=>({items:TR({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Kd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Kd.wrapRoot=({children:e,instance:t})=>E.jsx(cE.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Kd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Dm=({instance:e,params:t,models:n})=>{const r=N.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(b=>{m.set(b,!0)}),m},[n.expandedItems.value]),a=(m,b)=>{t.onExpandedItemsChange?.(m,b),n.expandedItems.setControlledValue(b)},o=N.useCallback(m=>r.has(m),[r]),l=N.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=oi((m,b)=>{const y=e.isItemExpanded(b);e.setItemExpansion(m,b,!y)}),d=oi((m,b,y)=>{if(e.isItemExpanded(b)===y)return;let T;y?T=[b].concat(n.expandedItems.value):T=n.expandedItems.value.filter(A=>A!==b),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,b,y),a(m,T)}),f=(m,b)=>{const y=e.getItemMeta(b),T=e.getItemOrderedChildrenIds(y.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(T);T.length>0&&(t.onItemExpansionToggle&&T.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=N.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:o,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Dm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const sz=[];Dm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??sz});Dm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Xh=e=>Array.isArray(e)?e:e!=null?[e]:[],w1=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},km=({instance:e,params:t,models:n})=>{const r=N.useRef(null),a=N.useRef({}),o=N.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const b=m.filter(T=>!e.isItemSelected(T)),y=n.selectedItems.value.filter(T=>!m.includes(T));b.forEach(T=>{t.onItemSelectionToggle(p,T,!0)}),y.forEach(T=>{t.onItemSelectionToggle(p,T,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>o.has(p),d=({event:p,itemId:m,keepExistingSelection:b=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let T;if(b){const A=Xh(n.selectedItems.value),C=e.isItemSelected(m);C&&(y===!1||y==null)?T=A.filter(x=>x!==m):!C&&(y===!0||y==null)?T=[m].concat(A):T=A}else y===!1||y==null&&e.isItemSelected(m)?T=t.multiSelect?[]:null:T=t.multiSelect?[m]:m;l(p,T),r.current=m,a.current={}},f=(p,[m,b])=>{if(t.disableSelection||!t.multiSelect)return;let y=Xh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(y=y.filter(x=>!a.current[x]));const T=w1(y),A=sB(e,m,b),C=A.filter(x=>!T[x]);y=y.concat(C),l(p,y),a.current=w1(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=lB(e);l(p,m),a.current=w1(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[b,y]=k3(e,m,r.current);f(p,[b,y])}},selectRangeFromStartToItem:(p,m)=>{f(p,[bd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,D3(e)])},selectItemFromArrowNavigation:(p,m,b)=>{if(t.disableSelection||!t.multiSelect)return;let y=Xh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(y.push(b),a.current={[m]:!0,[b]:!0}):(a.current[m]||(a.current={}),a.current[b]?(y=y.filter(T=>T!==m),delete a.current[m]):(y.push(b),a.current[b]=!0)),l(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};km.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const lz=[];km.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?lz:null)});km.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let cz=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},uz=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},dz=class{};function fz(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new uz:new cz);const[o]=N.useState(new dz),l=N.useRef(null),c=N.useRef(void 0);c.current=a;const d=N.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(o,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));N.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const hz={registry:null},pz=fz(hz),_R=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?_R(t.shadowRoot):t:null};function mz(e){return e&&e.ownerDocument||document}const gz=(e,t)=>{let n=Xh(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=bd(e)),n},DE=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const l=gz(e,a.selectedItems.value),c=oi(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=N.useCallback(()=>!!o.current&&o.current.contains(_R(mz(o.current))),[o]),f=N.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},b=oi((C,x)=>{p(x)&&m(C,x)}),y=oi(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),T=C=>C===l;pz(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:b},instance:{isItemFocused:f,canItemBeTabbed:T,focusItem:b,removeFocusedItem:y}}};DE.getInitialState=()=>({focusedItemId:null});DE.params={onItemFocus:!0};const yz=N.createContext(),bz=()=>N.useContext(yz)??!1;function Ez(e){return!!e&&e.length===1&&!!e.match(/\S/)}const xR=({instance:e,params:t,state:n})=>{const r=bz(),a=N.useRef({}),o=oi(f=>{a.current=f(a.current)});N.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),b=C=>{const x=Qh(e,C);return x===null?bd(e):x};let y=null,T=b(f);const A={};for(;y==null&&!A[T];)a.current[T]===m?y=T:(A[T]=!0,T=b(T));return y},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||Ed(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,b=f.key;switch(!0){case(b===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case b==="Enter":{As(e,Sa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case b==="ArrowDown":{const y=Qh(e,p);y&&(f.preventDefault(),e.focusItem(f,y),t.multiSelect&&f.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(f,p,y));break}case b==="ArrowUp":{const y=C3(e,p);y&&(f.preventDefault(),e.focusItem(f,y),t.multiSelect&&f.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(f,p,y));break}case(b==="ArrowRight"&&!r||b==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const y=Qh(e,p);y&&(e.focusItem(f,y),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(b==="ArrowLeft"&&!r||b==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(f,y),f.preventDefault())}break}case b==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,bd(e)),f.preventDefault();break}case b==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,D3(e)),f.preventDefault();break}case b==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&Ez(b)):{const y=l(p,b);y!=null&&(e.focusItem(f,y),f.preventDefault());break}}}}}};xR.params={};const AR=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});AR.params={};const vz=[Kd,Dm,km,DE,xR,AR,Sa];function SR(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:l}}=Bs(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),b=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,T=S=>{if(!m){f||t.focusItem(S,e);const L=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(L&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!b&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(o||m)return;const L=S.nativeEvent.shiftKey;r&&L?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{As(t,Sa)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:y,editing:b,disableSelection:o,checkboxSelection:a,handleExpansion:T,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,L)=>{As(t,Sa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,L),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{As(t,Sa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const Tz=on("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),_z=on("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>g4(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:ji(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function xz(e){return e.action==null?null:E.jsx(_z,Ae({},e))}const Az=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],CR=N.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:b}=e,y=hr(e,Az),{disabled:T,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:L,checkboxSelection:M,handleExpansion:w,handleSelection:V,handleCheckboxSelection:ne,handleContentClick:W,preventSelection:k,expansionTrigger:H,toggleItemEditing:Q}=SR(d),K=l||o||a,re=N.useRef(null),me=se=>{k(se),p&&p(se)},G=se=>{W?.(se,d),!re.current?.contains(se.target)&&(H==="content"&&w(se),M||V(se),f&&f(se))},le=se=>{se.defaultMuiPrevented||Q()};return E.jsxs("div",Ae({},y,{className:$n(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,T&&n.disabled,D&&n.editing,S&&n.editable),onClick:G,onMouseDown:me,ref:t,children:[E.jsx("div",{className:n.iconContainer,children:K}),M&&E.jsx(yR,{className:n.checkbox,checked:C,onChange:ne,disabled:T||L,ref:re,tabIndex:-1}),D?E.jsx(Tz,Ae({},b,{className:n.labelInput})):E.jsx("div",Ae({className:n.label},S&&{onDoubleClick:le},{children:c})),m&&E.jsx(xz,Ae({},m))]}))});function Sz(e){return Fo("MuiTreeItem",e)}const Li=jo("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Cz=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],Dz=["ownerState"],kz=["ownerState"],Rz=["ownerState"],wz=vR(),Iz=e=>{const{classes:t}=e;return Fs({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Sz,t)},Nz=on("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Oz=on(CR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Li.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Li.label}`]:t.label}],shouldForwardProp:e=>Io(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Li.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Li.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Li.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Li.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Li.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Li.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Lz=on(kd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Io(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Mz=N.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=Bs(),p=N.useContext(cE),m=wz({props:e,name:"MuiTreeItem"}),{children:b,className:y,slots:T,slotProps:A,ContentComponent:C=CR,ContentProps:x,itemId:D,id:S,label:L,onClick:M,onMouseDown:w,onBlur:V,onKeyDown:ne}=m,W=hr(m,Cz),{expanded:k,focused:H,selected:Q,disabled:K,editing:re,handleExpansion:me,handleCancelItemLabelEditing:G,handleSaveItemLabel:le}=SR(D),{contentRef:se,rootRef:ye,propsEnhancers:P}=r(m),Le=N.useRef(null),ce=N.useRef(null),I=si(t,ye,Le),te=si(x?.ref,se,ce),Ce={expandIcon:T?.expandIcon??n.slots.expandIcon??bR,collapseIcon:T?.collapseIcon??n.slots.collapseIcon??ER,endIcon:T?.endIcon??n.slots.endIcon,icon:T?.icon,groupTransition:T?.groupTransition},we=Te=>Array.isArray(Te)?Te.length>0&&Te.some(we):!!Te,Pe=we(b),Me=Ae({},m,{expanded:k,focused:H,selected:Q,disabled:K,indentationAtItemLevel:o}),st=Iz(Me),dt=Ce.groupTransition??void 0,Ue=bs({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:st.groupTransition}),Wt=Te=>{c==="iconContainer"&&me(Te)},Nt=k?Ce.collapseIcon:Ce.expandIcon,$e=bs({elementType:Nt,ownerState:{},externalSlotProps:Te=>k?Ae({},ni(n.slotProps.collapseIcon,Te),ni(A?.collapseIcon,Te)):Ae({},ni(n.slotProps.expandIcon,Te),ni(A?.expandIcon,Te)),additionalProps:{onClick:Wt}}),sr=hr($e,Dz),fn=Pe&&Nt?E.jsx(Nt,Ae({},sr)):null,Ve=Pe?void 0:Ce.endIcon,Jn=bs({elementType:Ve,ownerState:{},externalSlotProps:Te=>Pe?{}:Ae({},ni(n.slotProps.endIcon,Te),ni(A?.endIcon,Te))}),an=hr(Jn,kz),sn=Ve?E.jsx(Ve,Ae({},an)):null,Ye=Ce.icon,Ct=bs({elementType:Ye,ownerState:{},externalSlotProps:A?.icon}),Cr=hr(Ct,Rz),Ua=Ye?E.jsx(Ye,Ae({},Cr)):null;let Rt;Q?Rt=!0:l||K?Rt=void 0:Rt=!1;function ue(Te){!H&&(!K||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){V?.(Te),!(re||Te.relatedTarget&&Ed(Te.relatedTarget,Le.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&Ed(Te.target,Le.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const je=Te=>{ne?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},nt=lE({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Ot={rootRefObject:Le,contentRefObject:ce,interactions:{handleSaveItemLabel:le,handleCancelItemLabelEditing:G}},Vn=P.root?.(Ae({},Ot,{externalEventHandlers:ga(W)}))??{},yn=P.content?.(Ae({},Ot,{externalEventHandlers:ga(x)}))??{},Cn=P.dragAndDropOverlay?.(Ae({},Ot,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Ot,{externalEventHandlers:{}}))??{};return E.jsx(AE,{itemId:D,children:E.jsxs(Nz,Ae({className:$n(st.root,y),role:"treeitem","aria-expanded":Pe?k:void 0,"aria-selected":Rt,"aria-disabled":K||void 0,id:nt,tabIndex:Dt},W,{ownerState:Me,onFocus:ue,onBlur:ve,onKeyDown:je,ref:I,style:o?Ae({},W.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):W.style},Vn,{children:[E.jsx(Oz,Ae({as:C,classes:{root:st.content,expanded:st.expanded,selected:st.selected,focused:st.focused,disabled:st.disabled,editable:st.editable,editing:st.editing,iconContainer:st.iconContainer,label:st.label,labelInput:st.labelInput,checkbox:st.checkbox},label:L,itemId:D,onClick:M,onMouseDown:w,icon:Ua,expansionIcon:fn,displayIcon:sn,ownerState:Me},x,yn,Cn.action==null?{}:{dragAndDropOverlayProps:Cn},_e.value==null?{}:{labelInputProps:_e},{ref:te})),b&&E.jsx(Lz,Ae({as:dt},Ue,{children:b}))]}))})}),Pz=["ownerState"];function $z({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const l=e?.item??Mz,c=bs({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=hr(c,Pz),f=N.useMemo(()=>o?E.jsx(DR,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return E.jsx(l,Ae({},d,{children:f}))}function DR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return E.jsx(N.Fragment,{children:t.map(a=>E.jsx($z,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const Fz=(e,t)=>{const n=N.useRef({}),[r,a]=N.useState(()=>{const o={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},o[c]=d.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,l])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[o]:d}))}}]}))},jz=["slots","slotProps","apiRef","experimentalFeatures"],Bz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,l=hr(e.props,jz);const c={};o.forEach(b=>{Object.assign(c,b.params)});const d={},f={};Object.keys(l).forEach(b=>{const y=l[b];c[b]?d[b]=y:f[b]=y});const p=a??{},m=o.reduce((b,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:b,experimentalFeatures:p}):b,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Uz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const b=m.itemPlugin({props:a,rootRef:o,contentRef:l});b?.rootRef&&(o=b.rootRef),b?.contentRef&&(l=b.contentRef),b?.propsEnhancers&&(c.push(b.propsEnhancers),Object.keys(b.propsEnhancers).forEach(y=>{d[y]=!0}))});const f=m=>b=>{const y={};return c.forEach(T=>{const A=T[m];A!=null&&Object.assign(y,A(b))}),y},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let l=o;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let o=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let Hz=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<o.length;l+=1){const c=o[l];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const zz=e=>e.isPropagationStopped!==void 0,kR=()=>{const[e]=N.useState(()=>new Hz),t=N.useCallback((...r)=>{const[a,o,l={}]=r;l.defaultMuiPrevented=!1,!(zz(l)&&l.isPropagationStopped())&&e.emit(a,o,l)},[e]),n=N.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};kR.params={};const RR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};RR.params={};const kE=({params:e,state:t,setState:n})=>{N.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??cB()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};kE.params={id:!0};kE.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const Gz=[kR,RR,kE];function Vz(e){const t=N.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const qz=({plugins:e,rootRef:t,props:n})=>{const r=[...Gz,...e],{pluginParams:a,forwardedProps:o,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=Bz({plugins:r,props:n}),p=Fz(r,a),m=N.useRef({}).current,b=Vz(l),y=N.useRef(null),T=si(y,t),A=Uz({plugins:r,instance:m,publicAPI:b,rootRef:y}),[C,x]=N.useState(()=>{const L={};return r.forEach(M=>{M.getInitialState&&Object.assign(L,M.getInitialState(a))}),L}),D=[],S=L=>{const M=L({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:y,models:p,plugins:r});M.getRootProps&&D.push(M.getRootProps),M.publicAPI&&Object.assign(b,M.publicAPI),M.instance&&Object.assign(m,M.instance),M.contextValue&&Object.assign(A,M.contextValue)};return r.forEach(S),{getRootProps:(L={})=>{const M=Ae({role:"tree"},o,L,{ref:T});return D.forEach(w=>{Object.assign(M,w(L))}),M},rootRef:T,contextValue:A,instance:m}};function Yz(e){const{value:t,children:n}=e;return E.jsx(R3.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Qz=vR(),Wz=e=>{const{classes:t}=e;return Fs({root:["root"]},KH,t)},Kz=on("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Xz=N.forwardRef(function(e,t){const n=Qz({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=qz({plugins:vz,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=Wz(n),f=l?.root??Kz,p=bs({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return E.jsx(Yz,{value:a,children:E.jsx(f,Ae({},p,{children:E.jsx(DR,{slots:l,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function wR({items:e,defaultExpandedItems:t,navigate:n}){return E.jsx(Xz,{items:nG(e,n),defaultExpandedItems:t,slots:{item:tG}})}const Zz=PU(kd);function Jz(e){const t=_U({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return E.jsx(Zz,{style:t,...e})}function eG({item:e,...t}){const n=E.jsxs(YH,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&E.jsx(pB,{})||e.fileType==="notebook"&&E.jsx(mB,{})||e.fileType==="model"&&E.jsx(FU,{})||e.fileType=="database"&&E.jsx($U,{})||E.jsx(_3,{}),E.jsx(Ie,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?E.jsx(Sn,{title:e.error,placement:"right",children:n}):n}const tG=N.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:b,status:y,publicAPI:T}=hB({id:n,itemId:r,children:o,label:a,disabled:l,rootRef:t}),A=T.getItem(r);return y.selected=!1,y.focused=!1,E.jsx(AE,{itemId:r,children:E.jsxs(VH,{...d(c),children:[E.jsxs(qH,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[E.jsx(QH,{...m(),children:E.jsx(WH,{status:y})}),E.jsx(eG,{...p({item:A})})]}),o&&E.jsx(Jz,{...b()})]})})});function nG(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((l,c)=>{c===o.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),IR(n,"",t)}function IR(e,t,n){const r=[];return e.forEach((a,o)=>{const l=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+o,d):void 0,selectable:l==="model"||l==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:IR(a,t,n)})}),r}const rG=new gm(new or),aG=["notebooks/","models/"];function iG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ra(),{data:a,isError:o,error:l,isSuccess:c}=br({queryKey:["models",t,n,r],queryFn:d=>rG.listModels(t,n,r,d)});return E.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),E.jsx(Zn,{}),E.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&E.jsx(mr,{text:"Fetching Models..."}),o&&E.jsx(ir,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&E.jsx(wR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:aG}),c&&a.data.length===0&&E.jsx(Ie,{variant:"body2",children:"No models found"})]})]})})}const oG=new Yk(new or),sG=["notebooks/"];function lG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ra(),{data:a,isError:o,error:l,isSuccess:c}=br({queryKey:["notebooks",t,n,r],queryFn:d=>oG.listNotebooks(t,n,r,d)});return E.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),E.jsx(Zn,{}),E.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&E.jsx(mr,{text:"Fetching Notebooks..."}),o&&E.jsx(ir,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&E.jsx(wR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:sG,navigate:e}),c&&a.data.length===0&&E.jsx(Ie,{variant:"body2",children:"No notebooks found"})]})]})})}const cG=new X9(new or);function uG(){const{projectName:e,packageName:t,versionId:n}=ra(),{data:r,isError:a,isLoading:o,error:l}=br({queryKey:["schedules",e,t,n],queryFn:c=>cG.listSchedules(e,t,n,c)});return o?E.jsx(mr,{text:"Fetching Schedules..."}):a?E.jsx(ir,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?E.jsx(zn,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:E.jsxs(na,{children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),E.jsx(Zn,{}),E.jsx(it,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:E.jsx(hb,{component:Mh,children:E.jsxs(id,{sx:{minWidth:300},size:"small",children:[E.jsx(op,{children:E.jsxs(ai,{children:[E.jsx(Ht,{align:"left",children:"Resource"}),E.jsx(Ht,{align:"left",children:"Schedule"}),E.jsx(Ht,{align:"left",children:"Action"}),E.jsx(Ht,{align:"left",children:"Connection"}),E.jsx(Ht,{align:"left",children:"Last Run"}),E.jsx(Ht,{align:"left",children:"Status"})]})}),E.jsx(od,{children:r.data.map(c=>E.jsxs(ai,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[E.jsx(Ht,{align:"left",children:c.resource}),E.jsx(Ht,{align:"left",children:c.schedule}),E.jsx(Ht,{align:"left",children:c.action}),E.jsx(Ht,{align:"left",children:c.connection}),E.jsx(Ht,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),E.jsx(Ht,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}const dG=`
|
|
164
|
+
.code-display pre {
|
|
165
|
+
margin: 0;
|
|
166
|
+
padding: 0;
|
|
167
|
+
}
|
|
168
|
+
`;function fG({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:a,hideEmbeddingIcon:o}){const[l,c]=Ne.useState(n),[d,f]=Ne.useState(a),[p,m]=Ne.useState(),[b,y]=Ne.useState(),[T,A]=Ne.useState(!1),{packageName:C,projectName:x}=ra(),D=ZI({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return N.useEffect(()=>{e.type==="code"&&ks(e.text,"malloy").then(S=>{m(S)})},[e]),N.useEffect(()=>{ks(D,"typescript").then(S=>{y(S)})},[D]),e.type==="markdown"&&E.jsx(zn,{variant:"outlined",children:E.jsx(na,{children:E.jsx(oE,{children:e.text})})})||e.type==="code"&&E.jsxs(zn,{variant:"outlined",sx:{height:"auto"},children:[(!r||!o&&e.result)&&E.jsxs(It,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[E.jsxs(It,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&E.jsx(Ie,{variant:"overline",children:E.jsx("b",{children:"Data source"})}),e.result&&E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Results"})]}),E.jsx(It,{sx:{flexDirection:"row"},children:E.jsxs(Vp,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&E.jsx(Sn,{title:"Explore Data Sources",children:E.jsx(An,{size:"small",onClick:()=>{A(!T),f(!1),c(!1)},children:E.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&E.jsx(Sn,{title:l?"Hide Code":"View Code",children:E.jsx(An,{size:"small",onClick:()=>{c(!l)},children:E.jsx(f3,{})})}),!o&&e.result&&E.jsx(Sn,{title:d?"Hide Embedding":"View Embedding",children:E.jsx(An,{size:"small",onClick:()=>{f(!d)},children:E.jsx($d,{})})})]})})]}),E.jsx(Hi,{in:d,timeout:"auto",unmountOnExit:!0,children:E.jsxs(It,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ie,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:b}}),E.jsx(Sn,{title:"Copy Embeddable Code",children:E.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:E.jsx(rm,{})})})]})}),E.jsxs(Hi,{in:l,timeout:"auto",unmountOnExit:!0,children:[E.jsx("style",{children:dG}),E.jsx(It,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),E.jsx(Hi,{in:T,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:E.jsx(c3,{sourceAndPaths:e.newSources.map(S=>({sourceInfo:JSON.parse(S),modelPath:t}))})}),e.result&&!T&&E.jsx(E.Fragment,{children:E.jsx(T3,{result:e.result,minHeight:300,maxHeight:700})})]})}const hG=new Yk(new or);function NR({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:a}){const[o,l]=Ne.useState(!1),[c,d]=Ne.useState(),{projectName:f,packageName:p,versionId:m}=ra(),b=pG(e,!0);N.useEffect(()=>{ks(b,"typescript").then(x=>{d(x)})},[o,b]);const{data:y,isSuccess:T,isError:A,error:C}=br({queryKey:["notebook",f,p,e,m],queryFn:async x=>(await hG.getNotebook(f,p,e,m,x)).data});return E.jsxs(zn,{variant:"outlined",children:[E.jsxs(na,{children:[E.jsxs(It,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!a&&E.jsx(Vp,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:E.jsx(Sn,{title:o?"Hide Embedding":"View Embedding",children:E.jsx(An,{size:"small",onClick:()=>{l(!o)},children:E.jsx($d,{})})})})]}),E.jsx(Hi,{in:o,timeout:"auto",unmountOnExit:!0,children:E.jsxs(It,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ie,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:c}})}),E.jsx(Sn,{title:"Copy Embeddable Code",children:E.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(b)},children:E.jsx(rm,{})})})]})})]}),E.jsx(Wb,{children:E.jsxs(It,{spacing:2,component:"section",children:[!T&&!A&&E.jsx(mr,{text:"Fetching Notebook..."}),T&&y.notebookCells?.map((x,D)=>E.jsx(fG,{cell:x,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:a},D)),A&&C.status===404&&E.jsxs(Ie,{variant:"body2",children:[E.jsx("code",{children:`${f} > ${p} > ${e}`})," ","not found."]}),A&&C.status!==404&&E.jsx(ir,{error:C,context:`${f} > ${p} > ${e}`})]})})]})}function pG(e,t){return`<Notebook
|
|
169
|
+
notebookPath="${e}"
|
|
170
|
+
expandCodeCells={${t}}
|
|
171
|
+
/>`}const mG=Qt(E.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let gG=class Zh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Zh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
172
|
+
`+t.value:`>>>malloy
|
|
173
|
+
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
174
|
+
`+t.value+`
|
|
175
|
+
`).join(`
|
|
176
|
+
`)}static newWorkbook(t){return new Zh(t,void 0)}static async loadWorkbook(t,n){let r;try{const a=await t.getWorkbook(n);a&&(r=JSON.parse(a))}catch{r={models:[],cells:[],workbookPath:n}}return new Zh(t,r)}};const OR=N.createContext(void 0),yG=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return E.jsx(OR.Provider,{value:r,children:n})},RE=()=>{const e=N.useContext(OR);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},Ch=Qt(E.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),dC=Qt(E.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));const Rm=function(e){if(e==null)return TG;if(typeof e=="function")return wm(e);if(typeof e=="object")return Array.isArray(e)?bG(e):EG(e);if(typeof e=="string")return vG(e);throw new Error("Expected function, string, or object as test")};function bG(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rm(e[n]);return wm(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function EG(e){const t=e;return wm(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function vG(e){return wm(t);function t(n){return n&&n.type===e}}function wm(e){return t;function t(n,r,a){return!!(_G(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function TG(){return!0}function _G(e){return e!==null&&typeof e=="object"&&"type"in e}const LR=[],xG=!0,Mp=!1,Wu="skip";function MR(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Rm(a),l=r?-1:1;c(e,void 0,[])();function c(d,f,p){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const y=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=LR,T,A,C;if((!t||o(d,f,p[p.length-1]||void 0))&&(y=AG(n(d,p)),y[0]===Mp))return y;if("children"in d&&d.children){const x=d;if(x.children&&y[0]!==Wu)for(A=(r?x.children.length:-1)+l,C=p.concat(x);A>-1&&A<x.children.length;){const D=x.children[A];if(T=c(D,A,C)(),T[0]===Mp)return T;A=typeof T[1]=="number"?T[1]:A+l}}return y}}}function AG(e){return Array.isArray(e)?e:typeof e=="number"?[xG,e]:e==null?LR:[e]}function $r(e,t,n,r){let a,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,a=n):(o=t,l=n,a=r),MR(e,o,c,a);function c(d,f){const p=f[f.length-1],m=p?p.children.indexOf(d):void 0;return l(d,m,p)}}const SG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,CG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,DG=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{$r(n,"blockquote",(r,a,o)=>{let l="",c="",d=!0,f=r.children.map(p=>{if(d&&p.type==="paragraph"){const m=p.children[0],b=m.type==="text"?m.value:"",y=e?CG:SG,T=b.match(y);if(T&&(d=!1,l=T[1].toLocaleLowerCase(),c=e&&T[2]||l.toLocaleUpperCase(),b.includes(`
|
|
177
|
+
`)&&(p.children[0]={type:"text",value:b.replace(y,"").replace(/^\n+/,"")}),!b.includes(`
|
|
178
|
+
`))){const A=[];p.children.forEach((C,x)=>{x!=0&&(x==1&&C.type==="break"||A.push(C))}),p.children=[...A]}}return p});l&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${l}`,dir:"auto"}},f.unshift({type:"paragraph",children:[kG(l),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...f]})};function kG(e){let t=RG[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const RG={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function wG(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function PR(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?PR(t.parentElement):null}function IG(e){var t=n=>{var r=PR(n.target);r&&(r.classList.add("active"),wG(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}function ta(e,t,n,r){const a=e.length;let o=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function _a(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const fC={}.hasOwnProperty;function $R(e){const t={};let n=-1;for(;++n<e.length;)NG(t,e[n]);return t}function NG(e,t){let n;for(n in t){const r=(fC.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){fC.call(r,o)||(r[o]=[]);const l=a[o];OG(r[o],Array.isArray(l)?l:l?[l]:[])}}}function OG(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ta(e,0,0,r)}const Ar=Uo(/[A-Za-z]/),pr=Uo(/[\dA-Za-z]/),LG=Uo(/[#-'*+\--9=?A-Z^-~]/);function Pp(e){return e!==null&&(e<32||e===127)}const Wy=Uo(/\d/),MG=Uo(/[\dA-Fa-f]/),PG=Uo(/[!-/:-@[-`{-~]/);function Xe(e){return e!==null&&e<-2}function Yt(e){return e!==null&&(e<0||e===32)}function _t(e){return e===-2||e===-1||e===32}const Im=Uo(/\p{P}|\p{S}/u),Os=Uo(/\s/);function Uo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const $G={tokenize:zG,partial:!0},FR={tokenize:GG,partial:!0},jR={tokenize:VG,partial:!0},BR={tokenize:qG,partial:!0},FG={tokenize:YG,partial:!0},UR={name:"wwwAutolink",tokenize:UG,previous:zR},HR={name:"protocolAutolink",tokenize:HG,previous:GR},Yi={name:"emailAutolink",tokenize:BG,previous:VR},ui={};function jG(){return{text:ui}}let is=48;for(;is<123;)ui[is]=Yi,is++,is===58?is=65:is===91&&(is=97);ui[43]=Yi;ui[45]=Yi;ui[46]=Yi;ui[95]=Yi;ui[72]=[Yi,HR];ui[104]=[Yi,HR];ui[87]=[Yi,UR];ui[119]=[Yi,UR];function BG(e,t,n){const r=this;let a,o;return l;function l(m){return!Ky(m)||!VR.call(r,r.previous)||wE(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Ky(m)?(e.consume(m),c):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check(FG,p,f)(m):m===45||m===95||pr(m)?(o=!0,e.consume(m),d):p(m)}function f(m){return e.consume(m),a=!0,d}function p(m){return o&&a&&Ar(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function UG(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!zR.call(r,r.previous)||wE(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($G,e.attempt(FR,e.attempt(jR,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function HG(e,t,n){const r=this;let a="",o=!1;return l;function l(m){return(m===72||m===104)&&GR.call(r,r.previous)&&!wE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(Ar(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),o?f:(o=!0,d)):n(m)}function f(m){return m===null||Pp(m)||Yt(m)||Os(m)||Im(m)?n(m):e.attempt(FR,e.attempt(jR,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function zG(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function GG(e,t,n){let r,a,o;return l;function l(f){return f===46||f===95?e.check(BR,d,c)(f):f===null||Yt(f)||Os(f)||f!==45&&Im(f)?d(f):(o=!0,e.consume(f),l)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),l}function d(f){return a||r||!o?n(f):t(f)}}function VG(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(BR,t,o)(l):l===null||Yt(l)||Os(l)?t(l):(e.consume(l),a)}function o(l){return l===41&&r++,e.consume(l),a}}function qG(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||Yt(c)||Os(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Yt(c)||Os(c)?t(c):r(c)}function o(c){return Ar(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):Ar(c)?(e.consume(c),l):n(c)}}function YG(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return pr(o)?n(o):t(o)}}function zR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Yt(e)}function GR(e){return!Ar(e)}function VR(e){return!(e===47||Ky(e))}function Ky(e){return e===43||e===45||e===46||e===95||pr(e)}function wE(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function St(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(d){return _t(d)?(e.enter(n),c(d)):t(d)}function c(d){return _t(d)&&o++<a?(e.consume(d),c):(e.exit(n),t(d))}}function Ma(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xd={partial:!0,tokenize:QG};function QG(e,t,n){return r;function r(o){return _t(o)?St(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||Xe(o)?t(o):n(o)}}const WG={tokenize:rV,partial:!0};function KG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:eV,continuation:{tokenize:tV},exit:nV}},text:{91:{name:"gfmFootnoteCall",tokenize:JG},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XG,resolveTo:ZG}}}}function XG(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!l||!l._balanced)return n(d);const f=Ma(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function ZG(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function JG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return c;function c(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(o>999||m===93&&!l||m===null||m===91||Yt(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(Ma(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return Yt(m)||(l=!0),o++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}}function eV(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,c;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(T)}function p(T){if(l>999||T===93&&!c||T===null||T===91||Yt(T))return n(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return o=Ma(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Yt(T)||(c=!0),l++,e.consume(T),T===92?m:p}function m(T){return T===91||T===92||T===93?(e.consume(T),l++,p):p(T)}function b(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(o)||a.push(o),St(e,y,"gfmFootnoteDefinitionWhitespace")):n(T)}function y(T){return t(T)}}function tV(e,t,n){return e.check(Xd,t,e.attempt(WG,t,n))}function nV(e){e.exit("gfmFootnoteDefinition")}function rV(e,t,n){const r=this;return St(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function rc(e){if(e===null||Yt(e)||Os(e))return 1;if(Im(e))return 2}function Nm(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function aV(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let d=c;for(;d--;)if(o[d][0]==="exit"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[d][1].end.offset-o[d][1].start.offset){o[c][1].type="strikethroughSequence",o[d][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[d][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[d][1].end),end:Object.assign({},o[c][1].start)},m=[["enter",f,l],["enter",o[d][1],l],["exit",o[d][1],l],["enter",p,l]],b=l.parser.constructs.insideSpan.null;b&&ta(m,m.length,0,Nm(b,o.slice(d+1,c),l)),ta(m,m.length,0,[["exit",p,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",f,l]]),ta(o,d-1,c-d+3,m),c=d+m.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,l,c){const d=this.previous,f=this.events;let p=0;return m;function m(y){return d===126&&f[f.length-1][1].type!=="characterEscape"?c(y):(o.enter("strikethroughSequenceTemporary"),b(y))}function b(y){const T=rc(d);if(y===126)return p>1?c(y):(o.consume(y),p++,b);if(p<2&&!t)return c(y);const A=o.exit("strikethroughSequenceTemporary"),C=rc(y);return A._open=!C||C===2&&!!T,A._close=!T||T===2&&!!C,l(y)}}}let iV=class{constructor(){this.map=[]}add(t,n,r){oV(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}};function oV(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function sV(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function lV(){return{flow:{null:{name:"table",tokenize:cV,resolveAll:uV}}}}function cV(e,t,n){const r=this;let a=0,o=0,l;return c;function c(k){let H=r.events.length-1;for(;H>-1;){const re=r.events[H][1].type;if(re==="lineEnding"||re==="linePrefix")H--;else break}const Q=H>-1?r.events[H][1].type:null,K=Q==="tableHead"||Q==="tableRow"?w:d;return K===w&&r.parser.lazy[r.now().line]?n(k):K(k)}function d(k){return e.enter("tableHead"),e.enter("tableRow"),f(k)}function f(k){return k===124||(l=!0,o+=1),p(k)}function p(k){return k===null?n(k):Xe(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),y):n(k):_t(k)?St(e,p,"whitespace")(k):(o+=1,l&&(l=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),m(k)))}function m(k){return k===null||k===124||Yt(k)?(e.exit("data"),p(k)):(e.consume(k),k===92?b:m)}function b(k){return k===92||k===124?(e.consume(k),m):m(k)}function y(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,_t(k)?St(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):M(k)}function A(k){return _t(k)?St(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||Xe(k)?L(k):M(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),D(k)):M(k)}function D(k){return k===45?(e.consume(k),D):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return _t(k)?St(e,L,"whitespace")(k):L(k)}function L(k){return k===124?T(k):k===null||Xe(k)?!l||a!==o?M(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):M(k)}function M(k){return n(k)}function w(k){return e.enter("tableRow"),V(k)}function V(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V):k===null||Xe(k)?(e.exit("tableRow"),t(k)):_t(k)?St(e,V,"whitespace")(k):(e.enter("data"),ne(k))}function ne(k){return k===null||k===124||Yt(k)?(e.exit("data"),V(k)):(e.consume(k),k===92?W:ne)}function W(k){return k===92||k===124?(e.consume(k),ne):ne(k)}}function uV(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,f,p,m;const b=new iV;for(;++n<e.length;){const y=e[n],T=y[1];y[0]==="enter"?T.type==="tableHead"?(c=!1,d!==0&&(hC(b,t,d,f,p),p=void 0,d=0),f={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},b.add(n,0,[["enter",f,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,m=void 0,o=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},b.add(n,0,[["enter",p,t]])),a=T.type==="tableDelimiterRow"?2:p?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],m=Dh(b,t,o,a,void 0,m),o=[0,0,0,0]),l[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],m=Dh(b,t,o,a,void 0,m)),o=l,l=[o[1],n,0,0])):T.type==="tableHead"?(c=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,o[1]!==0?(l[0]=l[1],m=Dh(b,t,o,a,n,m)):l[1]!==0&&(m=Dh(b,t,l,a,n,m)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&hC(b,t,d,f,p),b.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=sV(t.events,n))}return e}function Dh(e,t,n,r,a,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},Pl(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const d=Pl(t.events,n[1]);if(o={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const f=Pl(t.events,n[2]),p=Pl(t.events,n[3]),m={type:c,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const b=t.events[n[2]],y=t.events[n[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,A=n[3]-n[2]-1;e.add(T,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(o.end=Object.assign({},Pl(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function hC(e,t,n,r,a){const o=[],l=Pl(t.events,n);a&&(a.end=Object.assign({},l),o.push(["exit",a,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Pl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const dV={name:"tasklistCheck",tokenize:hV};function fV(){return{text:{91:dV}}}function hV(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),o)}function o(d){return Yt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Xe(d)?t(d):_t(d)?e.check({tokenize:pV},t,n)(d):n(d)}}function pV(e,t,n){return St(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function mV(e){return $R([jG(),KG(),aV(e),lV(),fV()])}function gV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function yV(e,t,n){const r=Rm((n||{}).ignore||[]),a=bV(t);let o=-1;for(;++o<a.length;)MR(e,"text",l);function l(d,f){let p=-1,m;for(;++p<f.length;){const b=f[p],y=m?m.children:void 0;if(r(b,y?y.indexOf(b):void 0,m))return;m=b}if(m)return c(d,f)}function c(d,f){const p=f[f.length-1],m=a[o][0],b=a[o][1];let y=0;const T=p.children.indexOf(d);let A=!1,C=[];m.lastIndex=0;let x=m.exec(d.value);for(;x;){const D=x.index,S={index:x.index,input:x.input,stack:[...f,d]};let L=b(...x,S);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?m.lastIndex=D+1:(y!==D&&C.push({type:"text",value:d.value.slice(y,D)}),Array.isArray(L)?C.push(...L):L&&C.push(L),y=D+x[0].length,A=!0),!m.global)break;x=m.exec(d.value)}return A?(y<d.value.length&&C.push({type:"text",value:d.value.slice(y)}),p.children.splice(T,1,...C)):C=[d],T+C.length}}function bV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([EV(a[0]),vV(a[1])])}return t}function EV(e){return typeof e=="string"?new RegExp(gV(e),"g"):e}function vV(e){return typeof e=="function"?e:function(){return e}}const I1="phrasing",N1=["autolink","link","image","label"];function TV(){return{transforms:[kV],enter:{literalAutolink:xV,literalAutolinkEmail:O1,literalAutolinkHttp:O1,literalAutolinkWww:O1},exit:{literalAutolink:DV,literalAutolinkEmail:CV,literalAutolinkHttp:AV,literalAutolinkWww:SV}}}function _V(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:I1,notInConstruct:N1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:I1,notInConstruct:N1},{character:":",before:"[ps]",after:"\\/",inConstruct:I1,notInConstruct:N1}]}}function xV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function O1(e){this.config.enter.autolinkProtocol.call(this,e)}function AV(e){this.config.exit.autolinkProtocol.call(this,e)}function SV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function CV(e){this.config.exit.autolinkEmail.call(this,e)}function DV(e){this.exit(e)}function kV(e){yV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,RV],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,wV]],{ignore:["link","linkReference"]})}function RV(e,t,n,r,a){let o="";if(!qR(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!IV(n)))return!1;const l=NV(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function wV(e,t,n,r){return!qR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function IV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function NV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=bp(e,"(");let o=bp(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function qR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Os(n)||Im(n))&&(!t||n!==47)}YR.peek=UV;function OV(){this.buffer()}function LV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function MV(){this.buffer()}function PV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $V(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function FV(e){this.exit(e)}function jV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function BV(e){this.exit(e)}function UV(){return"["}function YR(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),l(),o+=a.move("]"),o}function HV(){return{enter:{gfmFootnoteCallString:OV,gfmFootnoteCall:LV,gfmFootnoteDefinitionLabelString:MV,gfmFootnoteDefinition:PV},exit:{gfmFootnoteCallString:$V,gfmFootnoteCall:FV,gfmFootnoteDefinitionLabelString:jV,gfmFootnoteDefinition:BV}}}function zV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:YR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,l){const c=o.createTracker(l);let d=c.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return d+=c.move(o.safe(o.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
179
|
+
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?QR:GV))),f(),d}}function GV(e,t,n){return t===0?e:QR(e,t,n)}function QR(e,t,n){return(n?"":" ")+e}const VV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];WR.peek=KV;function qV(){return{canContainEols:["delete"],enter:{strikethrough:QV},exit:{strikethrough:WV}}}function YV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VV}],handlers:{delete:WR}}}function QV(e){this.enter({type:"delete",children:[]},e)}function WV(e){this.exit(e)}function WR(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),o(),l}function KV(){return"~"}function XV(e){return e.length}function ZV(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||XV,o=[],l=[],c=[],d=[];let f=0,p=-1;for(;++p<e.length;){const A=[],C=[];let x=-1;for(e[p].length>f&&(f=e[p].length);++x<e[p].length;){const D=JV(e[p][x]);if(n.alignDelimiters!==!1){const S=a(D);C[x]=S,(d[x]===void 0||S>d[x])&&(d[x]=S)}A.push(D)}l[p]=A,c[p]=C}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<f;)o[m]=pC(r[m]);else{const A=pC(r);for(;++m<f;)o[m]=A}m=-1;const b=[],y=[];for(;++m<f;){const A=o[m];let C="",x="";A===99?(C=":",x=":"):A===108?C=":":A===114&&(x=":");let D=n.alignDelimiters===!1?1:Math.max(1,d[m]-C.length-x.length);const S=C+"-".repeat(D)+x;n.alignDelimiters!==!1&&(D=C.length+D+x.length,D>d[m]&&(d[m]=D),y[m]=D),b[m]=S}l.splice(1,0,b),c.splice(1,0,y),p=-1;const T=[];for(;++p<l.length;){const A=l[p],C=c[p];m=-1;const x=[];for(;++m<f;){const D=A[m]||"";let S="",L="";if(n.alignDelimiters!==!1){const M=d[m]-(C[m]||0),w=o[m];w===114?S=" ".repeat(M):w===99?M%2?(S=" ".repeat(M/2+.5),L=" ".repeat(M/2-.5)):(S=" ".repeat(M/2),L=S):L=" ".repeat(M)}n.delimiterStart!==!1&&!m&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||m)&&x.push(" "),n.alignDelimiters!==!1&&x.push(S),x.push(D),n.alignDelimiters!==!1&&x.push(L),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||m!==f-1)&&x.push("|")}T.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return T.join(`
|
|
180
|
+
`)}function JV(e){return e==null?"":String(e)}function pC(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function eq(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),tq);return a(),l}function tq(e,t,n){return">"+(n?"":" ")+e}function nq(e,t){return mC(e,t.inConstruct,!0)&&!mC(e,t.notInConstruct,!1)}function mC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function gC(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
181
|
+
`&&nq(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
182
|
+
`}function rq(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>l&&(l=o):o=1,a=r+t.length,r=n.indexOf(t,a);return l}function aq(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iq(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function oq(e,t,n,r){const a=iq(n),o=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(aq(e,n)){const m=n.enter("codeIndented"),b=n.indentLines(o,sq);return m(),b}const c=n.createTracker(r),d=a.repeat(Math.max(rq(o,a)+1,3)),f=n.enter("codeFenced");let p=c.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
|
|
183
|
+
`,encode:["`"],...c.current()})),m()}return p+=c.move(`
|
|
184
|
+
`),o&&(p+=c.move(o+`
|
|
185
|
+
`)),p+=c.move(d),f(),p}function sq(e,t,n){return(n?"":" ")+e}function IE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lq(e,t,n,r){const a=IE(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
186
|
+
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),l(),f}function cq(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Rd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $p(e,t,n){const r=rc(e),a=rc(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}KR.peek=uq;function KR(e,t,n,r){const a=cq(n),o=n.enter("emphasis"),l=n.createTracker(r),c=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=$p(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Rd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),b=$p(r.after.charCodeAt(0),m,a);b.inside&&(d=d.slice(0,-1)+Rd(m));const y=l.move(a);return o(),n.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},c+d+y}function uq(e,t,n){return n.options.emphasis||"*"}const dq={};function NE(e,t){const n=dq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return XR(e,r,a)}function XR(e,t,n){if(fq(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yC(e.children,t,n)}return Array.isArray(e)?yC(e,t,n):""}function yC(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=XR(e[a],t,n);return r.join("")}function fq(e){return!!(e&&typeof e=="object")}function hq(e,t){let n=!1;return $r(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Mp}),!!((!e.depth||e.depth<3)&&NE(e)&&(t.options.setext||n))}function pq(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(hq(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),b=n.containerPhrasing(e,{...o.current(),before:`
|
|
187
|
+
`,after:`
|
|
188
|
+
`});return m(),p(),b+`
|
|
189
|
+
`+(a===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
190
|
+
`))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");o.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
191
|
+
`,...o.current()});return/^[\t ]/.test(f)&&(f=Rd(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),d(),c(),f}ZR.peek=mq;function ZR(e){return e.value||""}function mq(){return"<"}JR.peek=gq;function JR(e,t,n,r){const a=IE(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),l(),f}function gq(){return"!"}ew.peek=yq;function ew(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,o(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function yq(){return"!"}tw.peek=bq;function tw(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function bq(){return"`"}function nw(e,t){const n=NE(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}rw.peek=Eq;function rw(e,t,n,r){const a=IE(n),o=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(nw(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),c(),n.stack=p,m}c=n.enter("link"),d=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(d=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${o}`),f+=l.move(" "+a),f+=l.move(n.safe(e.title,{before:f,after:a,...l.current()})),f+=l.move(a),d()),f+=l.move(")"),c(),f}function Eq(e,t,n){return nw(e,n)?"<":"["}aw.peek=vq;function aw(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,o(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function vq(){return"["}function OE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Tq(e){const t=OE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _q(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function iw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function xq(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?_q(n):OE(n);const c=e.ordered?l==="."?")":".":Tq(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),iw(n)===l&&p){let m=-1;for(;++m<e.children.length;){const b=e.children[m];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,a(),f}function Aq(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Sq(e,t,n,r){const a=Aq(n);let o=n.bulletCurrent||OE(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(l-o.length)),c.shift(l);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),p);return d(),f;function p(m,b,y){return b?(y?"":" ".repeat(l))+m:(y?o:o+" ".repeat(l-o.length))+m}}function Cq(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),a(),l}const Dq=Rm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kq(e,t,n,r){return(e.children.some(function(a){return Dq(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Rq(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ow.peek=wq;function ow(e,t,n,r){const a=Rq(n),o=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=$p(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Rd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),b=$p(r.after.charCodeAt(0),m,a);b.inside&&(d=d.slice(0,-1)+Rd(m));const y=l.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},c+d+y}function wq(e,t,n){return n.options.strong||"*"}function Iq(e,t,n,r){return n.safe(e.value,r)}function Nq(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Oq(e,t,n){const r=(iw(n)+(n.options.ruleSpaces?" ":"")).repeat(Nq(n));return n.options.ruleSpaces?r.slice(0,-1):r}const sw={blockquote:eq,break:gC,code:oq,definition:lq,emphasis:KR,hardBreak:gC,heading:pq,html:ZR,image:JR,imageReference:ew,inlineCode:tw,link:rw,linkReference:aw,list:xq,listItem:Sq,paragraph:Cq,root:kq,strong:ow,text:Iq,thematicBreak:Oq};function Lq(){return{enter:{table:Mq,tableData:bC,tableHeader:bC,tableRow:$q},exit:{codeText:Fq,table:Pq,tableData:L1,tableHeader:L1,tableRow:L1}}}function Mq(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Pq(e){this.exit(e),this.data.inTable=void 0}function $q(e){this.enter({type:"tableRow",children:[]},e)}function L1(e){this.exit(e)}function bC(e){this.enter({type:"tableCell",children:[]},e)}function Fq(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,jq));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function jq(e,t){return t==="|"?t:e}function Bq(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
192
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:l,tableCell:d,tableRow:c}};function l(y,T,A,C){return f(p(y,A,C),y.align)}function c(y,T,A,C){const x=m(y,A,C),D=f([x]);return D.slice(0,D.indexOf(`
|
|
193
|
+
`))}function d(y,T,A,C){const x=A.enter("tableCell"),D=A.enter("phrasing"),S=A.containerPhrasing(y,{...C,before:o,after:o});return D(),x(),S}function f(y,T){return ZV(y,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function p(y,T,A){const C=y.children;let x=-1;const D=[],S=T.enter("table");for(;++x<C.length;)D[x]=m(C[x],T,A);return S(),D}function m(y,T,A){const C=y.children;let x=-1;const D=[],S=T.enter("tableRow");for(;++x<C.length;)D[x]=d(C[x],y,T,A);return S(),D}function b(y,T,A){let C=sw.inlineCode(y,T,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Uq(){return{exit:{taskListCheckValueChecked:EC,taskListCheckValueUnchecked:EC,paragraph:zq}}}function Hq(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Gq}}}function EC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function zq(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,l;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Gq(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(l);let d=sw.listItem(e,t,n,{...r,...c.current()});return o&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(p){return p+l}}function Vq(){return[TV(),HV(),qV(),Lq(),Uq()]}function qq(e){return{extensions:[_V(),zV(e),YV(),Bq(e),Hq()]}}const Yq={};function Qq(e){const t=this,n=e||Yq,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(mV(n)),o.push(Vq()),l.push(qq(n))}function vC(e){if(e)throw e}var M1,TC;function Wq(){if(TC)return M1;TC=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!p)return!1;var m;for(m in d);return typeof m>"u"||e.call(d,m)},l=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},c=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return M1=function d(){var f,p,m,b,y,T,A=arguments[0],C=1,x=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<x;++C)if(f=arguments[C],f!=null)for(p in f)m=c(A,p),b=c(f,p),A!==b&&(D&&b&&(o(b)||(y=a(b)))?(y?(y=!1,T=m&&a(m)?m:[]):T=m&&o(m)?m:{},l(A,{name:p,newValue:d(D,T,b)})):typeof b<"u"&&l(A,{name:p,newValue:b}));return A},M1}var Kq=Wq();const P1=Cm(Kq);function Xy(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const Xq=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r};function Zq(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(d,...f){const p=e[++o];let m=-1;if(d){l(d);return}for(;++m<a.length;)(f[m]===null||f[m]===void 0)&&(f[m]=a[m]);a=f,p?Jq(p,c)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Jq(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(a);try{d=e.apply(this,l)}catch(f){const p=f;if(c&&n)throw p;return a(p)}c||(d&&d.then&&typeof d.then=="function"?d.then(o,a):d instanceof Error?a(d):o(d))}function a(l,...c){n||(n=!0,t(l,...c))}function o(l){a(null,l)}}const ei={basename:eY,dirname:tY,extname:nY,join:rY,sep:"/"};function eY(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zd(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else l<0&&(o=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function tY(e){if(Zd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nY(e){Zd(e);let t=e.length,n=-1,r=0,a=-1,o=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function rY(...e){let t=-1,n;for(;++t<e.length;)Zd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":aY(n)}function aY(e){Zd(e);const t=e.codePointAt(0)===47;let n=iY(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function iY(e,t){let n="",r=0,a=-1,o=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||o===1))if(a!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length>0){n="",r=0,a=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else c===46&&o>-1?o++:o=-1}return n}function Zd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const oY={cwd:sY};function sY(){return"/"}function Zy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lY(e){if(typeof e=="string")e=new URL(e);else if(!Zy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return cY(e)}function cY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}function Ku(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_C(e.position):"start"in e||"end"in e?_C(e):"line"in e||"column"in e?Jy(e):""}function Jy(e){return xC(e&&e.line)+":"+xC(e&&e.column)}function _C(e){return Jy(e&&e.start)+"-"+Jy(e&&e.end)}function xC(e){return e&&typeof e=="number"?e:1}let gr=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(l=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?o.ruleId=r:(o.source=r.slice(0,d),o.ruleId=r.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Ku(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};gr.prototype.file="";gr.prototype.name="";gr.prototype.reason="";gr.prototype.message="";gr.prototype.stack="";gr.prototype.column=void 0;gr.prototype.line=void 0;gr.prototype.ancestors=void 0;gr.prototype.cause=void 0;gr.prototype.fatal=void 0;gr.prototype.place=void 0;gr.prototype.ruleId=void 0;gr.prototype.source=void 0;const $1=["history","path","basename","stem","extname","dirname"];let lw=class{constructor(t){let n;t?Zy(t)?n={path:t}:typeof t=="string"||uY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":oY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<$1.length;){const o=$1[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)$1.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ei.basename(this.path):void 0}set basename(t){j1(t,"basename"),F1(t,"basename"),this.path=ei.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ei.dirname(this.path):void 0}set dirname(t){AC(this.basename,"dirname"),this.path=ei.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ei.extname(this.path):void 0}set extname(t){if(F1(t,"extname"),AC(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ei.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Zy(t)&&(t=lY(t)),j1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ei.basename(this.path,this.extname):void 0}set stem(t){j1(t,"stem"),F1(t,"stem"),this.path=ei.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new gr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function F1(e,t){if(e&&e.includes(ei.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ei.sep+"`")}function j1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function AC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function uY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dY={}.hasOwnProperty;let fY=class cw extends Xq{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=Zq()}copy(){const t=new cw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(P1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(H1("data",this.frozen),this.namespace[t]=n,this):dY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(H1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=kh(t),r=this.parser||this.Parser;return B1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),B1("process",this.parser||this.Parser),U1("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,l){const c=kh(t),d=r.parse(c);r.run(d,c,function(p,m,b){if(p||!m||!b)return f(p);const y=m,T=r.stringify(y,b);mY(T)?b.value=T:b.result=T,f(p,b)});function f(p,m){p||!m?l(p):o?o(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),B1("processSync",this.parser||this.Parser),U1("processSync",this.compiler||this.Compiler),this.process(t,a),CC("processSync","process",n),r;function a(o,l){n=!0,vC(o),r=l}}run(t,n,r){SC(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,c){const d=kh(n);a.run(t,d,f);function f(p,m,b){const y=m||t;p?c(p):l?l(y):r(void 0,y,b)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),CC("runSync","run",r),a;function o(l,c){vC(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=kh(n),a=this.compiler||this.Compiler;return U1("stringify",a),SC(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(H1("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...m]=f;d(p,m)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))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");c(f.plugins),f.settings&&(a.settings=P1(!0,a.settings,f.settings))}function c(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const m=f[p];o(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,p){let m=-1,b=-1;for(;++m<r.length;)if(r[m][0]===f){b=m;break}if(b===-1)r.push([f,...p]);else if(p.length>0){let[y,...T]=p;const A=r[b][1];Xy(A)&&Xy(y)&&(y=P1(!0,A,y)),r[b]=[f,y,...T]}}}};const hY=new fY().freeze();function B1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function U1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function H1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function SC(e){if(!Xy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function CC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kh(e){return pY(e)?e:new lw(e)}function pY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mY(e){return typeof e=="string"||gY(e)}function gY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function uw(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const DC=document.createElement("i");function LE(e){const t="&"+e+";";DC.innerHTML=t;const n=DC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const yY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bY(e){return e.replace(yY,EY)}function EY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return uw(n.slice(a?2:1),a?16:10)}return LE(n)||e}let vY=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Cu(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Cu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Cu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cu(this.left,n.reverse())}}};function Cu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function dw(e){const t={};let n=-1,r,a,o,l,c,d,f;const p=new vY(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,TY(p,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(l=p.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},c=p.slice(a,n),c.unshift(r),p.splice(a,n-a+1,c))}}return ta(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function TY(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],f={};let p,m,b=-1,y=n,T=0,A=0;const C=[A];for(;y;){for(;e.get(++a)[1]!==y;);o.push(a),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),m&&l.defineSkip(y.start),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=y,y=y.next}for(y=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(A=b+1,C.push(A),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(l.events=[],y?(y._tokenizer=void 0,y.previous=void 0):C.pop(),b=C.length;b--;){const x=c.slice(C[b],C[b+1]),D=o.pop();d.push([D,D+x.length-1]),e.splice(D,2,x)}for(d.reverse(),b=-1;++b<d.length;)f[T+d[b][0]]=T+d[b][1],T+=d[b][1]-d[b][0]-1;return f}function _Y(e){for(;!dw(e););return e}const xY={tokenize:AY};function AY(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),St(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Xe(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),l)}}const SY={tokenize:CY},kC={tokenize:DY};function CY(e){const t=this,n=[];let r=0,a,o,l;return c;function c(S){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,d,f)(S)}return f(S)}function d(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const L=t.events.length;let M=L,w;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){w=t.events[M][1].end;break}x(r);let V=L;for(;V<t.events.length;)t.events[V][1].end={...w},V++;return ta(t.events,M+1,0,t.events.slice(L)),t.events.length=V,f(S)}return c(S)}function f(S){if(r===n.length){if(!a)return b(S);if(a.currentConstruct&&a.currentConstruct.concrete)return T(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(kC,p,m)(S)}function p(S){return a&&D(),x(r),b(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,T(S)}function b(S){return t.containerState={},e.attempt(kC,y,T)(S)}function y(S){return r++,n.push([t.currentConstruct,t.containerState]),b(S)}function T(S){if(S===null){a&&D(),x(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),A(S)}function A(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return Xe(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(S),A)}function C(S,L){const M=t.sliceStream(S);if(L&&M.push(null),S.previous=o,o&&(o.next=S),o=S,a.defineSkip(S.start),a.write(M),t.parser.lazy[S.start.line]){let w=a.events.length;for(;w--;)if(a.events[w][1].start.offset<l&&(!a.events[w][1].end||a.events[w][1].end.offset>l))return;const V=t.events.length;let ne=V,W,k;for(;ne--;)if(t.events[ne][0]==="exit"&&t.events[ne][1].type==="chunkFlow"){if(W){k=t.events[ne][1].end;break}W=!0}for(x(r),w=V;w<t.events.length;)t.events[w][1].end={...k},w++;ta(t.events,ne+1,0,t.events.slice(V)),t.events.length=w}}function x(S){let L=n.length;for(;L-- >S;){const M=n[L];t.containerState=M[1],M[0].exit.call(t,e)}n.length=S}function D(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function DY(e,t,n){return St(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const kY={resolve:wY,tokenize:IY},RY={partial:!0,tokenize:NY};function wY(e){return dw(e),e}function IY(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?o(c):Xe(c)?e.check(RY,l,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function NY(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),St(e,o,"linePrefix")}function o(l){if(l===null||Xe(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}const OY={tokenize:LY};function LY(e){const t=this,n=e.attempt(Xd,r,e.attempt(this.parser.constructs.flowInitial,a,St(e,e.attempt(this.parser.constructs.flow,a,e.attempt(kY,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const MY={resolveAll:hw()},PY=fw("string"),$Y=fw("text");function fw(e){return{resolveAll:hw(e==="text"?FY:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,l,c);return l;function l(p){return f(p)?o(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),d}function d(p){return f(p)?(n.exit("data"),o(p)):(n.consume(p),d)}function f(p){if(p===null)return!0;const m=a[p];let b=-1;if(m)for(;++b<m.length;){const y=m[b];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function hw(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function FY(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,l=-1,c=0,d;for(;o--;){const f=a[o];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(f===-2)d=!0,c++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const pw={continuation:{tokenize:BY},exit:UY,name:"blockQuote",tokenize:jY};function jY(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return _t(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function BY(e,t,n){const r=this;return a;function a(l){return _t(l)?St(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(pw,t,n)(l)}}function UY(e){e.exit("blockQuote")}const Jh={name:"thematicBreak",tokenize:HY};function HY(e,t,n){let r=0,a;return o;function o(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Xe(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),_t(f)?St(e,c,"whitespace")(f):c(f))}}const Nr={continuation:{tokenize:qY},exit:QY,name:"list",tokenize:VY},zY={partial:!0,tokenize:WY},GY={partial:!0,tokenize:YY};function VY(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(y){const T=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:Wy(y)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Jh,n,f)(y):f(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return Wy(y)&&++l<10?(e.consume(y),d):(!r.interrupt||l<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Xd,r.interrupt?n:p,e.attempt(zY,b,m))}function p(y){return r.containerState.initialBlankLine=!0,o++,b(y)}function m(y){return _t(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function qY(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xd,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!_t(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(GY,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(Nr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function YY(e,t,n){const r=this;return St(e,a,"listItemIndent",r.containerState.size+1);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function QY(e){e.exit(this.containerState.type)}function WY(e,t,n){const r=this;return St(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const l=r.events[r.events.length-1];return!_t(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}function mw(e,t,n,r,a,o,l,c,d){const f=d||Number.POSITIVE_INFINITY;let p=0;return m;function m(x){return x===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(x),e.exit(o),b):x===null||x===32||x===41||Pp(x)?n(x):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(x))}function b(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===62?(e.exit("chunkString"),e.exit(c),b(x)):x===null||x===60||Xe(x)?n(x):(e.consume(x),x===92?T:y)}function T(x){return x===60||x===62||x===92?(e.consume(x),y):y(x)}function A(x){return!p&&(x===null||x===41||Yt(x))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(x)):p<f&&x===40?(e.consume(x),p++,A):x===41?(e.consume(x),p--,A):x===null||x===32||x===40||Pp(x)?n(x):(e.consume(x),x===92?C:A)}function C(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function gw(e,t,n,r,a,o){const l=this;let c=0,d;return f;function f(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(o),p}function p(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(y):y===93?(e.exit(o),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Xe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||y===91||y===93||Xe(y)||c++>999?(e.exit("chunkString"),p(y)):(e.consume(y),d||(d=!_t(y)),y===92?b:m)}function b(y){return y===91||y===92||y===93?(e.consume(y),c++,m):m(y)}}function yw(e,t,n,r,a,o){let l;return c;function c(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),l=b===40?41:b,d):n(b)}function d(b){return b===l?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(o),f(b))}function f(b){return b===l?(e.exit(o),d(l)):b===null?n(b):Xe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),St(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===l||b===null||Xe(b)?(e.exit("chunkString"),f(b)):(e.consume(b),b===92?m:p)}function m(b){return b===l||b===92?(e.consume(b),p):p(b)}}function Xu(e,t){let n;return r;function r(a){return Xe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):_t(a)?St(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const KY={name:"definition",tokenize:ZY},XY={partial:!0,tokenize:JY};function ZY(e,t,n){const r=this;let a;return o;function o(y){return e.enter("definition"),l(y)}function l(y){return gw.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return a=Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return Yt(y)?Xu(e,f)(y):f(y)}function f(y){return mw(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(XY,m,m)(y)}function m(y){return _t(y)?St(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Xe(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function JY(e,t,n){return r;function r(c){return Yt(c)?Xu(e,a)(c):n(c)}function a(c){return yw(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return _t(c)?St(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Xe(c)?t(c):n(c)}}const z1={name:"codeIndented",tokenize:tQ},eQ={partial:!0,tokenize:nQ};function tQ(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),St(e,o,"linePrefix",5)(f)}function o(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):Xe(f)?e.attempt(eQ,l,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Xe(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function nQ(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):St(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Xe(l)?a(l):n(l)}}const RC={partial:!0,tokenize:aQ},wC={concrete:!0,name:"codeFenced",tokenize:rQ};function rQ(e,t,n){const r=this,a={partial:!0,tokenize:M};let o=0,l=0,c;return d;function d(w){return f(w)}function f(w){const V=r.events[r.events.length-1];return o=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,c=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(w)}function p(w){return w===c?(l++,e.consume(w),p):l<3?n(w):(e.exit("codeFencedFenceSequence"),_t(w)?St(e,m,"whitespace")(w):m(w))}function m(w){return w===null||Xe(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(RC,A,L)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===null||Xe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(w)):_t(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,y,"whitespace")(w)):w===96&&w===c?n(w):(e.consume(w),b)}function y(w){return w===null||Xe(w)?m(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(w))}function T(w){return w===null||Xe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(w)):w===96&&w===c?n(w):(e.consume(w),T)}function A(w){return e.attempt(a,L,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return o>0&&_t(w)?St(e,D,"linePrefix",o+1)(w):D(w)}function D(w){return w===null||Xe(w)?e.check(RC,A,L)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||Xe(w)?(e.exit("codeFlowValue"),D(w)):(e.consume(w),S)}function L(w){return e.exit("codeFenced"),t(w)}function M(w,V,ne){let W=0;return k;function k(me){return w.enter("lineEnding"),w.consume(me),w.exit("lineEnding"),H}function H(me){return w.enter("codeFencedFence"),_t(me)?St(w,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(me):Q(me)}function Q(me){return me===c?(w.enter("codeFencedFenceSequence"),K(me)):ne(me)}function K(me){return me===c?(W++,w.consume(me),K):W>=l?(w.exit("codeFencedFenceSequence"),_t(me)?St(w,re,"whitespace")(me):re(me)):ne(me)}function re(me){return me===null||Xe(me)?(w.exit("codeFencedFence"),V(me)):ne(me)}}}function aQ(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const IC={name:"setextUnderline",resolveTo:iQ,tokenize:oQ};function iQ(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function oQ(e,t,n){const r=this;let a;return o;function o(f){let p=r.events.length,m;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){m=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),_t(f)?St(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Xe(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const sQ=["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"],NC=["pre","script","style","textarea"],lQ={concrete:!0,name:"htmlFlow",resolveTo:dQ,tokenize:fQ},cQ={partial:!0,tokenize:pQ},uQ={partial:!0,tokenize:hQ};function dQ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fQ(e,t,n){const r=this;let a,o,l,c,d;return f;function f(I){return p(I)}function p(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),m}function m(I){return I===33?(e.consume(I),b):I===47?(e.consume(I),o=!0,A):I===63?(e.consume(I),a=3,r.interrupt?t:P):Ar(I)?(e.consume(I),l=String.fromCharCode(I),C):n(I)}function b(I){return I===45?(e.consume(I),a=2,y):I===91?(e.consume(I),a=5,c=0,T):Ar(I)?(e.consume(I),a=4,r.interrupt?t:P):n(I)}function y(I){return I===45?(e.consume(I),r.interrupt?t:P):n(I)}function T(I){const te="CDATA[";return I===te.charCodeAt(c++)?(e.consume(I),c===te.length?r.interrupt?t:Q:T):n(I)}function A(I){return Ar(I)?(e.consume(I),l=String.fromCharCode(I),C):n(I)}function C(I){if(I===null||I===47||I===62||Yt(I)){const te=I===47,Ce=l.toLowerCase();return!te&&!o&&NC.includes(Ce)?(a=1,r.interrupt?t(I):Q(I)):sQ.includes(l.toLowerCase())?(a=6,te?(e.consume(I),x):r.interrupt?t(I):Q(I)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):o?D(I):S(I))}return I===45||pr(I)?(e.consume(I),l+=String.fromCharCode(I),C):n(I)}function x(I){return I===62?(e.consume(I),r.interrupt?t:Q):n(I)}function D(I){return _t(I)?(e.consume(I),D):k(I)}function S(I){return I===47?(e.consume(I),k):I===58||I===95||Ar(I)?(e.consume(I),L):_t(I)?(e.consume(I),S):k(I)}function L(I){return I===45||I===46||I===58||I===95||pr(I)?(e.consume(I),L):M(I)}function M(I){return I===61?(e.consume(I),w):_t(I)?(e.consume(I),M):S(I)}function w(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),d=I,V):_t(I)?(e.consume(I),w):ne(I)}function V(I){return I===d?(e.consume(I),d=null,W):I===null||Xe(I)?n(I):(e.consume(I),V)}function ne(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Yt(I)?M(I):(e.consume(I),ne)}function W(I){return I===47||I===62||_t(I)?S(I):n(I)}function k(I){return I===62?(e.consume(I),H):n(I)}function H(I){return I===null||Xe(I)?Q(I):_t(I)?(e.consume(I),H):n(I)}function Q(I){return I===45&&a===2?(e.consume(I),G):I===60&&a===1?(e.consume(I),le):I===62&&a===4?(e.consume(I),Le):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),ye):Xe(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(cQ,ce,K)(I)):I===null||Xe(I)?(e.exit("htmlFlowData"),K(I)):(e.consume(I),Q)}function K(I){return e.check(uQ,re,ce)(I)}function re(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),me}function me(I){return I===null||Xe(I)?K(I):(e.enter("htmlFlowData"),Q(I))}function G(I){return I===45?(e.consume(I),P):Q(I)}function le(I){return I===47?(e.consume(I),l="",se):Q(I)}function se(I){if(I===62){const te=l.toLowerCase();return NC.includes(te)?(e.consume(I),Le):Q(I)}return Ar(I)&&l.length<8?(e.consume(I),l+=String.fromCharCode(I),se):Q(I)}function ye(I){return I===93?(e.consume(I),P):Q(I)}function P(I){return I===62?(e.consume(I),Le):I===45&&a===2?(e.consume(I),P):Q(I)}function Le(I){return I===null||Xe(I)?(e.exit("htmlFlowData"),ce(I)):(e.consume(I),Le)}function ce(I){return e.exit("htmlFlow"),t(I)}}function hQ(e,t,n){const r=this;return a;function a(l){return Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function pQ(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Xd,t,n)}}const mQ={name:"headingAtx",resolve:gQ,tokenize:yQ};function gQ(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ta(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function yQ(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&r++<6?(e.consume(p),l):p===null||Yt(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),d(p)):p===null||Xe(p)?(e.exit("atxHeading"),t(p)):_t(p)?St(e,c,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function d(p){return p===35?(e.consume(p),d):(e.exit("atxHeadingSequence"),c(p))}function f(p){return p===null||p===35||Yt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),f)}}const bw={name:"characterEscape",tokenize:bQ};function bQ(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return PG(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Ew={name:"characterReference",tokenize:EQ};function EQ(e,t,n){const r=this;let a=0,o,l;return c;function c(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,l=pr,p(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=MG,p):(e.enter("characterReferenceValue"),o=7,l=Wy,p(m))}function p(m){if(m===59&&a){const b=e.exit("characterReferenceValue");return l===pr&&!LE(r.sliceSerialize(b))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<o?(e.consume(m),p):n(m)}}const vQ={name:"codeText",previous:_Q,resolve:TQ,tokenize:xQ};function TQ(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function _Q(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xQ(e,t,n){let r=0,a,o;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),c(m)}function c(m){return m===96?(e.consume(m),r++,c):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(o=e.enter("codeTextSequence"),a=0,p(m)):Xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Xe(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function p(m){return m===96?(e.consume(m),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(o.type="codeTextData",f(m))}}const eb={name:"attention",resolveAll:AQ,tokenize:SQ};function AQ(e,t){let n=-1,r,a,o,l,c,d,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},b={...e[n][1].start};OC(m,-d),OC(b,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},o={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=_a(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=_a(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",o,t]]),f=_a(f,Nm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=_a(f,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=_a(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ta(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function SQ(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=rc(r);let o;return l;function l(d){return o=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===o)return e.consume(d),c;const f=e.exit("attentionSequence"),p=rc(d),m=!p||p===2&&a||n.includes(d),b=!a||a===2&&p||n.includes(r);return f._open=!!(o===42?m:m&&(a||!b)),f._close=!!(o===42?b:b&&(p||!m)),t(d)}}function OC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ME={name:"labelEnd",resolveAll:RQ,resolveTo:wQ,tokenize:IQ},CQ={tokenize:NQ},DQ={tokenize:OQ},kQ={tokenize:LQ};function RQ(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ta(e,0,e.length,n),e}function wQ(e,t){let n=e.length,r=0,a,o,l,c;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=_a(c,e.slice(o+1,o+r+3)),c=_a(c,[["enter",p,t]]),c=_a(c,Nm(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),c=_a(c,[["exit",p,t],e[l-2],e[l-1],["exit",f,t]]),c=_a(c,e.slice(l+1)),c=_a(c,[["exit",d,t]]),ta(e,o,e.length,c),e}function IQ(e,t,n){const r=this;let a=r.events.length,o,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(b){return o?o._inactive?m(b):(l=r.parser.defined.includes(Ma(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(CQ,p,l?p:m)(b):b===91?e.attempt(DQ,p,l?f:m)(b):l?p(b):m(b)}function f(b){return e.attempt(kQ,p,m)(b)}function p(b){return t(b)}function m(b){return o._balanced=!0,n(b)}}function NQ(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return Yt(m)?Xu(e,o)(m):o(m)}function o(m){return m===41?p(m):mw(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return Yt(m)?Xu(e,d)(m):p(m)}function c(m){return n(m)}function d(m){return m===34||m===39||m===40?yw(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function f(m){return Yt(m)?Xu(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function OQ(e,t,n){const r=this;return a;function a(c){return gw.call(r,e,o,l,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function LQ(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const MQ={name:"hardBreakEscape",tokenize:PQ};function PQ(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return Xe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const $Q={name:"labelStartLink",resolveAll:ME.resolveAll,tokenize:FQ};function FQ(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const jQ={name:"autolink",tokenize:BQ};function BQ(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return Ar(y)?(e.consume(y),l):y===64?n(y):f(y)}function l(y){return y===43||y===45||y===46||pr(y)?(r=1,c(y)):f(y)}function c(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||pr(y))&&r++<32?(e.consume(y),c):(r=0,f(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Pp(y)?n(y):(e.consume(y),d)}function f(y){return y===64?(e.consume(y),p):LG(y)?(e.consume(y),f):n(y)}function p(y){return pr(y)?m(y):n(y)}function m(y){return y===46?(e.consume(y),r=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||pr(y))&&r++<63){const T=y===45?b:m;return e.consume(y),T}return n(y)}}const UQ={name:"htmlText",tokenize:HQ};function HQ(e,t,n){const r=this;let a,o,l;return c;function c(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),M):P===63?(e.consume(P),S):Ar(P)?(e.consume(P),ne):n(P)}function f(P){return P===45?(e.consume(P),p):P===91?(e.consume(P),o=0,T):Ar(P)?(e.consume(P),D):n(P)}function p(P){return P===45?(e.consume(P),y):n(P)}function m(P){return P===null?n(P):P===45?(e.consume(P),b):Xe(P)?(l=m,le(P)):(e.consume(P),m)}function b(P){return P===45?(e.consume(P),y):m(P)}function y(P){return P===62?G(P):P===45?b(P):m(P)}function T(P){const Le="CDATA[";return P===Le.charCodeAt(o++)?(e.consume(P),o===Le.length?A:T):n(P)}function A(P){return P===null?n(P):P===93?(e.consume(P),C):Xe(P)?(l=A,le(P)):(e.consume(P),A)}function C(P){return P===93?(e.consume(P),x):A(P)}function x(P){return P===62?G(P):P===93?(e.consume(P),x):A(P)}function D(P){return P===null||P===62?G(P):Xe(P)?(l=D,le(P)):(e.consume(P),D)}function S(P){return P===null?n(P):P===63?(e.consume(P),L):Xe(P)?(l=S,le(P)):(e.consume(P),S)}function L(P){return P===62?G(P):S(P)}function M(P){return Ar(P)?(e.consume(P),w):n(P)}function w(P){return P===45||pr(P)?(e.consume(P),w):V(P)}function V(P){return Xe(P)?(l=V,le(P)):_t(P)?(e.consume(P),V):G(P)}function ne(P){return P===45||pr(P)?(e.consume(P),ne):P===47||P===62||Yt(P)?W(P):n(P)}function W(P){return P===47?(e.consume(P),G):P===58||P===95||Ar(P)?(e.consume(P),k):Xe(P)?(l=W,le(P)):_t(P)?(e.consume(P),W):G(P)}function k(P){return P===45||P===46||P===58||P===95||pr(P)?(e.consume(P),k):H(P)}function H(P){return P===61?(e.consume(P),Q):Xe(P)?(l=H,le(P)):_t(P)?(e.consume(P),H):W(P)}function Q(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),a=P,K):Xe(P)?(l=Q,le(P)):_t(P)?(e.consume(P),Q):(e.consume(P),re)}function K(P){return P===a?(e.consume(P),a=void 0,me):P===null?n(P):Xe(P)?(l=K,le(P)):(e.consume(P),K)}function re(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Yt(P)?W(P):(e.consume(P),re)}function me(P){return P===47||P===62||Yt(P)?W(P):n(P)}function G(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function le(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),se}function se(P){return _t(P)?St(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ye(P)}function ye(P){return e.enter("htmlTextData"),l(P)}}const zQ={name:"labelStartImage",resolveAll:ME.resolveAll,tokenize:GQ};function GQ(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const G1={name:"lineEnding",tokenize:VQ};function VQ(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),St(e,t,"linePrefix")}}const qQ={42:Nr,43:Nr,45:Nr,48:Nr,49:Nr,50:Nr,51:Nr,52:Nr,53:Nr,54:Nr,55:Nr,56:Nr,57:Nr,62:pw},YQ={91:KY},QQ={[-2]:z1,[-1]:z1,32:z1},WQ={35:mQ,42:Jh,45:[IC,Jh],60:lQ,61:IC,95:Jh,96:wC,126:wC},KQ={38:Ew,92:bw},XQ={[-5]:G1,[-4]:G1,[-3]:G1,33:zQ,38:Ew,42:eb,60:[jQ,UQ],91:$Q,92:[MQ,bw],93:ME,95:eb,96:vQ},ZQ={null:[eb,MY]},JQ={null:[42,95]},eW={null:[]},tW=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:JQ,contentInitial:YQ,disable:eW,document:qQ,flow:WQ,flowInitial:QQ,insideSpan:ZQ,string:KQ,text:XQ},Symbol.toStringTag,{value:"Module"}));function nW(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let l=[],c=[];const d={attempt:V(M),check:V(w),consume:D,enter:S,exit:L,interrupt:V(w,{interrupt:!0})},f={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:m};let p=t.tokenize.call(f,d);return t.resolveAll&&o.push(t),f;function m(H){return l=_a(l,H),C(),l[l.length-1]!==null?[]:(ne(t,0),f.events=Nm(o,f.events,f),f.events)}function b(H,Q){return aW(y(H),Q)}function y(H){return rW(l,H)}function T(){const{_bufferIndex:H,_index:Q,line:K,column:re,offset:me}=r;return{_bufferIndex:H,_index:Q,line:K,column:re,offset:me}}function A(H){a[H.line]=H.column,k()}function C(){let H;for(;r._index<l.length;){const Q=l[r._index];if(typeof Q=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<Q.length;)x(Q.charCodeAt(r._bufferIndex));else x(Q)}}function x(H){p=p(H)}function D(H){Xe(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,k()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=H}function S(H,Q){const K=Q||{};return K.type=H,K.start=T(),f.events.push(["enter",K,f]),c.push(K),K}function L(H){const Q=c.pop();return Q.end=T(),f.events.push(["exit",Q,f]),Q}function M(H,Q){ne(H,Q.from)}function w(H,Q){Q.restore()}function V(H,Q){return K;function K(re,me,G){let le,se,ye,P;return Array.isArray(re)?ce(re):"tokenize"in re?ce([re]):Le(re);function Le(we){return Pe;function Pe(Me){const st=Me!==null&&we[Me],dt=Me!==null&&we.null,Ue=[...Array.isArray(st)?st:st?[st]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return ce(Ue)(Me)}}function ce(we){return le=we,se=0,we.length===0?G:I(we[se])}function I(we){return Pe;function Pe(Me){return P=W(),ye=we,we.partial||(f.currentConstruct=we),we.name&&f.parser.constructs.disable.null.includes(we.name)?Ce():we.tokenize.call(Q?Object.assign(Object.create(f),Q):f,d,te,Ce)(Me)}}function te(we){return H(ye,P),me}function Ce(we){return P.restore(),++se<le.length?I(le[se]):G}}}function ne(H,Q){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&ta(f.events,Q,f.events.length-Q,H.resolve(f.events.slice(Q),f)),H.resolveTo&&(f.events=H.resolveTo(f.events,f))}function W(){const H=T(),Q=f.previous,K=f.currentConstruct,re=f.events.length,me=Array.from(c);return{from:re,restore:G};function G(){r=H,f.previous=Q,f.currentConstruct=K,f.events.length=re,c=me,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function rW(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,o)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}o>0&&l.push(e[a].slice(0,o))}return l}function aW(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
194
|
+
`;break}case-3:{l=`\r
|
|
195
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(o)}a=o===-2,r.push(l)}return r.join("")}function iW(e){const t={constructs:$R([tW,...(e||{}).extensions||[]]),content:n(xY),defined:[],document:n(SY),flow:n(OY),lazy:{},string:n(PY),text:n($Y)};return t;function n(r){return a;function a(o){return nW(t,r,o)}}}const LC=/[\0\t\n\r]/g;function oW(){let e=1,t="",n=!0,r;return a;function a(o,l,c){const d=[];let f,p,m,b,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),m=0,t="",n&&(o.charCodeAt(0)===65279&&m++,n=void 0);m<o.length;){if(LC.lastIndex=m,f=LC.exec(o),b=f&&f.index!==void 0?f.index:o.length,y=o.charCodeAt(b),!f){t=o.slice(m);break}if(y===10&&m===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<b&&(d.push(o.slice(m,b)),e+=b-m),y){case 0:{d.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,d.push(-2);e++<p;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=b+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const vw={}.hasOwnProperty;function sW(e,t,n){return typeof t!="string"&&(n=t,t=void 0),lW(n)(_Y(iW(n).document().write(oW()(e,t,!0))))}function lW(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(an),autolinkProtocol:W,autolinkEmail:W,atxHeading:o(sr),blockQuote:o(dt),characterEscape:W,characterReference:W,codeFenced:o(Ue),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ue,l),codeText:o(Wt,l),codeTextData:W,data:W,codeFlowValue:W,definition:o(Nt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o($e),hardBreakEscape:o(fn),hardBreakTrailing:o(fn),htmlFlow:o(Ve,l),htmlFlowData:W,htmlText:o(Ve,l),htmlTextData:W,image:o(Jn),label:l,link:o(an),listItem:o(Ye),listItemValue:b,listOrdered:o(sn,m),listUnordered:o(sn),paragraph:o(Ct),reference:I,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(sr),strong:o(Cr),thematicBreak:o(Rt)},exit:{atxHeading:d(),atxHeadingSequence:M,autolink:d(),autolinkEmail:st,autolinkProtocol:Me,blockQuote:d(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:we,characterReference:Pe,codeFenced:d(C),codeFencedFence:A,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:k,codeIndented:d(x),codeText:d(me),codeTextData:k,data:k,definition:d(),definitionDestinationString:L,definitionLabelString:D,definitionTitleString:S,emphasis:d(),hardBreakEscape:d(Q),hardBreakTrailing:d(Q),htmlFlow:d(K),htmlFlowData:k,htmlText:d(re),htmlTextData:k,image:d(le),label:ye,labelText:se,lineEnding:H,link:d(G),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:te,resourceDestinationString:P,resourceTitleString:Le,resource:ce,setextHeading:d(ne),setextHeadingLineSequence:V,setextHeadingText:w,strong:d(),thematicBreak:d()}};Tw(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ve={type:"root",children:[]};const je={stack:[ve],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:p,data:n},nt=[];let Dt=-1;for(;++Dt<ue.length;)if(ue[Dt][1].type==="listOrdered"||ue[Dt][1].type==="listUnordered")if(ue[Dt][0]==="enter")nt.push(Dt);else{const Ot=nt.pop();Dt=a(ue,Ot,Dt)}for(Dt=-1;++Dt<ue.length;){const Ot=t[ue[Dt][0]];vw.call(Ot,ue[Dt][1].type)&&Ot[ue[Dt][1].type].call(Object.assign({sliceSerialize:ue[Dt][2].sliceSerialize},je),ue[Dt][1])}if(je.tokenStack.length>0){const Ot=je.tokenStack[je.tokenStack.length-1];(Ot[1]||MC).call(je,void 0,Ot[0])}for(ve.position={start:_o(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:_o(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.length;)ve=t.transforms[Dt](ve)||ve;return ve}function a(ue,ve,je){let nt=ve-1,Dt=-1,Ot=!1,Vn,yn,Cn,_e;for(;++nt<=je;){const Te=ue[nt];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Dt++:Dt--,_e=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(Vn&&!_e&&!Dt&&!Cn&&(Cn=nt),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!Dt&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Dt===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(Vn){let ot=nt;for(yn=void 0;ot--;){const Ke=ue[ot];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;yn&&(ue[yn][1].type="lineEndingBlank",Ot=!0),Ke[1].type="lineEnding",yn=ot}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}Cn&&(!yn||Cn<yn)&&(Vn._spread=!0),Vn.end=Object.assign({},yn?ue[yn][1].start:Te[1].end),ue.splice(yn||nt,0,["exit",Vn,Te[2]]),nt++,je++}if(Te[1].type==="listItemPrefix"){const ot={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};Vn=ot,ue.splice(nt,0,["enter",ot,Te[2]]),nt++,je++,Cn=void 0,_e=!0}}}return ue[ve][1]._spread=Ot,je}function o(ue,ve){return je;function je(nt){c.call(this,ue(nt),nt),ve&&ve.call(this,nt)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(ue,ve,je){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([ve,je||void 0]),ue.position={start:_o(ve.start),end:void 0}}function d(ue){return ve;function ve(je){ue&&ue.call(this,je),f.call(this,je)}}function f(ue,ve){const je=this.stack.pop(),nt=this.tokenStack.pop();if(nt)nt[0].type!==ue.type&&(ve?ve.call(this,ue,nt[0]):(nt[1]||MC).call(this,ue,nt[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Ku({start:ue.start,end:ue.end})+"): it’s not open");je.position.end=_o(ue.end)}function p(){return NE(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function b(ue){if(this.data.expectingFirstListItemValue){const ve=this.stack[this.stack.length-2];ve.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.lang=ue}function T(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.meta=ue}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/(\r?\n|\r)$/g,"")}function D(ue){const ve=this.resume(),je=this.stack[this.stack.length-1];je.label=ve,je.identifier=Ma(this.sliceSerialize(ue)).toLowerCase()}function S(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function L(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function M(ue){const ve=this.stack[this.stack.length-1];if(!ve.depth){const je=this.sliceSerialize(ue).length;ve.depth=je}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function V(ue){const ve=this.stack[this.stack.length-1];ve.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function W(ue){const ve=this.stack[this.stack.length-1].children;let je=ve[ve.length-1];(!je||je.type!=="text")&&(je=Ua(),je.position={start:_o(ue.start),end:void 0},ve.push(je)),this.stack.push(je)}function k(ue){const ve=this.stack.pop();ve.value+=this.sliceSerialize(ue),ve.position.end=_o(ue.end)}function H(ue){const ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=ve.children[ve.children.length-1];je.position.end=_o(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ve.type)&&(W.call(this,ue),k.call(this,ue))}function Q(){this.data.atHardBreak=!0}function K(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function re(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function me(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function G(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function le(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function se(ue){const ve=this.sliceSerialize(ue),je=this.stack[this.stack.length-2];je.label=bY(ve),je.identifier=Ma(ve).toLowerCase()}function ye(){const ue=this.stack[this.stack.length-1],ve=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const nt=ue.children;je.children=nt}else je.alt=ve}function P(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function Le(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function ce(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function te(ue){const ve=this.resume(),je=this.stack[this.stack.length-1];je.label=ve,je.identifier=Ma(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Ce(ue){this.data.characterReferenceType=ue.type}function we(ue){const ve=this.sliceSerialize(ue),je=this.data.characterReferenceType;let nt;je?(nt=uw(ve,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):nt=LE(ve);const Dt=this.stack[this.stack.length-1];Dt.value+=nt}function Pe(ue){const ve=this.stack.pop();ve.position.end=_o(ue.end)}function Me(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url=this.sliceSerialize(ue)}function st(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url="mailto:"+this.sliceSerialize(ue)}function dt(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Wt(){return{type:"inlineCode",value:""}}function Nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $e(){return{type:"emphasis",children:[]}}function sr(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function Jn(){return{type:"image",title:null,url:"",alt:null}}function an(){return{type:"link",title:null,url:"",children:[]}}function sn(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Ye(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function Cr(){return{type:"strong",children:[]}}function Ua(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function _o(e){return{line:e.line,column:e.column,offset:e.offset}}function Tw(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Tw(e,r):cW(e,r)}}function cW(e,t){let n;for(n in t)if(vw.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function MC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ku({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ku({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ku({start:t.start,end:t.end})+") is still open")}function uW(e){const t=this;t.parser=n;function n(r){return sW(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const _w=-1,Om=0,Zu=1,Fp=2,PE=3,$E=4,FE=5,jE=6,xw=7,Aw=8,PC=typeof self=="object"?self:globalThis,dW=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,l]=t[a];switch(o){case Om:case _w:return n(l,a);case Zu:{const c=n([],a);for(const d of l)c.push(r(d));return c}case Fp:{const c=n({},a);for(const[d,f]of l)c[r(d)]=r(f);return c}case PE:return n(new Date(l),a);case $E:{const{source:c,flags:d}=l;return n(new RegExp(c,d),a)}case FE:{const c=n(new Map,a);for(const[d,f]of l)c.set(r(d),r(f));return c}case jE:{const c=n(new Set,a);for(const d of l)c.add(r(d));return c}case xw:{const{name:c,message:d}=l;return n(new PC[c](d),a)}case Aw:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new PC[o](l),a)};return r},$C=e=>dW(new Map,e)(0),wl="",{toString:fW}={},{keys:hW}=Object,Du=e=>{const t=typeof e;if(t!=="object"||!e)return[Om,t];const n=fW.call(e).slice(8,-1);switch(n){case"Array":return[Zu,wl];case"Object":return[Fp,wl];case"Date":return[PE,wl];case"RegExp":return[$E,wl];case"Map":return[FE,wl];case"Set":return[jE,wl];case"DataView":return[Zu,n]}return n.includes("Array")?[Zu,n]:n.includes("Error")?[xw,n]:[Fp,n]},Rh=([e,t])=>e===Om&&(t==="function"||t==="symbol"),pW=(e,t,n,r)=>{const a=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},o=l=>{if(n.has(l))return n.get(l);let[c,d]=Du(l);switch(c){case Om:{let p=l;switch(d){case"bigint":c=Aw,p=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);p=null;break;case"undefined":return a([_w],l)}return a([c,p],l)}case Zu:{if(d){let b=l;return d==="DataView"?b=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(l)),a([d,[...b]],l)}const p=[],m=a([c,p],l);for(const b of l)p.push(o(b));return m}case Fp:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const p=[],m=a([c,p],l);for(const b of hW(l))(e||!Rh(Du(l[b])))&&p.push([o(b),o(l[b])]);return m}case PE:return a([c,l.toISOString()],l);case $E:{const{source:p,flags:m}=l;return a([c,{source:p,flags:m}],l)}case FE:{const p=[],m=a([c,p],l);for(const[b,y]of l)(e||!(Rh(Du(b))||Rh(Du(y))))&&p.push([o(b),o(y)]);return m}case jE:{const p=[],m=a([c,p],l);for(const b of l)(e||!Rh(Du(b)))&&p.push(o(b));return m}}const{message:f}=l;return a([c,{name:d,message:f}],l)};return o},FC=(e,{json:t,lossy:n}={})=>{const r=[];return pW(!(t||n),!!t,new Map,r)(e),r},Ls=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$C(FC(e,t)):structuredClone(e):(e,t)=>$C(FC(e,t));function pc(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&pr(e.charCodeAt(n+1))&&pr(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(l=String.fromCharCode(o,c),a=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function mW(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function gW(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function yW(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mW,r=e.options.footnoteBackLabel||gW,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const p=e.all(f),m=String(f.identifier).toUpperCase(),b=pc(m.toLowerCase());let y=0;const T=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++y<=A;){T.length>0&&T.push({type:"text",value:" "});let D=typeof n=="string"?n:n(d,y);typeof D=="string"&&(D={type:"text",value:D}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,y),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const D=C.children[C.children.length-1];D&&D.type==="text"?D.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...T)}else p.push(...T);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(p,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ls(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
196
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
197
|
+
`}]}}function bW(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function EW(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
198
|
+
`}]}function vW(e,t){const n=t.value?t.value+`
|
|
199
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function TW(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _W(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xW(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=pc(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function AW(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SW(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Sw(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function CW(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sw(e,t);const a={src:pc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function DW(e,t){const n={src:pc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function kW(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function RW(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sw(e,t);const a={href:pc(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function wW(e,t){const n={href:pc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IW(e,t,n){const r=e.all(t),a=n?NW(n):Cw(t),o={},l=[];if(typeof t.checked=="boolean"){const p=r[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(a||c!==0||p.type!=="element"||p.tagName!=="p")&&l.push({type:"text",value:`
|
|
200
|
+
`}),p.type==="element"&&p.tagName==="p"&&!a?l.push(...p.children):l.push(p)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
|
|
201
|
+
`});const f={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,f),e.applyData(t,f)}function NW(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Cw(n[r])}return t}function Cw(e){return e.spread??e.children.length>1}function OW(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function LW(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MW(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function PW(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Lm=Dw("end"),di=Dw("start");function Dw(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function $W(e){const t=di(e),n=Lm(e);if(t&&n)return{start:t,end:n}}function FW(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=di(t.children[1]),d=Lm(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),a.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function jW(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const d=[];for(;++c<l;){const p=t.children[c],m={},b=o?o[c]:void 0;b&&(m.align=b);let y={type:"element",tagName:a,properties:m,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),d.push(y)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function BW(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UW(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(jC(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(jC(t.slice(a),a>0,!1)),o.join("")}function jC(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===9||o===32;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function HW(e,t){const n={type:"text",value:UW(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function zW(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const GW={blockquote:bW,break:EW,code:vW,delete:TW,emphasis:_W,footnoteReference:xW,heading:AW,html:SW,imageReference:CW,image:DW,inlineCode:kW,linkReference:RW,link:wW,listItem:IW,list:OW,paragraph:LW,root:MW,strong:PW,table:FW,tableCell:BW,tableRow:jW,text:HW,thematicBreak:zW,toml:wh,yaml:wh,definition:wh,footnoteDefinition:wh};function wh(){}const tb={}.hasOwnProperty,VW={};function qW(e,t){const n=t||VW,r=new Map,a=new Map,o=new Map,l={...GW,...n.handlers},c={all:f,applyData:QW,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:l,one:d,options:n,patch:YW,wrap:KW};return $r(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?r:a,b=String(p.identifier).toUpperCase();m.has(b)||m.set(b,p)}}),c;function d(p,m){const b=p.type,y=c.handlers[b];if(tb.call(c.handlers,b)&&y)return y(c,p,m);if(c.options.passThrough&&c.options.passThrough.includes(b)){if("children"in p){const{children:T,...A}=p,C=Ls(A);return C.children=c.all(p),C}return Ls(p)}return(c.options.unknownHandler||WW)(c,p,m)}function f(p){const m=[];if("children"in p){const b=p.children;let y=-1;for(;++y<b.length;){const T=c.one(b[y],p);if(T){if(y&&b[y-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=BC(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=BC(A.value))}Array.isArray(T)?m.push(...T):m.push(T)}}}return m}}function YW(e,t){e.position&&(t.position=$W(e))}function QW(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Ls(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function WW(e,t){const n=t.data||{},r="value"in t&&!(tb.call(n,"hProperties")||tb.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KW(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
202
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
203
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
204
|
+
`}),n}function BC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function UC(e,t){const n=qW(e,t),r=n.one(e,void 0),a=yW(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
|
|
205
|
+
`},a),o}function XW(e,t){return e&&"run"in e?async function(n,r){const a=UC(n,{file:r,...t});await e.run(a,r)}:function(n,r){return UC(n,{file:r,...e||t})}}var Il={},V1,HC;function ZW(){if(HC)return V1;HC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
206
|
+
`,f="/",p="*",m="",b="comment",y="declaration";V1=function(A,C){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];C=C||{};var x=1,D=1;function S(K){var re=K.match(t);re&&(x+=re.length);var me=K.lastIndexOf(d);D=~me?K.length-me:D+K.length}function L(){var K={line:x,column:D};return function(re){return re.position=new M(K),ne(),re}}function M(K){this.start=K,this.end={line:x,column:D},this.source=C.source}M.prototype.content=A;function w(K){var re=new Error(C.source+":"+x+":"+D+": "+K);if(re.reason=K,re.filename=C.source,re.line=x,re.column=D,re.source=A,!C.silent)throw re}function V(K){var re=K.exec(A);if(re){var me=re[0];return S(me),A=A.slice(me.length),re}}function ne(){V(n)}function W(K){var re;for(K=K||[];re=k();)re!==!1&&K.push(re);return K}function k(){var K=L();if(!(f!=A.charAt(0)||p!=A.charAt(1))){for(var re=2;m!=A.charAt(re)&&(p!=A.charAt(re)||f!=A.charAt(re+1));)++re;if(re+=2,m===A.charAt(re-1))return w("End of comment missing");var me=A.slice(2,re-2);return D+=2,S(me),A=A.slice(re),D+=2,K({type:b,comment:me})}}function H(){var K=L(),re=V(r);if(re){if(k(),!V(a))return w("property missing ':'");var me=V(o),G=K({type:y,property:T(re[0].replace(e,m)),value:me?T(me[0].replace(e,m)):m});return V(l),G}}function Q(){var K=[];W(K);for(var re;re=H();)re!==!1&&(K.push(re),W(K));return K}return ne(),Q()};function T(A){return A?A.replace(c,m):m}return V1}var zC;function JW(){if(zC)return Il;zC=1;var e=Il&&Il.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=n;var t=e(ZW());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var l=(0,t.default)(r),c=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var f=d.property,p=d.value;c?a(f,p,d):p&&(o=o||{},o[f]=p)}}),o}return Il}var ku={},GC;function eK(){if(GC)return ku;GC=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},l=function(f,p){return p.toUpperCase()},c=function(f,p){return"".concat(p,"-")},d=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,l))};return ku.camelCase=d,ku}var Ru,VC;function tK(){if(VC)return Ru;VC=1;var e=Ru&&Ru.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(JW()),n=eK();function r(a,o){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(l[(0,n.camelCase)(c,o)]=d)}),l}return r.default=r,Ru=r,Ru}var nK=tK();const rK=Cm(nK),aK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iK=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oK={};function qC(e,t){return(oK.jsx?iK:aK).test(e)}const sK={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},BE={}.hasOwnProperty,lK=new Map,cK=/[A-Z]/g,uK=new Set(["table","tbody","thead","tfoot","tr"]),dK=new Set(["td","th"]),kw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fK(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=vK(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=EK(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Vi:cc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Rw(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function Rw(e,t,n){if(t.type==="element")return hK(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return pK(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gK(e,t,n);if(t.type==="mdxjsEsm")return mK(e,t);if(t.type==="root")return yK(e,t,n);if(t.type==="text")return bK(e,t)}function hK(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Vi,e.schema=a),e.ancestors.push(t);const o=Iw(e,t.tagName,!1),l=TK(e,t);let c=HE(e,t);return uK.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!Ud(d):!0})),ww(e,l,o,t),UE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function pK(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}wd(e,t.position)}function mK(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wd(e,t.position)}function gK(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Vi,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:Iw(e,t.name,!0),l=_K(e,t),c=HE(e,t);return ww(e,l,o,t),UE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function yK(e,t,n){const r={};return UE(r,HE(e,t)),e.create(t,e.Fragment,r,n)}function bK(e,t){return t.value}function ww(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function UE(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function EK(e,t,n){return r;function r(a,o,l,c){const d=Array.isArray(l.children)?n:t;return c?d(o,l,c):d(o,l)}}function vK(e,t){return n;function n(r,a,o,l){const c=Array.isArray(o.children),d=di(r);return t(a,o,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function TK(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&BE.call(t.properties,a)){const o=xK(e,a,t.properties[a]);if(o){const[l,c]=o;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&dK.has(t.tagName)?r=c:n[l]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function _K(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else wd(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else wd(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function HE(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:lK;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const f=a.get(d)||0;l=d+"-"+f,a.set(d,f+1)}}const c=Rw(e,o,l);c!==void 0&&n.push(c)}return n}function xK(e,t,n){const r=Hd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?im(n):om(n)),r.property==="style"){let a=typeof n=="object"?n:AK(e,String(n));return e.stylePropertyNameCase==="css"&&(a=SK(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?sK[r.property]||r.property:r.attribute,n]}}function AK(e,t){try{return rK(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new gr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=kw+"#cannot-parse-style-attribute",a}}function Iw(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,l;for(;++o<a.length;){const c=qC(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=l}else r=qC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return BE.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);wd(e)}function wd(e,t){const n=new gr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=kw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function SK(e){const t={};let n;for(n in e)BE.call(e,n)&&(t[CK(n)]=e[n]);return t}function CK(e){let t=e.replace(cK,DK);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function DK(e){return"-"+e.toLowerCase()}const q1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},kK="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",YC=[],QC={allowDangerousHtml:!0},RK=/^(https?|ircs?|mailto|xmpp)$/i,wK=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function IK(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,l=e.disallowedElements,c=e.rehypePlugins||YC,d=e.remarkPlugins||YC,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...QC}:QC,p=e.skipHtml,m=e.unwrapDisallowed,b=e.urlTransform||NK,y=hY().use(uW).use(d).use(XW,f).use(c),T=new lw;typeof r=="string"&&(T.value=r);for(const D of wK)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+kK+D.id,void 0);const A=y.parse(T);let C=y.runSync(A,T);return a&&(C={type:"element",tagName:"div",properties:{className:a},children:C.type==="root"?C.children:[C]}),$r(C,x),fK(C,{Fragment:E.Fragment,components:o,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function x(D,S,L){if(D.type==="raw"&&L&&typeof S=="number")return p?L.children.splice(S,1):L.children[S]={type:"text",value:D.value},S;if(D.type==="element"){let M;for(M in q1)if(Object.hasOwn(q1,M)&&Object.hasOwn(D.properties,M)){const w=D.properties[M],V=q1[M];(V===null||V.includes(D.tagName))&&(D.properties[M]=b(String(w||""),M,D))}}if(D.type==="element"){let M=t?!t.includes(D.tagName):l?l.includes(D.tagName):!1;if(!M&&n&&typeof S=="number"&&(M=!n(D,S,L)),M&&L&&typeof S=="number")return m&&D.children?L.children.splice(S,1,...D.children):L.children.splice(S,1),S}}}function NK(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||RK.test(e.slice(0,t))?e:""}const OK=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),dn="�";var $;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($||($={}));const Ir={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Nw(e){return e>=55296&&e<=57343}function LK(e){return e>=56320&&e<=57343}function MK(e,t){return(e-55296)*1024+9216+t}function Ow(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Lw(e){return e>=64976&&e<=65007||OK.has(e)}var fe;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(fe||(fe={}));const PK=65536;let $K=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=PK,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,l=a+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(LK(n))return this.pos++,this._addGap(),MK(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(fe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;const r=this.html.charCodeAt(n);return r===$.CARRIAGE_RETURN?$.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let t=this.html.charCodeAt(this.pos);return t===$.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$.LINE_FEED):t===$.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Nw(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===$.LINE_FEED||t===$.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ow(t)?this._err(fe.controlCharacterInInputStream):Lw(t)&&this._err(fe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var bt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(bt||(bt={}));function Mw(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const FK=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function jK(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=FK.get(e))!==null&&t!==void 0?t:e}var Xn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Xn||(Xn={}));const BK=32;var wo;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wo||(wo={}));function nb(e){return e>=Xn.ZERO&&e<=Xn.NINE}function UK(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_F||e>=Xn.LOWER_A&&e<=Xn.LOWER_F}function HK(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_Z||e>=Xn.LOWER_A&&e<=Xn.LOWER_Z||nb(e)}function zK(e){return e===Xn.EQUALS||HK(e)}var Wn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Wn||(Wn={}));var Fi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Fi||(Fi={}));let GK=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Wn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Fi.Strict}startEntity(t){this.decodeMode=t,this.state=Wn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Wn.EntityStart:return t.charCodeAt(n)===Xn.NUM?(this.state=Wn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Wn.NamedEntity,this.stateNamedEntity(t,n));case Wn.NumericStart:return this.stateNumericStart(t,n);case Wn.NumericDecimal:return this.stateNumericDecimal(t,n);case Wn.NumericHex:return this.stateNumericHex(t,n);case Wn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|BK)===Xn.LOWER_X?(this.state=Wn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Wn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(nb(a)||UK(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(nb(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Xn.SEMI)this.consumed+=1;else if(this.decodeMode===Fi.Strict)return 0;return this.emitCodePoint(jK(this.result),this.consumed),this.errors&&(t!==Xn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&wo.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=VK(r,a,this.treeIndex+Math.max(1,o),l),this.treeIndex<0)return this.result===0||this.decodeMode===Fi.Attribute&&(o===0||zK(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&wo.VALUE_LENGTH)>>14,o!==0){if(l===Xn.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Fi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&wo.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~wo.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Wn.NamedEntity:return this.result!==0&&(this.decodeMode!==Fi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Wn.NumericDecimal:return this.emitNumericEntity(0,2);case Wn.NumericHex:return this.emitNumericEntity(0,3);case Wn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Wn.EntityStart:return 0}}};function VK(e,t,n,r){const a=(t&wo.BRANCH_LENGTH)>>7,o=t&wo.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const d=r-o;return d<0||d>=a?-1:e[n+d]-1}let l=n,c=l+a-1;for(;l<=c;){const d=l+c>>>1,f=e[d];if(f<r)l=d+1;else if(f>r)c=d-1;else return e[d+a]}return-1}var xe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(xe||(xe={}));var Ss;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ss||(Ss={}));var xa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(xa||(xa={}));var J;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(J||(J={}));var _;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(_||(_={}));const qK=new Map([[J.A,_.A],[J.ADDRESS,_.ADDRESS],[J.ANNOTATION_XML,_.ANNOTATION_XML],[J.APPLET,_.APPLET],[J.AREA,_.AREA],[J.ARTICLE,_.ARTICLE],[J.ASIDE,_.ASIDE],[J.B,_.B],[J.BASE,_.BASE],[J.BASEFONT,_.BASEFONT],[J.BGSOUND,_.BGSOUND],[J.BIG,_.BIG],[J.BLOCKQUOTE,_.BLOCKQUOTE],[J.BODY,_.BODY],[J.BR,_.BR],[J.BUTTON,_.BUTTON],[J.CAPTION,_.CAPTION],[J.CENTER,_.CENTER],[J.CODE,_.CODE],[J.COL,_.COL],[J.COLGROUP,_.COLGROUP],[J.DD,_.DD],[J.DESC,_.DESC],[J.DETAILS,_.DETAILS],[J.DIALOG,_.DIALOG],[J.DIR,_.DIR],[J.DIV,_.DIV],[J.DL,_.DL],[J.DT,_.DT],[J.EM,_.EM],[J.EMBED,_.EMBED],[J.FIELDSET,_.FIELDSET],[J.FIGCAPTION,_.FIGCAPTION],[J.FIGURE,_.FIGURE],[J.FONT,_.FONT],[J.FOOTER,_.FOOTER],[J.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[J.FORM,_.FORM],[J.FRAME,_.FRAME],[J.FRAMESET,_.FRAMESET],[J.H1,_.H1],[J.H2,_.H2],[J.H3,_.H3],[J.H4,_.H4],[J.H5,_.H5],[J.H6,_.H6],[J.HEAD,_.HEAD],[J.HEADER,_.HEADER],[J.HGROUP,_.HGROUP],[J.HR,_.HR],[J.HTML,_.HTML],[J.I,_.I],[J.IMG,_.IMG],[J.IMAGE,_.IMAGE],[J.INPUT,_.INPUT],[J.IFRAME,_.IFRAME],[J.KEYGEN,_.KEYGEN],[J.LABEL,_.LABEL],[J.LI,_.LI],[J.LINK,_.LINK],[J.LISTING,_.LISTING],[J.MAIN,_.MAIN],[J.MALIGNMARK,_.MALIGNMARK],[J.MARQUEE,_.MARQUEE],[J.MATH,_.MATH],[J.MENU,_.MENU],[J.META,_.META],[J.MGLYPH,_.MGLYPH],[J.MI,_.MI],[J.MO,_.MO],[J.MN,_.MN],[J.MS,_.MS],[J.MTEXT,_.MTEXT],[J.NAV,_.NAV],[J.NOBR,_.NOBR],[J.NOFRAMES,_.NOFRAMES],[J.NOEMBED,_.NOEMBED],[J.NOSCRIPT,_.NOSCRIPT],[J.OBJECT,_.OBJECT],[J.OL,_.OL],[J.OPTGROUP,_.OPTGROUP],[J.OPTION,_.OPTION],[J.P,_.P],[J.PARAM,_.PARAM],[J.PLAINTEXT,_.PLAINTEXT],[J.PRE,_.PRE],[J.RB,_.RB],[J.RP,_.RP],[J.RT,_.RT],[J.RTC,_.RTC],[J.RUBY,_.RUBY],[J.S,_.S],[J.SCRIPT,_.SCRIPT],[J.SEARCH,_.SEARCH],[J.SECTION,_.SECTION],[J.SELECT,_.SELECT],[J.SOURCE,_.SOURCE],[J.SMALL,_.SMALL],[J.SPAN,_.SPAN],[J.STRIKE,_.STRIKE],[J.STRONG,_.STRONG],[J.STYLE,_.STYLE],[J.SUB,_.SUB],[J.SUMMARY,_.SUMMARY],[J.SUP,_.SUP],[J.TABLE,_.TABLE],[J.TBODY,_.TBODY],[J.TEMPLATE,_.TEMPLATE],[J.TEXTAREA,_.TEXTAREA],[J.TFOOT,_.TFOOT],[J.TD,_.TD],[J.TH,_.TH],[J.THEAD,_.THEAD],[J.TITLE,_.TITLE],[J.TR,_.TR],[J.TRACK,_.TRACK],[J.TT,_.TT],[J.U,_.U],[J.UL,_.UL],[J.SVG,_.SVG],[J.VAR,_.VAR],[J.WBR,_.WBR],[J.XMP,_.XMP]]);function mc(e){var t;return(t=qK.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Se=_,YK={[xe.HTML]:new Set([Se.ADDRESS,Se.APPLET,Se.AREA,Se.ARTICLE,Se.ASIDE,Se.BASE,Se.BASEFONT,Se.BGSOUND,Se.BLOCKQUOTE,Se.BODY,Se.BR,Se.BUTTON,Se.CAPTION,Se.CENTER,Se.COL,Se.COLGROUP,Se.DD,Se.DETAILS,Se.DIR,Se.DIV,Se.DL,Se.DT,Se.EMBED,Se.FIELDSET,Se.FIGCAPTION,Se.FIGURE,Se.FOOTER,Se.FORM,Se.FRAME,Se.FRAMESET,Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6,Se.HEAD,Se.HEADER,Se.HGROUP,Se.HR,Se.HTML,Se.IFRAME,Se.IMG,Se.INPUT,Se.LI,Se.LINK,Se.LISTING,Se.MAIN,Se.MARQUEE,Se.MENU,Se.META,Se.NAV,Se.NOEMBED,Se.NOFRAMES,Se.NOSCRIPT,Se.OBJECT,Se.OL,Se.P,Se.PARAM,Se.PLAINTEXT,Se.PRE,Se.SCRIPT,Se.SECTION,Se.SELECT,Se.SOURCE,Se.STYLE,Se.SUMMARY,Se.TABLE,Se.TBODY,Se.TD,Se.TEMPLATE,Se.TEXTAREA,Se.TFOOT,Se.TH,Se.THEAD,Se.TITLE,Se.TR,Se.TRACK,Se.UL,Se.WBR,Se.XMP]),[xe.MATHML]:new Set([Se.MI,Se.MO,Se.MN,Se.MS,Se.MTEXT,Se.ANNOTATION_XML]),[xe.SVG]:new Set([Se.TITLE,Se.FOREIGN_OBJECT,Se.DESC]),[xe.XLINK]:new Set,[xe.XML]:new Set,[xe.XMLNS]:new Set},rb=new Set([Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;const QK=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var j;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(j||(j={}));const wn={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function WK(e){return e>=$.DIGIT_0&&e<=$.DIGIT_9}function Bu(e){return e>=$.LATIN_CAPITAL_A&&e<=$.LATIN_CAPITAL_Z}function KK(e){return e>=$.LATIN_SMALL_A&&e<=$.LATIN_SMALL_Z}function Ao(e){return KK(e)||Bu(e)}function WC(e){return Ao(e)||WK(e)}function Ih(e){return e+32}function Pw(e){return e===$.SPACE||e===$.LINE_FEED||e===$.TABULATION||e===$.FORM_FEED}function KC(e){return Pw(e)||e===$.SOLIDUS||e===$.GREATER_THAN_SIGN}function XK(e){return e===$.NULL?fe.nullCharacterReference:e>1114111?fe.characterReferenceOutsideUnicodeRange:Nw(e)?fe.surrogateCharacterReference:Lw(e)?fe.noncharacterCharacterReference:Ow(e)||e===$.CARRIAGE_RETURN?fe.controlCharacterReference:null}let ZK=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=j.DATA,this.returnState=j.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new $K(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new GK(QK,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(fe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(fe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=XK(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:bt.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:bt.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:bt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:bt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Mw(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(fe.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=mc(t.tagName),t.type===bt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(fe.endTagWithAttributes),t.selfClosing&&this._err(fe.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case bt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case bt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case bt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:bt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Pw(t)?bt.WHITESPACE_CHARACTER:t===$.NULL?bt.NULL_CHARACTER:bt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(bt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=j.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Fi.Attribute:Fi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===j.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case j.DATA:{this._stateData(t);break}case j.RCDATA:{this._stateRcdata(t);break}case j.RAWTEXT:{this._stateRawtext(t);break}case j.SCRIPT_DATA:{this._stateScriptData(t);break}case j.PLAINTEXT:{this._statePlaintext(t);break}case j.TAG_OPEN:{this._stateTagOpen(t);break}case j.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case j.TAG_NAME:{this._stateTagName(t);break}case j.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case j.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case j.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case j.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case j.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case j.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case j.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case j.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case j.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case j.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case j.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case j.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case j.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case j.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case j.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case j.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case j.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case j.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case j.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case j.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case j.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case j.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case j.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case j.BOGUS_COMMENT:{this._stateBogusComment(t);break}case j.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case j.COMMENT_START:{this._stateCommentStart(t);break}case j.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case j.COMMENT:{this._stateComment(t);break}case j.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case j.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case j.COMMENT_END:{this._stateCommentEnd(t);break}case j.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case j.DOCTYPE:{this._stateDoctype(t);break}case j.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case j.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case j.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case j.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case j.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case j.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case j.CDATA_SECTION:{this._stateCdataSection(t);break}case j.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case j.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case j.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case j.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.TAG_OPEN;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitCodePoint(t);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case $.AMPERSAND:{this._startCharacterReference();break}case $.LESS_THAN_SIGN:{this.state=j.RCDATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.RAWTEXT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ao(t))this._createStartTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case $.EXCLAMATION_MARK:{this.state=j.MARKUP_DECLARATION_OPEN;break}case $.SOLIDUS:{this.state=j.END_TAG_OPEN;break}case $.QUESTION_MARK:{this._err(fe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t);break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ao(t))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case $.GREATER_THAN_SIGN:{this._err(fe.missingEndTagName),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.tagName+=dn;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Bu(t)?Ih(t):t)}}_stateRcdataLessThanSign(t){t===$.SOLIDUS?this.state=j.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ao(t)?(this.state=j.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=j.BEFORE_ATTRIBUTE_NAME,!1;case $.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=j.SELF_CLOSING_START_TAG,!1;case $.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=j.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===$.SOLIDUS?this.state=j.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ao(t)?(this.state=j.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case $.SOLIDUS:{this.state=j.SCRIPT_DATA_END_TAG_OPEN;break}case $.EXCLAMATION_MARK:{this.state=j.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=j.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ao(t)?(this.state=j.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===$.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===$.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===$.SOLIDUS?this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ao(t)?(this._emitChars("<"),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ao(t)?(this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&KC(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===$.SOLIDUS?(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&KC(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._err(fe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this._leaveAttrName(),this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._leaveAttrName(),this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:{this._err(fe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.name+=dn;break}default:this.currentAttr.name+=String.fromCodePoint(Bu(t)?Ih(t):t)}}_stateAfterAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case $.EQUALS_SIGN:{this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{this.state=j.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this.state=j.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingAttributeValue),this.state=j.DATA,this.emitCurrentTagToken();break}default:this.state=j.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case $.APOSTROPHE:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:case $.EQUALS_SIGN:case $.GRAVE_ACCENT:{this._err(fe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this._leaveAttrValue(),this.state=j.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBetweenAttributes),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case $.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.unexpectedSolidusInTag),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=dn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ir.DASH_DASH,!0)?(this._createCommentToken(Ir.DASH_DASH.length+1),this.state=j.COMMENT_START):this._consumeSequenceIfMatch(Ir.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ir.DOCTYPE.length+1),this.state=j.DOCTYPE):this._consumeSequenceIfMatch(Ir.CDATA_START,!0)?this.inForeignNode?this.state=j.CDATA_SECTION:(this._err(fe.cdataInHtmlContent),this._createCommentToken(Ir.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=j.BOGUS_COMMENT):this._ensureHibernation()||(this._err(fe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_START_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=j.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END_DASH;break}case $.LESS_THAN_SIGN:{n.data+="<",this.state=j.COMMENT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=dn;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case $.EXCLAMATION_MARK:{n.data+="!",this.state=j.COMMENT_LESS_THAN_SIGN_BANG;break}case $.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===$.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=j.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===$.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=j.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==$.GREATER_THAN_SIGN&&t!==$.EOF&&this._err(fe.nestedComment),this.state=j.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case $.EXCLAMATION_MARK:{this.state=j.COMMENT_END_BANG;break}case $.HYPHEN_MINUS:{n.data+="-";break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{n.data+="--!",this.state=j.COMMENT_END_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.incorrectlyClosedComment),this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=j.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBeforeDoctypeName),this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Bu(t))this._createDoctypeToken(String.fromCharCode(Ih(t))),this.state=j.DOCTYPE_NAME;else switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.NULL:{this._err(fe.unexpectedNullCharacter),this._createDoctypeToken(dn),this.state=j.DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=j.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.AFTER_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.name+=dn;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Bu(t)?Ih(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ir.PUBLIC,!1)?this.state=j.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ir.SYSTEM,!1)?this.state=j.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(fe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.NULL:{this._err(fe.unexpectedNullCharacter);break}case $.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case $.RIGHT_SQUARE_BRACKET:{this.state=j.CDATA_SECTION_BRACKET;break}case $.EOF:{this._err(fe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===$.RIGHT_SQUARE_BRACKET?this.state=j.CDATA_SECTION_END:(this._emitChars("]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA;break}case $.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&WC(this.preprocessor.peek(1))?j.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){WC(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===$.SEMICOLON&&this._err(fe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const $w=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),XC=new Set([...$w,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),jp=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),JK=new Set([...jp,_.OL,_.UL]),eX=new Set([...jp,_.BUTTON]),ZC=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),JC=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),tX=new Set([_.TR,_.TEMPLATE,_.HTML]),nX=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),rX=new Set([_.TABLE,_.TEMPLATE,_.HTML]),aX=new Set([_.TD,_.TH]);let iX=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==xe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(rb,xe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(aX,xe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(rX,xe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(nX,xe.HTML)}clearBackToTableRowContext(){this.clearBackTo(tX,xe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case xe.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case xe.SVG:{if(JC.has(a))return!1;break}case xe.MATHML:{if(ZC.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,jp)}hasInListItemScope(t){return this.hasInDynamicScope(t,JK)}hasInButtonScope(t){return this.hasInDynamicScope(t,eX)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case xe.HTML:{if(rb.has(n))return!0;if(jp.has(n))return!1;break}case xe.SVG:{if(JC.has(n))return!1;break}case xe.MATHML:{if(ZC.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===xe.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&$w.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&XC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&XC.has(this.currentTagId);)this.pop()}};var ri;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ri||(ri={}));const e2={type:ri.Marker};let oX=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===ri.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===o&&this.treeAdapter.getNamespaceURI(f)===l){const p=this.treeAdapter.getAttrList(f);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const a=new Map(n.map(l=>[l.name,l.value]));let o=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>a.get(d.name)===d.value)&&(o+=1,o>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(e2)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ri.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ri.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(e2);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ri.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ri.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ri.Element&&n.element===t)}};const So={createDocument(){return{nodeName:"#document",mode:xa.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};So.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(So.isTextNode(n)){n.value+=t;return}}So.appendChild(e,So.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&So.isTextNode(r)?r.value+=t:So.insertBefore(e,So.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Fw="html",sX="about:legacy-compat",lX="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",jw=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],cX=[...jw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],uX=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Bw=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],dX=[...Bw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function t2(e,t){return t.some(n=>e.startsWith(n))}function fX(e){return e.name===Fw&&e.publicId===null&&(e.systemId===null||e.systemId===sX)}function hX(e){if(e.name!==Fw)return xa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===lX)return xa.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),uX.has(n))return xa.QUIRKS;let r=t===null?cX:jw;if(t2(n,r))return xa.QUIRKS;if(r=t===null?Bw:dX,t2(n,r))return xa.LIMITED_QUIRKS}return xa.NO_QUIRKS}const n2={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},pX="definitionurl",mX="definitionURL",gX=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),yX=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:xe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xe.XMLNS}]]),bX=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),EX=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function vX(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:n})=>n===Ss.COLOR||n===Ss.SIZE||n===Ss.FACE)||EX.has(t)}function Uw(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===pX){e.attrs[t].name=mX;break}}function Hw(e){for(let t=0;t<e.attrs.length;t++){const n=gX.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function zE(e){for(let t=0;t<e.attrs.length;t++){const n=yX.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function TX(e){const t=bX.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=mc(e.tagName))}function _X(e,t){return t===xe.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function xX(e,t,n){if(t===xe.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ss.ENCODING){const a=n[r].value.toLowerCase();return a===n2.TEXT_HTML||a===n2.APPLICATION_XML}}return t===xe.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function AX(e,t,n,r){return(!r||r===xe.HTML)&&xX(e,t,n)||(!r||r===xe.MATHML)&&_X(e,t)}const SX="hidden",CX=8,DX=3;var B;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(B||(B={}));const kX={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zw=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),r2={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:So,onParseError:null};class a2{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=B.INITIAL,this.originalInsertionMode=B.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...r2,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new ZK(this.options,this),this.activeFormattingElements=new oX(this.treeAdapter),this.fragmentContextID=r?mc(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new iX(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...r2,...n};t??(t=r.treeAdapter.createElement(J.TEMPLATE,xe.HTML,[]));const a=r.treeAdapter.createElement("documentmock",xe.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===_.TEMPLATE&&o.tmplInsertionModeStack.unshift(B.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:kX,l={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,l;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,l=this.fragmentContextID):{current:o,currentTagId:l}=this.openElements,this._setContextModes(o,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===xe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,xe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=B.TEXT}switchToPlaintextParsing(){this.insertionMode=B.TEXT,this.originalInsertionMode=B.IN_BODY,this.tokenizer.state=wn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==xe.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=wn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=wn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=wn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=wn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,xe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,xe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(J.HTML,xe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,l=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:d,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:d,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),o=n.type===bt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===_.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===xe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,xe.HTML)}_processToken(t){switch(t.type){case bt.CHARACTER:{this.onCharacter(t);break}case bt.NULL_CHARACTER:{this.onNullCharacter(t);break}case bt.COMMENT:{this.onComment(t);break}case bt.DOCTYPE:{this.onDoctype(t);break}case bt.START_TAG:{this._processStartTag(t);break}case bt.END_TAG:{this.onEndTag(t);break}case bt.EOF:{this.onEof(t);break}case bt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return AX(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ri.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=B.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=B.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=B.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=B.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=B.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=B.IN_TABLE;return}case _.BODY:{this.insertionMode=B.IN_BODY;return}case _.FRAMESET:{this.insertionMode=B.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?B.AFTER_HEAD:B.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=B.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=B.IN_HEAD;return}break}}this.insertionMode=B.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=B.IN_SELECT_IN_TABLE;return}}this.insertionMode=B.IN_SELECT}_isElementCausesFosterParenting(t){return zw.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===xe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return YK[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){aJ(this,t);return}switch(this.insertionMode){case B.INITIAL:{wu(this,t);break}case B.BEFORE_HTML:{Ju(this,t);break}case B.BEFORE_HEAD:{ed(this,t);break}case B.IN_HEAD:{td(this,t);break}case B.IN_HEAD_NO_SCRIPT:{nd(this,t);break}case B.AFTER_HEAD:{rd(this,t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:{Vw(this,t);break}case B.TEXT:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Y1(this,t);break}case B.IN_TABLE_TEXT:{Xw(this,t);break}case B.IN_COLUMN_GROUP:{Bp(this,t);break}case B.AFTER_BODY:{Up(this,t);break}case B.AFTER_AFTER_BODY:{ep(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){rJ(this,t);return}switch(this.insertionMode){case B.INITIAL:{wu(this,t);break}case B.BEFORE_HTML:{Ju(this,t);break}case B.BEFORE_HEAD:{ed(this,t);break}case B.IN_HEAD:{td(this,t);break}case B.IN_HEAD_NO_SCRIPT:{nd(this,t);break}case B.AFTER_HEAD:{rd(this,t);break}case B.TEXT:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Y1(this,t);break}case B.IN_COLUMN_GROUP:{Bp(this,t);break}case B.AFTER_BODY:{Up(this,t);break}case B.AFTER_AFTER_BODY:{ep(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ab(this,t);return}switch(this.insertionMode){case B.INITIAL:case B.BEFORE_HTML:case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_TEMPLATE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{ab(this,t);break}case B.IN_TABLE_TEXT:{Iu(this,t);break}case B.AFTER_BODY:{MX(this,t);break}case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{PX(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case B.INITIAL:{$X(this,t);break}case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:{this._err(t,fe.misplacedDoctype);break}case B.IN_TABLE_TEXT:{Iu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,fe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?iJ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{wu(this,t);break}case B.BEFORE_HTML:{FX(this,t);break}case B.BEFORE_HEAD:{BX(this,t);break}case B.IN_HEAD:{Ba(this,t);break}case B.IN_HEAD_NO_SCRIPT:{zX(this,t);break}case B.AFTER_HEAD:{VX(this,t);break}case B.IN_BODY:{yr(this,t);break}case B.IN_TABLE:{ac(this,t);break}case B.IN_TABLE_TEXT:{Iu(this,t);break}case B.IN_CAPTION:{UZ(this,t);break}case B.IN_COLUMN_GROUP:{qE(this,t);break}case B.IN_TABLE_BODY:{$m(this,t);break}case B.IN_ROW:{Fm(this,t);break}case B.IN_CELL:{GZ(this,t);break}case B.IN_SELECT:{eI(this,t);break}case B.IN_SELECT_IN_TABLE:{qZ(this,t);break}case B.IN_TEMPLATE:{QZ(this,t);break}case B.AFTER_BODY:{KZ(this,t);break}case B.IN_FRAMESET:{XZ(this,t);break}case B.AFTER_FRAMESET:{JZ(this,t);break}case B.AFTER_AFTER_BODY:{tJ(this,t);break}case B.AFTER_AFTER_FRAMESET:{nJ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?oJ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{wu(this,t);break}case B.BEFORE_HTML:{jX(this,t);break}case B.BEFORE_HEAD:{UX(this,t);break}case B.IN_HEAD:{HX(this,t);break}case B.IN_HEAD_NO_SCRIPT:{GX(this,t);break}case B.AFTER_HEAD:{qX(this,t);break}case B.IN_BODY:{Pm(this,t);break}case B.TEXT:{IZ(this,t);break}case B.IN_TABLE:{Id(this,t);break}case B.IN_TABLE_TEXT:{Iu(this,t);break}case B.IN_CAPTION:{HZ(this,t);break}case B.IN_COLUMN_GROUP:{zZ(this,t);break}case B.IN_TABLE_BODY:{ib(this,t);break}case B.IN_ROW:{Jw(this,t);break}case B.IN_CELL:{VZ(this,t);break}case B.IN_SELECT:{tI(this,t);break}case B.IN_SELECT_IN_TABLE:{YZ(this,t);break}case B.IN_TEMPLATE:{WZ(this,t);break}case B.AFTER_BODY:{rI(this,t);break}case B.IN_FRAMESET:{ZZ(this,t);break}case B.AFTER_FRAMESET:{eJ(this,t);break}case B.AFTER_AFTER_BODY:{ep(this,t);break}}}onEof(t){switch(this.insertionMode){case B.INITIAL:{wu(this,t);break}case B.BEFORE_HTML:{Ju(this,t);break}case B.BEFORE_HEAD:{ed(this,t);break}case B.IN_HEAD:{td(this,t);break}case B.IN_HEAD_NO_SCRIPT:{nd(this,t);break}case B.AFTER_HEAD:{rd(this,t);break}case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{Ww(this,t);break}case B.TEXT:{NZ(this,t);break}case B.IN_TABLE_TEXT:{Iu(this,t);break}case B.IN_TEMPLATE:{nI(this,t);break}case B.AFTER_BODY:case B.IN_FRAMESET:case B.AFTER_FRAMESET:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{VE(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===$.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.TEXT:case B.IN_COLUMN_GROUP:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{this._insertCharacters(t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:case B.AFTER_BODY:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{Gw(this,t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Y1(this,t);break}case B.IN_TABLE_TEXT:{Kw(this,t);break}}}}function RX(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Qw(e,t),n}function wX(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function IX(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,l=a;l!==n;o++,l=a){a=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&o>=DX;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=NX(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function NX(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function OX(e,t,n){const r=e.treeAdapter.getTagName(t),a=mc(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&o===xe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function LX(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function GE(e,t){for(let n=0;n<CX;n++){const r=RX(e,t);if(!r)break;const a=wX(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=IX(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),l&&OX(e,l,o),LX(e,a,r)}}function ab(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function MX(e,t){e._appendCommentNode(t,e.openElements.items[0])}function PX(e,t){e._appendCommentNode(t,e.document)}function VE(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(o);l&&!l.endTag&&e._setEndLocation(o,t)}}}}function $X(e,t){e._setDocumentType(t);const n=t.forceQuirks?xa.QUIRKS:hX(t);fX(t)||e._err(t,fe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=B.BEFORE_HTML}function wu(e,t){e._err(t,fe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,xa.QUIRKS),e.insertionMode=B.BEFORE_HTML,e._processToken(t)}function FX(e,t){t.tagID===_.HTML?(e._insertElement(t,xe.HTML),e.insertionMode=B.BEFORE_HEAD):Ju(e,t)}function jX(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&Ju(e,t)}function Ju(e,t){e._insertFakeRootElement(),e.insertionMode=B.BEFORE_HEAD,e._processToken(t)}function BX(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.HEAD:{e._insertElement(t,xe.HTML),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD;break}default:ed(e,t)}}function UX(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?ed(e,t):e._err(t,fe.endTagWithoutMatchingOpenElement)}function ed(e,t){e._insertFakeElement(J.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD,e._processToken(t)}function Ba(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,wn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wn.RAWTEXT):(e._insertElement(t,xe.HTML),e.insertionMode=B.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,wn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,wn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(B.IN_TEMPLATE);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:td(e,t)}}function HX(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=B.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{td(e,t);break}case _.TEMPLATE:{Us(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Us(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,fe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,fe.endTagWithoutMatchingOpenElement)}function td(e,t){e.openElements.pop(),e.insertionMode=B.AFTER_HEAD,e._processToken(t)}function zX(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{Ba(e,t);break}case _.NOSCRIPT:{e._err(t,fe.nestedNoscriptInHead);break}default:nd(e,t)}}function GX(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=B.IN_HEAD;break}case _.BR:{nd(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function nd(e,t){const n=t.type===bt.EOF?fe.openElementsLeftAfterEof:fe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=B.IN_HEAD,e._processToken(t)}function VX(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.BODY:{e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=B.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,xe.HTML),e.insertionMode=B.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,fe.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),Ba(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:rd(e,t)}}function qX(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{rd(e,t);break}case _.TEMPLATE:{Us(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function rd(e,t){e._insertFakeElement(J.BODY,_.BODY),e.insertionMode=B.IN_BODY,Mm(e,t)}function Mm(e,t){switch(t.type){case bt.CHARACTER:{Vw(e,t);break}case bt.WHITESPACE_CHARACTER:{Gw(e,t);break}case bt.COMMENT:{ab(e,t);break}case bt.START_TAG:{yr(e,t);break}case bt.END_TAG:{Pm(e,t);break}case bt.EOF:{Ww(e,t);break}}}function Gw(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Vw(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function YX(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function QX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function WX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_FRAMESET)}function KX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function XX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&rb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,xe.HTML)}function ZX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function JX(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),n||(e.formElement=e.openElements.current))}function eZ(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function tZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.tokenizer.state=wn.PLAINTEXT}function nZ(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1}function rZ(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(GE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function aZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iZ(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(GE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function sZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==xa.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=B.IN_TABLE}function qw(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yw(e){const t=Mw(e,Ss.TYPE);return t!=null&&t.toLowerCase()===SX}function lZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),Yw(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function cZ(e,t){e._appendElement(t,xe.HTML),t.ackSelfClosing=!0}function uZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function dZ(e,t){t.tagName=J.IMG,t.tagID=_.IMG,qw(e,t)}function fZ(e,t){e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=B.TEXT}function hZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wn.RAWTEXT)}function pZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wn.RAWTEXT)}function i2(e,t){e._switchToTextParsing(t,wn.RAWTEXT)}function mZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===B.IN_TABLE||e.insertionMode===B.IN_CAPTION||e.insertionMode===B.IN_TABLE_BODY||e.insertionMode===B.IN_ROW||e.insertionMode===B.IN_CELL?B.IN_SELECT_IN_TABLE:B.IN_SELECT}function gZ(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function yZ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,xe.HTML)}function bZ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,xe.HTML)}function EZ(e,t){e._reconstructActiveFormattingElements(),Uw(t),zE(t),t.selfClosing?e._appendElement(t,xe.MATHML):e._insertElement(t,xe.MATHML),t.ackSelfClosing=!0}function vZ(e,t){e._reconstructActiveFormattingElements(),Hw(t),zE(t),t.selfClosing?e._appendElement(t,xe.SVG):e._insertElement(t,xe.SVG),t.ackSelfClosing=!0}function o2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function yr(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{aZ(e,t);break}case _.A:{rZ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{XX(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{KX(e,t);break}case _.LI:case _.DD:case _.DT:{eZ(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{qw(e,t);break}case _.HR:{uZ(e,t);break}case _.RB:case _.RTC:{yZ(e,t);break}case _.RT:case _.RP:{bZ(e,t);break}case _.PRE:case _.LISTING:{ZX(e,t);break}case _.XMP:{hZ(e,t);break}case _.SVG:{vZ(e,t);break}case _.HTML:{YX(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{Ba(e,t);break}case _.BODY:{QX(e,t);break}case _.FORM:{JX(e,t);break}case _.NOBR:{iZ(e,t);break}case _.MATH:{EZ(e,t);break}case _.TABLE:{sZ(e,t);break}case _.INPUT:{lZ(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{cZ(e,t);break}case _.IMAGE:{dZ(e,t);break}case _.BUTTON:{nZ(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{oZ(e,t);break}case _.IFRAME:{pZ(e,t);break}case _.SELECT:{mZ(e,t);break}case _.OPTION:case _.OPTGROUP:{gZ(e,t);break}case _.NOEMBED:case _.NOFRAMES:{i2(e,t);break}case _.FRAMESET:{WX(e,t);break}case _.TEXTAREA:{fZ(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?i2(e,t):o2(e,t);break}case _.PLAINTEXT:{tZ(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:o2(e,t)}}function TZ(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=B.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function _Z(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=B.AFTER_BODY,rI(e,t))}function xZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function AZ(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function SZ(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(J.P,_.P),e._closePElement()}function CZ(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function DZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function kZ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function RZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function wZ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function Qw(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,l))break}}function Pm(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{GE(e,t);break}case _.P:{SZ(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{xZ(e,t);break}case _.LI:{CZ(e);break}case _.DD:case _.DT:{DZ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{kZ(e);break}case _.BR:{wZ(e);break}case _.BODY:{TZ(e,t);break}case _.HTML:{_Z(e,t);break}case _.FORM:{AZ(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{RZ(e,t);break}case _.TEMPLATE:{Us(e,t);break}default:Qw(e,t)}}function Ww(e,t){e.tmplInsertionModeStack.length>0?nI(e,t):VE(e,t)}function IZ(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function NZ(e,t){e._err(t,fe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Y1(e,t){if(e.openElements.currentTagId!==void 0&&zw.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=B.IN_TABLE_TEXT,t.type){case bt.CHARACTER:{Xw(e,t);break}case bt.WHITESPACE_CHARACTER:{Kw(e,t);break}}else Jd(e,t)}function OZ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_CAPTION}function LZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_COLUMN_GROUP}function MZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,_.COLGROUP),e.insertionMode=B.IN_COLUMN_GROUP,qE(e,t)}function PZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_TABLE_BODY}function $Z(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,_.TBODY),e.insertionMode=B.IN_TABLE_BODY,$m(e,t)}function FZ(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function jZ(e,t){Yw(t)?e._appendElement(t,xe.HTML):Jd(e,t),t.ackSelfClosing=!0}function BZ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,xe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ac(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{$Z(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{Ba(e,t);break}case _.COL:{MZ(e,t);break}case _.FORM:{BZ(e,t);break}case _.TABLE:{FZ(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{PZ(e,t);break}case _.INPUT:{jZ(e,t);break}case _.CAPTION:{OZ(e,t);break}case _.COLGROUP:{LZ(e,t);break}default:Jd(e,t)}}function Id(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{Us(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Jd(e,t)}}function Jd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Mm(e,t),e.fosterParentingEnabled=n}function Kw(e,t){e.pendingCharacterTokens.push(t)}function Xw(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Iu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Jd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Zw=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function UZ(e,t){const n=t.tagID;Zw.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,ac(e,t)):yr(e,t)}function HZ(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,n===_.TABLE&&Id(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Pm(e,t)}}function qE(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.COL:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{Ba(e,t);break}default:Bp(e,t)}}function zZ(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case _.TEMPLATE:{Us(e,t);break}case _.COL:break;default:Bp(e,t)}}function Bp(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE,e._processToken(t))}function $m(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,_.TR),e.insertionMode=B.IN_ROW,Fm(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,ac(e,t));break}default:ac(e,t)}}function ib(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,Id(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:Id(e,t)}}function Fm(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,$m(e,t));break}default:ac(e,t)}}function Jw(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,ib(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,ib(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:Id(e,t)}}function GZ(e,t){const n=t.tagID;Zw.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),Fm(e,t)):yr(e,t)}function VZ(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Jw(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:Pm(e,t)}}function eI(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{Ba(e,t);break}}}function tI(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{Us(e,t);break}}}function qZ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):eI(e,t)}function YZ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):tI(e,t)}function QZ(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{Ba(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=B.IN_TABLE,e.insertionMode=B.IN_TABLE,ac(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=B.IN_COLUMN_GROUP,e.insertionMode=B.IN_COLUMN_GROUP,qE(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=B.IN_TABLE_BODY,e.insertionMode=B.IN_TABLE_BODY,$m(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=B.IN_ROW,e.insertionMode=B.IN_ROW,Fm(e,t);break}default:e.tmplInsertionModeStack[0]=B.IN_BODY,e.insertionMode=B.IN_BODY,yr(e,t)}}function WZ(e,t){t.tagID===_.TEMPLATE&&Us(e,t)}function nI(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):VE(e,t)}function KZ(e,t){t.tagID===_.HTML?yr(e,t):Up(e,t)}function rI(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=B.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Up(e,t)}function Up(e,t){e.insertionMode=B.IN_BODY,Mm(e,t)}function XZ(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.FRAMESET:{e._insertElement(t,xe.HTML);break}case _.FRAME:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{Ba(e,t);break}}}function ZZ(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=B.AFTER_FRAMESET))}function JZ(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.NOFRAMES:{Ba(e,t);break}}}function eJ(e,t){t.tagID===_.HTML&&(e.insertionMode=B.AFTER_AFTER_FRAMESET)}function tJ(e,t){t.tagID===_.HTML?yr(e,t):ep(e,t)}function ep(e,t){e.insertionMode=B.IN_BODY,Mm(e,t)}function nJ(e,t){switch(t.tagID){case _.HTML:{yr(e,t);break}case _.NOFRAMES:{Ba(e,t);break}}}function rJ(e,t){t.chars=dn,e._insertCharacters(t)}function aJ(e,t){e._insertCharacters(t),e.framesetOk=!1}function aI(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==xe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function iJ(e,t){if(vX(t))aI(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===xe.MATHML?Uw(t):r===xe.SVG&&(TX(t),Hw(t)),zE(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function oJ(e,t){if(t.tagID===_.P||t.tagID===_.BR){aI(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===xe.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const Es={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},s2=/[#.]/g;function sJ(e,t){const n=e||"",r={};let a=0,o,l;for(;a<n.length;){s2.lastIndex=a;const c=s2.exec(n),d=n.slice(a,c?c.index:n.length);d&&(o?o==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),c&&(o=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function iI(e,t,n){const r=n?dJ(n):void 0;function a(o,l,...c){let d;if(o==null){d={type:"root",children:[]};const f=l;c.unshift(f)}else{d=sJ(o,t);const f=d.tagName.toLowerCase(),p=r?r.get(f):void 0;if(d.tagName=p||f,lJ(l))c.unshift(l);else for(const[m,b]of Object.entries(l))cJ(e,d.properties,m,b)}for(const f of c)ob(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function lJ(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function cJ(e,t,n,r){const a=Hd(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=Ty(r):a.commaSeparated?o=vy(r):a.commaOrSpaceSeparated?o=Ty(vy(r).join(" ")):o=l2(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?uJ(r):String(r);if(Array.isArray(o)){const l=[];for(const c of o)l.push(l2(a,a.property,c));o=l}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function ob(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ob(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ob(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function l2(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||pd(n)===pd(t)))return!0}return n}function uJ(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function dJ(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const fJ=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],hJ=iI(cc,"div"),pJ=iI(Vi,"g",fJ);function mJ(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=c2(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>o)return{line:l+1,column:o-(l>0?n[l-1]:0)+1,offset:o};l++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const c=n[n.length-1],d=c2(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const l=(o.line>1?n[o.line-2]:0)+o.column-1;if(l<n[o.line-1])return l}}}function c2(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
207
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const oI={}.hasOwnProperty,gJ=Object.prototype;function yJ(e,t){const n=t||{};return YE({file:n.file||void 0,location:!1,schema:n.space==="svg"?Vi:cc,verbose:n.verbose||!1},e)}function YE(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},tp(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:sI(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),l=mJ(o),c=l.toPoint(0),d=l.toPoint(o.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},tp(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},tp(e,r,n),n}default:return n=bJ(e,t),n}}function sI(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=YE(e,t[n]);r.push(a)}return r}function bJ(e,t){const n=e.schema;e.schema=t.namespaceURI===Es.svg?Vi:cc;let r=-1;const a={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;oI.call(gJ,c)||(a[c]=l.value)}const o=(e.schema.space==="svg"?pJ:hJ)(t.tagName,a,sI(e,t.childNodes));if(tp(e,t,o),o.tagName==="template"){const l=t,c=l.sourceCodeLocation,d=c&&c.startTag&&Ul(c.startTag),f=c&&c.endTag&&Ul(c.endTag),p=YE(e,l.content);d&&f&&e.file&&(p.position={start:d.end,end:f.start}),o.content=p}return e.schema=n,o}function tp(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=EJ(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function EJ(e,t,n){const r=Ul(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let l;if(n.attrs)for(l in n.attrs)oI.call(n.attrs,l)&&(o[Hd(e.schema,l).property]=Ul(n.attrs[l]));n.startTag;const c=Ul(n.startTag),d=n.endTag?Ul(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=o,t.data={position:f}}}return r}function Ul(e){const t=u2({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=u2({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function u2(e){return e.line&&e.column?e:void 0}let ef=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ef.prototype.property={};ef.prototype.normal={};ef.prototype.space=null;function lI(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new ef(n,r,t)}function sb(e){return e.toLowerCase()}let ka=class{constructor(t,n){this.property=t,this.attribute=n}};ka.prototype.space=null;ka.prototype.boolean=!1;ka.prototype.booleanish=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.number=!1;ka.prototype.commaSeparated=!1;ka.prototype.spaceSeparated=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.mustUseProperty=!1;ka.prototype.defined=!1;let vJ=0;const ct=Hs(),Pn=Hs(),cI=Hs(),Re=Hs(),Zt=Hs(),Ql=Hs(),Kr=Hs();function Hs(){return 2**++vJ}const lb=Object.freeze(Object.defineProperty({__proto__:null,boolean:ct,booleanish:Pn,commaOrSpaceSeparated:Kr,commaSeparated:Ql,number:Re,overloadedBoolean:cI,spaceSeparated:Zt},Symbol.toStringTag,{value:"Module"})),Q1=Object.keys(lb);let QE=class extends ka{constructor(t,n,r,a){let o=-1;if(super(t,n),d2(this,"space",a),typeof r=="number")for(;++o<Q1.length;){const l=Q1[o];d2(this,Q1[o],(r&lb[l])===lb[l])}}};QE.prototype.defined=!0;function d2(e,t,n){n&&(e[t]=n)}const TJ={}.hasOwnProperty;function gc(e){const t={},n={};let r;for(r in e.properties)if(TJ.call(e.properties,r)){const a=e.properties[r],o=new QE(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[sb(r)]=r,n[sb(o.attribute)]=r}return new ef(t,n,e.space)}const uI=gc({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),dI=gc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function fI(e,t){return t in e?e[t]:t}function hI(e,t){return fI(e,t.toLowerCase())}const pI=gc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hI,properties:{xmlns:null,xmlnsXLink:null}}),mI=gc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pn,ariaAutoComplete:null,ariaBusy:Pn,ariaChecked:Pn,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:Zt,ariaCurrent:null,ariaDescribedBy:Zt,ariaDetails:null,ariaDisabled:Pn,ariaDropEffect:Zt,ariaErrorMessage:null,ariaExpanded:Pn,ariaFlowTo:Zt,ariaGrabbed:Pn,ariaHasPopup:null,ariaHidden:Pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zt,ariaLevel:Re,ariaLive:null,ariaModal:Pn,ariaMultiLine:Pn,ariaMultiSelectable:Pn,ariaOrientation:null,ariaOwns:Zt,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Pn,ariaReadOnly:Pn,ariaRelevant:null,ariaRequired:Pn,ariaRoleDescription:Zt,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Pn,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),_J=gc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hI,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ql,acceptCharset:Zt,accessKey:Zt,action:null,allow:null,allowFullScreen:ct,allowPaymentRequest:ct,allowUserMedia:ct,alt:null,as:null,async:ct,autoCapitalize:null,autoComplete:Zt,autoFocus:ct,autoPlay:ct,blocking:Zt,capture:null,charSet:null,checked:ct,cite:null,className:Zt,cols:Re,colSpan:null,content:null,contentEditable:Pn,controls:ct,controlsList:Zt,coords:Re|Ql,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ct,defer:ct,dir:null,dirName:null,disabled:ct,download:cI,draggable:Pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ct,formTarget:null,headers:Zt,height:Re,hidden:ct,high:Re,href:null,hrefLang:null,htmlFor:Zt,httpEquiv:Zt,id:null,imageSizes:null,imageSrcSet:null,inert:ct,inputMode:null,integrity:null,is:null,isMap:ct,itemId:null,itemProp:Zt,itemRef:Zt,itemScope:ct,itemType:Zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ct,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,multiple:ct,muted:ct,name:null,nonce:null,noModule:ct,noValidate:ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ct,optimum:Re,pattern:null,ping:Zt,placeholder:null,playsInline:ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ct,referrerPolicy:null,rel:Zt,required:ct,reversed:ct,rows:Re,rowSpan:Re,sandbox:Zt,scope:null,scoped:ct,seamless:ct,selected:ct,shadowRootClonable:ct,shadowRootDelegatesFocus:ct,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:Pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:ct,useMap:null,value:Pn,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Zt,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ct,declare:ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:ct,noHref:ct,noShade:ct,noWrap:ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:Pn,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ct,disableRemotePlayback:ct,prefix:null,property:null,results:Re,security:null,unselectable:null}}),xJ=gc({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:fI,properties:{about:Kr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,className:Zt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ql,g2:Ql,glyphName:Ql,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:Kr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kr,rev:Kr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kr,requiredFeatures:Kr,requiredFonts:Kr,requiredFormats:Kr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:Kr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),AJ=lI([dI,uI,pI,mI,_J],"html"),gI=lI([dI,uI,pI,mI,xJ],"svg"),SJ=/^data[-\w.:]+$/i,f2=/-[a-z]/g,CJ=/[A-Z]/g;function DJ(e,t){const n=sb(t);let r=t,a=ka;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&SJ.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(f2,RJ);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!f2.test(o)){let l=o.replace(CJ,kJ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=QE}return new a(r,t)}function kJ(e){return"-"+e.toLowerCase()}function RJ(e){return e.charAt(1).toUpperCase()}const wJ={},IJ={}.hasOwnProperty,yI=am("type",{handlers:{root:OJ,element:FJ,text:PJ,comment:$J,doctype:MJ}});function NJ(e,t){const n=(t||wJ).space;return yI(e,n==="svg"?gI:AJ)}function OJ(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=WE(e.children,n,t),yc(e,n),n}function LJ(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=WE(e.children,n,t),yc(e,n),n}function MJ(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return yc(e,t),t}function PJ(e){const t={nodeName:"#text",value:e.value,parentNode:null};return yc(e,t),t}function $J(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return yc(e,t),t}function FJ(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=gI);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&IJ.call(e.properties,o)){const d=jJ(r,o,e.properties[o]);d&&a.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Es[l],childNodes:[],parentNode:null};return c.childNodes=WE(e.children,c,r),yc(e,c),e.tagName==="template"&&e.content&&(c.content=LJ(e.content,r)),c}function jJ(e,t,n){const r=DJ(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?im(n):om(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=Es[r.space]}return a}function WE(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=yI(e[r],n);o.parentNode=t,a.push(o)}return a}function yc(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const BJ=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,UJ=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),h2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function bI(e,t){const n=XJ(e),r=am("type",{handlers:{root:HJ,element:zJ,text:GJ,comment:vI,doctype:VJ,raw:YJ},unknown:QJ}),a={parser:n?new a2(h2):a2.getFragmentParser(void 0,h2),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),bc(a,di());const o=n?a.parser.document:a.parser.getFragment(),l=yJ(o,{file:a.options.file});return a.stitches&&$r(l,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const m=f.children;return m[d]=p.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function EI(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function HJ(e,t){EI(e.children,t)}function zJ(e,t){WJ(e,t),EI(e.children,t),KJ(e,t)}function GJ(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:bt.CHARACTER,chars:e.value,location:tf(e)};bc(t,di(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function VJ(e,t){const n={type:bt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tf(e)};bc(t,di(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function qJ(e,t){t.stitches=!0;const n=ZJ(e);if("children"in e&&"children"in n){const r=bI({type:"root",children:e.children},t.options);n.children=r.children}vI({type:"comment",value:{stitch:n}},t)}function vI(e,t){const n=e.value,r={type:bt.COMMENT,data:n,location:tf(e)};bc(t,di(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function YJ(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,TI(t,di(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(BJ,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function QJ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))qJ(n,t);else{let r="";throw UJ.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function bc(e,t){TI(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=wn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function TI(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function WJ(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===wn.PLAINTEXT)return;bc(t,di(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Es.html;a===Es.html&&n==="svg"&&(a=Es.svg);const o=NJ({...e,children:[]},{space:a===Es.svg?"svg":"html"}),l={type:bt.START_TAG,tagName:n,tagID:mc(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:tf(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function KJ(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&WD.includes(n)||t.parser.tokenizer.state===wn.PLAINTEXT)return;bc(t,Lm(e));const r={type:bt.END_TAG,tagName:n,tagID:mc(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tf(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===wn.RCDATA||t.parser.tokenizer.state===wn.RAWTEXT||t.parser.tokenizer.state===wn.SCRIPT_DATA)&&(t.parser.tokenizer.state=wn.DATA)}function XJ(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function tf(e){const t=di(e)||{line:void 0,column:void 0,offset:void 0},n=Lm(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function ZJ(e){return"children"in e?Ls({...e,children:[]}):Ls(e)}function JJ(e){return function(t,n){return bI(t,{...e,file:n})}}var eee=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],tee=e=>e;const nee=Ne.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:l=!1,skipHtml:c=!0,onScroll:d,onMouseOver:f,pluginsFilter:p,wrapperElement:m={},warpperElement:b={},urlTransform:y}=e,T=hr(e,eee),A=Ne.useRef(null);N.useImperativeHandle(t,()=>Ae({},e,{mdp:A}),[A,e]);var C=(n||"")+" "+(r||"");IG(A);var x=[...T.rehypePlugins||[]],D={allowElement:(M,w,V)=>T.allowElement?T.allowElement(M,w,V):/^[A-Za-z0-9]+$/.test(M.tagName)};c||x.push(JJ);var S=[DG,...T.remarkPlugins||[],Qq],L=Ae({},b,m);return E.jsx("div",Ae({ref:A,onScroll:d,onMouseOver:f},L,{className:C,style:o,children:E.jsx(IK,Ae({},D,T,{skipHtml:!c,urlTransform:y||tee,rehypePlugins:p?p("rehype",x):x,remarkPlugins:p?p("remark",S):S,children:a||""}))}))});var np={},cb={};function ree(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),l=n[o]||(n[o]={chars:{}});a&&(l.self=e),n=l.chars}}function p2(e){if(e.length===0)return np;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];ree(a,t)}return t}function aee(e){if(e.length===0)return cb;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Nh={},m2={type:"String",optional:!0};function iee(e){var t={type:"NoArgument",optional:!1};function n(l){if(t.type&&t.type!==l&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(l,'".'));t.type=l}for(var r=0,a=e;r<a.length;r++){var o=a[r];o==="NoArgument"&&(t.optional=!0),o==="Formula"&&n("Formula"),o==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),o==="String"&&n("String"),o==="Selector"&&n("Selector")}return t}function oee(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a];if(o)for(var l=0,c=o;l<c.length;l++){var d=c[l];(t[d]||(t[d]=[])).push(a)}}return t}function g2(e){for(var t=oee(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],l=t[o];l&&(n[o]=iee(l))}return n}var ic=function(){return ic=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ic.apply(this,arguments)},see={},ub={wildcard:!0};function lee(e){return e?typeof e=="boolean"?ub:e:see}function cee(e,t){return function(n,r){return t(e(n),e(r))}}function uee(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function y2(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Nl(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=ic({},t),a=0,o=Object.entries(n);a<o.length;a++){var l=o[a],c=l[0],d=l[1];if(c!=="latest"){var f=e[c];r[c]=f(t[c],d)}}return r}}function Mi(e,t){return t!==void 0?t:e}function Oh(e,t){return t?e?e.concat(t):t:e}function b2(e,t){if(!t)return e;if(!e)return t;for(var n=ic({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],l=o[0],c=o[1];if(!c){delete n[l];continue}var d=e[l];if(!d){n[l]=c;continue}n[l]=d.concat(c)}return n}var Cs=uee(Nl({baseSyntax:Mi,modules:Oh,tag:y2(ub,Nl({wildcard:Mi})),ids:Mi,classNames:Mi,namespace:y2(ub,Nl({wildcard:Mi})),combinators:Oh,attributes:Nl({operators:Oh,caseSensitivityModifiers:Oh,unknownCaseSensitivityModifiers:Mi}),pseudoClasses:Nl({unknown:Mi,definitions:b2}),pseudoElements:Nl({unknown:Mi,notation:Mi,definitions:cee(function(e){return Array.isArray(e)?{NoArgument:e}:e},b2)})})),_I={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},xI=Cs(_I,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),db=Cs(xI,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),AI=Cs(db,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Hp={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},SI=ic(ic({},AI),{modules:Object.entries(Hp).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),dee=Cs(SI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),fb={css1:_I,css2:xI,css3:db,"selectors-3":db,"selectors-4":AI,latest:SI,progressive:dee};function fee(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],o=fb[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var l=o.pseudoClasses.definitions;if(l)for(var c=0,d=Object.entries(l);c<d.length;c++)for(var f=d[c],p=f[1],m=0,b=p;m<b.length;m++){var y=b[m];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(a)||e.pseudoClasses[y].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var l=o.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var T=0,A=l;T<A.length;T++){var C=A[T];e.pseudoElements[C]||(e.pseudoElements[C]=[]),e.pseudoElements[C].includes(a)||e.pseudoElements[C].push(a)}else for(var x=0,D=Object.values(l);x<D.length;x++)for(var p=D[x],S=0,L=p;S<L.length;S++){var M=L[S];e.pseudoElements[M]||(e.pseudoElements[M]=[]),e.pseudoElements[M].includes(a)||e.pseudoElements[M].push(a)}}}for(var w=0,V=Object.entries(Hp);w<V.length;w++){var ne=V[w],W=ne[0],k=ne[1];if(k.pseudoClasses&&typeof k.pseudoClasses=="object"){var l=k.pseudoClasses.definitions;if(l)for(var H=0,Q=Object.values(l);H<Q.length;H++)for(var p=Q[H],K=0,re=p;K<re.length;K++){var me=re[K];e.pseudoClasses[me]||(e.pseudoClasses[me]=[]),e.pseudoClasses[me].includes(W)||e.pseudoClasses[me].push(W)}}if(k.pseudoElements&&typeof k.pseudoElements=="object"){var l=k.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var G=0,le=l;G<le.length;G++){var se=le[G];e.pseudoElements[se]||(e.pseudoElements[se]=[]),e.pseudoElements[se].includes(W)||e.pseudoElements[se].push(W)}else for(var ye=0,P=Object.values(l);ye<P.length;ye++)for(var p=P[ye],Le=0,ce=p;Le<ce.length;Le++){var I=ce[Le];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(W)||e.pseudoElements[I].push(W)}}}return e}var E2=fee();function Nu(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function v2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Ou(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var hee={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},pee={'"':!0,"'":!0},W1={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},mee=6,K1="css-selector-parser parse error: ";function gee(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,o=a===void 0?!0:a,l=e.modules,c=typeof n=="object"?n:fb[n];if(c.baseSyntax&&(c=Cs(fb[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var d=0,f=c.modules;d<f.length;d++){var p=f[d],m=Hp[p];m&&(c=Cs(m,c))}if(l&&l.length>0)for(var b=0,y=l;b<y.length;b++){var T=y[b],m=Hp[T];m&&(c=Cs(m,c))}var A=c.tag?[!0,!!lee(c.tag).wildcard]:[!1,!1],C=A[0],x=A[1],D=!!c.ids,S=!!c.classNames,L=!!c.namespace,M=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(L&&!C)throw new Error("".concat(K1,"Namespaces cannot be enabled while tags are disabled."));var w=!!r,V=c.combinators?p2(c.combinators):np,ne=c.attributes?[!0,c.attributes.operators?p2(c.attributes.operators):np,c.attributes.caseSensitivityModifiers?aee(c.attributes.caseSensitivityModifiers):cb,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,np,cb,!1],W=ne[0],k=ne[1],H=ne[2],Q=ne[3],K=Q||Object.keys(H).length>0,re=c.pseudoClasses?[!0,c.pseudoClasses.definitions?g2(c.pseudoClasses.definitions):Nh,c.pseudoClasses.unknown==="accept"]:[!1,Nh,!1],me=re[0],G=re[1],le=re[2],se=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?g2(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):Nh,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,Nh,!1],ye=se[0],P=se[1],Le=se[2],ce=se[3],I=se[4],te="",Ce=te.length,we=0,Pe="",Me=function(_e){return Pe===_e},st=function(){return Me("*")||Nu(Pe)},dt=function(_e){we=_e,Pe=te.charAt(we)},Ue=function(){we++,Pe=te.charAt(we)},Wt=function(){var _e=Pe;return we++,Pe=te.charAt(we),_e};function Nt(_e){var Te=Math.min(Ce-1,we),ot=new Error("".concat(K1).concat(_e," Pos: ").concat(Te,"."));throw ot.position=Te,ot.name="ParserError",ot}function $e(_e,Te){if(!_e)return Nt(Te)}var sr=function(){$e(we<Ce,"Unexpected end of input.")},fn=function(){return we>=Ce},Ve=function(_e){$e(we<Ce,'Expected "'.concat(_e,'" but end of input reached.')),$e(Pe===_e,'Expected "'.concat(_e,'" but "').concat(Pe,'" found.')),we++,Pe=te.charAt(we)};function Jn(_e){var Te=an(_e,we);if(Te)return we+=Te.length,Pe=te.charAt(we),Te}function an(_e,Te){var ot=te.charAt(Te),Ke=_e[ot];if(Ke){var Dn=an(Ke.chars,Te+1);if(Dn)return Dn;if(Ke.self)return Ke.self}}function sn(){for(var _e=Wt(),Te=1;Ou(Pe)&&Te<mee;)_e+=Wt(),Te++;return Ua(),String.fromCharCode(parseInt(_e,16))}function Ye(_e){var Te="";for(Ve(_e);we<Ce;){if(Me(_e))return Ue(),Te;Me("\\")?(Ue(),Me(_e)?(Te+=_e,Ue()):Pe===`
|
|
208
|
+
`||Pe==="\f"?Ue():Pe==="\r"?(Ue(),Me(`
|
|
209
|
+
`)&&Ue()):Ou(Pe)?Te+=sn():(Te+=Pe,Ue())):(Te+=Pe,Ue())}return Te}function Ct(){if(!Nu(Pe))return null;for(var _e="";Me("-");)_e+=Pe,Ue();for(_e==="-"&&!v2(Pe)&&!Me("\\")&&Nt("Identifiers cannot consist of a single hyphen."),o&&_e.length>=2&&Nt("Identifiers cannot start with two hyphens with strict mode on."),W1[Pe]&&Nt("Identifiers cannot start with hyphens followed by digits.");we<Ce;)if(v2(Pe))_e+=Wt();else if(Me("\\"))Ue(),sr(),Ou(Pe)?_e+=sn():_e+=Wt();else break;return _e}function Cr(){for(var _e="";we<Ce&&!Me(")");)if(Me("\\")){if(Ue(),fn()&&!o)return(_e+"\\").trim();sr(),Ou(Pe)?_e+=sn():_e+=Wt()}else _e+=Wt();return _e.trim()}function Ua(){if(Pe===" "||Pe===" "||Pe==="\f"||Pe===`
|
|
210
|
+
`){Ue();return}Pe==="\r"&&Ue(),Pe===`
|
|
211
|
+
`&&Ue()}function Rt(){for(;hee[Pe];)Ue()}function ue(_e){_e===void 0&&(_e=!1),Rt();for(var Te=[Cn(_e)];Me(",");)Ue(),Rt(),Te.push(Cn(_e));return{type:"Selector",rules:Te}}function ve(){Ve("["),Rt();var _e;if(Me("|")){$e(L,"Namespaces are not enabled."),Ue();var Te=Ct();$e(Te,"Expected attribute name."),_e={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(Me("*")){$e(L,"Namespaces are not enabled."),$e(M,"Wildcard namespace is not enabled."),Ue(),Ve("|");var ot=Ct();$e(ot,"Expected attribute name."),_e={type:"Attribute",name:ot,namespace:{type:"WildcardNamespace"}}}else{var Ke=Ct();if($e(Ke,"Expected attribute name."),_e={type:"Attribute",name:Ke},Me("|")){var Dn=we;if(Ue(),Nu(Pe)){$e(L,"Namespaces are not enabled.");var jr=Ct();$e(jr,"Expected attribute name."),_e={type:"Attribute",name:jr,namespace:{type:"NamespaceName",name:Ke}}}else dt(Dn)}}if($e(_e.name,"Expected attribute name."),Rt(),fn()&&!o)return _e;if(Me("]"))Ue();else{if(_e.operator=Jn(k),$e(_e.operator,"Expected a valid attribute selector operator."),Rt(),sr(),pee[Pe])_e.value={type:"String",value:Ye(Pe)};else if(w&&Me("$")){Ue();var Er=Ct();$e(Er,"Expected substitute name."),_e.value={type:"Substitution",name:Er}}else{var lr=Ct();$e(lr,"Expected attribute value."),_e.value={type:"String",value:lr}}if(Rt(),fn()&&!o)return _e;if(!Me("]")){var cr=Ct();if($e(cr,"Expected end of attribute selector."),_e.caseSensitivityModifier=cr,$e(K,"Attribute case sensitivity modifiers are not enabled."),$e(Q||H[_e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Rt(),fn()&&!o)return _e}Ve("]")}return _e}function je(){for(var _e="";W1[Pe];)_e+=Wt();return $e(_e!=="","Formula parse error."),parseInt(_e)}var nt=function(){return Me("-")||Me("+")||W1[Pe]};function Dt(){if(Me("e")||Me("o")){var _e=Ct();if(_e==="even")return Rt(),[2,0];if(_e==="odd")return Rt(),[2,1]}var Te=null,ot=1;if(Me("-")&&(Ue(),ot=-1),nt()&&(Me("+")&&Ue(),Te=je(),!Me("\\")&&!Me("n")))return[0,Te*ot];Te===null&&(Te=1),Te*=ot;var Ke;if(Me("\\")?(Ue(),Ou(Pe)?Ke=sn():Ke=Wt()):Ke=Wt(),$e(Ke==="n",'Formula parse error: expected "n".'),Rt(),Me("+")||Me("-")){var Dn=Me("+")?1:-1;return Ue(),Rt(),[Te,Dn*je()]}else return[Te,0]}function Ot(_e,Te,ot){var Ke;if(Me("(")){if(Ue(),Rt(),w&&Me("$")){Ue();var Dn=Ct();$e(Dn,"Expected substitute name."),Ke={type:"Substitution",name:Dn}}else if(ot.type==="String")Ke={type:"String",value:Cr()},$e(Ke.value,"Expected ".concat(Te," argument value."));else if(ot.type==="Selector")Ke=ue(!0);else if(ot.type==="Formula"){var jr=Dt(),Er=jr[0],lr=jr[1];if(Ke={type:"Formula",a:Er,b:lr},ot.ofSelector&&(Rt(),Me("o")||Me("\\"))){var cr=Ct();$e(cr==="of","Formula of selector parse error."),Rt(),Ke={type:"FormulaOfSelector",a:Er,b:lr,selector:Cn()}}}else return Nt("Invalid ".concat(Te," signature."));if(Rt(),fn()&&!o)return Ke;Ve(")")}else $e(ot.optional,"Argument is required for ".concat(Te,' "').concat(_e,'".'));return Ke}function Vn(){if(Me("*"))return $e(x,"Wildcard tag name is not enabled."),Ue(),{type:"WildcardTag"};if(Nu(Pe)){$e(C,"Tag names are not enabled.");var _e=Ct();return $e(_e,"Expected tag name."),{type:"TagName",name:_e}}else return Nt("Expected tag name.")}function yn(){if(Me("*")){var _e=we;if(Ue(),!Me("|")||(Ue(),!st()))return dt(_e),Vn();$e(L,"Namespaces are not enabled."),$e(M,"Wildcard namespace is not enabled.");var Te=Vn();return Te.namespace={type:"WildcardNamespace"},Te}else if(Me("|")){$e(L,"Namespaces are not enabled."),Ue();var Te=Vn();return Te.namespace={type:"NoNamespace"},Te}else if(Nu(Pe)){var ot=Ct();if($e(ot,"Expected tag name."),!Me("|"))return $e(C,"Tag names are not enabled."),{type:"TagName",name:ot};var _e=we;if(Ue(),!st())return dt(_e),{type:"TagName",name:ot};$e(L,"Namespaces are not enabled.");var Te=Vn();return Te.namespace={type:"NamespaceName",name:ot},Te}else return Nt("Expected tag name.")}function Cn(_e){var Te,ot;_e===void 0&&(_e=!1);var Ke={type:"Rule",items:[]};if(_e){var Dn=Jn(V);Dn&&(Ke.combinator=Dn,Rt())}for(;we<Ce;)if(st())$e(Ke.items.length===0,"Unexpected tag/namespace start."),Ke.items.push(yn());else if(Me("|")){var jr=we;if(Ue(),st())$e(Ke.items.length===0,"Unexpected tag/namespace start."),dt(jr),Ke.items.push(yn());else{dt(jr);break}}else if(Me(".")){$e(S,"Class names are not enabled."),Ue();var Er=Ct();$e(Er,"Expected class name."),Ke.items.push({type:"ClassName",name:Er})}else if(Me("#")){$e(D,"IDs are not enabled."),Ue();var lr=Ct();$e(lr,"Expected ID name."),Ke.items.push({type:"Id",name:lr})}else if(Me("["))$e(W,"Attributes are not enabled."),Ke.items.push(ve());else if(Me(":")){var cr=!1,Ha=!1;Ue(),Me(":")&&($e(ye,"Pseudo elements are not enabled."),$e(Le,"Pseudo elements double colon notation is not enabled."),cr=!0,Ue());var hn=Ct();if($e(cr||hn,"Expected pseudo-class name."),$e(!cr||hn,"Expected pseudo-element name."),$e(hn,"Expected pseudo-class name."),!(!cr||I||Object.prototype.hasOwnProperty.call(ce,hn))){var Br=E2.pseudoElements[hn],Ra='Unknown pseudo-element "'.concat(hn,'"');Br&&Br.length>0&&(Ra+=". It is defined in: ".concat(Br.join(", "))),Nt(Ra+".")}if(Ha=ye&&(cr||!cr&&P&&Object.prototype.hasOwnProperty.call(ce,hn)),Ha){var z=(Te=ce[hn])!==null&&Te!==void 0?Te:I&&m2,X={type:"PseudoElement",name:hn},ie=Ot(hn,"pseudo-element",z);ie&&($e(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),X.argument=ie),Ke.items.push(X)}else{$e(me,"Pseudo-classes are not enabled.");var z=(ot=G[hn])!==null&&ot!==void 0?ot:le&&m2;if(!z){var Br=E2.pseudoClasses[hn],Ra='Unknown pseudo-class: "'.concat(hn,'"');Br&&Br.length>0&&(Ra+=". It is defined in: ".concat(Br.join(", "))),Nt(Ra+".")}var ie=Ot(hn,"pseudo-class",z),Ee={type:"PseudoClass",name:hn};ie&&(Ee.argument=ie),Ke.items.push(Ee)}}else break;if(Ke.items.length===0)return fn()?Nt("Expected rule but end of input reached."):Nt('Expected rule but "'.concat(Pe,'" found.'));if(Rt(),!fn()&&!Me(",")&&!Me(")")){var Dn=Jn(V);Rt(),Ke.nestedRule=Cn(),Ke.nestedRule.combinator=Dn}return Ke}return function(_e){if(typeof _e!="string")throw new Error("".concat(K1,"Expected string input."));return te=_e,Ce=te.length,we=0,Pe=te.charAt(0),ue()}}const yee=gee({syntax:"selectors-4"});function bee(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return yee(e)}const CI="֑-߿יִ-﷽ﹰ-ﻼ",DI="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",Eee=new RegExp("^[^"+DI+"]*["+CI+"]"),vee=new RegExp("^[^"+CI+"]*["+DI+"]");function Tee(e){const t=String(e||"");return Eee.test(t)?"rtl":vee.test(t)?"ltr":"neutral"}function kI(e){return"children"in e?RI(e):"value"in e?e.value:""}function _ee(e){return e.type==="text"?e.value:"children"in e?RI(e):""}function RI(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=_ee(e.children[t]);return n.join("")}function xee(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let l;if(t.type==="element"){const f=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",m=T2(t);f!=null&&(e.language=String(f)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Vi),m==="rtl"?l=m:m==="ltr"||m!=="auto"&&t.tagName==="html"||m!=="auto"&&t.tagName==="input"&&p==="tel"?l="ltr":(m==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?l=X1(kI(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?l=t.properties.value?X1(String(t.properties.value)):"ltr":$r(t,d)),l&&(e.direction=l)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function d(f){if(f.type==="text")return l=X1(f.value),l?Mp:void 0;if(f!==t&&f.type==="element"&&(f.tagName==="bdi"||f.tagName==="script"||f.tagName==="style"||f.tagName==="textare"||T2(f)))return Wu}}function X1(e){const t=Tee(e);return t==="neutral"?void 0:t}function T2(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function Aee(e,t,n){const r=Hd(n,e.name),a=t.properties[r.property];let o=See(a,r);if(!e.value)return o!==void 0;e.value.type;let l=e.value.value;if(e.caseSensitivityModifier==="i"&&(l=l.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return l===o;case"$=":return l===o.slice(-l.length);case"*=":return o.includes(l);case"^=":return l===o.slice(0,l.length);case"|=":return l===o||l===o.slice(0,l.length)&&o.charAt(l.length)==="-";case"~=":return l===o||Ty(o).includes(l)}return!1}function See(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?im:om)(e)}else return String(e)}const Cee=[];function Dee(e,t){return(t.properties.className||Cee).includes(e.name)}function kee(e,t){return t.properties.id===e.name}function Ree(e,t){return e.name===t.tagName}function wee(e,t){return function(n,r){let a=_2(n,"tag");const o=_2(r??"*","range"),l=[];let c=-1;for(;++c<o.length;){const d=o[c].toLowerCase();let f=-1;const p=[];for(;++f<a.length;)e(a[f].toLowerCase(),d)?l.push(a[f]):p.push(a[f]);a=p}return l}}const Iee=wee(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,o=0;if(r[o]!=="*"&&n[a]!==r[o])return!1;for(a++,o++;o<r.length;){if(r[o]==="*"){o++;continue}if(!n[a])return!1;if(n[a]===r[o]){a++,o++;continue}if(n[a].length===1)return!1;a++}return!0});function _2(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const Nee=new Set([9,10,12,13,32]),x2=48,Oee=57;function Lee(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=o(),a=l();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=o(),c(),a=l()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function o(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function l(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=x2&&e.charCodeAt(t)<=Oee;)f=f*10+(e.charCodeAt(t)-x2),t++;return t===d?null:f}function c(){for(;t<e.length&&Nee.has(e.charCodeAt(t));)t++}}var A2,S2;function Mee(){return S2||(S2=1,A2={trueFunc:function(){return!0},falseFunc:function(){return!1}}),A2}var Pee=Mee();const C2=Cm(Pee);function $ee(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return C2.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?C2.trueFunc:o=>o>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?o=>o>=n&&o%r===a:o=>o<=n&&o%r===a}function D2(e){return $ee(Lee(e))}const Fee={}.hasOwnProperty;function Ms(e,t){const n=e.type==="element"&&Fee.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const jee=D2.default||D2,Bee=am("name",{handlers:{"any-link":Uee,blank:Hee,checked:zee,dir:Gee,disabled:wI,empty:Vee,enabled:qee,"first-child":Yee,"first-of-type":Qee,has:Wee,is:II,lang:Xee,"last-child":Zee,"last-of-type":Jee,not:ete,"nth-child":tte,"nth-last-child":nte,"nth-last-of-type":rte,"nth-of-type":ate,"only-child":ite,"only-of-type":ote,optional:ste,"read-only":lte,"read-write":NI,required:OI,root:cte,scope:ute},invalid:Kee,unknown:dte});function Uee(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Ms(t,"href")}function fi(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Hee(e,t){return!LI(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Ud(r)}}function zee(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Ms(t,"checked")):t.tagName==="option"?Ms(t,"selected"):!1}function Gee(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function wI(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Ms(t,"disabled")}function Vee(e,t){return!LI(t,n);function n(r){return r.type==="element"||r.type==="text"}}function qee(e,t){return!wI(e,t)}function Yee(e,t,n,r,a){return fi(a,e),a.elementIndex===0}function Qee(e,t,n,r,a){return fi(a,e),a.typeIndex===0}function jm(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=jee(n.a+"n+"+n.b),e._cachedFn=t}return t}function Wee(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return KE(o,{type:"root",children:t.children}),o.results.length>0}function Kee(){}function II(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return KE(o,t),o.results[0]===t}function Xee(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&Iee(a.language,vy(e.argument.value)).length>0}function Zee(e,t,n,r,a){return fi(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Jee(e,t,n,r,a){return fi(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function ete(e,t,n,r,a){return!II(e,t,n,r,a)}function tte(e,t,n,r,a){const o=jm(e);return fi(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function nte(e,t,n,r,a){const o=jm(e);return fi(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function rte(e,t,n,r,a){const o=jm(e);return fi(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function ate(e,t,n,r,a){const o=jm(e);return fi(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function ite(e,t,n,r,a){return fi(a,e),a.elementCount===1}function ote(e,t,n,r,a){return fi(a,e),a.typeCount===1}function ste(e,t){return!OI(e,t)}function lte(e,t,n,r,a){return!NI(e,t,n,r,a)}function NI(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Ms(t,"readOnly")&&!Ms(t,"disabled"):!!a.editableOrEditingHost}function OI(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Ms(t,"required")}function cte(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function ute(e,t,n,r,a){return a.scopeElements.includes(t)}function LI(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function dte(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function fte(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!Aee(o,t,a.schema))return!1}else if(o.type==="Id"){if(!kee(o,t))return!1}else if(o.type==="ClassName"){if(!Dee(o,t))return!1}else if(o.type==="PseudoClass"){if(!Bee(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!Ree(o,t))return!1}return!0}const hte=[];function KE(e,t){t&&MI(e,[],t,void 0,void 0,t)}function Z1(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function pte(e,t,n,r){const a=rp(t.descendant,t.directChild);let o,l=-1;const c={count:0,types:new Map},d={count:0,types:new Map};for(;++l<n.children.length;)k2(c,n.children[l]);for(l=-1;++l<n.children.length;){const f=n.children[l],p=f.type==="element"?f.tagName.toUpperCase():void 0;if(e.elementIndex=d.count,e.typeIndex=p&&d.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in f){const m=rp(a,o),b=MI(e,m,n.children[l],l,n,r);o=rp(b.generalSibling,b.adjacentSibling)}if(e.one&&e.found)break;k2(d,n.children[l])}}function mte(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let l=-1;for(;++l<t.length;){const c=t[l];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(fte(c,n,r,a,e)){const d=c.nestedRule;if(d){const f=d.combinator==="+"?"adjacentSibling":d.combinator==="~"?"generalSibling":d.combinator===">"?"directChild":"descendant";Z1(o,f,d)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Z1(o,"descendant",c):c.combinator==="~"&&Z1(o,"generalSibling",c)}return o}function rp(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:hte}function k2(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function MI(e,t,n,r,a,o){let l={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=xee(e,n);if(n.type==="element"){let d=e.rootQuery.rules;a&&a!==o&&(d=e.rootQuery.rules.filter(f=>f.combinator===void 0||f.combinator===">"&&a===o)),l=mte(e,rp(t,d),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&pte(e,l,n,o),c(),l}function gte(e,t,n){const r=yte(e,t);return KE(r,t||void 0),r.results}function yte(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:bee(e),schema:cc,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const PI=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=PI(n.children))}),t),bte=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=gte(t,r);a&&a.length>0&&$r(r,a,(o,l,c)=>{n(o,l,c)});return}$r(r,(a,o,l)=>{n(a,o,l)})}}},Ete=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),vte=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},$I=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const o=e[a];if(o&&o.value&&o.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return o.tagName===n?o:void 0}else{const o=e[a];if(!o||o.type==="element"||o.type==="text"&&o.value.replace(/(\n|\s)/g,"")!=="")return;if(o.type&&/^(comment|raw)$/ig.test(o.type))return o.value&&!/^rehype:/.test(o.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?$I(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},R2=({value:e=""})=>{const t=Ete(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},w2=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Tte=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{$r(r,"element",(a,o,l)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&l&&Array.isArray(l.children)&&l.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const d=vte(l.children,o);if(d){const f=R2(d);Object.keys(f).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=w2(c.properties,f,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&l&&Array.isArray(l.children)&&typeof o=="number"){const c=$I(l.children,o,"",n);if(c){const d=R2(c);Object.keys(d).length>0&&(a.properties=w2(a.properties,d,t))}}})}};var _te=function(e){return t=>{$r(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ae({},n.properties,{"data-meta":String(n.data.meta)}))})}},xte=function(e){return t=>{$r(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const Ate=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{$r(r,(a,o,l)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(d=>{if(d.type==="raw"||d.type==="comment"){let f=(d.value||"").trim();if(f=f.replace(/^<!--(.*?)-->/,"$1"),f===t)return c=!0,!1;if(f===n)return c=!1,!1}return!c})}})}};var Ste={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Cte(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const Dte=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,kte=Object.hasOwnProperty;let Rte=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=wte(t,n===!0);const o=a;for(;kte.call(r.occurrences,a);)r.occurrences[o]++,a=o+"-"+r.occurrences[o];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};function wte(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Dte,"").replace(/ /g,"-"))}function FI(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Ite={},I2=new Rte;function Nte(e){const t=(e||Ite).prefix||"";return function(n){I2.reset(),$r(n,"element",function(r){FI(r)&&!r.properties.id&&(r.properties.id=t+I2.slug(kI(r)))})}}const jI=function(e){if(e==null)return Mte;if(typeof e=="string")return Lte(e);if(typeof e=="object")return Ote(e);if(typeof e=="function")return XE(e);throw new Error("Expected function, string, or array as `test`")};function Ote(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=jI(e[n]);return XE(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Lte(e){return XE(t);function t(n){return n.tagName===e}}function XE(e){return t;function t(n,r,a){return!!(Pte(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Mte(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Pte(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const N2={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},$te={};function Fte(e){const t=e||$te;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,l=t.group,c=jI(t.test);let d;return a==="after"||a==="before"?d=p:a==="wrap"?d=m:(d=f,n||(n={ariaHidden:"true",tabIndex:-1})),function(b){$r(b,"element",function(y,T,A){if(FI(y)&&y.properties.id&&c(y,T,A))return Object.assign(y.properties,Lh(r,y)),d(y,T,A)})};function f(b){const y=O2(o||N2,b);return b.children[a==="prepend"?"unshift":"push"](J1(b,Lh(n,b),y)),[Wu]}function p(b,y,T){if(typeof y!="number"||!T)return;const A=O2(o||N2,b),C=J1(b,Lh(n,b),A);let x=a==="before"?[C,b]:[b,C];if(l){const D=BI(l,b);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=x,x=[D])}return T.children.splice(y,1,...x),[Wu,y+x.length]}function m(b){let y=b.children,T=[];return typeof o=="function"?(y=[],T=o(b)):o&&(T=ZE(o)),b.children=[J1(b,Lh(n,b),Array.isArray(T)?[...y,...T]:[...y,T])],[Wu]}}function ZE(e){return Ls(e)}function J1(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function O2(e,t){const n=BI(e,t);return Array.isArray(n)?n:[n]}function BI(e,t){return typeof e=="function"?e(t):ZE(e)}function Lh(e,t){return typeof e=="function"?e(t):e?ZE(e):{}}var jte=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=Ae({class:"anchor"},o.properties),o.children=[Ste])}if(n.type==="element"&&n.tagName==="pre"&&!e){var l=PI(n.children);n.children.push(Cte(l))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},Bte=[Nte,Fte,Ate];const UI=Ne.forwardRef((e,t)=>{var n,r=[_te,xte,...Bte,[bte,{rewrite:jte((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Tte,{properties:"attr"}],...e.rehypePlugins||[]];return E.jsx(nee,Ae({},e,{rehypePlugins:r,ref:t}))});function Ute(e,t){return Ae({},e,t)}var Ec=Ne.createContext({markdown:""});function HI(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ae({},t,HI(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function zI(e,t,n,r,a){t===void 0&&(t=[]);var o=HI(t||[]),l=[];if(e.altKey&&l.push("alt"),e.shiftKey&&l.push("shift"),e.metaKey&&l.push("cmd"),e.ctrlKey&&l.push("ctrl"),l.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&l.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&l.push("escape"),!(l.length<1)){var c=!!o[l.join("+")],d=c?o[l.join("+")]:void 0;if(Object.keys(o).forEach(f=>{var p=f.split("+").every(m=>/ctrlcmd/.test(m)?l.includes("ctrl")||l.includes("cmd"):l.includes(m));p&&(d=o[f])}),d&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(d,r,a,l);return}}}var ey;function L2(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof ey>"u"){var t=document.createElement("textarea");t.value="1",ey=!!t.firstChild}return ey}function Wl(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var l=document.createRange(),c=document.createTextNode(t);if(L2(e)){var d=e.firstChild;if(!d)e.appendChild(c);else{for(var f=0,p=null,m=null;d&&(p===null||m===null);){var b=d.nodeValue.length;a>=f&&a<=f+b&&l.setStart(p=d,a-f),o>=f&&o<=f+b&&l.setEnd(m=d,o-f),f+=b,d=d.nextSibling}a!==o&&l.deleteContents()}}if(L2(e)&&l.commonAncestorContainer.nodeName==="#text")l.insertNode(c);else{var y=e.value;e.value=y.slice(0,a)+t+y.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var T=document.createEvent("UIEvent");T.initEvent("input",!0,!1),e.dispatchEvent(T)}}function Sr(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=Hte(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var l=t.slice(o.start-r.length,o.end+a.length);if(l.startsWith(r)&&l.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function ad(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
212
|
+
`)+1,a=t.slice(n.end).indexOf(`
|
|
213
|
+
`)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function GI(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function VI(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function Hte(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,a=e.length,o=t;o-1>-1;o--)if(n(e[o-1])){r=o;break}for(var l=t;l<e.length;l++)if(n(e[l])){a=l;break}return{start:r,end:a}}function ar(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:o=a}=e;n.length>=a.length+o.length&&n.startsWith(a)&&n.endsWith(o)?(t.replaceSelection(n.slice(a.length,o.length?-o.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+o),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function JE(e,t){var n=e.split(/\n/),r=0,a=n.map((o,l)=>{if(typeof t=="string")return o.startsWith(t)?(r-=t.length,o.slice(t.length)):(r+=t.length,t+o);if(typeof t=="function"){if(o.startsWith(t(o,l)))return r-=t(o,l).length,o.slice(t(o,l).length);var c=t(o,l);return r+=c.length,t(o,l)+o}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
214
|
+
`);return{modifiedText:a,insertionLength:r}}var zte={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:E.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:E.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},qI={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:E.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:E.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",o="\n```\n";r.selectedText.length>=a.length+o.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(o)?(a="```\n",o="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
215
|
+
`||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
216
|
+
`||r.selection.end===e.text.length)&&(o="\n```"));var l=Sr({text:e.text,selection:e.selection,prefix:a,suffix:o}),c=t.setSelectionRange(l);ar({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:o})}},Gte={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:E.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:E.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
217
|
+
`)===-1){var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else qI.execute(e,t)}},Vte={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:E.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:E.jsxs("g",{fill:"none",fillRule:"evenodd",children:[E.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),E.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),E.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ap={keyCommand:"divider"},qte={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function Yte(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Qte=(e,t)=>{var n=Ae({children:e,icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=Ae({},(Yte(r),r));return a.parent=n,Ae({},a)})),n},Wte={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:E.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Kte={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:E.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:E.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Sr({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},Xte={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:E.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:E.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Zte={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:E.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=Sr({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ev=(e,t,n)=>{var r=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),o=GI(a.text,a.selection.start),l=Array(o+1).join(`
|
|
221
|
+
`),c=VI(a.text,a.selection.end),d=Array(c+1).join(`
|
|
222
|
+
`),{modifiedText:f,insertionLength:p}=JE(a.selectedText,n);if(p<0){var m=a.selection.start,b=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
|
|
223
|
+
`&&(m-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
|
|
224
|
+
`&&(b+=1),t.setSelectionRange({start:m,end:b}),t.replaceSelection(""+f),t.setSelectionRange({start:m,end:m+f.length})}else{t.replaceSelection(""+l+f+d);var y=a.selection.start+o,T=y+f.length;t.setSelectionRange({start:y,end:T})}},Jte={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:E.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{ev(e,t,"- ")}},ene={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:E.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{ev(e,t,(n,r)=>r+1+". ")}},tne={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:E.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{ev(e,t,(n,r)=>"- [ ] ")}},nne={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),E.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},rne={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),E.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},ane={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),E.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},ine={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=GI(r.text,r.selection.start),o=Array(a+1).join(`
|
|
225
|
+
`),l=VI(r.text,r.selection.end),c=Array(l+1).join(`
|
|
226
|
+
`),d=JE(r.selectedText,e.command.prefix);t.replaceSelection(""+o+d.modifiedText+c);var f=r.selection.start+a,p=f+d.modifiedText.length;t.setSelectionRange({start:f,end:p})}},one={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:E.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},YI={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:E.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{vc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},sne=YI;function vc(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,o=ad({text:t.text,selection:t.selection}),l=n.setSelectionRange(o);ar({api:n,selectedText:l.selectedText,selection:t.selection,prefix:r,suffix:a})}Ae({},YI,{icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var lne={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:E.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{vc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},cne=lne,une={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:E.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{vc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},dne=une,fne={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:E.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{vc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},hne=fne,pne={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:E.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{vc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},mne=pne,gne={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:E.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{vc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},yne=gne,bne={name:"table",keyCommand:"table",prefix:`
|
|
227
|
+
| Header | Header |
|
|
228
|
+
|--------|--------|
|
|
229
|
+
| Cell | Cell |
|
|
230
|
+
| Cell | Cell |
|
|
231
|
+
| Cell | Cell |
|
|
232
|
+
|
|
233
|
+
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:E.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Ene={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:E.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:E.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},vne=()=>[zte,Xte,one,Wte,Qte([sne,cne,dne,hne,mne,yne],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),ap,Zte,ine,Gte,qI,Vte,Kte,bne,ap,Jte,ene,tne,ap,Ene],Tne=()=>[rne,ane,nne,ap,qte];function zp(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}let tv=class{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Wl(this.textArea,t),zp(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,zp(this.textArea)}};class nv{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new tv(t)}getState(){return this.textArea?zp(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ae({command:t},zp(this.textArea)),this.textApi,n,r,a)}}function ip(e){e.stopPropagation(),e.preventDefault()}function M2(e,t){ip(e);var n=e.target,r=new tv(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=ad({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var o=n.value.slice(a.start,a.end);if(t<0){var l=ad({text:n.value,selection:{start:a.start-1,end:a.start-1}}),c=n.value.slice(l.start,l.end);r.setSelectionRange({start:l.start,end:a.end}),Wl(n,o+`
|
|
234
|
+
`+c),r.setSelectionRange({start:l.start,end:l.start+o.length})}else{var d=ad({text:n.value,selection:{start:a.end+1,end:a.end+1}}),f=n.value.slice(d.start,d.end);r.setSelectionRange({start:a.start,end:d.end}),Wl(n,f+`
|
|
235
|
+
`+o),r.setSelectionRange({start:d.end-o.length,end:d.end})}}}function _ne(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),o=a.split(`
|
|
236
|
+
`),l=o[o.length-1],c=new tv(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){ip(e);var d=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var f=r.value.substring(0,r.selectionStart).split(`
|
|
237
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
238
|
+
`),m=[];p.forEach((V,ne)=>{V!==f[ne]&&m.push(V)});var b=m.join(`
|
|
239
|
+
`),y=r.value.substring(r.selectionStart,r.selectionEnd),T=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(b),end:r.selectionEnd});var A=JE(b,e.shiftKey?"":d),C=A.modifiedText;e.shiftKey&&(C=C.split(`
|
|
240
|
+
`).map(V=>V.replace(new RegExp("^"+d),"")).join(`
|
|
241
|
+
`)),c.replaceSelection(C);var x=e.shiftKey?-t:t,D=e.shiftKey?-m.length*t:m.length*t;c.setSelectionRange({start:T+x,end:T+y.length+D})}else return Wl(r,d)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(l)||/^\d+.\s/.test(l))&&!e.shiftKey){ip(e);var S=`
|
|
242
|
+
- `;return l.startsWith("*")&&(S=`
|
|
243
|
+
* `),(l.startsWith("- [ ]")||l.startsWith("- [X]")||l.startsWith("- [x]"))&&(S=`
|
|
244
|
+
- [ ] `),/^\d+.\s/.test(l)&&(S=`
|
|
245
|
+
`+(parseInt(l)+1)+". "),Wl(r,S)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){ip(e);var L={start:r.selectionStart,end:r.selectionEnd},M=L;L=ad({text:r.value,selection:L});var w=r.value.slice(L.start,L.end);c.setSelectionRange({start:L.end,end:L.end}),Wl(r,`
|
|
246
|
+
`+w),c.setSelectionRange({start:M.start,end:M.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?M2(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&M2(e,1)}var xne=["prefixCls","onChange"],Ane=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Sne(e){var{prefixCls:t,onChange:n}=e,r=hr(e,xne),a=N.useContext(Ec),{markdown:o,commands:l,fullscreen:c,preview:d,highlightEnable:f,extraCommands:p,tabSize:m,defaultTabEnable:b,autoFocusEnd:y,textareaWarp:T,dispatch:A}=a;hr(a,Ane);var C=Ne.useRef(null),x=Ne.useRef(),D=Ne.useRef({fullscreen:c,preview:d});N.useEffect(()=>{D.current={fullscreen:c,preview:d,highlightEnable:f}},[c,d,f]),N.useEffect(()=>{if(C.current&&A){var L=new nv(C.current);x.current=L,A({textarea:C.current,commandOrchestrator:L})}},[]),N.useEffect(()=>{if(y&&C.current&&T){C.current.focus();var L=C.current.value.length;C.current.setSelectionRange(L,L),setTimeout(()=>{T&&(T.scrollTop=T.scrollHeight),C.current&&(C.current.scrollTop=C.current.scrollHeight)},0)}},[T]);var S=L=>{_ne(L,m,b),zI(L,[...l||[],...p||[]],x.current,A,D.current)};return N.useEffect(()=>(C.current&&C.current.addEventListener("keydown",S),()=>{C.current&&C.current.removeEventListener("keydown",S)}),[]),E.jsx("textarea",Ae({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:C,className:t+"-text-input "+(r.className?r.className:""),value:o,onChange:L=>{A&&A({markdown:L.target.value}),n&&n(L)}}))}var Cne=["prefixCls","className","onScroll","renderTextarea"];function Dne(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:o}=t,l=hr(t,Cne),{markdown:c,scrollTop:d,commands:f,extraCommands:p,dispatch:m}=N.useContext(Ec),b=Ne.useRef(null),y=Ne.useRef(),T=Ne.createRef();N.useEffect(()=>{var C={};T.current&&(C.textareaWarp=T.current||void 0,T.current.scrollTop=d||0),m&&m(Ae({},C))},[]),N.useEffect(()=>{if(b.current&&m){var C=new nv(b.current);y.current=C,m({textarea:b.current,commandOrchestrator:C})}},[]);var A={WebkitTextFillColor:"initial",overflow:"auto"};return E.jsx("div",{ref:T,className:n+"-area "+(r||""),onScroll:a,children:E.jsx("div",{className:n+"-text",children:o?Ne.cloneElement(o(Ae({},l,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:m,onChange:l.onChange,shortcuts:zI,useContext:{commands:f,extraCommands:p,commandOrchestrator:y.current}}),{ref:b}):E.jsx(N.Fragment,{children:E.jsx(Sne,Ae({prefixCls:n},l,{style:A}))})})})}function kne(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:o={}}=N.useContext(Ec);return N.useMemo(()=>E.jsx("div",{className:t+"-toolbar-child "+(n&&o[n]?"active":""),onClick:l=>l.stopPropagation(),children:Array.isArray(r)?E.jsx(QI,Ae({commands:r},e,{isChild:!0})):a}),[r,o,n,t])}function P2(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:o={},components:l,commandOrchestrator:c,dispatch:d}=N.useContext(Ec),f=N.useRef("");function p(m,b){if(d){var y={barPopup:Ae({},o)};m.keyCommand==="preview"&&(y.preview=m.value),m.keyCommand==="fullscreen"&&(y.fullscreen=!r),e.commands&&m.keyCommand==="group"?e.commands.forEach(T=>{b===T.groupName?y.barPopup[b]=!0:T.keyCommand&&(y.barPopup[T.groupName]=!1)}):(b||m.parent)&&Object.keys(y.barPopup||{}).forEach(T=>{y.barPopup[T]=!1}),Object.keys(y).length&&d(Ae({},y)),c&&c.executeCommand(m)}}return N.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(f.current||(f.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=f.current))},[r,f,n]),E.jsx("ul",{children:(e.commands||[]).map((m,b)=>{if(m.keyCommand==="divider")return E.jsx("li",Ae({},m.liProps,{className:t+"-toolbar-divider"}),b);if(!m.keyCommand)return E.jsx(N.Fragment,{},b);var y=r&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&a===m.value,T=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},m.groupName),execute:()=>p({execute:m.execute}),dispatch:d}):void 0,A=o&&a&&a==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),C=l?.toolbar||m.render,x=C&&typeof C=="function"?C(m,!!A,p,b):null;return E.jsxs("li",Ae({},m.liProps,{className:y?"active":"",children:[x&&Ne.isValidElement(x)&&x,!x&&!m.buttonProps&&m.icon,!x&&m.buttonProps&&Ne.createElement("button",Ae({type:"button",key:b,disabled:A,"data-name":m.name},m.buttonProps,{onClick:D=>{D.stopPropagation(),p(m,m.groupName)}}),m.icon),m.children&&E.jsx(kne,{overflow:n,groupName:m.groupName,prefixCls:t,children:T,commands:Array.isArray(m.children)?m.children:void 0})]}),b)})})}function QI(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:o}=N.useContext(Ec);return E.jsxs("div",{className:t+"-toolbar "+r,children:[E.jsx(P2,Ae({},e,{commands:e.commands||a||[]})),!n&&E.jsx(P2,Ae({},e,{commands:o||[]}))]})}function $2(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:o}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var l=n?"bottom":"";return E.jsx(QI,{prefixCls:o,overflow:a,className:l})}var Rne=e=>{var{prefixCls:t,onChange:n}=e||{},r=N.useRef(null),a=N.useRef(),o=N.useRef(e.height);N.useEffect(()=>{o.current!==e.height&&(o.current=e.height)},[e.height]);function l(p){if(a.current){var m,b=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY),y=a.current.height+b-a.current.dragY;y>=e.minHeight&&y<=e.maxHeight&&n&&n(a.current.height+(b-a.current.dragY))}}function c(){var p,m;a.current=void 0,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",l),(m=r.current)==null||m.removeEventListener("touchend",c)}function d(p){var m,b,y;p.preventDefault();var T=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY);a.current={height:o.current,dragY:T},document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),(b=r.current)==null||b.addEventListener("touchmove",l,{passive:!1}),(y=r.current)==null||y.addEventListener("touchend",c,{passive:!1})}N.useEffect(()=>{if(document){var p,m;(p=r.current)==null||p.addEventListener("touchstart",d,{passive:!1}),(m=r.current)==null||m.addEventListener("mousedown",d)}return()=>{if(document){var b;(b=r.current)==null||b.removeEventListener("touchstart",d),document.removeEventListener("mousemove",l)}}},[]);var f=N.useMemo(()=>E.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:E.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return E.jsx("div",{className:t+"-bar",ref:r,children:f})},wne=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function Ine(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var Nne=Ne.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:o,commands:l=vne(),commandsFilter:c,direction:d,extraCommands:f=Tne(),height:p=200,enableScroll:m=!0,visibleDragbar:b=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:y=!0,preview:T="live",fullscreen:A=!1,overflow:C=!0,previewOptions:x={},textareaProps:D,maxHeight:S=1200,minHeight:L=100,autoFocus:M,autoFocusEnd:w=!1,tabSize:V=2,defaultTabEnable:ne=!1,onChange:W,onStatistics:k,onHeightChange:H,hideToolbar:Q,toolbarBottom:K=!1,components:re,renderTextarea:me}=n,G=hr(n,wne),le=l.map(Ve=>c?c(Ve,!1):Ve).filter(Boolean),se=f.map(Ve=>c?c(Ve,!0):Ve).filter(Boolean),[ye,P]=N.useReducer(Ute,{markdown:o,preview:T,components:re,height:p,minHeight:L,highlightEnable:y,tabSize:V,defaultTabEnable:ne,scrollTop:0,scrollTopPreview:0,commands:le,extraCommands:se,fullscreen:A,barPopup:{}}),Le=N.useRef(null),ce=N.useRef(null),I=N.useRef(m);N.useImperativeHandle(t,()=>Ae({},ye,{container:Le.current,dispatch:P})),N.useMemo(()=>I.current=m,[m]),N.useEffect(()=>{var Ve={};Le.current&&(Ve.container=Le.current||void 0),Ve.markdown=o||"",Ve.barPopup={},P&&P(Ae({},ye,Ve))},[]);var te=[a,"wmde-markdown-var",d?r+"-"+d:null,r,ye.preview?r+"-show-"+ye.preview:null,ye.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();N.useMemo(()=>o!==ye.markdown&&P({markdown:o||""}),[o,ye.markdown]),N.useMemo(()=>T!==ye.preview&&P({preview:T}),[T]),N.useMemo(()=>V!==ye.tabSize&&P({tabSize:V}),[V]),N.useMemo(()=>y!==ye.highlightEnable&&P({highlightEnable:y}),[y]),N.useMemo(()=>M!==ye.autoFocus&&P({autoFocus:M}),[M]),N.useMemo(()=>w!==ye.autoFocusEnd&&P({autoFocusEnd:w}),[w]),N.useMemo(()=>A!==ye.fullscreen&&P({fullscreen:A}),[A]),N.useMemo(()=>p!==ye.height&&P({height:p}),[p]),N.useMemo(()=>p!==ye.height&&H&&H(ye.height,p,ye),[p,H,ye]),N.useMemo(()=>l!==ye.commands&&P({commands:le}),[e.commands]),N.useMemo(()=>f!==ye.extraCommands&&P({extraCommands:se}),[e.extraCommands]);var Ce=N.useRef(),we=N.useRef("preview"),Pe=N.useRef(!1);N.useMemo(()=>{Ce.current=ye.textareaWarp,ye.textareaWarp&&(ye.textareaWarp.addEventListener("mouseover",()=>{we.current="text"}),ye.textareaWarp.addEventListener("mouseleave",()=>{we.current="preview"}))},[ye.textareaWarp]);var Me=(Ve,Jn)=>{if(I.current){var an=Ce.current,sn=ce.current?ce.current:void 0;if(Pe.current||(we.current=Jn,Pe.current=!0),an&&sn){var Ye=(an.scrollHeight-an.offsetHeight)/(sn.scrollHeight-sn.offsetHeight);Ve.target===an&&we.current==="text"&&(sn.scrollTop=an.scrollTop/Ye),Ve.target===sn&&we.current==="preview"&&(an.scrollTop=sn.scrollTop*Ye);var Ct=0;we.current==="text"?Ct=an.scrollTop||0:we.current==="preview"&&(Ct=sn.scrollTop||0),P({scrollTop:Ct})}}},st=r+"-preview "+(x.className||""),dt=Ve=>Me(Ve,"preview"),Ue=N.useMemo(()=>E.jsx("div",{ref:ce,className:st,children:E.jsx(UI,Ae({},x,{onScroll:dt,source:ye.markdown||""}))}),[st,x,ye.markdown]),Wt=re?.preview&&re?.preview(ye.markdown||"",ye,P);Wt&&Ne.isValidElement(Wt)&&(Ue=E.jsx("div",{className:st,ref:ce,onScroll:dt,children:Wt}));var Nt=Ae({},G.style,{height:ye.height||"100%"}),$e=()=>P({barPopup:Ae({},Ine(ye.barPopup))}),sr=Ve=>P({height:Ve}),fn=Ve=>{if(W&&W(Ve.target.value,Ve,ye),D&&D.onChange&&D.onChange(Ve),ye.textarea&&ye.textarea instanceof HTMLTextAreaElement&&k){var Jn=new nv(ye.textarea),an=Jn.getState()||{};k(Ae({},an,{lineCount:Ve.target.value.split(`
|
|
247
|
+
`).length,length:Ve.target.value.length}))}};return E.jsx(Ec.Provider,{value:Ae({},ye,{dispatch:P}),children:E.jsxs("div",Ae({ref:Le,className:te},G,{onClick:$e,style:Nt,children:[E.jsx($2,{hideToolbar:Q,toolbarBottom:K,prefixCls:r,overflow:C,placement:"top"}),E.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ye.preview||"")&&E.jsx(Dne,Ae({className:r+"-input",prefixCls:r,autoFocus:M},D,{onChange:fn,renderTextarea:re?.textarea||me,onScroll:Ve=>Me(Ve,"text")})),/(live|preview)/.test(ye.preview||"")&&Ue]}),b&&!ye.fullscreen&&E.jsx(Rne,{prefixCls:r,height:ye.height,maxHeight:S,minHeight:L,onChange:sr}),E.jsx($2,{hideToolbar:Q,toolbarBottom:K,prefixCls:r,overflow:C,placement:"bottom"})]}))})}),WI=Nne;WI.Markdown=UI;function One({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const a={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return E.jsx(c3,{sourceAndPaths:t,existingQuery:a,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function Lne({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:a,editingMarkdown:o,sourceAndPaths:l,onCellChange:c,onClose:d,onEdit:f,onDelete:p,addButtonCallback:m}){const[b,y]=N.useState(e.value),[T,A]=Ne.useState(t),[C,x]=Ne.useState(n),[D,S]=Ne.useState(),[L]=Ne.useState(),[M,w]=Ne.useState(zu()),[V,ne]=Ne.useState(!1),[W,k]=Ne.useState(e.sourceName?l.findIndex(I=>I.sourceInfo.name===e.sourceName):0);N.useEffect(()=>{e.isMarkdown||ks(e.value,"malloy").then(I=>{S(I)})},[e]),Ne.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[H,Q]=N.useState(!1),K=()=>{p(),Q(!1)},re=l.length===0,me=Ne.useCallback(()=>{const I=l[W],te=I?.modelPath||e.modelPath||"",Ce=I?.sourceInfo.name||e.sourceName||"";c({...e,value:e.isMarkdown?b:M.query,result:M.malloyResult?JSON.stringify(M.malloyResult):void 0,queryInfo:M.malloyQuery?JSON.stringify(M.malloyQuery):void 0,sourceName:Ce,modelPath:te})},[e,b,M,c,W,l]),G=E.jsx(Sn,{title:"Delete Cell",children:E.jsx(An,{size:"small",onClick:()=>Q(!0),children:E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),le=E.jsxs(Kl,{open:H,onClose:()=>Q(!1),children:[E.jsx(Xl,{children:"Confirm Delete"}),E.jsx(Zl,{children:E.jsx(Ie,{children:"Are you sure you want to delete this cell?"})}),E.jsxs(G2,{children:[E.jsx(rr,{onClick:()=>Q(!1),children:"Cancel"}),E.jsx(rr,{onClick:K,color:"error",children:"Delete"})]})]}),se=()=>{me(),d()},ye=e.isMarkdown?E.jsxs(E.Fragment,{children:[o?E.jsx(Sn,{title:"Save",children:E.jsx(An,{size:"small",onClick:se,children:E.jsx(Ch,{})})}):E.jsx(Sn,{title:"Edit",children:E.jsx(An,{size:"small",onClick:f,children:E.jsx(dC,{})})}),!o&&G]}):E.jsxs(E.Fragment,{children:[!a&&E.jsx(Sn,{title:T?"Hide Code":"View Code",children:E.jsx(An,{size:"small",onClick:()=>{A(!T)},children:E.jsx(f3,{})})}),!r&&!a&&e.result&&E.jsx(Sn,{title:C?"Hide Embedding":"View Embedding",children:E.jsx(An,{size:"small",onClick:()=>{x(!C)},children:E.jsx($d,{})})}),a&&E.jsx(Sn,{title:"Save",children:E.jsx(An,{size:"small",onClick:se,children:E.jsx(Ch,{})})}),!a&&E.jsx(Sn,{title:"Edit",children:E.jsx(An,{size:"small",onClick:f,children:E.jsx(dC,{})})}),!a&&G]}),P=a||o,Le=o?E.jsx(Sn,{title:"Save",children:E.jsx(An,{size:"small",onClick:se,children:E.jsx(Ch,{})})}):a?E.jsx(Sn,{title:"Save",children:E.jsx(An,{size:"small",onClick:se,children:E.jsx(Ch,{})})}):null,ce=V&&E.jsx(it,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!P&&E.jsxs(E.Fragment,{children:[m(!0),m(!1),ye]})||Le});return E.jsxs(zn,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>ne(!0),onMouseLeave:()=>{ne(!1)},children:[ce,e.isMarkdown?E.jsx(E.Fragment,{children:o?E.jsx(WI,{value:b,preview:"edit",autoFocus:!0,onChange:I=>{y(I),c({...e,value:I})},onBlur:()=>{me(),V||se()}}):E.jsx(it,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?E.jsx(it,{onClick:f,sx:{cursor:"pointer"},children:E.jsx(oE,{children:e.value})}):E.jsxs(it,{onClick:f,sx:{cursor:"pointer"},children:[E.jsx(Ie,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),E.jsx(Ie,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):E.jsxs(E.Fragment,{children:[E.jsx(Hi,{in:C,timeout:"auto",unmountOnExit:!0,children:E.jsx(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(Ie,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:L}})})}),E.jsx(Hi,{in:T,timeout:"auto",unmountOnExit:!0,children:E.jsx(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(Ie,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),a&&(re?E.jsxs(E.Fragment,{children:[E.jsx(Ie,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),E.jsx(Ie,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):E.jsx(One,{sourceAndPaths:l,onQueryChange:I=>{w(I)},cell:e,onSourceChange:k})),!a&&e.result&&E.jsx(zn,{variant:"outlined",sx:{borderRadius:0},children:E.jsx(T3,{result:e.result,minHeight:300,maxHeight:800})}),!a&&!e.result&&E.jsxs(it,{onClick:f,sx:{cursor:"pointer"},children:[E.jsx(Ie,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),E.jsx(Ie,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),H&&le]})}const KI=N.createContext(void 0);function Mne({children:e,workbookStorage:t}){const n=N.useMemo(()=>({workbookStorage:t}),[t]);return E.jsx(KI.Provider,{value:n,children:e})}function rv(){const e=N.useContext(KI);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const Pne=Qt(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),$ne=Qt(E.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),Fne=new gm(new or);function jne({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:a}=ra(),{data:o,isLoading:l,isSuccess:c,isError:d,error:f}=br({queryKey:["models",n,r,a],queryFn:x=>Fne.listModels(n,r,a,x)}),[p,m]=Ne.useState(e||[]),[b,y]=Ne.useState(null);Ne.useEffect(()=>{m(e||[])},[e]);const T=x=>{const D=p.filter(S=>S!==x);m(D),t(D)},A=x=>{const D=[...p,x];m(D),t(D),y(null)};let C=[];return c&&o?.data&&(C=o.data.filter(x=>!p.includes(x.path)).map(x=>x.path)),d?E.jsx(ir,{error:f,context:`${n} > ${r} > Model Picker`}):E.jsxs(E.Fragment,{children:[E.jsxs(ty,{fullWidth:!0,children:[l&&E.jsx(Ie,{children:"Loading..."}),E.jsxs(It,{direction:"row",spacing:1,children:[p.map(x=>E.jsx(vs,{label:x,onDelete:()=>T(x),deleteIcon:E.jsx(Pne,{}),sx:{marginBottom:"5px"}},x)),E.jsx(rr,{size:"small",startIcon:E.jsx($ne,{}),onClick:x=>y(x.currentTarget),disabled:l||d||C.length===0,children:"Add Model"})]})]}),E.jsxs(mb,{anchorEl:b,open:!!b,onClose:()=>y(null),children:[E.jsx(Ie,{variant:"subtitle2",sx:{ml:1},children:"Models"}),E.jsx(Zn,{}),C.length===0?E.jsx(Ts,{disabled:!0,children:"No models available"}):C.map(x=>E.jsx(Ts,{onClick:()=>A(x),children:E.jsx(Ie,{variant:"body2",children:x})},x))]})]})}function nf(){const e=xb();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}const Ol=y4({createStyledComponent:on("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>sc({props:e,name:"MuiStack"})}),Bne=new gm(new or);function Une({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r,defaultProjectName:a,defaultPackageName:o}){const l=nf(),{server:c,getAccessToken:d}=RE(),{workbookStorage:f}=rv(),[p,m]=Ne.useState(void 0),[b,y]=Ne.useState(void 0);if(!f)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[T,A]=Ne.useState(),[C,x]=Ne.useState(),[D,S]=Ne.useState(),[L,M]=Ne.useState([]),[w,V]=Ne.useState(null),[ne,W]=Ne.useState(null),k=!!w,H=()=>{V(null),W(null)},Q=(ce,I)=>{T&&(A(T.insertCell(I,{isMarkdown:ce,value:""})),ce?S(I):x(I),H(),console.log("handleAddCell",ce,I))},[K,re]=Ne.useState(!1),me=()=>{re(!0)},G=async()=>{e&&f&&await f.deleteWorkbook(e).then(()=>{y(void 0),m(void 0)}).catch(ce=>{y(`Error deleting workbook: ${ce.message}`),m(void 0)}),re(!1),l(`/${a}/${o}`)},le=()=>{re(!1)},se=Ne.useCallback(async()=>{if(!T){console.log("No workbook data ref");return}try{A(await T.saveWorkbook()),y(void 0),m("Workbook saved")}catch(ce){y(`Error saving workbook: ${ce.message}`),m(void 0)}},[T]);if(Ne.useEffect(()=>{T&&(async()=>{const ce=new Map(L.map(({modelPath:Ce,sourceInfos:we})=>[Ce,we])),I=[],te=[];for(const Ce of T.getModels())ce.has(Ce)?I.push({modelPath:Ce,sourceInfos:ce.get(Ce)}):(console.log("Fetching model from Publisher",Ce),te.push(Bne.getModel(a,o,Ce,void 0,await av(c,d)).then(we=>({modelPath:Ce,sourceInfos:we.data.sourceInfos.map(Pe=>JSON.parse(Pe))}))));if(te.length>0){const Ce=await Promise.all(te);M([...I,...Ce])}else M(I)})()},[d,T,o,a,c]),Ne.useEffect(()=>{e&&gG.loadWorkbook(f,e).then(ce=>{A(ce)})},[e,f]),!T)return E.jsx("div",{children:"Loading..."});const ye=ce=>{const I=[];for(const te of ce)for(const Ce of te.sourceInfos)I.push({modelPath:te.modelPath,sourceInfo:Ce});return I},P=(ce,I)=>E.jsx(rr,{size:"small",startIcon:E.jsx(mG,{}),onClick:()=>Q(ce,I),variant:"contained",sx:{backgroundColor:"#fff",color:te=>te.palette.mode==="dark"?te.palette.grey[100]:te.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:te=>te.palette.mode==="dark"?te.palette.grey[500]:te.palette.grey[300],boxShadow:"none"}},children:ce?"Markdown":"Explore"}),Le=E.jsxs(it,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[P(!1,T.getCells().length),P(!0,T.getCells().length)]});return E.jsxs(zn,{variant:"outlined",children:[E.jsxs(na,{children:[E.jsx(it,{sx:{mb:2},children:E.jsx(it,{sx:{minHeight:"24px"},children:b?E.jsx(Ie,{color:"error",variant:"body2",children:b}):p?E.jsx(Ie,{color:"success",variant:"body2",children:p}):E.jsx("span",{children:" "})})}),E.jsxs(Ol,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[E.jsxs(Ol,{direction:"row",spacing:1,alignItems:"center",children:[E.jsx(Ie,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),E.jsx(Ie,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),E.jsxs(Ol,{sx:{display:"flex",flexDirection:"row",gap:1},children:[E.jsx(it,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:E.jsx(Hne,{workbookData:T})}),E.jsxs(it,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[E.jsx(rr,{color:"error",onClick:me,size:"small",children:"Delete"}),E.jsxs(Kl,{open:K,onClose:le,children:[E.jsx(Xl,{children:"Delete Workbook"}),E.jsx(Zl,{children:E.jsxs(b4,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),E.jsxs(G2,{children:[E.jsx(rr,{onClick:le,color:"primary",size:"small",children:"Cancel"}),E.jsx(rr,{onClick:G,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),E.jsx(Zn,{}),E.jsxs(Ol,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[E.jsx(it,{sx:{flex:1},children:E.jsx(jne,{initialSelectedModels:T.getModels(),onModelChange:ce=>{A(T.setModels(ce)),se()}})}),E.jsx(it,{sx:{flex:1}})]})]}),E.jsx(Wb,{children:E.jsxs(Ol,{children:[T.getCells().length===0&&E.jsxs(E.Fragment,{children:[E.jsx(Ie,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),E.jsx(Ie,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),T.getCells().map((ce,I)=>E.jsx(Ne.Fragment,{children:E.jsx(Lne,{cell:ce,addButtonCallback:te=>P(te,I),sourceAndPaths:ye(L),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:D===I,editingMalloy:C===I,onDelete:()=>{A(T.deleteCell(I)),se()},onCellChange:te=>{A(T.setCell(I,te))},onEdit:()=>{ce.isMarkdown?S(I):x(I)},onClose:()=>{ce.isMarkdown?S(void 0):x(void 0),se()}},`${I}-${ce.isMarkdown}-${e.workspace}-${e.path}`)},`${I}-${T.getCells().length}`)),Le,E.jsxs(mb,{anchorEl:w,open:k,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[E.jsx(Ts,{onClick:()=>Q(!0,ne??0),children:"Add Markdown"}),E.jsx(Ts,{onClick:()=>Q(!1,ne??0),children:"Add Malloy"})]}),E.jsx(Ol,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function Hne({workbookData:e}){const[t,n]=Ne.useState(!1);return E.jsx(rr,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const zne=Qt(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),Gne=Qt(E.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),F2=Qt(E.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),Vne=Qt(E.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),qne=Qt(E.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),Yne=Qt([E.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),E.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),j2=Qt(E.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),Qne=new Wk(new or),Wne=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function Kne({navigate:e}){const{data:t,isSuccess:n,isError:r,error:a}=br({queryKey:["projects"],queryFn:o=>Qne.listProjects(o)});return r?E.jsx(ir,{error:a,context:"Projects List"}):n?E.jsxs(gb,{maxWidth:"lg",sx:{py:4},children:[E.jsxs(it,{sx:{textAlign:"center",mb:6},children:[E.jsxs(It,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(F2,{sx:{fontSize:32,color:"primary.main"}}),E.jsx(Ie,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),E.jsx(Ie,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),E.jsx(Ie,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),E.jsxs(gn,{container:!0,spacing:3,sx:{mb:6},children:[E.jsx(gn,{size:{xs:12,md:4},children:E.jsx($l,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(Fl,{sx:{p:3},children:[E.jsxs(It,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(zne,{sx:{color:"info.main",fontSize:28}}),E.jsx(Ie,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),E.jsx(Ie,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),E.jsx(vs,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),E.jsx(gn,{size:{xs:12,md:4},children:E.jsx($l,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(Fl,{sx:{p:3},children:[E.jsxs(It,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(Vne,{sx:{color:"warning.main",fontSize:28}}),E.jsx(Ie,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),E.jsx(Ie,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),E.jsx(vs,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),E.jsx(gn,{size:{xs:12,md:4},children:E.jsx($l,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(Fl,{sx:{p:3},children:[E.jsxs(It,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(Yne,{sx:{color:"success.main",fontSize:28}}),E.jsx(Ie,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),E.jsx(Ie,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),E.jsx(vs,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),E.jsx(Zn,{sx:{my:4}}),t.data.length>0?E.jsxs(E.Fragment,{children:[E.jsxs(it,{sx:{textAlign:"center",mb:4},children:[E.jsxs(It,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(j2,{sx:{color:"primary.main",fontSize:24}}),E.jsx(Ie,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),E.jsx(Ie,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),E.jsx(gn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(o=>E.jsx(gn,{size:{xs:12,sm:6,md:4},children:E.jsx($l,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:l=>e(`/${o.name}/`,l),children:E.jsxs(Fl,{sx:{p:3,textAlign:"center"},children:[E.jsx(qne,{sx:{fontSize:48,color:"primary.main",mb:2}}),E.jsx(Ie,{variant:"h6",fontWeight:600,gutterBottom:!0,children:o.name}),E.jsx(Ie,{variant:"body2",color:"text.secondary",sx:{mb:2},children:Wne(o.readme)}),E.jsx(rr,{variant:"contained",color:"secondary",endIcon:E.jsx(Gne,{}),fullWidth:!0,children:"Open Project"})]})})},o.name))})]}):E.jsxs(it,{sx:{textAlign:"center",mb:4},children:[E.jsxs(It,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(j2,{sx:{color:"primary.main",fontSize:24}}),E.jsx(Ie,{variant:"h4",fontWeight:600,children:"Get Started"})]}),E.jsx(Ie,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),E.jsx(rr,{variant:"contained",size:"large",color:"primary",startIcon:E.jsx(F2,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),E.jsx(it,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:E.jsxs(Ie,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",E.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):E.jsx(mr,{text:"Loading projects..."})}const XI=new hF({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),av=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function br(e){const{server:t,getAccessToken:n}=RE(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const a=await av(t,n);return await e.queryFn(a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const o=a;if(o.response?.data){const l=new Error(o.response.data.message||o.message);throw l.status=o.response.status,l.data=o.response.data,l}}throw a}},retry:!1,throwOnError:!1};return wF(r,XI)}function Xne(e){const{server:t,getAccessToken:n}=RE(),r={...e,mutationFn:async a=>{try{const o=await av(t,n);return await e.mutationFn(a,o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const l=o;if(l.response?.data){const c=new Error(l.response.data.message||l.message);throw c.status=l.response.status,c.data=l.response.data,c}}throw o}},retry:!1,throwOnError:!1};return IF(r,XI)}const Zne=N.lazy(()=>F(()=>import("./index.es50-Dwe0S21o.js"),__vite__mapDeps([98,94,95]))),Jne=new Jb(new or);function ZI(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function ere({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:a,optionalPackageName:o,optionalVersionId:l}){const c=ra(!1),d=a||c?.projectName,f=o||c?.packageName,p=l||c?.versionId;if(!d||!f)throw new Error("No project or package name provided. Must be set in props or via PackageProvider");const{data:m,isSuccess:b,isError:y,error:T}=br({queryKey:["queryResult",d,f,e,p,t,n,r],queryFn:A=>Jne.executeQuery(d,f,e,t,n,r,p,A)});return E.jsxs(E.Fragment,{children:[!b&&!y&&E.jsx(mr,{text:"Fetching Query Results..."}),b&&E.jsx(N.Suspense,{fallback:E.jsx("div",{children:"Loading..."}),children:E.jsx(Zne,{result:m.data.result})}),y&&E.jsx(ir,{context:`${d} > ${f} > ${e}`,error:T})]})}const tre=Po($l)({display:"flex",flexDirection:"column",height:"100%"});function nre({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:a,expandEmbedding:o,hideEmbeddingIcon:l,noView:c,annotations:d}){const[f,p]=Ne.useState(r),[m,b]=Ne.useState(o),[y,T]=Ne.useState(),[A,C]=Ne.useState(),{packageName:x,projectName:D}=ra(),S=ZI({modelPath:e,sourceName:t,queryName:n,optionalPackageName:x,optionalProjectName:D});return N.useEffect(()=>{ks(S,"typescript").then(L=>{T(L)})},[m,S]),N.useEffect(()=>{if(d&&d.length>0){const L=d.map(M=>`// ${M}`).join(`
|
|
248
|
+
`);ks(L,"typescript").then(M=>{C(M)})}},[d]),E.jsx(E.Fragment,{children:E.jsxs(tre,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[E.jsxs(It,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[E.jsx(Ie,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${c?"":"View >"} ${n}`}),E.jsxs(Vp,{sx:{padding:"0px"},children:[!a&&E.jsx(Sn,{title:f?"Hide Results":"Show Results",children:E.jsx(An,{size:"small",onClick:()=>{p(!f)},children:E.jsx(s8,{})})}),!l&&E.jsx(Sn,{title:m?"Hide Sharing":"Show Sharing",children:E.jsx(An,{size:"small",onClick:()=>{b(!m)},children:E.jsx($d,{})})})]})]}),E.jsxs(Hi,{in:m,timeout:"auto",unmountOnExit:!0,children:[E.jsx(Zn,{}),E.jsxs(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ie,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),E.jsx(Sn,{title:"Copy Embeddable Code",children:E.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(S)},children:E.jsx(rm,{})})})]})]}),E.jsxs(Hi,{in:f,timeout:"auto",unmountOnExit:!0,children:[E.jsx(Zn,{sx:{mb:"4px"}}),A&&E.jsxs(E.Fragment,{children:[E.jsx(It,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(Ie,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:A}})})}),E.jsx(Zn,{sx:{mb:"4px"}})]}),E.jsx(Fl,{children:E.jsx(ere,{modelPath:e,sourceName:t,queryName:n})})]})]})})}function rre({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:o,onChange:l}){const[c,d]=Ne.useState(0),{data:f,isError:p,isLoading:m,error:b}=d3(e,t);return m?E.jsx(mr,{text:"Fetching Model..."}):p?(console.log("error",b),E.jsx(ir,{error:b,context:`ModelExplorer > ${e}`})):E.jsxs(It,{spacing:2,component:"section",children:[Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&E.jsx(It,{sx:{flexDirection:"row",justifyContent:"flex-start"},children:E.jsx(E4,{value:c,onChange:(y,T)=>d(T),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:f.sourceInfos.map((y,T)=>{let A;try{A=JSON.parse(y)}catch{A={name:String(T)}}return E.jsx(v4,{label:A.name||`Source ${T+1}`,sx:{minHeight:36}},A.name||T)})})}),Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&E.jsx(u3,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(f.sourceInfos[c])},onChange:l}),f.queries?.length>0&&E.jsxs(zn,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[E.jsx(na,{sx:{p:"10px"},children:E.jsx(Ie,{variant:"subtitle1",children:"Named Queries"})}),E.jsx(It,{spacing:1,component:"section",children:f.queries.map(y=>E.jsx(nre,{modelPath:e,queryName:y.name,expandResult:n,hideResultIcon:r,expandEmbedding:a,hideEmbeddingIcon:o,noView:!0,annotations:y.annotations},y.name))}),E.jsx(it,{height:"10px"})]}),E.jsx(it,{height:"5px"})]})}function are({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:o,onChange:l}){const[c,d]=Ne.useState(!1),[f,p]=Ne.useState(),{isError:m,isLoading:b,error:y}=d3(e,t),T=ire(e);return N.useEffect(()=>{ks(T,"typescript").then(A=>{p(A)})},[c,T]),b?E.jsx(mr,{text:"Fetching Model..."}):m?(console.log("error",y),E.jsx(ir,{error:y,context:`Model > ${e}`})):E.jsxs(zn,{variant:"outlined",children:[E.jsxs(na,{children:[E.jsx(It,{sx:{flexDirection:"row",justifyContent:"flex-end"},children:!o&&E.jsx(Vp,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:E.jsx(Sn,{title:c?"Hide Embedding":"View Embedding",children:E.jsx(An,{size:"small",onClick:()=>{d(!c)},children:E.jsx($d,{})})})})}),E.jsxs(Hi,{in:c,timeout:"auto",unmountOnExit:!0,children:[E.jsx(Zn,{}),E.jsxs(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ie,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:f}})}),E.jsx(Sn,{title:"Copy Embeddable Code",children:E.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(T)},children:E.jsx(rm,{})})})]})]}),E.jsx(Zn,{})]}),E.jsx(rre,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:o,onChange:l})]})}function ire(e){return`<Model
|
|
249
|
+
modelPath="${e}"
|
|
250
|
+
accessToken={accessToken}
|
|
251
|
+
/>`}function ore({onWorkbookClick:e}){const{workbookStorage:t}=rv(),[n,r]=Ne.useState([]),[a,o]=Ne.useState(void 0);return Ne.useEffect(()=>{t&&t.listWorkspaces(!1).then(l=>{const c=[];Promise.all(l.map(async d=>{await t.listWorkbooks(d).then(f=>{c.push(...f)}).catch(f=>{o(`Error listing workbooks: ${f.message}`)})})).then(()=>{r(c),o(void 0)})})},[t]),E.jsxs(E.Fragment,{children:[a&&E.jsx(it,{sx:{mb:2},children:E.jsx(Ie,{color:"error",variant:"body2",children:a})}),E.jsx(Zn,{}),E.jsx(it,{sx:{maxHeight:"300px",overflow:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0,0,0,0.2)",borderRadius:"4px"}},children:E.jsxs(Gp,{dense:!0,children:[n.length===0&&E.jsx(jl,{children:E.jsx(Ui,{primary:"No workbooks found.",sx:{textAlign:"center"}})}),n.map(l=>E.jsx(jl,{onClick:c=>e(l,c),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:E.jsx(Ui,{primary:l.path})},l.path))]})})]})}const B2="Local";class sre{async listWorkspaces(t){return Promise.resolve([{name:B2,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:B2})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}const lre="README.malloynb";function cre({navigate:e}){return e||(e=t=>{window.location.href=t}),E.jsxs(gn,{container:!0,spacing:2,columns:12,children:[E.jsx(gn,{size:{xs:12,md:4},children:E.jsx(qj,{})}),E.jsx(gn,{size:{xs:12,md:4},children:E.jsx(lG,{navigate:e})}),E.jsx(gn,{size:{xs:12,md:4},children:E.jsx(iG,{navigate:e})}),E.jsx(gn,{size:{xs:12,md:6},children:E.jsx(oB,{})}),E.jsx(gn,{size:{xs:12,md:6},children:E.jsx(aB,{})}),E.jsx(gn,{size:{xs:12,md:12},children:E.jsx(uG,{})}),E.jsx(gn,{size:{xs:12,md:12},children:E.jsx(NR,{notebookPath:lre,hideEmbeddingIcons:!0})})]})}function ure({onWorkbookSelect:e}){const{workbookStorage:t}=rv(),[n,r]=Ne.useState(""),[a,o]=Ne.useState(""),[l,c]=Ne.useState([]),[d,f]=Ne.useState(null),[p,m]=Ne.useState(!1),[b,y]=Ne.useState(!1),T=!!d,A=w=>{f(w.currentTarget)},C=()=>{f(null)},x=()=>{y(!1)},D=()=>{m(!1),r(""),o("")};Ne.useEffect(()=>{t&&(console.log("fetching workspaces"),t.listWorkspaces(!0).then(w=>{c(w),w.length===1&&o(w[0].name)}).catch(w=>{console.error("Error fetching workspaces:",w),c([])}))},[t]);const S=(w,V)=>{y(!1),e(w,V)},L=w=>{m(!1),e({path:n,workspace:a},w),r(""),o("")},M=l.length===0;return E.jsxs(E.Fragment,{children:[E.jsx(rr,{"aria-controls":T?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":T?"true":void 0,onClick:A,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),E.jsxs(mb,{id:"basic-menu",anchorEl:d,open:T,onClose:C,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[E.jsxs(Ts,{onClick:()=>{m(!0),C()},sx:{py:1,px:2},disabled:M,children:[E.jsx($x,{children:E.jsx(T4,{fontSize:"small"})}),E.jsxs(Ui,{children:[E.jsx(Ie,{variant:"body2",fontWeight:500,children:"New Workbook"}),M?E.jsx(Ie,{variant:"caption",color:"text.secondary",children:"No workspaces available"}):E.jsx(Ie,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),E.jsxs(Ts,{onClick:()=>{y(!0),C()},sx:{py:1,px:2},children:[E.jsx($x,{children:E.jsx(_4,{fontSize:"small"})}),E.jsxs(Ui,{children:[E.jsx(Ie,{variant:"body2",fontWeight:500,children:"Open Workbook"}),E.jsx(Ie,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),E.jsxs(Kl,{open:p,onClose:D,maxWidth:"sm",fullWidth:!0,children:[E.jsxs(Xl,{sx:{pb:1,pt:2,px:2},children:[E.jsx(Ie,{fontWeight:600,sx:{fontSize:"1.5rem",mb:.5},children:"Create New Workbook"}),E.jsx(Ie,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),E.jsx(Zl,{sx:{px:2,pb:2},children:E.jsxs(It,{spacing:2,sx:{mt:1},children:[l.length>1?E.jsxs(ty,{fullWidth:!0,size:"small",children:[E.jsx(x4,{children:"Workspace"}),E.jsx(A4,{value:a,label:"Workspace",onChange:w=>o(w.target.value),children:l.map(w=>E.jsx(Ts,{value:w.name,children:E.jsxs(it,{children:[E.jsx(Ie,{variant:"body2",fontWeight:500,children:w.name}),E.jsx(Ie,{variant:"caption",color:"text.secondary",children:w.description})]})},w.name))})]}):l.length===1?E.jsxs(it,{sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"grey.50"},children:[E.jsxs(Ie,{variant:"body2",fontWeight:500,gutterBottom:!0,children:["Workspace: ",l[0].name]}),E.jsx(Ie,{variant:"caption",color:"text.secondary",children:l[0].description})]}):null,E.jsx(ty,{fullWidth:!0,children:E.jsx(S4,{label:"Workbook Name",value:n,onChange:w=>r(w.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),E.jsxs(It,{direction:"row",spacing:1,justifyContent:"flex-end",children:[E.jsx(rr,{onClick:D,variant:"outlined",size:"small",children:"Cancel"}),E.jsx(rr,{onClick:w=>L(w),variant:"contained",disabled:!n.trim()||l.length>1&&!a,size:"small",children:"Create Workbook"})]})]})})]}),E.jsxs(Kl,{open:b,onClose:x,maxWidth:"md",fullWidth:!0,children:[E.jsxs(Xl,{sx:{pb:1,pt:2,px:2},children:[E.jsx(Ie,{fontWeight:600,sx:{mb:.5,fontSize:"1.5rem"},children:"Open Workbook"}),E.jsx(Ie,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),E.jsx(Zl,{sx:{px:2,pb:2},children:E.jsx(ore,{onWorkbookClick:S})})]})]})}new Jb(new or);at.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function dre(){const e=nf();return E.jsx(Kne,{navigate:e})}function fre(){const e=oc(),t=e["*"],n=nf();return E.jsx(it,{sx:{display:"flex",alignItems:"center"},children:E.jsxs(C4,{"aria-label":"breadcrumb",separator:E.jsx(D4,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&E.jsx(vs,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&E.jsx(vs,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&E.jsx(vs,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function hre({logoHeader:e,endCap:t}){const n=xb(),{projectName:r,packageName:a}=oc();return E.jsx(k4,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:E.jsxs(R4,{sx:{justifyContent:"space-between"},children:[E.jsxs(It,{direction:"row",spacing:2,alignItems:"center",children:[e||E.jsxs(it,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(it,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),E.jsx(Ie,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),E.jsx(fre,{})]}),E.jsxs(It,{direction:"row",spacing:2,alignItems:"center",children:[!r||!a?!e&&E.jsxs(E.Fragment,{children:[E.jsx(rr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),E.jsx(rr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),E.jsx(rr,{href:"/api-doc.html",children:"Publisher API"})]}):E.jsx(E.Fragment,{children:E.jsx(ure,{onWorkbookSelect:o=>{n(`/${r}/${a}/workbook/${o.workspace}/${o.path}`)}})}),t]})]})})}function pre({headerProps:e}){return E.jsxs(it,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[E.jsx(hre,{...e}),E.jsx(gb,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:E.jsx(it,{sx:{flex:1},children:E.jsx(u6,{})})})]})}function mre(){const e=oc(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?E.jsx(Dp,{projectName:e.projectName,packageName:e.packageName,children:E.jsx(are,{modelPath:t,hideEmbeddingIcons:!1})}):t?.endsWith(".malloynb")?E.jsx(Dp,{projectName:e.projectName,packageName:e.packageName,children:E.jsx(NR,{notebookPath:t,hideEmbeddingIcons:!1,expandResults:!1})}):E.jsx("div",{children:E.jsxs("h2",{children:["Unrecognized file type: ",t]})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function gre(){const{projectName:e,packageName:t}=oc(),n=nf();return e?t?E.jsx(Dp,{projectName:e,packageName:t,children:E.jsx(cre,{navigate:n})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function yre(){const e=nf(),{projectName:t}=oc();return t?E.jsx(A3,{projectName:t,children:E.jsx(Zj,{navigate:e})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function bre(){const e=cD();return console.error(e),E.jsx(gb,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:E.jsxs(It,{sx:{m:"auto",flexDirection:"column"},children:[E.jsx(it,{sx:{height:"300px"}}),E.jsx("img",{src:"/error.png"}),E.jsx(Ie,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function Ere(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=oc();return e?t?n?r?E.jsx(Dp,{projectName:n,packageName:r,children:E.jsx(Une,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e},hideEmbeddingIcons:!0},`${t}`)}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing workbook path"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing workspace"})})}const un={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},vre=w4({palette:{mode:"light",primary:un.primary,secondary:un.secondary,grey:un.grey,success:un.success,warning:un.warning,error:un.error,info:un.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:un.grey[900],secondary:un.grey[600]},divider:un.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${un.grey[300]} ${un.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:un.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:un.grey[300],borderRadius:"4px","&:hover":{background:un.grey[400]}},"&::-webkit-scrollbar-corner":{background:un.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${un.grey[300]} ${un.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:un.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:un.grey[300],borderRadius:"4px","&:hover":{background:un.grey[400]}},"&::-webkit-scrollbar-corner":{background:un.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:un.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:un.grey[200]}},defaultProps:{sx:{my:1}}}}}),Tre=(e="/",t,n,r,a)=>L6([{path:e,element:E.jsx(yG,{server:r,getAccessToken:a,children:E.jsx(Mne,{workbookStorage:t,children:E.jsxs(I4,{theme:vre,children:[E.jsx(N4,{}),E.jsx(pre,{headerProps:n})]})})}),errorElement:E.jsx(bre,{}),children:[{path:"",element:E.jsx(dre,{})},{path:":projectName",element:E.jsx(yre,{})},{path:":projectName/:packageName",element:E.jsx(gre,{})},{path:":projectName/:packageName/*",element:E.jsx(mre,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:E.jsx(Ere,{})}]}]),_re=`${window.location.protocol}//${window.location.host}/api/v0`,xre=Tre("/",new sre,void 0,_re);j4.createRoot(document.getElementById("root")).render(E.jsx(N.StrictMode,{children:E.jsx(q6,{router:xre})}));export{F as _};
|