comp-hub 0.42.9 → 0.43.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/README.zh-CN.md +144 -0
- package/README.zh-Hant.md +144 -0
- package/dist/cli.js +44 -0
- package/dist/index.js +11 -30
- package/dist/master.js +19 -19
- package/package.json +15 -10
- package/bin/cli.js +0 -59
- package/bin/lib/commands.js +0 -173
- package/bin/lib/constants.js +0 -22
- package/bin/lib/http.js +0 -130
- package/bin/lib/startup.js +0 -254
- package/bin/lib/utils.js +0 -112
- package/dist/website/container/assets/index-6TGp-7st.css +0 -1
- package/dist/website/container/assets/index-BKC7DzZV.js +0 -33
- package/dist/website/container/favicon.ico +0 -0
- package/dist/website/container/index.html +0 -39
- package/dist/website/container/js/less-compiler.js +0 -41
- package/dist/website/container/js/react-jsx-loader.js +0 -233
- package/dist/website/container/js/sass-compiler.js +0 -418
- package/dist/website/container/js/vue2-sfc-loader.js +0 -261
- package/dist/website/container/js/vue3-sfc-loader.js +0 -290
- package/dist/website/item/assets/index-Pkb33-i2.css +0 -1
- package/dist/website/item/assets/index-kBvGmplc.js +0 -62
- package/dist/website/item/favicon.ico +0 -0
- package/dist/website/item/index.html +0 -34
- package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CH79cQAu.js +0 -1
- package/dist/website/main/assets/BaseBadge-D53B9edx.js +0 -1
- package/dist/website/main/assets/BaseBadge-ledSuDnX.css +0 -1
- package/dist/website/main/assets/BaseDialog.vue_vue_type_script_setup_true_lang-Bcc7UYpp.js +0 -1
- package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-RYuIoPF7.js +0 -1
- package/dist/website/main/assets/CanvasAnimation.vue_vue_type_script_setup_true_lang-BNlJ1yyx.js +0 -1
- package/dist/website/main/assets/CodeMirrorEditor-Cqow8ROO-AryRubtp.js +0 -12
- package/dist/website/main/assets/EmptyStatusContainer.vue_vue_type_script_setup_true_lang-kK4W-ekr.js +0 -1
- package/dist/website/main/assets/GithubCallback-BjmPqH_L.js +0 -1
- package/dist/website/main/assets/LoadingWrapper.vue_vue_type_script_setup_true_lang-BPfuSpto.js +0 -1
- package/dist/website/main/assets/ReplyForm.vue_vue_type_script_setup_true_lang-BiETILOo.js +0 -1
- package/dist/website/main/assets/SiteLogo-DEIcFHUB.js +0 -1
- package/dist/website/main/assets/SiteLogo-DbJD21Ac.css +0 -1
- package/dist/website/main/assets/apl-B4CMkyY2.js +0 -1
- package/dist/website/main/assets/asciiarmor-Df11BRmG.js +0 -1
- package/dist/website/main/assets/asn1-EdZsLKOL.js +0 -1
- package/dist/website/main/assets/asterisk-B-8jnY81.js +0 -1
- package/dist/website/main/assets/brainfuck-C4LP7Hcl.js +0 -1
- package/dist/website/main/assets/clike-B9uivgTg.js +0 -1
- package/dist/website/main/assets/clojure-BMjYHr_A.js +0 -1
- package/dist/website/main/assets/cloud-upload-DVf0ki5J.js +0 -1
- package/dist/website/main/assets/cloud-upload-j3Y0taC9.css +0 -1
- package/dist/website/main/assets/cmake-BQqOBYOt.js +0 -1
- package/dist/website/main/assets/cobol-CWcv1MsR.js +0 -1
- package/dist/website/main/assets/coffeescript-S37ZYGWr.js +0 -1
- package/dist/website/main/assets/commonlisp-DBKNyK5s.js +0 -1
- package/dist/website/main/assets/crystal-SjHAIU92.js +0 -1
- package/dist/website/main/assets/css-BnMrqG3P.js +0 -1
- package/dist/website/main/assets/cypher-C_CwsFkJ.js +0 -1
- package/dist/website/main/assets/d-pRatUO7H.js +0 -1
- package/dist/website/main/assets/diff-DbItnlRl.js +0 -1
- package/dist/website/main/assets/dockerfile-BKs6k2Af.js +0 -1
- package/dist/website/main/assets/dtd-DF_7sFjM.js +0 -1
- package/dist/website/main/assets/dylan-DwRh75JA.js +0 -1
- package/dist/website/main/assets/ebnf-CDyGwa7X.js +0 -1
- package/dist/website/main/assets/ecl-Cabwm37j.js +0 -1
- package/dist/website/main/assets/eiffel-CnydiIhH.js +0 -1
- package/dist/website/main/assets/el-card-BAyktVMS.css +0 -1
- package/dist/website/main/assets/el-dropdown-item-BeIfAqTO.css +0 -1
- package/dist/website/main/assets/el-empty-S7fQQ3B8.css +0 -1
- package/dist/website/main/assets/el-link-CPQZ-olG.css +0 -1
- package/dist/website/main/assets/el-table-column-B3ZEEuPD.css +0 -1
- package/dist/website/main/assets/el-table-column-BqpEDPpl.js +0 -1
- package/dist/website/main/assets/elm-vLlmbW-K.js +0 -1
- package/dist/website/main/assets/en-DJCBTPEu.js +0 -1
- package/dist/website/main/assets/erlang-BNw1qcRV.js +0 -1
- package/dist/website/main/assets/factor-kuTfRLto.js +0 -1
- package/dist/website/main/assets/fcl-Kvtd6kyn.js +0 -1
- package/dist/website/main/assets/forth-Ffai-XNe.js +0 -1
- package/dist/website/main/assets/fortran-DYz_wnZ1.js +0 -1
- package/dist/website/main/assets/gas-Bneqetm1.js +0 -1
- package/dist/website/main/assets/gherkin-heZmZLOM.js +0 -1
- package/dist/website/main/assets/groovy-D9Dt4D0W.js +0 -1
- package/dist/website/main/assets/haskell-Cw1EW3IL.js +0 -1
- package/dist/website/main/assets/haxe-H-WmDvRZ.js +0 -1
- package/dist/website/main/assets/home-rounded-B4KVwSYb.css +0 -1
- package/dist/website/main/assets/home-rounded-DcB333c-.js +0 -1
- package/dist/website/main/assets/http-DBlCnlav.js +0 -1
- package/dist/website/main/assets/idl-BEugSyMb.js +0 -1
- package/dist/website/main/assets/index-0jhSi0Id.js +0 -2
- package/dist/website/main/assets/index-6e_pcD2g.js +0 -1
- package/dist/website/main/assets/index-72rReQ2I-Dls_4Kw0.js +0 -6
- package/dist/website/main/assets/index-8dCw6Y2Z.css +0 -1
- package/dist/website/main/assets/index-B-o-geOz.js +0 -1
- package/dist/website/main/assets/index-B6DlcvMU.js +0 -1
- package/dist/website/main/assets/index-BNYhon33.js +0 -1
- package/dist/website/main/assets/index-BOUkLBc8.js +0 -1
- package/dist/website/main/assets/index-BPiRmvZl.js +0 -1
- package/dist/website/main/assets/index-BWSpWNwa.js +0 -4
- package/dist/website/main/assets/index-BhaaT_GF.js +0 -1
- package/dist/website/main/assets/index-Bn5vi5XZ.css +0 -1
- package/dist/website/main/assets/index-BqUqA7W4.js +0 -1
- package/dist/website/main/assets/index-Bqhbsn_n.js +0 -1
- package/dist/website/main/assets/index-BrpXOHl6.js +0 -1
- package/dist/website/main/assets/index-BvmEG8Qn.css +0 -1
- package/dist/website/main/assets/index-BxmgEr3S.js +0 -1
- package/dist/website/main/assets/index-C0WquRMM.css +0 -1
- package/dist/website/main/assets/index-C1Hw6vXQ.js +0 -1
- package/dist/website/main/assets/index-C42i82mF.js +0 -2
- package/dist/website/main/assets/index-C81i40Gx.js +0 -1
- package/dist/website/main/assets/index-C9BP4kWZ.js +0 -6
- package/dist/website/main/assets/index-CFTT7hu0.css +0 -1
- package/dist/website/main/assets/index-CIVzXolG.js +0 -1
- package/dist/website/main/assets/index-CPc1AP3H.js +0 -1
- package/dist/website/main/assets/index-CWMIyyC3.js +0 -1
- package/dist/website/main/assets/index-CdWXO9ks.css +0 -1
- package/dist/website/main/assets/index-CglP2y1M.js +0 -1
- package/dist/website/main/assets/index-ChFpxx4T.css +0 -1
- package/dist/website/main/assets/index-CiPfzZM4.js +0 -1
- package/dist/website/main/assets/index-CioMG7I6.css +0 -1
- package/dist/website/main/assets/index-Cs-jTkU_.js +0 -1
- package/dist/website/main/assets/index-CuvsliuR.js +0 -1
- package/dist/website/main/assets/index-Cv6z_Edq.js +0 -1
- package/dist/website/main/assets/index-CxHPM7Fg.js +0 -1
- package/dist/website/main/assets/index-CytdBEyB.js +0 -1
- package/dist/website/main/assets/index-D-zBzPPy.css +0 -1
- package/dist/website/main/assets/index-D1_g-khQ.js +0 -7
- package/dist/website/main/assets/index-D2eSTfJw.js +0 -1
- package/dist/website/main/assets/index-D3HuxiUJ.js +0 -84
- package/dist/website/main/assets/index-D76eWsZ1-Z0x-dydi.js +0 -1
- package/dist/website/main/assets/index-DFsl7Pen.css +0 -1
- package/dist/website/main/assets/index-DH0rbH_2.js +0 -1
- package/dist/website/main/assets/index-DOlF0Z_P.css +0 -1
- package/dist/website/main/assets/index-DPBASOD1.js +0 -1
- package/dist/website/main/assets/index-DQfTUb4g.js +0 -1
- package/dist/website/main/assets/index-DS0KGu0h.js +0 -1
- package/dist/website/main/assets/index-DVxz8FkV.js +0 -2
- package/dist/website/main/assets/index-DgXgHraR.js +0 -50
- package/dist/website/main/assets/index-DjWcnHPR.js +0 -1
- package/dist/website/main/assets/index-Dms7ZQ2h-B_6qoSW-.js +0 -1
- package/dist/website/main/assets/index-Dnz1UQnr.js +0 -1
- package/dist/website/main/assets/index-DpYJK6hB.js +0 -1
- package/dist/website/main/assets/index-DqiFCfGx-uaEe5kQB.js +0 -1
- package/dist/website/main/assets/index-Dr-xg5xd.js +0 -1
- package/dist/website/main/assets/index-DtBE21vT.js +0 -1
- package/dist/website/main/assets/index-DxdtqQU6.js +0 -1
- package/dist/website/main/assets/index-DxypSQ0K-zR2L90gm.js +0 -1
- package/dist/website/main/assets/index-DzxzRGrk.js +0 -3
- package/dist/website/main/assets/index-Ji2WmMDE.css +0 -1
- package/dist/website/main/assets/index-Mnu1wKgu.css +0 -1
- package/dist/website/main/assets/index-NYRLx08d.js +0 -1
- package/dist/website/main/assets/index-PMqboCW5.js +0 -1
- package/dist/website/main/assets/index-R79ZeMZV.js +0 -1
- package/dist/website/main/assets/index-T76vWLBU-B_wdWDQF.js +0 -13
- package/dist/website/main/assets/index-XhJP7gYm.js +0 -1
- package/dist/website/main/assets/index-fZBcgzqR-CZSkQJVN.js +0 -1
- package/dist/website/main/assets/index-kE41pQo6.js +0 -1
- package/dist/website/main/assets/index-mqeGrL6B-Dup8h8xb.js +0 -1
- package/dist/website/main/assets/index-rRr1TSL-.css +0 -1
- package/dist/website/main/assets/index-tMz4-DEB.js +0 -1
- package/dist/website/main/assets/index-ywM9Y30i.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-B8gjIiIt.js +0 -2
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-BdH7Nx9p.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Bphion84.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C8D789jG.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CfvoANZj.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-uwxiML83.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-DDVUKgQ8.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-DiN6WUUw.js +0 -6
- package/dist/website/main/assets/index3-BB6QcGH6.js +0 -1
- package/dist/website/main/assets/javascript-iXu5QeM3.js +0 -1
- package/dist/website/main/assets/julia-DuME0IfC.js +0 -1
- package/dist/website/main/assets/kid-star-0b7jegzF.js +0 -1
- package/dist/website/main/assets/kid-star-D1M-aC1C.css +0 -1
- package/dist/website/main/assets/livescript-BwQOo05w.js +0 -1
- package/dist/website/main/assets/lua-VAEuO923.js +0 -1
- package/dist/website/main/assets/mathematica-DTrFuWx2.js +0 -1
- package/dist/website/main/assets/mbox-CNhZ1qSd.js +0 -1
- package/dist/website/main/assets/md5-BqUl3L9Y.js +0 -1
- package/dist/website/main/assets/mirc-CjQqDB4T.js +0 -1
- package/dist/website/main/assets/mllike-CXdrOF99.js +0 -1
- package/dist/website/main/assets/modelica-Dc1JOy9r.js +0 -1
- package/dist/website/main/assets/moment-B-YVwB4U.js +0 -4
- package/dist/website/main/assets/mscgen-BA5vi2Kp.js +0 -1
- package/dist/website/main/assets/mumps-BT43cFF4.js +0 -1
- package/dist/website/main/assets/nginx-DdIZxoE0.js +0 -1
- package/dist/website/main/assets/nsis-LdVXkNf5.js +0 -1
- package/dist/website/main/assets/ntriples-BfvgReVJ.js +0 -1
- package/dist/website/main/assets/octave-Ck1zUtKM.js +0 -1
- package/dist/website/main/assets/oz-BzwKVEFT.js +0 -1
- package/dist/website/main/assets/papaparse.min-Brc8PWCw-BsyFjD51.js +0 -10
- package/dist/website/main/assets/pascal--L3eBynH.js +0 -1
- package/dist/website/main/assets/perl-CdXCOZ3F.js +0 -1
- package/dist/website/main/assets/pig-CevX1Tat.js +0 -1
- package/dist/website/main/assets/powershell-CFHJl5sT.js +0 -1
- package/dist/website/main/assets/properties-C78fOPTZ.js +0 -1
- package/dist/website/main/assets/protobuf-ChK-085T.js +0 -1
- package/dist/website/main/assets/pug-DeIclll2.js +0 -1
- package/dist/website/main/assets/puppet-DMA9R1ak.js +0 -1
- package/dist/website/main/assets/python-BuPzkPfP.js +0 -1
- package/dist/website/main/assets/q-pXgVlZs6.js +0 -1
- package/dist/website/main/assets/r-B6wPVr8A.js +0 -1
- package/dist/website/main/assets/rpm-CTu-6PCP.js +0 -1
- package/dist/website/main/assets/ruby-B2Rjki9n.js +0 -1
- package/dist/website/main/assets/sas-B4kiWyti.js +0 -1
- package/dist/website/main/assets/scheme-C41bIUwD.js +0 -1
- package/dist/website/main/assets/settings-BhagQj3w.css +0 -1
- package/dist/website/main/assets/settings-DpNeh4hy.js +0 -1
- package/dist/website/main/assets/shell-CjFT_Tl9.js +0 -1
- package/dist/website/main/assets/sieve-C3Gn_uJK.js +0 -1
- package/dist/website/main/assets/simple-mode-GW_nhZxv.js +0 -1
- package/dist/website/main/assets/smalltalk-CnHTOXQT.js +0 -1
- package/dist/website/main/assets/solr-DehyRSwq.js +0 -1
- package/dist/website/main/assets/sparql-DkYu6x3z.js +0 -1
- package/dist/website/main/assets/spreadsheet-BCZA_wO0.js +0 -1
- package/dist/website/main/assets/sql-D0XecflT.js +0 -1
- package/dist/website/main/assets/stex-C3f8Ysf7.js +0 -1
- package/dist/website/main/assets/stylus-B533Al4x.js +0 -1
- package/dist/website/main/assets/supervised-user-circle-B5yCz5Oo.js +0 -1
- package/dist/website/main/assets/supervised-user-circle-CZYpyCV4.css +0 -1
- package/dist/website/main/assets/swift-BzpIVaGY.js +0 -1
- package/dist/website/main/assets/sync-saved-locally-rounded-BX8GcRCO.js +0 -1
- package/dist/website/main/assets/sync-saved-locally-rounded-wbwASI26.css +0 -1
- package/dist/website/main/assets/tcl-DVfN8rqt.js +0 -1
- package/dist/website/main/assets/terminal-DFt3N_TH.css +0 -1
- package/dist/website/main/assets/terminal-DXqN9Hoj.js +0 -1
- package/dist/website/main/assets/textile-CnDTJFAw.js +0 -1
- package/dist/website/main/assets/tiddlywiki-DO-Gjzrf.js +0 -1
- package/dist/website/main/assets/tiki-DGYXhP31.js +0 -1
- package/dist/website/main/assets/toml-Bm5Em-hy.js +0 -1
- package/dist/website/main/assets/troff-wAsdV37c.js +0 -1
- package/dist/website/main/assets/ttcn-CfJYG6tj.js +0 -1
- package/dist/website/main/assets/ttcn-cfg-B9xdYoR4.js +0 -1
- package/dist/website/main/assets/turtle-B1tBg_DP.js +0 -1
- package/dist/website/main/assets/useCacheOssStore-DRfQruRw.js +0 -1
- package/dist/website/main/assets/useCompEditStore-C2cDxPfw.css +0 -1
- package/dist/website/main/assets/useCompEditStore-DpFLk9bE.js +0 -70
- package/dist/website/main/assets/useCompMetaLocalStore-Dko7Z-qO.js +0 -1
- package/dist/website/main/assets/useKeyword-Dh8n_REW.js +0 -1
- package/dist/website/main/assets/useMessage-DeFP0yQy.js +0 -1
- package/dist/website/main/assets/useTeamHeaders-BSofrH8c.css +0 -1
- package/dist/website/main/assets/useTeamHeaders-Bl2nRtJe.js +0 -380
- package/dist/website/main/assets/useUnreadStore-C1fMXHK-.js +0 -1
- package/dist/website/main/assets/useVscodeOpen-CcI7l8e8.js +0 -1
- package/dist/website/main/assets/v4-EwEgHOG0.js +0 -1
- package/dist/website/main/assets/vb-CmGdzxic.js +0 -1
- package/dist/website/main/assets/vbscript-BuJXcnF6.js +0 -1
- package/dist/website/main/assets/velocity-D8B20fx6.js +0 -1
- package/dist/website/main/assets/vendor-core-CfnvwQzw.js +0 -3
- package/dist/website/main/assets/vendor-ui-g5RNTRAc.js +0 -50
- package/dist/website/main/assets/vendor-xterm-mNFjEaKn.js +0 -9
- package/dist/website/main/assets/verilog-C6RDOZhf.js +0 -1
- package/dist/website/main/assets/vhdl-lSbBsy5d.js +0 -1
- package/dist/website/main/assets/webidl-ZXfAyPTL.js +0 -1
- package/dist/website/main/assets/xquery-DzFWVndE.js +0 -1
- package/dist/website/main/assets/yacas-BJ4BC0dw.js +0 -1
- package/dist/website/main/assets/z80-Hz9HOZM7.js +0 -1
- package/dist/website/main/assets/zhCN-VSAW5gZn.js +0 -1
- package/dist/website/main/favicon.ico +0 -0
- package/dist/website/main/index.html +0 -111
- package/dist/website/main/md/COMP_REPEAT.en.md +0 -20
- package/dist/website/main/md/COMP_REPEAT.zh.md +0 -20
- package/dist/website/main/md/PUT_TREATY.en.md +0 -68
- package/dist/website/main/md/PUT_TREATY.zh.md +0 -68
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import{I as au,O as Gs,P as Vo,U as Og,R as Br,a0 as wn,a1 as Gr,H as TS,af as FS,T as Al,m as wS,Q as cc,u as et,W as SS,Y as Et,a2 as yt,aD as kS,aA as bd,w as fh,$ as PS,Z as IS,a3 as BS,aE as NS,a as ra,n as iy,aC as LS,aJ as $S}from"./vendor-core-CfnvwQzw.js";import{k as MS,O as OS,s as go,a6 as _g,aa as _S,w as jS,t as ay,a8 as oy,T as RS,D as qS,c as US,an as zS,a7 as VS,ao as HS,ap as WS}from"./vendor-ui-g5RNTRAc.js";import{_ as Ed,H as Cs,J as JS,e as GS,I as vl,f as KS}from"./index-DgXgHraR.js";import{_ as XS}from"./BaseDialog.vue_vue_type_script_setup_true_lang-Bcc7UYpp.js";/* empty css *//* empty css */function YS(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const n in s)if(n!=="default"&&!(n in t)){const i=Object.getOwnPropertyDescriptor(s,n);i&&Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>s[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const QS={class:"loading-text"},ZS={class:"loading-dots"},e3=au({__name:"Loading",props:{text:{default:"加载中"},fullscreen:{type:Boolean,default:!1}},setup(t){const e=t,r=wS(()=>`${e.text} `);return(s,n)=>(Gs(),Vo("div",{class:Og(["loading-wrapper",{"loading-inline":!t.fullscreen}])},[Br("span",QS,[wn(Gr(r.value),1),Br("span",ZS,[(Gs(),Vo(TS,null,FS(3,i=>Br("span",{key:i,class:"loading-dot",style:Al({animationDelay:`${(i-1)*.3}s`})},".",4)),64))])])],2))}}),t3=Ed(e3,[["__scopeId","data-v-76e7f076"]]);var r3=Object.defineProperty,Cd=(t,e)=>{for(var r in e)r3(t,r,{get:e[r],enumerable:!0})},s3={};Cd(s3,{__debug:()=>n8,check:()=>r8,doc:()=>M1,format:()=>Es,formatWithCursor:()=>R1,getSupportInfo:()=>s8,util:()=>O1,version:()=>P4});var ou=(t,e)=>(r,s,...n)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,n),n3=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},i3=ou("replaceAll",function(){if(typeof this=="string")return n3}),pc=i3,a3=class{diff(e,r,s={}){let n;typeof s=="function"?(n=s,s={}):"callback"in s&&(n=s.callback);let i=this.castInput(e,s),o=this.castInput(r,s),u=this.removeEmpty(this.tokenize(i,s)),c=this.removeEmpty(this.tokenize(o,s));return this.diffWithOptionsObj(u,c,s,n)}diffWithOptionsObj(e,r,s,n){var i;let o=C=>{if(C=this.postProcess(C,s),n){setTimeout(function(){n(C)},0);return}else return C},u=r.length,c=e.length,d=1,p=u+c;s.maxEditLength!=null&&(p=Math.min(p,s.maxEditLength));let f=(i=s.timeout)!==null&&i!==void 0?i:1/0,D=Date.now()+f,m=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(m[0],r,e,0,s);if(m[0].oldPos+1>=c&&g+1>=u)return o(this.buildValues(m[0].lastComponent,r,e));let x=-1/0,b=1/0,A=()=>{for(let C=Math.max(x,-d);C<=Math.min(b,d);C+=2){let v,P=m[C-1],T=m[C+1];P&&(m[C-1]=void 0);let F=!1;if(T){let I=T.oldPos-C;F=T&&0<=I&&I<u}let k=P&&P.oldPos+1<c;if(!F&&!k){m[C]=void 0;continue}if(!k||F&&P.oldPos<T.oldPos?v=this.addToPath(T,!0,!1,0,s):v=this.addToPath(P,!1,!0,1,s),g=this.extractCommon(v,r,e,C,s),v.oldPos+1>=c&&g+1>=u)return o(this.buildValues(v.lastComponent,r,e))||!0;m[C]=v,v.oldPos+1>=c&&(b=Math.min(b,C-1)),g+1>=u&&(x=Math.max(x,C+1))}d++};if(n)(function C(){setTimeout(function(){if(d>p||Date.now()>D)return n(void 0);A()||C()},0)})();else for(;d<=p&&Date.now()<=D;){let C=A();if(C)return C}}addToPath(e,r,s,n,i){let o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===r&&o.removed===s?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:r,removed:s,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:r,removed:s,previousComponent:o}}}extractCommon(e,r,s,n,i){let o=r.length,u=s.length,c=e.oldPos,d=c-n,p=0;for(;d+1<o&&c+1<u&&this.equals(s[c+1],r[d+1],i);)d++,c++,p++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return p&&!i.oneChangePerToken&&(e.lastComponent={count:p,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=c,d}equals(e,r,s){return s.comparator?s.comparator(e,r):e===r||!!s.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){let r=[];for(let s=0;s<e.length;s++)e[s]&&r.push(e[s]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,s){let n=[],i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();let o=n.length,u=0,c=0,d=0;for(;u<o;u++){let p=n[u];if(p.removed)p.value=this.join(s.slice(d,d+p.count)),d+=p.count;else{if(!p.added&&this.useLongestToken){let f=r.slice(c,c+p.count);f=f.map(function(D,m){let g=s[d+m];return g.length>D.length?g:D}),p.value=this.join(f)}else p.value=this.join(r.slice(c,c+p.count));c+=p.count,p.added||(d+=p.count)}}return n}},o3=class extends a3{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},u3=new o3;function l3(t,e,r){return u3.diff(t,e,r)}var c3=()=>{},p3=c3,jg="cr",Rg="crlf",h3="lf",d3=h3,Ad="\r",qg=`\r
|
|
2
|
-
`,hc=`
|
|
3
|
-
`,f3=hc;function m3(t){let e=t.indexOf(Ad);return e!==-1?t.charAt(e+1)===hc?Rg:jg:d3}function vd(t){return t===jg?Ad:t===Rg?qg:f3}var y3=new Map([[hc,/\n/g],[Ad,/\r/g],[qg,/\r\n/g]]);function Ug(t,e){let r=y3.get(e);return t.match(r)?.length??0}var D3=/\r\n?/g;function g3(t){return pc(0,t,D3,hc)}var dc=Symbol.for("comments");function x3(t){return this[t<0?this.length+t:t]}var b3=ou("at",function(){if(Array.isArray(this)||typeof this=="string")return x3}),Kt=b3,Ei="string",Ys="array",_n="cursor",sn="indent",nn="align",an="trim",Er="group",Is="fill",Lr="if-break",on="indent-if-break",un="line-suffix",ln="line-suffix-boundary",Zt="line",Bs="label",Yr="break-parent",zg=new Set([_n,sn,nn,an,Er,Is,Lr,on,un,ln,Zt,Bs,Yr]);function E3(t){let e=t.length;for(;e>0&&(t[e-1]==="\r"||t[e-1]===`
|
|
4
|
-
`);)e--;return e<t.length?t.slice(0,e):t}function Td(t,e,r){if(!t.has(e)){let s=r(e);t.set(e,s)}return t.get(e)}function C3(t){if(typeof t=="string")return Ei;if(Array.isArray(t))return Ys;if(!t)return;let{type:e}=t;if(zg.has(e))return e}var Ci=C3,A3=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function v3(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
5
|
-
Expected it to be 'string' or 'object'.`;if(Ci(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=A3([...zg].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
6
|
-
Expected it to be ${s}.`}var T3=class extends Error{name="InvalidDocError";constructor(e){super(v3(e)),this.doc=e}},aa=T3,uy={};function F3(t,e,r,s){let n=[t];for(;n.length>0;){let i=n.pop();if(i===uy){r(n.pop());continue}r&&n.push(i,uy);let o=Ci(i);if(!o)throw new aa(i);if(e?.(i)!==!1)switch(o){case Ys:case Is:{let u=o===Ys?i:i.parts;for(let c=u.length,d=c-1;d>=0;--d)n.push(u[d]);break}case Lr:n.push(i.flatContents,i.breakContents);break;case Er:if(s&&i.expandedStates)for(let u=i.expandedStates.length,c=u-1;c>=0;--c)n.push(i.expandedStates[c]);else n.push(i.contents);break;case nn:case sn:case on:case Bs:case un:n.push(i.contents);break;case Ei:case _n:case an:case ln:case Zt:case Yr:break;default:throw new aa(i)}}}var Fd=F3;function fc(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(i){return Td(r,i,n)}function n(i){switch(Ci(i)){case Ys:return e(i.map(s));case Is:return e({...i,parts:i.parts.map(s)});case Lr:return e({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Er:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(s),u=o[0]):u=s(u),e({...i,contents:u,expandedStates:o})}case nn:case sn:case on:case Bs:case un:return e({...i,contents:s(i.contents)});case Ei:case _n:case an:case ln:case Zt:case Yr:return e(i);default:throw new aa(i)}}}function wd(t,e,r){let s=r,n=!1;function i(o){if(n)return!1;let u=e(o);u!==void 0&&(n=!0,s=u)}return Fd(t,i),s}function w3(t){if(t.type===Er&&t.break||t.type===Zt&&t.hard||t.type===Yr)return!0}function S3(t){return wd(t,w3,!1)}function ly(t){if(t.length>0){let e=Kt(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function k3(t){let e=new Set,r=[];function s(i){if(i.type===Yr&&ly(r),i.type===Er){if(r.push(i),e.has(i))return!1;e.add(i)}}function n(i){i.type===Er&&r.pop().break&&ly(r)}Fd(t,s,n,!0)}function P3(t){return t.type===Zt&&!t.hard?t.soft?"":" ":t.type===Lr?t.flatContents:t}function I3(t){return fc(t,P3)}function cy(t){for(t=[...t];t.length>=2&&Kt(0,t,-2).type===Zt&&Kt(0,t,-1).type===Yr;)t.length-=2;if(t.length>0){let e=Fo(Kt(0,t,-1));t[t.length-1]=e}return t}function Fo(t){switch(Ci(t)){case sn:case on:case Er:case un:case Bs:{let e=Fo(t.contents);return{...t,contents:e}}case Lr:return{...t,breakContents:Fo(t.breakContents),flatContents:Fo(t.flatContents)};case Is:return{...t,parts:cy(t.parts)};case Ys:return cy(t);case Ei:return E3(t);case nn:case _n:case an:case ln:case Zt:case Yr:break;default:throw new aa(t)}return t}function Vg(t){return Fo(N3(t))}function B3(t){switch(Ci(t)){case Is:{let{parts:e}=t;if(e.every(r=>r===""))return"";if(e.length===1)return e[0];break}case Er:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Er&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case nn:case sn:case on:case un:if(!t.contents)return"";break;case Lr:if(!t.flatContents&&!t.breakContents)return"";break;case Ys:{let e=[];for(let r of t){if(!r)continue;let[s,...n]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof Kt(0,e,-1)=="string"?e[e.length-1]+=s:e.push(s),e.push(...n)}return e.length===0?"":e.length===1?e[0]:e}case Ei:case _n:case an:case ln:case Zt:case Bs:case Yr:break;default:throw new aa(t)}return t}function N3(t){return fc(t,e=>B3(e))}function L3(t,e=Yg){return fc(t,r=>typeof r=="string"?Gg(e,r.split(`
|
|
7
|
-
`)):r)}function $3(t){if(t.type===Zt)return!0}function M3(t){return wd(t,$3,!1)}function Tl(t,e){return t.type===Bs?{...t,contents:e(t.contents)}:e(t)}var O3=p3;function Ul(t){return{type:sn,contents:t}}function oa(t,e){return{type:nn,contents:e,n:t}}function _3(t){return oa(Number.NEGATIVE_INFINITY,t)}function Hg(t){return oa({type:"root"},t)}function j3(t){return oa(-1,t)}function Wg(t,e,r){let s=t;if(e>0){for(let n=0;n<Math.floor(e/r);++n)s=Ul(s);s=oa(e%r,s),s=oa(Number.NEGATIVE_INFINITY,s)}return s}var mc={type:Yr},ai={type:_n};function R3(t){return{type:Is,parts:t}}function Jg(t,e={}){return O3(e.expandedStates),{type:Er,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function q3(t,e){return Jg(t[0],{...e,expandedStates:t})}function U3(t,e="",r={}){return{type:Lr,breakContents:t,flatContents:e,groupId:r.groupId}}function z3(t,e){return{type:on,contents:t,groupId:e.groupId,negate:e.negate}}function Gg(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}function V3(t,e){return t?{type:Bs,label:t,contents:e}:e}var Kg={type:Zt},H3={type:Zt,soft:!0},Sd={type:Zt,hard:!0},Ks=[Sd,mc],Xg={type:Zt,hard:!0,literal:!0},Yg=[Xg,mc];function mh(t){return{type:un,contents:t}}var W3={type:ln},J3={type:an};function zs(t){if(!t)return"";if(Array.isArray(t)){let e=[];for(let r of t)if(Array.isArray(r))e.push(...zs(r));else{let s=zs(r);s!==""&&e.push(s)}return e}return t.type===Lr?{...t,breakContents:zs(t.breakContents),flatContents:zs(t.flatContents)}:t.type===Er?{...t,contents:zs(t.contents),expandedStates:t.expandedStates?.map(zs)}:t.type===Is?{type:"fill",parts:t.parts.map(zs)}:t.contents?{...t,contents:zs(t.contents)}:t}function G3(t){let e=Object.create(null),r=new Set;return s(zs(t));function s(i,o,u){if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let c=i.map(s).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(i.type===Zt){let c=u?.[o+1]?.type===Yr;return i.literal?c?"literalline":"literallineWithoutBreakParent":i.hard?c?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===Yr)return u?.[o-1]?.type===Zt&&u[o-1].hard?void 0:"breakParent";if(i.type===an)return"trim";if(i.type===sn)return"indent("+s(i.contents)+")";if(i.type===nn)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+s(i.contents)+")":i.n<0?"dedent("+s(i.contents)+")":i.n.type==="root"?"markAsRoot("+s(i.contents)+")":"align("+JSON.stringify(i.n)+", "+s(i.contents)+")";if(i.type===Lr)return"ifBreak("+s(i.breakContents)+(i.flatContents?", "+s(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${n(i.groupId)} }`:"")+")";if(i.type===on){let c=[];i.negate&&c.push("negate: true"),i.groupId&&c.push(`groupId: ${n(i.groupId)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${s(i.contents)}${d})`}if(i.type===Er){let c=[];i.break&&i.break!=="propagated"&&c.push("shouldBreak: true"),i.id&&c.push(`id: ${n(i.id)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(p=>s(p)).join(",")}]${d})`:`group(${s(i.contents)}${d})`}if(i.type===Is)return`fill([${i.parts.map(c=>s(c)).join(", ")}])`;if(i.type===un)return"lineSuffix("+s(i.contents)+")";if(i.type===ln)return"lineSuffixBoundary";if(i.type===Bs)return`label(${JSON.stringify(i.label)}, ${s(i.contents)})`;if(i.type===_n)return"cursor";throw new Error("Unknown doc type "+i.type)}function n(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in e)return e[i];let o=i.description||"symbol";for(let u=0;;u++){let c=o+(u>0?` #${u}`:"");if(!r.has(c))return r.add(c),e[i]=`Symbol.for(${JSON.stringify(c)})`}}}var K3=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,X3=12288,Y3=65510,Q3=[12288,12288,65281,65376,65504,65510],Z3=4352,ek=262141,Qg=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Zg=(t,e)=>{let r=0,s=Math.floor(t.length/2)-1;for(;r<=s;){let n=Math.floor((r+s)/2),i=n*2;if(e<t[i])s=n-1;else if(e>t[i+1])r=n+1;else return!0}return!1},py=19968,[tk,rk]=sk(Qg);function sk(t){let e=t[0],r=t[1];for(let s=0;s<t.length;s+=2){let n=t[s],i=t[s+1];if(py>=n&&py<=i)return[n,i];i-n>r-e&&(e=n,r=i)}return[e,r]}var nk=t=>t<X3||t>Y3?!1:Zg(Q3,t),ik=t=>t>=tk&&t<=rk?!0:t<Z3||t>ek?!1:Zg(Qg,t),ak=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,ok=t=>ak.test(t),uk=/[^\x20-\x7F]/;function lk(t){if(!t)return 0;if(!uk.test(t))return t.length;let e=0;t=t.replace(K3(),r=>(e+=ok(r)?1:2,""));for(let r of t){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(e+=nk(s)||ik(s)?2:1)}return e}var kd=lk,ck={type:0},pk={type:1},e1={value:"",length:0,queue:[],get root(){return e1}};function t1(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],n="",i=0,o=0,u=0;for(let g of s)switch(g.type){case 0:p(),r.useTabs?c(1):d(r.tabWidth);break;case 3:{let{string:x}=g;p(),n+=x,i+=x.length;break}case 2:{let{width:x}=g;o+=1,u+=x;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return D(),{...t,value:n,length:i,queue:s};function c(g){n+=" ".repeat(g),i+=r.tabWidth*g}function d(g){n+=" ".repeat(g),i+=g}function p(){r.useTabs?f():D()}function f(){o>0&&c(o),m()}function D(){u>0&&d(u),m()}function m(){o=0,u=0}}function hk(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let s;return typeof e=="number"?e<0?s=pk:s={type:2,width:e}:s={type:3,string:e},t1(t,s,r)}function dk(t,e){return t1(t,ck,e)}function fk(t){let e=0;for(let r=t.length-1;r>=0;r--){let s=t[r];if(s===" "||s===" ")e++;else break}return e}function r1(t){let e=fk(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var mk=class{#e=[];#t="";#s=0;#n=[];#r=[];#i(){let e=this.#t;e!==""&&(this.#e.push(e),this.#s+=e.length,this.#t="");for(let r of this.#r)this.#n.push(Math.min(r,this.#s));this.#r.length=0}markPosition(){if(this.#n.length+this.#r.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#r.push(this.#s+this.#t.length)}write(e){this.#t+=e}trim(){let{text:e,count:r}=r1(this.#t);return this.#t=e,this.#i(),r}finish(){return this.#i(),{text:this.#e.join(""),positions:this.#n}}},yk=mk,Vr=Symbol("MODE_BREAK"),gs=Symbol("MODE_FLAT"),yh=Symbol("DOC_FILL_PRINTED_LENGTH");function Qu(t,e,r,s,n,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=e.length,u=!1,c=[t],d="";for(;r>=0;){if(c.length===0){if(o===0)return!0;c.push(e[--o]);continue}let{mode:p,doc:f}=c.pop(),D=Ci(f);switch(D){case Ei:f&&(u&&(d+=" ",r-=1,u=!1),d+=f,r-=kd(f));break;case Ys:case Is:{let m=D===Ys?f:f.parts,g=f[yh]??0;for(let x=m.length-1;x>=g;x--)c.push({mode:p,doc:m[x]});break}case sn:case nn:case on:case Bs:c.push({mode:p,doc:f.contents});break;case an:{let{text:m,count:g}=r1(d);d=m,r+=g;break}case Er:{if(i&&f.break)return!1;let m=f.break?Vr:p,g=f.expandedStates&&m===Vr?Kt(0,f.expandedStates,-1):f.contents;c.push({mode:m,doc:g});break}case Lr:{let m=(f.groupId?n[f.groupId]||gs:p)===Vr?f.breakContents:f.flatContents;m&&c.push({mode:p,doc:m});break}case Zt:if(p===Vr||f.hard)return!0;f.soft||(u=!0);break;case un:s=!0;break;case ln:if(s)return!1;break}}return!1}function yc(t,e){let r=Object.create(null),s=e.printWidth,n=vd(e.endOfLine),i=0,o=[{indent:e1,mode:Vr,doc:t}],u=!1,c=[],d=new yk;for(k3(t);o.length>0;){let{indent:g,mode:x,doc:b}=o.pop();switch(Ci(b)){case Ei:{let A=n!==`
|
|
8
|
-
`?pc(0,b,`
|
|
9
|
-
`,n):b;A&&(d.write(A),o.length>0&&(i+=kd(A)));break}case Ys:for(let A=b.length-1;A>=0;A--)o.push({indent:g,mode:x,doc:b[A]});break;case _n:d.markPosition();break;case sn:o.push({indent:dk(g,e),mode:x,doc:b.contents});break;case nn:o.push({indent:hk(g,b.n,e),mode:x,doc:b.contents});break;case an:i-=d.trim();break;case Er:{let A=(function(){if(x===gs&&!u)return{indent:g,mode:b.break?Vr:gs,doc:b.contents};u=!1;let C=s-i,v=c.length>0,P={indent:g,mode:gs,doc:b.contents};if(!b.break&&Qu(P,o,C,v,r))return P;if(!b.expandedStates)return{indent:g,mode:Vr,doc:b.contents};if(!b.break)for(let T=1;T<b.expandedStates.length-1;T++){let F={indent:g,mode:gs,doc:b.expandedStates[T]};if(Qu(F,o,C,v,r))return F}return{indent:g,mode:Vr,doc:Kt(0,b.expandedStates,-1)}})();o.push(A),b.id&&(r[b.id]=A.mode);break}case Is:{let A=s-i,C=b[yh]??0,{parts:v}=b,P=v.length-C;if(P===0)break;let T=v[C+0],F=v[C+1],k={indent:g,mode:gs,doc:T},I={indent:g,mode:Vr,doc:T},L=Qu(k,[],A,c.length>0,r,!0);if(P===1){L?o.push(k):o.push(I);break}let B={indent:g,mode:gs,doc:F},O={indent:g,mode:Vr,doc:F};if(P===2){L?o.push(B,k):o.push(O,I);break}let R=v[C+2],q={indent:g,mode:x,doc:{...b,[yh]:C+2}},V=Qu({indent:g,mode:gs,doc:[T,F,R]},[],A,c.length>0,r,!0);o.push(q),V?o.push(B,k):L?o.push(O,k):o.push(O,I);break}case Lr:case on:{let A=b.groupId?r[b.groupId]:x;if(A===Vr){let C=b.type===Lr?b.breakContents:b.negate?b.contents:Ul(b.contents);C&&o.push({indent:g,mode:x,doc:C})}if(A===gs){let C=b.type===Lr?b.flatContents:b.negate?Ul(b.contents):b.contents;C&&o.push({indent:g,mode:x,doc:C})}break}case un:c.push({indent:g,mode:x,doc:b.contents});break;case ln:c.length>0&&o.push({indent:g,mode:x,doc:Sd});break;case Zt:switch(x){case gs:if(!b.hard){b.soft||(d.write(" "),i+=1);break}u=!0;case Vr:if(c.length>0){o.push({indent:g,mode:x,doc:b},...c.reverse()),c.length=0;break}b.literal?(d.write(n),i=0,g.root&&(g.root.value&&d.write(g.root.value),i=g.root.length)):(d.trim(),d.write(n+g.value),i=g.length);break}break;case Bs:o.push({indent:g,mode:x,doc:b.contents});break;case Yr:break;default:throw new aa(b)}o.length===0&&c.length>0&&(o.push(...c.reverse()),c.length=0)}let{text:p,positions:f}=d.finish();if(f.length!==2)return{formatted:p};let[D,m]=f;return{formatted:p,cursorNodeStart:D,cursorNodeText:p.slice(D,m)}}function Dk(t,e,r=0){let s=0;for(let n=r;n<t.length;++n)t[n]===" "?s=s+e-s%e:s++;return s}var Pd=Dk,gk=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:r}=this;return Kt(0,e,r===null?-2:-4)??null}get index(){return this.siblings===null?null:Kt(0,this.stack,-2)}get node(){return Kt(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,r=Kt(0,e,-3);return Array.isArray(r)?r:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:r}=this;return e!==null&&r===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:r}=e;return r>1?Kt(0,e,-2):null}getValue(){return Kt(0,this.stack,-1)}getNode(e=0){let r=this.#e(e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}#e(e){let{stack:r}=this;for(let s=r.length-1;s>=0;s-=2)if(!Array.isArray(r[s])&&--e<0)return s;return-1}call(e,...r){let{stack:s}=this,{length:n}=s,i=Kt(0,s,-1);for(let o of r)i=i?.[o],s.push(o,i);try{return e(this)}finally{s.length=n}}callParent(e,r=0){let s=this.#e(r+1),n=this.stack.splice(s+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...r){let{stack:s}=this,{length:n}=s,i=Kt(0,s,-1);for(let o of r)i=i[o],s.push(o,i);try{for(let o=0;o<i.length;++o)s.push(o,i[o]),e(this,o,i),s.length-=2}finally{s.length=n}}map(e,...r){let s=[];return this.each((n,i,o)=>{s[i]=e(n,i,o)},...r),s}match(...e){let r=this.stack.length-1,s=null,n=this.stack[r--];for(let i of e){if(n===void 0)return!1;let o=null;if(typeof s=="number"&&(o=s,s=this.stack[r--],n=this.stack[r--]),i&&!i(n,s,o))return!1;s=this.stack[r--],n=this.stack[r--]}return!0}findAncestor(e){for(let r of this.#t())if(e(r))return r}hasAncestor(e){for(let r of this.#t())if(e(r))return!0;return!1}*#t(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let s=e[r];Array.isArray(s)||(yield s)}}},xk=gk;function bk(t){return Array.isArray(t)&&t.length>0}var s1=bk;function Ek(t){return t!==null&&typeof t=="object"}var Id=Ek;function uu(t){return(e,r,s)=>{if(r===!1)return!1;let n=!!s?.backwards,{length:i}=e,o=r;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var Ck=uu(/\s/),Bn=uu(" "),n1=uu(",; "),i1=uu(/[^\n\r]/),hy=t=>t===`
|
|
10
|
-
`||t==="\r"||t==="\u2028"||t==="\u2029";function Ak(t,e,r){if(e===!1)return!1;let s=!!r?.backwards,n=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&n===`
|
|
11
|
-
`)return e-2;if(hy(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
|
|
12
|
-
`)return e+2;if(hy(n))return e+1}return e}var pi=Ak;function vk(t,e,r={}){let s=Bn(t,r.backwards?e-1:e,r),n=pi(t,s,r);return s!==n}var Sn=vk;function*Dc(t,e){let{getVisitorKeys:r,filter:s=()=>!0}=e,n=i=>Id(i)&&s(i);for(let i of r(t)){let o=t[i];if(Array.isArray(o))for(let u of o)n(u)&&(yield u);else n(o)&&(yield o)}}function*Tk(t,e){let r=[t];for(let s=0;s<r.length;s++){let n=r[s];for(let i of Dc(n,e))yield i,r.push(i)}}function Fk(t,e){return Dc(t,e).next().done}function wk(t,e,r){let{filter:s}=r;if(!s)return[];let n,i=(r.getChildren?.(t,r)??[...Dc(t,{getVisitorKeys:r.getVisitorKeys})]).flatMap(c=>(n??(n=[t,...e]),s(c,n)?[c]:a1(c,n,r))),{locStart:o,locEnd:u}=r;return i.sort((c,d)=>o(c)-o(d)||u(c)-u(d)),i}function a1(t,e,r){return Td(r.cache,t,s=>wk(s,e,r))}var o1=a1;function Sk(t){let e=t.type||t.kind||"(unknown type)",r=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),e+(r?" "+r:"")}function Bd(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=Sk(t)}function wo(t,e){e.leading=!0,e.trailing=!1,Bd(t,e)}function ri(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),Bd(t,e)}function So(t,e){e.leading=!1,e.trailing=!0,Bd(t,e)}var u1=new WeakMap;function l1(t,e,r,s,n=[]){let{locStart:i,locEnd:o}=r,u=i(e),c=o(e),d=o1(t,n,{cache:u1,locStart:i,locEnd:o,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),p,f,D=0,m=d.length;for(;D<m;){let g=D+m>>1,x=d[g],b=i(x),A=o(x);if(b<=u&&c<=A)return l1(x,e,r,x,[x,...n]);if(A<=u){p=x,D=g+1;continue}if(c<=b){f=x,m=g;continue}throw new Error("Comment location overlaps with node location")}if(s?.type==="TemplateLiteral"){let{quasis:g}=s,x=wp(g,e,r);p&&wp(g,p,r)!==x&&(p=null),f&&wp(g,f,r)!==x&&(f=null)}return{enclosingNode:s,precedingNode:p,followingNode:f}}var Fp=()=>!1;function kk(t,e){let{comments:r}=t;if(delete t.comments,!s1(r)||!e.printer.canAttachComment)return;let s=[],{printer:{features:{experimental_avoidAstMutation:n},handleComments:i={}},originalText:o}=e,{ownLine:u=Fp,endOfLine:c=Fp,remaining:d=Fp}=i,p=r.map((D,m)=>({...l1(t,D,e),comment:D,text:o,options:e,ast:t,isLastComment:r.length-1===m,placement:void 0})),f=!n;for(let[D,m]of p.entries()){let{comment:g,precedingNode:x,enclosingNode:b,followingNode:A,text:C,options:v,ast:P,isLastComment:T}=m,F=Pk(C,v,p,D)?"ownLine":Ik(C,v,p,D)?"endOfLine":"remaining",k;if(n?(m.placement=F,k=[m]):k=[g,C,v,P,T],f&&(g.enclosingNode=b,g.precedingNode=x,g.followingNode=A),g.placement=F,F==="ownLine")u(...k)||(A?wo(A,g):x?So(x,g):ri(b||P,g));else if(F==="endOfLine")c(...k)||(x?So(x,g):A?wo(A,g):ri(b||P,g));else if(!d(...k))if(x&&A){let I=s.length;I>0&&s[I-1].followingNode!==A&&dy(s,v),s.push(m)}else x?So(x,g):A?wo(A,g):ri(b||P,g)}if(dy(s,e),f)for(let D of r)delete D.precedingNode,delete D.enclosingNode,delete D.followingNode}var c1=t=>!/[\S\n\u2028\u2029]/.test(t);function Pk(t,e,r,s){let{comment:n,precedingNode:i}=r[s],{locStart:o,locEnd:u}=e,c=o(n);if(i)for(let d=s-1;d>=0;d--){let{comment:p,precedingNode:f}=r[d];if(f!==i||!c1(t.slice(u(p),c)))break;c=o(p)}return Sn(t,c,{backwards:!0})}function Ik(t,e,r,s){let{comment:n,followingNode:i}=r[s],{locStart:o,locEnd:u}=e,c=u(n);if(i)for(let d=s+1;d<r.length;d++){let{comment:p,followingNode:f}=r[d];if(f!==i||!c1(t.slice(c,o(p))))break;c=u(p)}return Sn(t,c)}function dy(t,e){let r=t.length;if(r===0)return;let{precedingNode:s,followingNode:n}=t[0],i=e.locStart(n),o;for(o=r;o>0;--o){let{comment:u,precedingNode:c,followingNode:d}=t[o-1],p=e.originalText.slice(e.locEnd(u),i);if(e.printer.isGap?.(p,e)??/^[\s(]*$/.test(p))i=e.locStart(u);else break}for(let[u,{comment:c}]of t.entries())u<o?So(s,c):wo(n,c);for(let u of[s,n])u.comments&&u.comments.length>1&&u.comments.sort((c,d)=>e.locStart(c)-e.locStart(d));t.length=0}function wp(t,e,r){let s=r.locStart(e)-1;for(let n=1;n<t.length;++n)if(s<r.locStart(t[n]))return n-1;return 0}function Bk(t,e){let r=e-1;r=Bn(t,r,{backwards:!0}),r=pi(t,r,{backwards:!0}),r=Bn(t,r,{backwards:!0});let s=pi(t,r,{backwards:!0});return r!==s}var Nd=Bk,p1=()=>!0;function h1(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function Nk(t,e){let r=t.node,s=[h1(t,e)],{printer:n,originalText:i,locStart:o,locEnd:u}=e;if(n.isBlockComment?.(r)){let d=" ";Sn(i,u(r))&&(Sn(i,o(r),{backwards:!0})?d=Ks:d=Kg),s.push(d)}else s.push(Ks);let c=pi(i,Bn(i,u(r)));return c!==!1&&Sn(i,c)&&s.push(Ks),s}function Lk(t,e,r){let s=t.node,n=h1(t,e),{printer:i,originalText:o,locStart:u}=e,c=i.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||Sn(o,u(s),{backwards:!0})){let d=Nd(o,u(s));return{doc:mh([Ks,d?Ks:"",n]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[mh([" ",n]),mc],isBlock:c,hasLineSuffix:!0}:{doc:[" ",n],isBlock:c,hasLineSuffix:!1}}function $k(t,e,r){let s=e[Symbol.for("printedComments")],n=p1,i=new Set(t.node?.comments?.filter(o=>!s?.has(o)&&o.leading&&n(o)));return i.size===0?"":t.map(({node:o})=>i.has(o)?Nk(t,e):"","comments").filter(Boolean)}function Mk(t,e,r){let s=t.node?.comments,n=new Set(s?.filter(p=>p.trailing)),i=e[Symbol.for("printedComments")],o=p1,u=new Set(s?.filter(p=>n.has(p)&&!i?.has(p)&&o(p)));if(u.size===0)return"";let c=[],d;return t.each(({node:p})=>{n.has(p)&&(d=Lk(t,e,d),u.has(p)&&c.push(d.doc))},"comments"),c}function Ok(t,e,r,s){let n=$k(t,r),i=Mk(t,r);return n||i?Tl(e,o=>[n,o,i]):e}function _k(t){let{[dc]:e,[Symbol.for("printedComments")]:r}=t;for(let s of e){if(!s.printed&&!r.has(s))throw new Error('Comment "'+s.value.trim()+'" was not printed. Please report this error!');delete s.printed}}var d1=class extends Error{name="ConfigError"},fy=class extends Error{name="UndefinedParserError"},jk=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),gc=jk,Rk={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
13
|
-
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:t=>typeof t=="string"||typeof t=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>typeof t=="string"||typeof t=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
14
|
-
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
15
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function f1({plugins:t=[],showDeprecated:e=!1}={}){let r=t.flatMap(n=>n.languages??[]),s=[];for(let n of Uk(Object.assign({},...t.map(({options:i})=>i),Rk)))!e&&n.deprecated||(Array.isArray(n.choices)&&(e||(n.choices=n.choices.filter(i=>!i.deprecated)),n.name==="parser"&&(n.choices=[...n.choices,...qk(n.choices,r,t)])),n.pluginDefaults=Object.fromEntries(t.filter(i=>i.defaultOptions?.[n.name]!==void 0).map(i=>[i.name,i.defaultOptions[n.name]])),s.push(n));return{languages:r,options:s}}function*qk(t,e,r){let s=new Set(t.map(n=>n.value));for(let n of e)if(n.parsers){for(let i of n.parsers)if(!s.has(i)){s.add(i);let o=r.find(c=>c.parsers&&gc(c.parsers,i)),u=n.name;o?.name&&(u+=` (plugin: ${o.name})`),yield{value:i,description:u}}}}function Uk(t){let e=[];for(let[r,s]of Object.entries(t)){let n={name:r,...s};Array.isArray(n.default)&&(n.default=Kt(0,n.default,-1).value),e.push(n)}return e}var zk=Array.prototype.toReversed??function(){return[...this].reverse()},Vk=ou("toReversed",function(){if(Array.isArray(this))return zk}),Hk=Vk;function Wk(){let t=globalThis,e=t.process?.platform;if(typeof e=="string")return e.startsWith("win");let r=t.Deno?.build?.os;return typeof r=="string"?r==="windows":t.navigator?.platform?.startsWith("Win")??!1}var Jk=Wk();function m1(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function Gk(t){return t=m1(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Kk(t){t=m1(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function Xk(t){return Jk?Kk(t):Gk(t)}var Yk=t=>String(t).split(/[/\\]/).pop(),Qk=t=>String(t).startsWith("file:");function my(t,e){if(!e)return;let r=Yk(e).toLowerCase();return t.find(({filenames:s})=>s?.some(n=>n.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(n=>r.endsWith(n)))}function Zk(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var eP=void 0;function yy(t,e){if(e){if(Qk(e))try{e=Xk(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function tP(t,e){let r=Hk(0,t.plugins).flatMap(s=>s.languages??[]);return(Zk(r,e.language)??my(r,e.physicalFile)??my(r,e.file)??yy(r,e.physicalFile)??yy(r,e.file)??eP?.(r,e.physicalFile))?.parsers[0]}var y1=tP,Qi={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(r=>Qi.value(r)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(r=>`${Qi.key(r)}: ${Qi.value(t[r])}`).join(", ")} }`},pair:({key:t,value:e})=>Qi.value({[t]:e})},D1=new Proxy(String,{get:()=>D1}),Ts=D1,rP=(t,e,{descriptor:r})=>{let s=[`${Ts.yellow(typeof t=="string"?r.key(t):r.pair(t))} is deprecated`];return e&&s.push(`we now treat it as ${Ts.blue(typeof e=="string"?r.key(e):r.pair(e))}`),s.join("; ")+"."},g1=Symbol.for("vnopts.VALUE_NOT_EXIST"),Fl=Symbol.for("vnopts.VALUE_UNCHANGED"),Dy=" ".repeat(2),sP=(t,e,r)=>{let{text:s,list:n}=r.normalizeExpectedResult(r.schemas[t].expected(r)),i=[];return s&&i.push(gy(t,e,s,r.descriptor)),n&&i.push([gy(t,e,n.title,r.descriptor)].concat(n.values.map(o=>x1(o,r.loggerPrintWidth))).join(`
|
|
16
|
-
`)),b1(i,r.loggerPrintWidth)};function gy(t,e,r,s){return[`Invalid ${Ts.red(s.key(t))} value.`,`Expected ${Ts.blue(r)},`,`but received ${e===g1?Ts.gray("nothing"):Ts.red(s.value(e))}.`].join(" ")}function x1({text:t,list:e},r){let s=[];return t&&s.push(`- ${Ts.blue(t)}`),e&&s.push([`- ${Ts.blue(e.title)}:`].concat(e.values.map(n=>x1(n,r-Dy.length).replace(/^|\n/g,`$&${Dy}`))).join(`
|
|
17
|
-
`)),b1(s,r)}function b1(t,e){if(t.length===1)return t[0];let[r,s]=t,[n,i]=t.map(o=>o.split(`
|
|
18
|
-
`,1)[0].length);return n>e&&n>i?s:r}var Ri=[],Sp=[];function kp(t,e,r){if(t===e)return 0;let s=r?.maxDistance,n=t;t.length>e.length&&(t=e,e=n);let i=t.length,o=e.length;for(;i>0&&t.charCodeAt(~-i)===e.charCodeAt(~-o);)i--,o--;let u=0;for(;u<i&&t.charCodeAt(u)===e.charCodeAt(u);)u++;if(i-=u,o-=u,s!==void 0&&o-i>s)return s;if(i===0)return s!==void 0&&o>s?s:o;let c,d,p,f,D=0,m=0;for(;D<i;)Sp[D]=t.charCodeAt(u+D),Ri[D]=++D;for(;m<o;){for(c=e.charCodeAt(u+m),p=m++,d=m,D=0;D<i;D++)f=c===Sp[D]?p:p+1,p=Ri[D],d=Ri[D]=p>d?f>d?d+1:f:f>p?p+1:f;if(s!==void 0){let g=d;for(D=0;D<i;D++)Ri[D]<g&&(g=Ri[D]);if(g>s)return s}}return Ri.length=i,Sp.length=i,s!==void 0&&d>s?s:d}function nP(t,e,r){if(!Array.isArray(e)||e.length===0)return;let s=r?.maxDistance,n=t.length;for(let c of e)if(c===t)return c;let i,o=Number.POSITIVE_INFINITY,u=new Set;for(let c of e){if(u.has(c))continue;u.add(c);let d=Math.abs(c.length-n);if(d>=o||d>s)continue;let p=Number.isFinite(o)?Math.min(o,s):s,f=p===void 0?kp(t,c):kp(t,c,{maxDistance:p});if(f>s)continue;let D=f;if(p!==void 0&&f===p&&p===s&&(D=kp(t,c)),D<o&&(o=D,i=c,o===0))break}if(!(o>s))return i}var E1=(t,e,{descriptor:r,logger:s,schemas:n})=>{let i=[`Ignored unknown option ${Ts.yellow(r.pair({key:t,value:e}))}.`],o=nP(t,Object.keys(n),{maxDistance:3});o&&i.push(`Did you mean ${Ts.blue(r.key(o))}?`),s.warn(i.join(" "))},iP=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function aP(t,e){let r=new t(e),s=Object.create(r);for(let n of iP)n in e&&(s[n]=oP(e[n],r,jn.prototype[n].length));return s}var jn=class{static create(e){return aP(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,s){return e}preprocess(e,r){return e}postprocess(e,r){return Fl}};function oP(t,e,r){return typeof t=="function"?(...s)=>t(...s.slice(0,r-1),e,...s.slice(r-1)):()=>t}var uP=class extends jn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}},lP=class extends jn{expected(){return"anything"}validate(){return!0}},cP=class extends jn{constructor({valueSchema:e,name:r=e.name,...s}){super({...s,name:r}),this._valueSchema=e}expected(e){let{text:r,list:s}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:s&&{title:"an array of the following values",values:[{list:s}]}}}validate(e,r){if(!Array.isArray(e))return!1;let s=[];for(let n of e){let i=r.normalizeValidateResult(this._valueSchema.validate(n,r),n);i!==!0&&s.push(i.value)}return s.length===0?!0:{value:s}}deprecated(e,r){let s=[];for(let n of e){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(n,r),n);i!==!1&&s.push(...i.map(({value:o})=>({value:[o]})))}return s}forward(e,r){let s=[];for(let n of e){let i=r.normalizeForwardResult(this._valueSchema.forward(n,r),n);s.push(...i.map(xy))}return s}redirect(e,r){let s=[],n=[];for(let i of e){let o=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in o&&s.push(o.remain),n.push(...o.redirect.map(xy))}return s.length===0?{redirect:n}:{redirect:n,remain:s}}overlap(e,r){return e.concat(r)}};function xy({from:t,to:e}){return{from:[t],to:e}}var pP=class extends jn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function hP(t,e){let r=Object.create(null);for(let s of t){let n=s[e];if(r[n])throw new Error(`Duplicate ${e} ${JSON.stringify(n)}`);r[n]=s}return r}function dP(t,e){let r=new Map;for(let s of t){let n=s[e];if(r.has(n))throw new Error(`Duplicate ${e} ${JSON.stringify(n)}`);r.set(n,s)}return r}function fP(){let t=Object.create(null);return e=>{let r=JSON.stringify(e);return t[r]?!0:(t[r]=!0,!1)}}function mP(t,e){let r=[],s=[];for(let n of t)e(n)?r.push(n):s.push(n);return[r,s]}function yP(t){return t===Math.floor(t)}function DP(t,e){if(t===e)return 0;let r=typeof t,s=typeof e,n=["undefined","object","boolean","number","string"];return r!==s?n.indexOf(r)-n.indexOf(s):r!=="string"?Number(t)-Number(e):t.localeCompare(e)}function gP(t){return(...e)=>{let r=t(...e);return typeof r=="string"?new Error(r):r}}function by(t){return t===void 0?{}:t}function C1(t){if(typeof t=="string")return{text:t};let{text:e,list:r}=t;return xP((e||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:e,list:{title:r.title,values:r.values.map(C1)}}:{text:e}}function Ey(t,e){return t===!0?!0:t===!1?{value:e}:t}function Cy(t,e,r=!1){return t===!1?!1:t===!0?r?!0:[{value:e}]:"value"in t?[t]:t.length===0?!1:t}function Ay(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}function Dh(t,e){return t===void 0?[]:Array.isArray(t)?t.map(r=>Ay(r,e)):[Ay(t,e)]}function vy(t,e){let r=Dh(typeof t=="object"&&"redirect"in t?t.redirect:t,e);return r.length===0?{remain:e,redirect:r}:typeof t=="object"&&"remain"in t?{remain:t.remain,redirect:r}:{redirect:r}}function xP(t,e){if(!t)throw new Error(e)}var bP=class extends jn{constructor(e){super(e),this._choices=dP(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(DP).map(e.value),s=r.slice(0,-2),n=r.slice(-2);return{text:s.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}},EP=class extends jn{expected(){return"a number"}validate(e,r){return typeof e=="number"}},CP=class extends EP{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&yP(e)}},Ty=class extends jn{expected(){return"a string"}validate(e){return typeof e=="string"}},AP=Qi,vP=E1,TP=sP,FP=rP,wP=class{constructor(e,r){let{logger:s=console,loggerPrintWidth:n=80,descriptor:i=AP,unknown:o=vP,invalid:u=TP,deprecated:c=FP,missing:d=()=>!1,required:p=()=>!1,preprocess:f=m=>m,postprocess:D=()=>Fl}=r||{};this._utils={descriptor:i,logger:s||{warn:()=>{}},loggerPrintWidth:n,schemas:hP(e,"name"),normalizeDefaultResult:by,normalizeExpectedResult:C1,normalizeDeprecatedResult:Cy,normalizeForwardResult:Dh,normalizeRedirectResult:vy,normalizeValidateResult:Ey},this._unknownHandler=o,this._invalidHandler=gP(u),this._deprecatedHandler=c,this._identifyMissing=(m,g)=>!(m in g)||d(m,g),this._identifyRequired=p,this._preprocess=f,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=fP()}normalize(e){let r={},s=[this._preprocess(e,this._utils)],n=()=>{for(;s.length!==0;){let i=s.shift(),o=this._applyNormalization(i,r);s.push(...o)}};n();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in r)){let u=by(o.default(this._utils));"value"in u&&s.push({[i]:u.value})}}n();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let o=this._utils.schemas[i],u=r[i],c=o.postprocess(u,this._utils);c!==Fl&&(this._applyValidation(c,i,o),r[i]=c)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let s=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let o of n){let u=this._utils.schemas[o],c=u.preprocess(e[o],this._utils);this._applyValidation(c,o,u);let d=({from:D,to:m})=>{s.push(typeof m=="string"?{[m]:D}:{[m.key]:m.value})},p=({value:D,redirectTo:m})=>{let g=Cy(u.deprecated(D,this._utils),c,!0);if(g!==!1)if(g===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,m,this._utils));else for(let{value:x}of g){let b={key:o,value:x};if(!this._hasDeprecationWarned(b)){let A=typeof m=="string"?{key:m,value:x}:m;this._utils.logger.warn(this._deprecatedHandler(b,A,this._utils))}}};Dh(u.forward(c,this._utils),c).forEach(d);let f=vy(u.redirect(c,this._utils),c);if(f.redirect.forEach(d),"remain"in f){let D=f.remain;r[o]=o in r?u.overlap(r[o],D,this._utils):D,p({value:D})}for(let{from:D,to:m}of f.redirect)p({value:D,redirectTo:m})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,r,(c,d)=>{s.push({[c]:d})})}return s}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,g1,this._utils)}_partitionOptionKeys(e){let[r,s]=mP(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:r,unknownKeys:s}}_applyValidation(e,r,s){let n=Ey(s.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(r,n.value,this._utils)}_applyUnknownHandler(e,r,s,n){let i=this._unknownHandler(e,r,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let u=i[o];o in this._utils.schemas?n(o,u):s[o]=u}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==Fl){if(r.delete)for(let s of r.delete)delete e[s];if(r.override){let{knownKeys:s,unknownKeys:n}=this._partitionOptionKeys(r.override);for(let i of s){let o=r.override[i];this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o}for(let i of n){let o=r.override[i];this._applyUnknownHandler(i,o,e,(u,c)=>{let d=this._utils.schemas[u];this._applyValidation(c,u,d),e[u]=c})}}}}},Pp;function SP(t,e,{logger:r=!1,isCLI:s=!1,passThrough:n=!1,FlagSchema:i,descriptor:o}={}){if(s){if(!i)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=Qi;let u=n?Array.isArray(n)?(D,m)=>n.includes(D)?{[D]:m}:void 0:(D,m)=>({[D]:m}):(D,m,g)=>{let{_:x,...b}=g.schemas;return E1(D,m,{...g,schemas:b})},c=kP(e,{isCLI:s,FlagSchema:i}),d=new wP(c,{logger:r,unknown:u,descriptor:o}),p=r!==!1;p&&Pp&&(d._hasDeprecationWarned=Pp);let f=d.normalize(t);return p&&(Pp=d._hasDeprecationWarned),f}function kP(t,{isCLI:e,FlagSchema:r}){let s=[];e&&s.push(lP.create({name:"_"}));for(let n of t)s.push(PP(n,{isCLI:e,optionInfos:t,FlagSchema:r})),n.alias&&e&&s.push(uP.create({name:n.alias,sourceName:n.name}));return s}function PP(t,{isCLI:e,optionInfos:r,FlagSchema:s}){let{name:n}=t,i={name:n},o,u={};switch(t.type){case"int":o=CP,e&&(i.preprocess=Number);break;case"string":o=Ty;break;case"choice":o=bP,i.choices=t.choices.map(c=>c?.redirect?{...c,redirect:{to:{key:t.name,value:c.redirect}}}:c);break;case"boolean":o=pP;break;case"flag":o=s,i.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":o=Ty;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?i.validate=(c,d,p)=>t.exception(c)||d.validate(c,p):i.validate=(c,d,p)=>c===void 0||d.validate(c,p),t.redirect&&(u.redirect=c=>c?{to:typeof t.redirect=="string"?t.redirect:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(u.deprecated=!0),e&&!t.array){let c=i.preprocess||(d=>d);i.preprocess=(d,p,f)=>p.preprocess(c(Array.isArray(d)?Kt(0,d,-1):d),f)}return t.array?cP.create({...e?{preprocess:c=>Array.isArray(c)?c:[c]}:{},...u,valueSchema:o.create(i)}):o.create({...i,...u})}var IP=SP,BP=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},NP=ou("findLast",function(){if(Array.isArray(this))return BP}),A1=NP,LP=Symbol.for("PRETTIER_IS_FRONT_MATTER"),$P=[];function MP(t){return!!t?.[LP]}var Ld=MP,v1=new Set(["yaml","toml"]),T1=({node:t})=>Ld(t)&&v1.has(t.language);async function OP(t,e,r,s){let{node:n}=r,{language:i}=n;if(!v1.has(i))return;let o=n.value.trim(),u;if(o){let c=i==="yaml"?i:y1(s,{language:i});if(!c)return;u=o?await t(o,{parser:c}):""}else u=o;return Hg([n.startDelimiter,n.explicitLanguage??"",Ks,u,u?Ks:"",n.endDelimiter])}function _P(t,e){return T1({node:t})&&(delete e.end,delete e.raw,delete e.value),e}var jP=_P;function RP({node:t}){return t.raw}var qP=RP,F1=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),UP=t=>Object.keys(t).filter(e=>!F1.has(e));function zP(t,e){let r=t?s=>t(s,F1):UP;return e?new Proxy(r,{apply:(s,n,i)=>Ld(i[0])?$P:Reflect.apply(s,n,i)}):r}var Fy=zP;function w1(t,e){if(!e)throw new Error("parserName is required.");let r=A1(0,t,n=>n.parsers&&gc(n.parsers,e));if(r)return r;let s=`Couldn't resolve parser "${e}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new d1(s)}function VP(t,e){if(!e)throw new Error("astFormat is required.");let r=A1(0,t,n=>n.printers&&gc(n.printers,e));if(r)return r;let s=`Couldn't find plugin for AST format "${e}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new d1(s)}function $d({plugins:t,parser:e}){let r=w1(t,e);return S1(r,e)}function S1(t,e){let r=t.parsers[e];return typeof r=="function"?r():r}async function HP(t,e){let r=t.printers[e],s=typeof r=="function"?await r():r;return GP(s)}function WP(t){let{features:e,getVisitorKeys:r,embed:s,massageAstNode:n,print:i,...o}=t;e=QP(e);let u=e.experimental_frontMatterSupport;r=Fy(r,u.massageAstNode||u.embed||u.print);let c=n;n&&u.massageAstNode&&(c=new Proxy(n,{apply(f,D,m){return jP(...m),Reflect.apply(f,D,m)}}));let d=s;if(s){let f;d=new Proxy(s,{get(D,m,g){return m==="getVisitorKeys"?(f??(f=s.getVisitorKeys?Fy(s.getVisitorKeys,u.massageAstNode||u.embed):r),f):Reflect.get(D,m,g)},apply:(D,m,g)=>u.embed&&T1(...g)?OP:Reflect.apply(D,m,g)})}let p=i;return u.print&&(p=new Proxy(i,{apply(f,D,m){let[g]=m;return Ld(g.node)?qP(g):Reflect.apply(f,D,m)}})),{features:e,getVisitorKeys:r,embed:d,massageAstNode:c,print:p,...o}}var JP=new WeakMap;function GP(t){return Td(JP,t,WP)}var KP=["clean","embed","print"],XP=Object.fromEntries(KP.map(t=>[t,!1]));function YP(t){return{...XP,...t}}function QP(t){return{experimental_avoidAstMutation:!1,...t,experimental_frontMatterSupport:YP(t?.experimental_frontMatterSupport)}}var wy={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function ZP(t,e={}){let r={...t};if(!r.parser){if(!r.filepath)throw new fy("No parser and no file path given, couldn't infer a parser.");if(r.parser=y1(r,{physicalFile:r.filepath}),!r.parser)throw new fy(`No parser could be inferred for file "${r.filepath}".`)}let s=f1({plugins:t.plugins,showDeprecated:!0}).options,n={...wy,...Object.fromEntries(s.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=w1(r.plugins,r.parser),o=await S1(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let u=i.printers?.[o.astFormat]?i:VP(r.plugins,o.astFormat),c=await HP(u,o.astFormat);r.printer=c,r.getVisitorKeys=c.getVisitorKeys;let d=u.defaultOptions?Object.fromEntries(Object.entries(u.defaultOptions).filter(([,f])=>f!==void 0)):{},p={...n,...d};for(let[f,D]of Object.entries(p))r[f]??(r[f]=D);return r.parser==="json"&&(r.trailingComma="none"),IP(r,s,{passThrough:Object.keys(wy),...e})}var ya=ZP,Sy=/\r\n|[\n\r\u2028\u2029]/;function e4(t,e,r,s){let n={column:null,line:-1,...t.start},i={...n,...t.end},{linesAbove:o=2,linesBelow:u=3}=r||{},c=n.line-s,d=n.column,p=i.line-s,f=i.column,D=Math.max(c-(o+1),0),m=Math.min(e.length,p+u);c===-1&&(D=0),p===-1&&(m=e.length);let g=p-c,x={};if(g)for(let b=0;b<=g;b++){let A=b+c;if(d==null)x[A]=!0;else if(b===0){let C=e[A-1].length;x[A]=[d,C-d]}else if(b===g)x[A]=[0,f];else{let C=e[A-1].length;x[A]=[0,C]}}else if(d===f)d!=null?x[c]=[d,0]:x[c]=!0;else{let b=d??0,A=f??b;x[c]=[b,A-b]}return{start:D,end:m,markerLines:x}}function t4(t,e,r={},s){let{defs:n,highlight:i}={defs:{gutter:String,marker:String,message:String,reset:String},highlight:String},o=(r.startLine||1)-1,u=t.split(Sy),{start:c,end:d,markerLines:p}=e4(e,u,r,o),f=e.start&&typeof e.start.column=="number",D=String(d+o).length,m=i(t).split(Sy,d).slice(c,d).map((g,x)=>{let b=c+1+x,A=` ${` ${b+o}`.slice(-D)} |`,C=p[b],v=!p[b+1];if(C){let P="";if(Array.isArray(C)){let T=g.slice(0,C[0]).replace(/[^\t]/g," "),F=C[1]||1;P=[`
|
|
19
|
-
`,n.gutter(A.replace(/\d/g," "))," ",T,n.marker("^").repeat(F)].join(""),v&&r.message&&(P+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(A),g.length>0?` ${g}`:"",P].join("")}else return` ${n.gutter(A)}${g.length>0?` ${g}`:""}`}).join(`
|
|
20
|
-
`);return r.message&&!f&&(m=`${" ".repeat(D+1)}${r.message}
|
|
21
|
-
${m}`),n.reset(m)}function r4(t,e,r={}){return t4(t,e,r)}async function s4(t,e){let r=await $d(e),s=r.preprocess?await r.preprocess(t,e):t;e.originalText=s;let n;try{n=await r.parse(s,e,e)}catch(i){n4(i,t)}return{text:s,ast:n}}function n4(t,e){let{loc:r}=t;if(r){let{start:s,end:n}=r;s&&(s={line:s.line,column:s.column-1}),n&&(n={line:n.line,column:n.column-1});let i=r4(e,{start:s,end:n},{});t.message+=`
|
|
22
|
-
`+i,t.codeFrame=i}throw t}var lu=s4;async function i4(t,e,r,s,n){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:i}=r,{embed:o}=i;if(!o)return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:u}=i,{getVisitorKeys:c}=o,d=[];D();let p=t.stack;for(let{print:m,node:g,pathStack:x}of d)try{t.stack=x;let b=await m(f,e,t,r);b&&n.set(g,b)}catch(b){if(globalThis.PRETTIER_DEBUG)throw b}t.stack=p;function f(m,g){return a4(m,g,r,s)}function D(){let{node:m}=t;if(m===null||typeof m!="object"||u?.(t))return;for(let x of c(m))Array.isArray(m[x])?t.each(D,x):t.call(D,x);let g=o(t,r);if(g){if(typeof g=="function"){d.push({print:g,node:m,pathStack:[...t.stack]});return}n.set(m,g)}}}async function a4(t,e,r,s){let n=await ya({...r,...e,parentParser:r.parser,originalText:t,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await lu(t,n),o=await s(i,n);return Vg(o)}function o4(t,e,r,s){let{originalText:n,[dc]:i,locStart:o,locEnd:u,[Symbol.for("printedComments")]:c}=e,{node:d}=t,p=o(d),f=u(d);for(let m of i)o(m)>=p&&u(m)<=f&&c.add(m);let{printPrettierIgnored:D}=e.printer;return D?D(t,e,r,s):n.slice(p,f)}var u4=o4;async function xc(t,e){({ast:t}=await k1(t,e));let r=new Map,s=new xk(t),n=new Map;await i4(s,o,e,xc,n);let i=await ky(s,e,o,void 0,n);if(_k(e),e.cursorOffset>=0){if(e.nodeAfterCursor&&!e.nodeBeforeCursor)return[ai,i];if(e.nodeBeforeCursor&&!e.nodeAfterCursor)return[i,ai]}return i;function o(c,d){return c===void 0||c===s?u(d):Array.isArray(c)?s.call(()=>u(d),...c):s.call(()=>u(d),c)}function u(c){let d=s.node;if(d==null)return"";let p=Id(d)&&c===void 0;if(p&&r.has(d))return r.get(d);let f=ky(s,e,o,c,n);return p&&r.set(d,f),f}}function ky(t,e,r,s,n){let{node:i}=t,{printer:o}=e,u;switch(o.hasPrettierIgnore?.(t)?u=u4(t,e,r,s):n.has(i)?u=n.get(i):u=o.print(t,e,r,s),i){case e.cursorNode:u=Tl(u,c=>[ai,c,ai]);break;case e.nodeBeforeCursor:u=Tl(u,c=>[c,ai]);break;case e.nodeAfterCursor:u=Tl(u,c=>[ai,c]);break}return o.printComment&&s1(i.comments)&&!o.willPrintOwnComments?.(t,e)&&(u=Ok(t,u,e)),u}async function k1(t,e){let r=t.comments??[];e[dc]=r,e[Symbol.for("printedComments")]=new Set,kk(t,e);let{printer:{preprocess:s}}=e;return t=s?await s(t,e):t,{ast:t,comments:r}}function l4(t,e){let{cursorOffset:r,locStart:s,locEnd:n,getVisitorKeys:i}=e,o=m=>s(m)<=r&&n(m)>=r,u=t,c=[t];for(let m of Tk(t,{getVisitorKeys:i,filter:o}))c.push(m),u=m;if(Fk(u,{getVisitorKeys:i}))return{cursorNode:u};let d,p,f=-1,D=Number.POSITIVE_INFINITY;for(;c.length>0&&(d===void 0||p===void 0);){u=c.pop();let m=d!==void 0,g=p!==void 0;for(let x of Dc(u,{getVisitorKeys:i})){if(!m){let b=n(x);b<=r&&b>f&&(d=x,f=b)}if(!g){let b=s(x);b>=r&&b<D&&(p=x,D=b)}}}return{nodeBeforeCursor:d,nodeAfterCursor:p}}var P1=l4;function c4(t,e){let{printer:r}=e,s=r.massageAstNode;if(!s)return t;let{getVisitorKeys:n}=r,{ignoredProperties:i}=s;return o(t);function o(u,c){if(!Id(u))return u;if(Array.isArray(u))return u.map(D=>o(D,c)).filter(Boolean);let d={},p=new Set(n(u));for(let D in u)!gc(u,D)||i?.has(D)||(p.has(D)?d[D]=o(u[D],u):d[D]=u[D]);let f=s(u,d,c);if(f!==null)return f??d}}var p4=c4,h4=Array.prototype.findLastIndex??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return e}return-1},d4=ou("findLastIndex",function(){if(Array.isArray(this))return h4}),f4=d4;function m4(t,e){return e=new Set(e),t.find(r=>I1.has(r.type)&&e.has(r))}function Py(t){let e=f4(0,t,r=>r.type!=="Program"&&r.type!=="File");return e===-1?t:t.slice(0,e+1)}function y4(t,e,{locStart:r,locEnd:s}){let[n,...i]=t,[o,...u]=e;if(n===o)return[n,o];let c=r(n);for(let p of Py(u))if(r(p)>=c)o=p;else break;let d=s(o);for(let p of Py(i)){if(s(p)<=d)n=p;else break;if(n===o)break}return[n,o]}function gh(t,e,r,s,n=[],i,o){let{locStart:u,locEnd:c}=o,d=u(t),p=c(t);if(e>p||e<d||i==="rangeEnd"&&e===d||i==="rangeStart"&&e===p)return;let f=[t,...n],D=o1(t,f,{cache:u1,locStart:u,locEnd:c,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let m of D){let g=gh(m,e,r,s,f,i,o);if(g)return g}if(s(t,n[0]))return f}function D4(t,e){return e!=="DeclareExportDeclaration"&&t!=="TypeParameterDeclaration"&&(t==="Directive"||t==="TypeAlias"||t==="TSExportAssignment"||t.startsWith("Declare")||t.startsWith("TSDeclare")||t.endsWith("Statement")||t.endsWith("Declaration"))}var I1=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),g4=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Iy(t,e,r){if(!e)return!1;switch(t.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"yuku":case"yuku-ts":case"__babel_estree":return D4(e.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return I1.has(e.type);case"graphql":return g4.has(e.kind);case"vue":return e.tag!=="root"}return!1}function x4(t,e,r){let{rangeStart:s,rangeEnd:n}=e,i=t.slice(s,n).search(/\S/),o=i===-1;if(!o)for(s+=i;n>s&&!/\S/.test(t[n-1]);--n);let u=e.printer.features?.experimental_locForRangeFormat??e,c=gh(r,s,e,(g,x)=>Iy(e,g,x),[],"rangeStart",u);if(!c)return;let d=o?c:gh(r,n,e,g=>Iy(e,g),[],"rangeEnd",u);if(!d)return;let p,f;if(r.type==="JsonRoot"){let g=m4(c,d);p=g,f=g}else[p,f]=y4(c,d,e);let{locStart:D,locEnd:m}=u;return[Math.min(D(p),D(f)),Math.max(m(p),m(f))]}var B1="\uFEFF",By=Symbol("cursor");async function N1(t,e,r=0){if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:n}=await lu(t,e);e.cursorOffset>=0&&(e={...e,...P1(s,e)});let i=await xc(s,e);r>0&&(i=Wg([Ks,i],r,e.tabWidth));let o=yc(i,e);if(r>0){let c=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(c),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>c.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=c+vd(e.endOfLine)}let u=e[dc];if(e.cursorOffset>=0){let c,d,p,f;if((e.cursorNode||e.nodeBeforeCursor||e.nodeAfterCursor)&&o.cursorNodeText)if(p=o.cursorNodeStart,f=o.cursorNodeText,e.cursorNode)c=e.locStart(e.cursorNode),d=n.slice(c,e.locEnd(e.cursorNode));else{if(!e.nodeBeforeCursor&&!e.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");c=e.nodeBeforeCursor?e.locEnd(e.nodeBeforeCursor):0;let A=e.nodeAfterCursor?e.locStart(e.nodeAfterCursor):n.length;d=n.slice(c,A)}else c=0,d=n,p=0,f=o.formatted;let D=e.cursorOffset-c;if(d===f)return{formatted:o.formatted,cursorOffset:p+D,comments:u};let m=d.split("");m.splice(D,0,By);let g=f.split(""),x=l3(m,g),b=p;for(let A of x)if(A.removed){if(A.value.includes(By))break}else b+=A.count;return{formatted:o.formatted,cursorOffset:b,comments:u}}return{formatted:o.formatted,cursorOffset:-1,comments:u}}async function b4(t,e){let{ast:r,text:s}=await lu(t,e),[n,i]=x4(s,e,r)??[0,0],o=s.slice(n,i),u=Math.min(n,s.lastIndexOf(`
|
|
23
|
-
`,n)+1),c=s.slice(u,n).match(/^\s*/)[0],d=Pd(c,e.tabWidth),p=await N1(o,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>n&&e.cursorOffset<=i?e.cursorOffset-n:-1,endOfLine:"lf"},d),f=p.formatted.trimEnd(),{cursorOffset:D}=e;D>i?D+=f.length-o.length:p.cursorOffset>=0&&(D=p.cursorOffset+n);let m=s.slice(0,n)+f+s.slice(i);if(e.endOfLine!=="lf"){let g=vd(e.endOfLine);D>=0&&g===`\r
|
|
24
|
-
`&&(D+=Ug(m.slice(0,D),`
|
|
25
|
-
`)),m=pc(0,m,`
|
|
26
|
-
`,g)}return{formatted:m,cursorOffset:D,comments:p.comments}}function Ip(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function Ny(t,e){let{cursorOffset:r,rangeStart:s,rangeEnd:n}=e;return r=Ip(t,r,-1),s=Ip(t,s,0),n=Ip(t,n,t.length),{...e,cursorOffset:r,rangeStart:s,rangeEnd:n}}function L1(t,e){let{cursorOffset:r,rangeStart:s,rangeEnd:n,endOfLine:i}=Ny(t,e),o=t.charAt(0)===B1;if(o&&(t=t.slice(1),r--,s--,n--),i==="auto"&&(i=m3(t)),t.includes("\r")){let u=c=>Ug(t.slice(0,Math.max(c,0)),`\r
|
|
27
|
-
`);r-=u(r),s-=u(s),n-=u(n),t=g3(t)}return{hasBOM:o,text:t,options:Ny(t,{...e,cursorOffset:r,rangeStart:s,rangeEnd:n,endOfLine:i})}}async function Ly(t,e){let r=await $d(e);return!r.hasPragma||r.hasPragma(t)}async function E4(t,e){return(await $d(e)).hasIgnorePragma?.(t)}async function $1(t,e){let{hasBOM:r,text:s,options:n}=L1(t,await ya(e));if(n.rangeStart>=n.rangeEnd&&s!==""||n.requirePragma&&!await Ly(s,n)||n.checkIgnorePragma&&await E4(s,n))return{formatted:t,cursorOffset:e.cursorOffset,comments:[]};let i;return n.rangeStart>0||n.rangeEnd<s.length?i=await b4(s,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await Ly(s,n)&&(s=n.printer.insertPragma(s)),i=await N1(s,n)),r&&(i.formatted=B1+i.formatted,i.cursorOffset>=0&&i.cursorOffset++),i}async function C4(t,e,r){let{text:s,options:n}=L1(t,await ya(e)),i=await lu(s,n);return r&&(r.preprocessForPrint&&(i.ast=await k1(i.ast,n)),r.massage&&(i.ast=p4(i.ast,n))),i}async function A4(t,e){e=await ya(e);let r=await xc(t,e);return yc(r,e)}async function v4(t,e){let r=G3(t),{formatted:s}=await $1(r,{...e,parser:"__js_expression"});return s}async function T4(t,e){e=await ya(e);let{ast:r}=await lu(t,e);return e.cursorOffset>=0&&(e={...e,...P1(r,e)}),xc(r,e)}async function F4(t,e){return yc(t,await ya(e))}var M1={};Cd(M1,{builders:()=>w4,printer:()=>S4,utils:()=>k4});var w4={join:Gg,line:Kg,softline:H3,hardline:Ks,literalline:Yg,group:Jg,conditionalGroup:q3,fill:R3,lineSuffix:mh,lineSuffixBoundary:W3,cursor:ai,breakParent:mc,ifBreak:U3,trim:J3,indent:Ul,indentIfBreak:z3,align:oa,addAlignmentToDoc:Wg,markAsRoot:Hg,dedentToRoot:_3,dedent:j3,hardlineWithoutBreakParent:Sd,literallineWithoutBreakParent:Xg,label:V3,concat:t=>t},S4={printDocToString:yc},k4={willBreak:S3,traverseDoc:Fd,findInDoc:wd,mapDoc:fc,removeLines:I3,stripTrailingHardline:Vg,replaceEndOfLine:L3,canBreak:M3},P4="3.9.6",O1={};Cd(O1,{addDanglingComment:()=>ri,addLeadingComment:()=>wo,addTrailingComment:()=>So,getAlignmentSize:()=>Pd,getIndentSize:()=>M4,getMaxContinuousCount:()=>j4,getNextNonSpaceNonCommentCharacter:()=>q4,getNextNonSpaceNonCommentCharacterIndex:()=>X4,getPreferredQuote:()=>V4,getStringWidth:()=>kd,hasNewline:()=>Sn,hasNewlineInRange:()=>W4,hasSpaces:()=>G4,isNextLineEmpty:()=>t8,isNextLineEmptyAfterIndex:()=>jd,isPreviousLineEmpty:()=>Q4,makeString:()=>e8,skip:()=>uu,skipEverythingButNewLine:()=>i1,skipInlineComment:()=>Md,skipNewline:()=>pi,skipSpaces:()=>Bn,skipToLineEnd:()=>n1,skipTrailingComment:()=>Od,skipWhitespace:()=>Ck});function I4(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var Md=I4;function B4(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?i1(t,e):e}var Od=B4;function N4(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Bn(t,s),s=Md(t,s),s=Od(t,s),s=pi(t,s);return s}var _d=N4;function L4(t,e){let r=null,s=e;for(;s!==r;)r=s,s=n1(t,s),s=Md(t,s),s=Bn(t,s);return s=Od(t,s),s=pi(t,s),s!==!1&&Sn(t,s)}var jd=L4;function $4(t,e){let r=t.lastIndexOf(`
|
|
28
|
-
`);return r===-1?0:Pd(t.slice(r+1).match(/^[\t ]*/)[0],e)}var M4=$4;function O4(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function _4(t,e){let r=t.matchAll(new RegExp(`(?:${O4(e)})+`,"g"));return r.reduce||(r=[...r]),r.reduce((s,[n])=>Math.max(s,n.length),0)/e.length}var j4=_4;function R4(t,e){let r=_d(t,e);return r===!1?"":t.charAt(r)}var q4=R4,_1=Object.freeze({character:"'",codePoint:39}),j1=Object.freeze({character:'"',codePoint:34}),U4=Object.freeze({preferred:_1,alternate:j1}),z4=Object.freeze({preferred:j1,alternate:_1});function V4(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?U4:z4,{length:n}=t,i=0,o=0;for(let u=0;u<n;u++){let c=t.charCodeAt(u);c===r.codePoint?i++:c===s.codePoint&&o++}return(i>o?s:r).character}function H4(t,e,r){for(let s=e;s<r;++s)if(t.charAt(s)===`
|
|
29
|
-
`)return!0;return!1}var W4=H4;function J4(t,e,r={}){return Bn(t,r.backwards?e-1:e,r)!==e}var G4=J4;function K4(t,e,r){return _d(t,r(e))}function X4(t,e){return arguments.length===2||typeof e=="number"?_d(t,e):K4(...arguments)}function Y4(t,e,r){return Nd(t,r(e))}function Q4(t,e){return arguments.length===2||typeof e=="number"?Nd(t,e):Y4(...arguments)}function Z4(t,e,r){return jd(t,r(e))}function e8(t,e,r){let s=e==='"'?"'":'"',n=pc(0,t,/\\(.)|(["'])/gs,(i,o,u)=>o===s?o:u===e?"\\"+u:u||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o));return e+n+e}function t8(t,e){return arguments.length===2||typeof e=="number"?jd(t,e):Z4(...arguments)}function ii(t,e=1){return async(...r)=>{let s=r[e]??{},n=s.plugins??[];return r[e]={...s,plugins:Array.isArray(n)?n:Object.values(n)},await t(...r)}}var R1=ii($1);async function Es(t,e){let{formatted:r}=await R1(t,{...e,cursorOffset:-1});return r}async function r8(t,e){return await Es(t,e)===t}var s8=ii(f1,0),n8={parse:ii(C4),formatAST:ii(A4),formatDoc:ii(v4),printToDoc:ii(T4),printDocToString:ii(F4)},i8=Object.defineProperty,Rd=(t,e)=>{for(var r in e)i8(t,r,{get:e[r],enumerable:!0})},q1={};Rd(q1,{parsers:()=>wx});var U1={};Rd(U1,{__babel_estree:()=>uI,__js_expression:()=>o0,__ts_expression:()=>u0,__vue_event_binding:()=>i0,__vue_expression:()=>o0,__vue_ts_event_binding:()=>a0,__vue_ts_expression:()=>u0,babel:()=>i0,"babel-flow":()=>Ax,"babel-ts":()=>a0});var qd=(t,e)=>(r,s,...n)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,n),a8=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},o8=qd("replaceAll",function(){if(typeof this=="string")return a8}),Zi=o8,u8=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Ud=u8,Dr=class{constructor(e,r,s){this.line=void 0,this.column=void 0,s!==void 0&&(this.index=void 0),this.line=e,this.column=r,s!==void 0&&(this.index=s)}},zl=class{start;end;filename;identifierName;constructor(e,r){this.start=e,this.end=r}};function Kr(t,e){let{line:r,column:s,index:n}=t;return new Dr(r,s+e,n+e)}var $y="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",l8={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:$y},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:$y}},My={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},wl=t=>t.type==="UpdateExpression"?My.UpdateExpression[`${t.prefix}`]:My[t.type],c8={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
30
|
-
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
31
|
-
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:({phase:t})=>`\`import${t?`.${t}`:""}()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:({phase:t})=>`Cannot use new with import${t?`.${t}`:""}().`,ImportCallSpreadArgument:({phase:t})=>`\`...\` is not allowed in \`import${t?`.${t}`:""}()\`.`,IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${wl(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${wl(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${wl(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},p8={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},h8={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},d8=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),f8={PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${wl({type:t})}; please wrap it in parentheses.`,PipelineUnparenthesized:"Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses."},m8={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."};function Oy(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function y8({toMessage:t,code:e,reasonCode:r,syntaxPlugin:s}){let n=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function i(o,u,c){let d=new SyntaxError;return d.code=e,d.reasonCode=r,d.loc=o,d.pos=u,d.syntaxPlugin=s,n&&(d.missingPlugin=c.missingPlugin),Oy(d,"clone",function(p={}){let{line:f,column:D,index:m=u}=p.loc??o;return i(new Dr(f,D),m,{...c,...p.details})}),Oy(d,"details",c),Object.defineProperty(d,"message",{configurable:!0,get(){let p=`${t(c)} (${o.line}:${o.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),d}}function as(t,e){if(Array.isArray(t))return s=>as(s,t[0]);let r={};for(let s of Object.keys(t)){let n=t[s],{message:i,...o}=typeof n=="string"?{message:()=>n}:typeof n=="function"?{message:n}:n,u=typeof i=="string"?()=>i:i;r[s]=y8({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:u,...e?{syntaxPlugin:e}:{},...o})}return r}var W={...as(l8),...as(c8),...as(p8),...as(h8),...as`pipelineOperator`(f8),...as`functionBind`(m8)};function D8(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,locations:!0,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function g8(t){let e=D8();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(e))t[r]!=null&&(e[r]=t[r]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if(t.startColumn==null||t.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}function qi(t){let{start:e,end:r}=t.loc;return t.loc.start=new Dr(e.line,e.column),t.loc.end=new Dr(r.line,r.column),t}var x8=t=>class extends t{createPosition(e){return new Dr(e.line,e.column)}parse(){let e=super.parse();return this.optionFlags&512&&(e.tokens=e.tokens.map(qi)),qi(e)}parseRegExpLiteral({pattern:e,flags:r}){let s=null;try{s=new RegExp(e,r)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:e,flags:r},n}parseBigIntLiteral(e){let r;try{r=BigInt(e)}catch{r=null}let s=this.estreeParseLiteral(r);return s.bigint=String(s.value||e),s}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,r){let s=this.startNodeAtNode(e);return s.expression=e,this.finishNodeAtNode(s,"ChainExpression",r)}directiveToStmt(e){let r=e.value;delete e.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let s=this.castNodeTo(e,"ExpressionStatement");return s.expression=r,s.directive=r.extra.rawValue,delete r.extra,s}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:r,end:s,loc:n,range:i,raw:o,value:u}=e,c=Object.create(e.constructor.prototype);return c.type="Literal",c.start=r,c.end=s,c.loc=n,c.range=i,c.raw=o,c.value=u,c}initFunction(e,r){super.initFunction(e,r),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!e.expression.extra?.parenthesized}parseBlockBody(e,r,s,n,i){super.parseBlockBody(e,r,s,n,i);let o=e.directives.map(u=>this.directiveToStmt(u));e.body=o.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){let r=super.getPrivateNameSV(e);return delete e.id,e.name=r,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return e.type==="PrivateIdentifier"}getPrivateNameSV(e){return e.name}parseLiteral(e,r){let s=super.parseLiteral(e,r);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(e,r,s=!1){super.parseFunctionBody(e,r,s),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,r,s,n,i,o,u=!1){let c=this.startNode();c.kind=e.kind,c=super.parseMethod(c,r,s,n,i,o,u),delete c.kind;let{typeParameters:d}=e;d&&(delete e.typeParameters,c.typeParameters=d,this.resetStartLocationFromNode(c,d));let p=this.castNodeTo(c,this.hasPlugin("typescript")&&!c.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return e.value=p,o==="ClassPrivateMethod"&&(e.computed=!1),this.hasPlugin("typescript")&&e.abstract?(delete e.abstract,this.finishNode(e,"TSAbstractMethodDefinition")):o==="ObjectMethod"?(e.kind==="method"&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let r=super.parseClassProperty(...e);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...e){let r=super.parseClassPrivateProperty(...e);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(e){let r=super.parseClassAccessorProperty(e);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(e,r,s,n){let i=super.parseObjectProperty(e,r,s,n);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,r,s,n){return e==="Property"?"value":super.isValidLVal(e,r,s,n)}isAssignable(e,r){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,r):super.isAssignable(e,r)}toAssignable(e,r=!1){if(e!=null&&this.isObjectProperty(e)){let{key:s,value:n}=e;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.start),this.toAssignable(n,r)}else super.toAssignable(e,r)}toAssignableObjectExpressionProp(e,r,s){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(W.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(W.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,r,s)}finishCallExpression(e,r){let s=super.finishCallExpression(e,r);return s.callee.type==="Import"?(this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=s.arguments[1]??null,delete s.arguments,delete s.callee):s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1,s}parseExport(e,r){let s=this.state.lastTokStartLoc,n=super.parseExport(e,r);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{let{declaration:i}=n;i?.type==="ClassDeclaration"&&i.decorators?.length>0&&i.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(e,r){let s=super.stopParseSubscript(e,r);return r.optionalChainMember?this.estreeParseChainExpression(s,e):s}parseMember(e,r,s,n,i){let o=super.parseMember(e,r,s,n,i);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,r){let s=super.castNodeTo(e,r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(e){let r=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(e){return e.type==="Literal"?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,r,s){return qi(super.finishNodeAt(e,r,s))}finishNodeAtNode(e,r,s){return qi(super.finishNodeAtNode(e,r,s))}finishNode(e,r){let s=super.finishNode(e,r);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(e,r){super.resetStartLocation(e,r),qi(e)}resetEndLocation(e,r=this.state.lastTokEndLoc){super.resetEndLocation(e,r),qi(e)}},Xe=!0,Ae=!0,Bp=!0,Ka=!0,xn=!0,b8=!0,z1=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,r={}){this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},zd=new Map;function Ze(t,e={}){e.keyword=t;let r=Oe(t,e);return zd.set(t,r),r}function ir(t,e){return Oe(t,{beforeExpr:Xe,binop:e})}var ko=-1,Vd=[],Hd=[],Wd=[],Jd=[],Gd=[],Kd=[];function Oe(t,e={}){return++ko,Hd.push(t),Wd.push(e.binop??-1),Jd.push(e.beforeExpr??!1),Gd.push(e.startsExpr??!1),Kd.push(e.prefix??!1),Vd.push(new z1(t,e)),ko}function Ge(t,e={}){return++ko,zd.set(t,ko),Hd.push(t),Wd.push(e.binop??-1),Jd.push(e.beforeExpr??!1),Gd.push(e.startsExpr??!1),Kd.push(e.prefix??!1),Vd.push(new z1("name",e)),ko}var E8={bracketL:Oe("[",{beforeExpr:Xe,startsExpr:Ae}),bracketR:Oe("]"),braceL:Oe("{",{beforeExpr:Xe,startsExpr:Ae}),braceBarL:Oe("{|",{beforeExpr:Xe,startsExpr:Ae}),braceR:Oe("}"),braceBarR:Oe("|}"),parenL:Oe("(",{beforeExpr:Xe,startsExpr:Ae}),parenR:Oe(")"),comma:Oe(",",{beforeExpr:Xe}),semi:Oe(";",{beforeExpr:Xe}),colon:Oe(":",{beforeExpr:Xe}),doubleColon:Oe("::",{beforeExpr:Xe}),dot:Oe("."),question:Oe("?",{beforeExpr:Xe}),questionDot:Oe("?."),arrow:Oe("=>",{beforeExpr:Xe}),template:Oe("template"),ellipsis:Oe("...",{beforeExpr:Xe}),backQuote:Oe("`",{startsExpr:Ae}),dollarBraceL:Oe("${",{beforeExpr:Xe,startsExpr:Ae}),templateTail:Oe("...`",{startsExpr:Ae}),templateNonTail:Oe("...${",{beforeExpr:Xe,startsExpr:Ae}),at:Oe("@"),hash:Oe("#",{startsExpr:Ae}),interpreterDirective:Oe("#!..."),eq:Oe("=",{beforeExpr:Xe,isAssign:Ka}),assign:Oe("_=",{beforeExpr:Xe,isAssign:Ka}),slashAssign:Oe("_=",{beforeExpr:Xe,isAssign:Ka}),xorAssign:Oe("_=",{beforeExpr:Xe,isAssign:Ka}),moduloAssign:Oe("_=",{beforeExpr:Xe,isAssign:Ka}),incDec:Oe("++/--",{prefix:xn,postfix:b8,startsExpr:Ae}),bang:Oe("!",{beforeExpr:Xe,prefix:xn,startsExpr:Ae}),tilde:Oe("~",{beforeExpr:Xe,prefix:xn,startsExpr:Ae}),doubleCaret:Oe("^^",{startsExpr:Ae}),doubleAt:Oe("@@",{startsExpr:Ae}),pipeline:ir("|>",0),nullishCoalescing:ir("??",1),logicalOR:ir("||",1),logicalAND:ir("&&",2),bitwiseOR:ir("|",3),bitwiseXOR:ir("^",4),bitwiseAND:ir("&",5),equality:ir("==/!=/===/!==",6),lt:ir("</>/<=/>=",7),gt:ir("</>/<=/>=",7),relational:ir("</>/<=/>=",7),bitShift:ir("<</>>/>>>",8),bitShiftL:ir("<</>>/>>>",8),bitShiftR:ir("<</>>/>>>",8),plusMin:Oe("+/-",{beforeExpr:Xe,binop:9,prefix:xn,startsExpr:Ae}),modulo:Oe("%",{binop:10,startsExpr:Ae}),star:Oe("*",{binop:10}),slash:ir("/",10),exponent:Oe("**",{beforeExpr:Xe,binop:11,rightAssociative:!0}),_in:Ze("in",{beforeExpr:Xe,binop:7}),_instanceof:Ze("instanceof",{beforeExpr:Xe,binop:7}),_break:Ze("break"),_case:Ze("case",{beforeExpr:Xe}),_catch:Ze("catch"),_continue:Ze("continue"),_debugger:Ze("debugger"),_default:Ze("default",{beforeExpr:Xe}),_else:Ze("else",{beforeExpr:Xe}),_finally:Ze("finally"),_function:Ze("function",{startsExpr:Ae}),_if:Ze("if"),_return:Ze("return",{beforeExpr:Xe}),_switch:Ze("switch"),_throw:Ze("throw",{beforeExpr:Xe,prefix:xn,startsExpr:Ae}),_try:Ze("try"),_var:Ze("var"),_const:Ze("const"),_with:Ze("with"),_new:Ze("new",{beforeExpr:Xe,startsExpr:Ae}),_this:Ze("this",{startsExpr:Ae}),_super:Ze("super",{startsExpr:Ae}),_class:Ze("class",{startsExpr:Ae}),_extends:Ze("extends",{beforeExpr:Xe}),_export:Ze("export"),_import:Ze("import",{startsExpr:Ae}),_null:Ze("null",{startsExpr:Ae}),_true:Ze("true",{startsExpr:Ae}),_false:Ze("false",{startsExpr:Ae}),_typeof:Ze("typeof",{beforeExpr:Xe,prefix:xn,startsExpr:Ae}),_void:Ze("void",{beforeExpr:Xe,prefix:xn,startsExpr:Ae}),_delete:Ze("delete",{beforeExpr:Xe,prefix:xn,startsExpr:Ae}),_do:Ze("do",{isLoop:Bp,beforeExpr:Xe}),_for:Ze("for",{isLoop:Bp}),_while:Ze("while",{isLoop:Bp}),_as:Ge("as",{startsExpr:Ae}),_assert:Ge("assert",{startsExpr:Ae}),_async:Ge("async",{startsExpr:Ae}),_await:Ge("await",{startsExpr:Ae}),_defer:Ge("defer",{startsExpr:Ae}),_from:Ge("from",{startsExpr:Ae}),_get:Ge("get",{startsExpr:Ae}),_let:Ge("let",{startsExpr:Ae}),_meta:Ge("meta",{startsExpr:Ae}),_of:Ge("of",{startsExpr:Ae}),_sent:Ge("sent",{startsExpr:Ae}),_set:Ge("set",{startsExpr:Ae}),_source:Ge("source",{startsExpr:Ae}),_static:Ge("static",{startsExpr:Ae}),_using:Ge("using",{startsExpr:Ae}),_yield:Ge("yield",{startsExpr:Ae}),_asserts:Ge("asserts",{startsExpr:Ae}),_checks:Ge("checks",{startsExpr:Ae}),_exports:Ge("exports",{startsExpr:Ae}),_global:Ge("global",{startsExpr:Ae}),_implements:Ge("implements",{startsExpr:Ae}),_intrinsic:Ge("intrinsic",{startsExpr:Ae}),_infer:Ge("infer",{startsExpr:Ae}),_is:Ge("is",{startsExpr:Ae}),_mixins:Ge("mixins",{startsExpr:Ae}),_proto:Ge("proto",{startsExpr:Ae}),_require:Ge("require",{startsExpr:Ae}),_satisfies:Ge("satisfies",{startsExpr:Ae}),_keyof:Ge("keyof",{startsExpr:Ae}),_readonly:Ge("readonly",{startsExpr:Ae}),_unique:Ge("unique",{startsExpr:Ae}),_abstract:Ge("abstract",{startsExpr:Ae}),_declare:Ge("declare",{startsExpr:Ae}),_enum:Ge("enum",{startsExpr:Ae}),_module:Ge("module",{startsExpr:Ae}),_namespace:Ge("namespace",{startsExpr:Ae}),_interface:Ge("interface",{startsExpr:Ae}),_type:Ge("type",{startsExpr:Ae}),_opaque:Ge("opaque",{startsExpr:Ae}),name:Oe("name",{startsExpr:Ae}),placeholder:Oe("%%",{startsExpr:Ae}),string:Oe("string",{startsExpr:Ae}),num:Oe("num",{startsExpr:Ae}),bigint:Oe("bigint",{startsExpr:Ae}),regexp:Oe("regexp",{startsExpr:Ae}),privateName:Oe("#name",{startsExpr:Ae}),eof:Oe("eof"),jsxName:Oe("jsxName"),jsxText:Oe("jsxText",{beforeExpr:Xe}),jsxTagStart:Oe("jsxTagStart",{startsExpr:Ae}),jsxTagEnd:Oe("jsxTagEnd")};function at(t){return t>=89&&t<=129}function C8(t){return t<=88}function os(t){return t>=54&&t<=129}function V1(t){return t>=54&&t<=132}function A8(t){return Jd[t]}function xo(t){return Gd[t]}function v8(t){return t>=25&&t<=29}function _y(t){return t>=125&&t<=127}function T8(t){return t>=86&&t<=88}function Xd(t){return t>=54&&t<=88}function jy(t){return t>=35&&t<=55}function F8(t){return t===30}function w8(t){return Kd[t]}function S8(t){return t>=117&&t<=119}function k8(t){return t>=120&&t<=126}function kn(t){return Hd[t]}function Sl(t){return Wd[t]}function P8(t){return t===53}function xh(t){return t>=20&&t<=21}function H1(t){return Vd[t]}var Zu=class{constructor(e,r){this.token=e,this.preserveSpace=!!r}token;preserveSpace},ht={brace:new Zu("{"),j_oTag:new Zu("<tag"),j_cTag:new Zu("</tag"),j_expr:new Zu("<tag>...</tag>",!0)},W1="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u0870-\\u0887\\u0889-\\u088f\\u08a0-\\u08c9\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c5c\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdc-\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u1711\\u171f-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4c\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c8a\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7dc\\ua7f1-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",I8="\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u0897-\\u089f\\u08ca-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1add\\u1ae0-\\u1aeb\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f\\uff65",J1=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],B8=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],N8=new RegExp("["+W1+"]"),L8=new RegExp("["+W1+I8+"]");function bh(t,e){let r=65536;for(let s=0,n=e.length;s<n;s+=2){if(r+=e[s],r>t)return!1;if(r+=e[s+1],r>=t)return!0}return!1}function As(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&N8.test(String.fromCharCode(t)):bh(t,J1)}function ui(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&L8.test(String.fromCharCode(t)):bh(t,J1)||bh(t,B8)}var Yd={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},$8=new Set(Yd.keyword),M8=new Set(Yd.strict),O8=new Set(Yd.strictBind);function G1(t,e){return e&&t==="await"||t==="enum"}function K1(t,e){return G1(t,e)||M8.has(t)}function X1(t){return O8.has(t)}function Y1(t,e){return K1(t,e)||X1(t)}function _8(t){return $8.has(t)}function j8(t,e,r){return t===64&&e===64&&As(r)}var R8=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function q8(t){return R8.has(t)}var Qd=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},Zd=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,r){this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&3779)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Qd(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,s){let n=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(n,e,r,s);let i=n.names.get(e)||0;r&16?i=i|4:(n.firstLexicalName||(n.firstLexicalName=e),i=i|2),n.names.set(e,i),r&8&&this.maybeExportDefined(n,e)}else if(r&4)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,r,s),n.names.set(e,(n.names.get(e)||0)|1),this.maybeExportDefined(n,e),!(n.flags&3715));--i);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,s,n){this.isRedeclaredInScope(e,r,s)&&this.parser.raise(W.VarRedeclaration,n,{identifierName:r})}isRedeclaredInScope(e,r,s){if(!(s&1))return!1;if(s&8)return e.names.has(r);let n=e.names.get(r)||0;return s&16?(n&2)>0||!this.treatFunctionsAsVarInScope(e)&&(n&1)>0:(n&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(n&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&3715)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&3779&&!(r&4))return r}}},U8=class extends Qd{declareFunctions=new Set},z8=class extends Zd{createScope(e){return new U8(e)}declareName(e,r,s){let n=this.currentScope();if(r&2048){this.checkRedeclarationInScope(n,e,r,s),this.maybeExportDefined(n,e),n.declareFunctions.add(e);return}super.declareName(e,r,s)}isRedeclaredInScope(e,r,s){if(super.isRedeclaredInScope(e,r,s))return!0;if(s&2048&&!e.declareFunctions.has(r)){let n=e.names.get(r);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},V8=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),H8={AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:{message:"A binding pattern parameter cannot be optional in an implementation signature."},SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},Me=as`flow`(H8);function W8(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Ry(t){return t.importKind==="type"||t.importKind==="typeof"}var J8={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function G8(t,e){let r=[],s=[];for(let n=0;n<t.length;n++)(e(t[n],n,t)?r:s).push(t[n]);return[r,s]}var K8=/\*?\s*@((?:no)?flow)\b/,X8=t=>class extends t{flowPragma=void 0;getScopeHandler(){return z8}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,r){e!==130&&e!==9&&e!==24&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,r)}addComment(e){if(this.flowPragma===void 0){let r=K8.exec(e.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let r=this.state.inType;this.state.inType=!0,this.expect(e||10);let s=this.flowParseType();return this.state.inType=r,s}flowParsePredicate(){let e=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(106),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Me.UnexpectedSpaceBetweenModuloChecks,r),this.eat(6)?(e.value=super.parseExpression(),this.expect(7),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(e){let r=this.state.inType;this.state.inType=!0,this.expect(10);let s=null,n=null;return e&&this.match(50)?(this.state.inType=r,n=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=r,this.match(50)&&(n=this.flowParsePredicate())),[s,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let r=e.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(43)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(6);let i=this.flowParseFunctionTypeParams();return s.params=i.params,s.rest=i.rest,s.this=i._this,this.expect(7),[s.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(!1),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,r){if(this.match(76))return this.flowParseDeclareClass(e);if(this.match(64))return this.flowParseDeclareFunction(e);if(this.match(70))return this.flowParseDeclareVariable(e);if(this.eatContextual(123))return this.match(12)?this.flowParseDeclareModuleExports(e):(r&&this.raise(Me.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(125))return this.flowParseDeclareInterface(e);if(this.match(78))return this.flowParseDeclareExportDeclaration(e,r);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(130)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let r=this.startNode(),s=r.body=[];for(this.expect(2);!this.match(4);){let o=this.startNode();this.match(79)?(this.next(),!this.isContextual(126)&&!this.match(83)&&this.raise(Me.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(121,Me.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(4),e.body=this.finishNode(r,"BlockStatement");let n=null,i=!1;return s.forEach(o=>{W8(o)?(n==="CommonJS"&&this.raise(Me.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(i&&this.raise(Me.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(Me.AmbiguousDeclareModuleKind,o),n="CommonJS",i=!0)}),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,r){if(this.expect(78),this.eat(61))return this.match(64)||this.match(76)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(71)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!r){let s=this.state.value;throw this.raise(Me.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:J8[s]})}if(this.match(70)||this.match(64)||this.match(76)||this.isContextual(127))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(51)||this.match(2)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127)){let s=this.parseExport(e,null);return s.type==="ExportNamedDeclaration"?(s.default=!1,delete s.exportKind,this.castNodeTo(s,"DeclareExportDeclaration")):this.castNodeTo(s,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(107),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let r=this.flowParseTypeAlias(e);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0)}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,r){if(e.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(e.id.name,r?17:8201,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(77))do e.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(8));if(r){let s=[],n=[];if(this.eatContextual(113))do n.push(this.flowParseInterfaceExtends());while(this.eat(8));if(this.eatContextual(109))do s.push(this.flowParseClassImplements());while(this.eat(8));e.implements=s,e.mixins=n}e.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(43)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(Me.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,r,s){V8.has(e)&&this.raise(s?Me.AssignReservedType:Me.UnexpectedReservedType,r,{reservedType:e})}flowParseRestrictedIdentifierName(e,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifierName(e)}flowParseRestrictedIdentifier(e,r){let s=this.startNode(),n=this.flowParseRestrictedIdentifierName(e,r);return this.createIdentifier(s,n)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(25),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,r){return this.expectContextual(126),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(10)&&(e.supertype=this.flowParseTypeInitialiser(10)),e.impltype=null,r||(e.impltype=this.flowParseTypeInitialiser(25)),this.semicolon(),this.finishNode(e,r?"DeclareOpaqueType":"OpaqueType")}flowParseTypeParameterBound(){if(this.match(10)||this.isContextual(77)){let e=this.startNode();return this.next(),e.typeAnnotation=this.flowParseType(),this.finishNode(e,"TypeAnnotation")}}flowParseTypeParameter(e=!1){let r=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance();return s.name=this.flowParseRestrictedIdentifierName(),s.variance=n,s.bound=this.flowParseTypeParameterBound(),this.match(25)?(this.eat(25),s.default=this.flowParseType()):e&&this.raise(Me.MissingTypeParamDefault,r),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(43)||this.match(138)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);r.params.push(n),n.default&&(s=!0),this.match(44)||this.expect(8)}while(!this.match(44));return this.expect(44),this.state.inType=e,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==ht.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===43)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),r=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(43);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(44);)e.params.push(this.flowParseType()),this.match(44)||this.expect(8);this.state.noAnonFunctionType=s}),this.state.inType=r,!this.state.inType&&this.curContext()===ht.brace&&this.reScan_lt_gt(),this.expect(44),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==43)return null;let e=this.startNode(),r=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(43);!this.match(44);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(44)||this.expect(8);return this.expect(44),this.state.inType=r,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(125),e.extends=[],this.eat(77))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(8));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(131)||this.match(130)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,r,s){return e.static=r,this.lookahead().type===10?(e.id=this.parseIdentifier(!0),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(1),e.value=this.flowParseTypeInitialiser(),e.variance=s,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,r){return e.static=r,e.id=this.parseIdentifier(!0),this.expect(1),this.expect(1),this.match(43)||this.match(6)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAtNode(e))):(e.method=!1,this.eat(13)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(6),this.match(74)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(7)||this.expect(8));!this.match(7)&&!this.match(17);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(7)||this.expect(8);return this.eat(17)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(7),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,r){let s=this.startNode();return e.static=r,e.value=this.flowParseObjectTypeMethodish(s),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:r,allowSpread:s,allowProto:n,allowInexact:i}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let c,d,p=!1;for(r&&this.match(3)?(this.expect(3),c=5,d=!0):(this.expect(2),c=4,d=!1),u.exact=d;!this.match(c);){let D=!1,m=null,g=null,x=this.startNode();if(n&&this.isContextual(114)){let A=this.lookahead();A.type!==10&&A.type!==13&&(this.next(),m=this.state.startLoc,e=!1)}if(e&&this.isContextual(102)){let A=this.lookahead();A.type!==10&&A.type!==13&&(this.next(),D=!0)}let b=this.flowParseVariance();if(this.eat(0))m!=null&&this.unexpected(m),this.eat(0)?(b&&this.unexpected(b.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,D))):u.indexers.push(this.flowParseObjectTypeIndexer(x,D,b));else if(this.match(6)||this.match(43))m!=null&&this.unexpected(m),b&&this.unexpected(b.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(x,D));else{let A="init";if(this.isContextual(95)||this.isContextual(100)){let v=this.lookahead();V1(v.type)&&(A=this.state.value,this.next())}let C=this.flowParseObjectTypeProperty(x,D,m,b,A,s,i??!d);C===null?(p=!0,g=this.state.lastTokStartLoc):u.properties.push(C)}this.flowObjectTypeSemicolon(),g&&!this.match(4)&&!this.match(5)&&this.raise(Me.UnexpectedExplicitInexactInObject,g)}this.expect(c),s&&(u.inexact=p);let f=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,r,s,n,i,o,u){if(this.eat(17))return this.match(8)||this.match(9)||this.match(4)||this.match(5)?(o?u||this.raise(Me.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Me.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(Me.InexactVariance,n),null):(o||this.raise(Me.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(Me.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=r,e.proto=s!=null,e.kind=i;let c=!1;return this.match(43)||this.match(6)?(e.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAtNode(e)),i==="get"||i==="set"?this.flowCheckGetterSetterParams(e):!r&&!o&&e.key.name==="constructor"&&e.value.this&&this.raise(Me.ThisParamBannedInConstructor,e.value.this)):(i!=="init"&&this.unexpected(),e.method=!1,this.eat(13)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=c,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let r=e.kind==="get"?0:1,s=e.value,n=s.params.length+(s.rest?1:0);s.this&&this.raise(e.kind==="get"?Me.GetterMayNotHaveThisParam:Me.SetterMayNotHaveThisParam,s.this),n!==r&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&s.rest&&this.raise(W.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(9)&&!this.eat(8)&&!this.match(4)&&!this.match(5)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,r){e??(e=this.state.startLoc);let s=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(12);){let n=this.startNodeAt(e);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(e,r){let s=this.startNodeAt(e);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(e,r),this.match(43)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(83),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(1)&&(e.types.push(this.flowParseType()),!this.match(1));)this.expect(8);return this.expect(1),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let r=null,s=!1,n,i=this.startNode(),o=this.lookahead(),u=this.state.type===74;return o.type===10||o.type===13?(u&&!e&&this.raise(Me.ThisParamMustBeFirst,i),r=this.parseIdentifier(u),this.eat(13)&&(s=!0,u&&this.raise(Me.ThisParamMayNotBeOptional,i)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=r,i.optional=s,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let r=this.startNodeAtNode(e);return r.name=null,r.optional=!1,r.typeAnnotation=e,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let r=null,s=null;for(this.match(74)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(7)||this.expect(8));!this.match(7)&&!this.match(17);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(7)||this.expect(8);return this.eat(17)&&(r=this.flowParseFunctionTypeParam(!1)),{params:e,rest:r,_this:s}}flowIdentToTypeAnnotation(e,r,s){switch(s.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(e,s)}}flowParsePrimaryType(){let e=this.state.startLoc,r=this.startNode(),s,n,i=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 2:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 3:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 43:{let u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(6),s=this.flowParseFunctionTypeParams(),u.params=s.params,u.rest=s.rest,u.this=s._this,this.expect(7),this.expect(15),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 6:{let u=this.startNode();if(this.next(),!this.match(7)&&!this.match(17))if(at(this.state.type)||this.match(74)){let c=this.lookahead().type;i=c!==13&&c!==10}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(8)||this.match(7)&&this.lookahead().type===15))return this.expect(7),n;this.eat(8)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),u.params=s.params,u.rest=s.rest,u.this=s._this,this.expect(7),this.expect(15),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 130:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 81:case 82:return r.value=this.match(81),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 49:if(this.state.value==="-"){if(this.next(),this.match(131))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(132))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(Me.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 131:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 132:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 84:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 80:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 74:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 51:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 83:return this.flowParseTypeofType();default:if(Xd(this.state.type)){let u=kn(this.state.type);return this.next(),super.createIdentifier(r,u)}else if(at(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,r,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,r=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(14))&&!this.canInsertSemicolon();){let n=this.startNodeAt(e),i=this.eat(14);s=s||i,this.expect(0),!i&&this.match(1)?(n.elementType=r,this.next(),r=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=r,n.indexType=this.flowParseType(),this.expect(1),s?(n.optional=i,r=this.finishNode(n,"OptionalIndexedAccessType")):r=this.finishNode(n,"IndexedAccessType"))}return r}flowParsePrefixType(){let e=this.startNode();return this.eat(13)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(15)){let r=this.startNodeAtNode(e);return r.params=[this.reinterpretTypeAsFunctionTypeParam(e)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(41);let r=this.flowParseAnonFunctionWithoutParens();for(e.types=[r];this.eat(41);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?r:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(39);let r=this.flowParseIntersectionType();for(e.types=[r];this.eat(39);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?r:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=e,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===128&&this.state.value==="_"){let e=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let e=this.startNode(),r=this.parseIdentifierName();return this.match(10)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(e,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocationFromNode(e.expression,e.typeAnnotation),e.expression}flowParseVariance(){let e=null;return this.match(49)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,r,s=!1){if(r){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,s));return}super.parseFunctionBody(e,!1,s)}parseFunctionBodyAndFinish(e,r,s=!1){if(this.match(10)){let n=this.startNode();r==="FunctionDeclaration"||r==="FunctionExpression"||r==="ArrowFunctionExpression"?[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(!0):n.typeAnnotation=this.flowParseTypeInitialiser(),e.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,r,s)}parseStatementLike(e){if(this.state.strict&&this.isContextual(125)){let s=this.lookahead();if(os(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(122)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let r=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(e,r,s){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(76)||at(this.state.type)||this.match(64)||this.match(70)||this.match(78))return this.flowParseDeclare(e)}else if(at(this.state.type)){if(r.name==="interface")return this.flowParseInterface(e);if(r.name==="type")return this.flowParseTypeAlias(e);if(r.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,r,s)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===122||_y(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===122||_y(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(122)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,r,s){if(!this.match(13))return e;if(s!=null){let D=this.lookaheadCharCode();if(D===44||D===61||D===58||D===41)return this.setOptionalParametersError(s),e}this.expect(13);let n=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(r),{consequent:u,failed:c}=this.tryParseConditionalConsequent(),d=this.getArrowLikeExpressions(u),p=d[0],f=d[1];if(c||f.length>0){let D=[...i];if(f.length>0){this.state=n,this.state.noArrowAt=D;for(let m=0;m<f.length;m++)D.push(f[m].start);({consequent:u,failed:c}=this.tryParseConditionalConsequent()),[p]=this.getArrowLikeExpressions(u)}c&&p.length>1&&this.raise(Me.AmbiguousConditionalArrow,n.startLoc),c&&p.length===1&&(this.state=n,D.push(p[0].start),this.state.noArrowAt=D,{consequent:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=i,this.expect(10),o.test=e,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),r=!this.match(10);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:r}}getArrowLikeExpressions(e,r){let s=[e],n=[];for(;s.length!==0;){let i=s.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):n.push(i),s.push(i.body)):i.type==="ConditionalExpression"&&(s.push(i.consequent),s.push(i.alternate))}return r?(n.forEach(i=>this.finishArrowValidation(i)),[n,[]]):G8(n,i=>i.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,r){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=r(),this.state.noArrowParamsConversionAt.pop()):s=r(),s}parseParenItem(e,r){let s=super.parseParenItem(e,r);if(this.eat(13)&&(s.optional=!0,this.resetEndLocation(e)),this.match(10)){let n=this.startNodeAt(r);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(126)){e.exportKind="type";let r=this.startNode();return this.next(),this.match(2)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(r)}else if(this.isContextual(127)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(125)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(122)){e.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(126)&&this.lookahead().type===51?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:r}=this.state,s=super.maybeParseExportNamespaceSpecifier(e);return s&&e.exportKind==="type"&&this.unexpected(r),s}parseClassId(e,r,s){if((!r||s)&&this.isContextual(109)){e.id=null;return}super.parseClassId(e,r,s),this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,r,s){let{startLoc:n}=this.state;if(this.isContextual(121)){if(super.parseClassMemberFromModifier(e,r))return;r.declare=!0}super.parseClassMember(e,r,s),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Me.DeclareClassElement,n):r.value&&this.raise(Me.DeclareClassFieldInitializer,r.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),r="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(W.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(128,r)}getTokenFromCode(e){let r=this.input.charCodeAt(this.state.pos+1);e===123&&r===124?this.finishOp(3,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?44:43,1):this.state.inType&&e===63?r===46?this.finishOp(14,2):this.finishOp(13,1):j8(e,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,r){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,r):super.isAssignable(e,r)}toAssignable(e,r=!1){!r&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,r)}toAssignableListItem(e,r,s){let n=e[r];n.type==="TypeCastExpression"&&(e[r]=this.typeCastToParameter(n)),super.toAssignableListItem(e,r,s)}toReferencedList(e,r){for(let s=0;s<e.length;s++){let n=e[s];n?.type==="TypeCastExpression"&&!n.extra?.parenthesized&&(e.length>1||!r)&&this.raise(Me.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,r){let s=super.parseArrayLike(e,r);return s.type==="ArrayExpression"&&this.toReferencedList(s.elements),s}isValidLVal(e,r,s,n){return e==="TypeCastExpression"||super.isValidLVal(e,r,s,n)}parseClassProperty(e){return this.match(10)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(10)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(10)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(10)&&super.isNonstaticConstructor(e)}pushClassMethod(e,r,s,n,i,o){if(r.variance&&this.unexpected(r.variance.start),delete r.variance,this.match(43)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,r,s,n,i,o),r.params&&i){let u=r.params;u.length>0&&this.isThisParam(u[0])&&this.raise(Me.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&i&&r.value.params){let u=r.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(Me.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(e,r,s,n){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.match(43)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,r,s,n)}flowParseClassImplements(){let e=this.startNode();return e.id=this.flowParseRestrictedIdentifier(!0),this.match(43)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"ClassImplements")}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(43)||this.match(47))&&(e.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.eatContextual(109)){let r=e.implements=[];do r.push(this.flowParseClassImplements());while(this.eat(8))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let r=this.getObjectOrClassMethodParams(e);if(r.length>0){let s=r[0];this.isThisParam(s)&&e.kind==="get"?this.raise(Me.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(Me.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,r,s,n,i,o,u){e.variance&&this.unexpected(e.variance.start),delete e.variance;let c;this.match(43)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(6)||this.unexpected());let d=super.parseObjPropValue(e,r,s,n,i,o,u);return c&&((d.value||d).typeParameters=c),d}parseFunctionParamType(e){return this.eat(13)&&(e.type!=="Identifier"&&this.raise(Me.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Me.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(10)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Me.ThisParamAnnotationRequired,e),this.match(25)&&this.isThisParam(e)&&this.raise(Me.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,r){let s=super.parseMaybeDefault(e,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(Me.TypeBeforeInitializer,s.typeAnnotation),s}parseImportSpecifierLocal(e,r,s){r.local=Ry(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,s))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(126)){if(!e)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!e&&this.isContextual(83)}applyImportPhase(e,r,s,n){if(super.applyImportPhase(e,r,s,n),r){if(!s&&this.match(61))return;e.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(51)&&this.unexpected(),e.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(e,r,s,n,i){let o=e.imported,u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let c=!1;if(this.isContextual(89)&&!this.isLookaheadContextual("as")){let p=this.parseIdentifier(!0);u!==null&&!os(this.state.type)?(e.imported=p,e.importKind=u,e.local=this.cloneIdentifier(p)):(e.imported=o,e.importKind=null,e.local=this.parseIdentifier())}else{if(u!==null&&os(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=u;else{if(r)throw this.raise(W.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(89)?e.local=this.parseIdentifier():(c=!0,e.local=this.cloneIdentifier(e.imported))}let d=Ry(e);return s&&d&&this.raise(Me.ImportTypeShorthandOnlyInPureImport,e),(s||d)&&this.checkReservedType(e.local.name,e.local.start,!0),c&&!s&&!d&&this.checkReservedWord(e.local.name,e.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return this.state.type===74?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,r){let s=e.kind;s!=="get"&&s!=="set"&&this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),this.match(10)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){if(this.match(10)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(e,r)}shouldParseAsyncArrow(){return this.match(10)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,r){let s=null,n;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(s=this.state.clone(),n=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!n.error)return n.node;let{context:i}=this.state,o=i[i.length-1];(o===ht.j_oTag||o===ht.j_expr)&&i.pop()}if(n?.error||this.match(43)){s=s||this.state.clone();let i,o=this.tryParse(c=>{i=this.flowParseTypeParameterDeclaration();let d=this.forwardNoArrowParamsConversionAt(i,()=>{let f=super.parseMaybeAssign(e,r);return this.resetStartLocationFromNode(f,i),f});d.extra?.parenthesized&&c();let p=this.maybeUnwrapTypeCastExpression(d);return p.type!=="ArrowFunctionExpression"&&c(),p.typeParameters=i,this.resetStartLocationFromNode(p,i),d},s),u=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Me.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),o.node;u=o.node}if(n?.node)return this.state=n.failState,n.node;if(u)return this.state=o.failState,u;throw n?.thrown?n.error:o.thrown?o.error:this.raise(Me.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(e,r)}parseArrow(e){if(this.match(10)){let r=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(!0),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(15)||this.unexpected(),n});if(r.thrown)return null;r.error&&(this.state=r.failState),e.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(10)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=r:super.setArrowFunctionParameters(e,r)}checkParams(e,r,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let i=0;i<e.params.length;i++)this.isThisParam(e.params[i])&&i>0&&this.raise(Me.ThisParamMustBeFirst,e.params[i]);super.checkParams(e,r,s,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,r,s){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let n=this.startNodeAt(r);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(43)){let n=this.state.clone(),i=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(r)||u(),n);if(!i.error&&!i.aborted)return i.node;let o=this.tryParse(()=>super.parseSubscripts(e,r,s),n);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(e,r,s)}parseSubscript(e,r,s,n){if(this.match(14)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,e;this.next();let i=this.startNodeAt(r);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(6),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(43)||this.match(47))){let i=this.startNodeAt(r);i.callee=e;let o=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(6),i.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,r,s,n)}parseNewCallee(e){super.parseNewCallee(e);let r=null;this.shouldParseTypes()&&this.match(43)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=r}parseAsyncArrowWithTypeParameters(e){let r=this.startNodeAt(e);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===124&&r===125){this.finishOp(5,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,r){let s=super.parseTopLevel(e,r);return this.state.hasFlowComment&&this.raise(Me.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Me.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(e+r));)r++;let s=this.input.charCodeAt(r+e),n=this.input.charCodeAt(r+e+1);return s===58&&n===58?r+2:this.input.slice(r+e,r+e+12)==="flow-include"?r+12:s===58&&n!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,r){this.raise(Me.EnumBooleanMemberNotInitialized,e,r)}flowEnumErrorInvalidMemberInitializer(e,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Me.EnumInvalidMemberInitializerSymbolType:Me.EnumInvalidMemberInitializerPrimaryType:Me.EnumInvalidMemberInitializerUnknownType,e,r)}flowEnumErrorNumberMemberNotInitialized(e,r){this.raise(Me.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitialized(e,r){this.raise(Me.EnumStringMemberInconsistentlyInitialized,e,r)}flowEnumMemberInit(){let e=this.state.startLoc,r=()=>this.match(8)||this.match(4);switch(this.state.type){case 131:{let s=this.parseNumericLiteral(this.state.value);if(r())return{type:"number",loc:s.start,value:s};break}case 130:{let s=this.parseStringLiteral(this.state.value);if(r())return{type:"string",loc:s.start,value:s};break}case 81:case 82:{let s=this.parseBooleanLiteral(this.match(81));if(r())return{type:"boolean",loc:s.start,value:s}}}return{type:"invalid",loc:e}}flowEnumMemberRaw(){let e=this.state.startLoc,r=this.parseIdentifier(!0),s=this.eat(25)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:r,init:s}}flowEnumCheckExplicitTypeMismatch(e,r,s){let{explicitType:n}=r;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(e,r)}flowEnumMembers({enumName:e,explicitType:r}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(4);){if(this.eat(17)){i=!0;break}let o=this.startNode(),{id:u,init:c}=this.flowEnumMemberRaw(),d=u.name;if(d==="")continue;/^[a-z]/.test(d)&&this.raise(Me.EnumInvalidMemberName,u,{memberName:d,suggestion:d[0].toUpperCase()+d.slice(1),enumName:e}),s.has(d)&&this.raise(Me.EnumDuplicateMemberName,u,{memberName:d,enumName:e}),s.add(d);let p={enumName:e,explicitType:r,memberName:d};switch(o.id=u,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"boolean"),o.init=c.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"number"),o.init=c.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"string"),o.init=c.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,p);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,p);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(4)||this.expect(8)}return{members:n,hasUnknownMembers:i}}flowEnumStringMembers(e,r,{enumName:s}){if(e.length===0)return r;if(r.length===0)return e;if(r.length>e.length){for(let n of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}else{for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(98))return null;if(!at(this.state.type))throw this.raise(Me.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Me.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:r}),r}flowEnumBody(e,r){let s=r.name,n=r.start,i=this.flowEnumParseExplicitType({enumName:s});this.expect(2);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:s,explicitType:i});switch(e.hasUnknownMembers=u,i){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(4),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(4),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(4),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(4),this.finishNode(e,"EnumSymbolBody");default:{let c=()=>(e.members=[],this.expect(4),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let d=o.booleanMembers.length,p=o.numberMembers.length,f=o.stringMembers.length,D=o.defaultedMembers.length;if(!d&&!p&&!f&&!D)return c();if(!d&&!p)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(4),this.finishNode(e,"EnumStringBody");if(!p&&!f&&d>=D){for(let m of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(m.start,{enumName:s,memberName:m.id.name});return e.members=o.booleanMembers,this.expect(4),this.finishNode(e,"EnumBooleanBody")}else if(!d&&!f&&p>=D){for(let m of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(m.start,{enumName:s,memberName:m.id.name});return e.members=o.numberMembers,this.expect(4),this.finishNode(e,"EnumNumberBody")}else return this.raise(Me.EnumInconsistentMemberValues,n,{enumName:s}),c()}}}flowParseEnumDeclaration(e){let r=this.parseIdentifier();return e.id=r,e.body=this.flowEnumBody(this.startNode(),r),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(43)||this.match(47))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let r=this.input.charCodeAt(e+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===43?(this.state.pos-=1,this.readToken_lt()):e===44&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===47?(this.state.pos-=2,this.finishOp(43,1),43):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},Y8=/\r\n|[\r\n\u2028\u2029]/,el=new RegExp(Y8.source,"g");function sa(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function qy(t,e,r){for(let s=e;s<r;s++)if(sa(t.charCodeAt(s)))return!0;return!1}var Np=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Lp=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Q8(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Z8={AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"},Rs=as`jsx`(Z8);function bn(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function ea(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return ea(t.object)+"."+ea(t.property);throw new Error("Node had unexpected type: "+t.type)}var e6=t=>class extends t{jsxReadToken(){let e="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Rs.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(s);return}e+=this.input.slice(r,this.state.pos),this.finishToken(137,e);return;case 38:e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(Rs.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:s===125?"}":">"});default:sa(s)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let r=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=e?`
|
|
32
|
-
`:`\r
|
|
33
|
-
`):s=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(e){let r="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===e)break;n===38?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadEntity(),s=this.state.pos):sa(n)?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}r+=this.input.slice(s,this.state.pos++),this.finishToken(130,r)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let s=this.readInt(r,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let r=0,s=!1;for(;r++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){this.input.slice(e,this.state.pos);let n;++this.state.pos}}return this.state.pos=e,"&"}jsxReadWord(){let e,r=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(ui(e)||e===45);this.finishToken(136,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(136)?e.name=this.state.value:Xd(this.state.type)?e.name=kn(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(10))return r;let s=this.startNodeAt(e);return s.namespace=r,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(12);){let s=this.startNodeAt(e);s.object=r,s.property=this.jsxParseIdentifier(),r=this.finishNode(s,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case 2:return e=this.startNode(),this.setContext(ht.brace),this.next(),e=this.jsxParseExpressionContainer(e,ht.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(Rs.AttributeIsEmpty,e),e;case 138:case 130:return this.parseExprAtom();default:throw this.raise(Rs.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(ht.j_expr),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,r){if(this.match(4))e.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();s.type==="SequenceExpression"&&!s.extra?.parenthesized&&this.raise(Rs.UnexpectedSequenceExpression,s.expressions[1]),e.expression=s}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){if(this.match(2)){let r=this.startNode();return this.setContext(ht.brace),this.next(),this.expect(17),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(ht.j_oTag),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(r,"JSXSpreadAttribute")}let e=this.startNode();return e.name=this.jsxParseNamespacedName(),e.value=this.eat(25)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){if(this.eat(139)){let s=this.startNodeAt(e);return this.finishNode(s,"JSXOpeningFragment")}let r=this.startNodeAt(e);return r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r)}jsxParseOpeningElementAfterName(e){let r=[];for(;!this.match(52)&&!this.match(139);)r.push(this.jsxParseAttribute());return e.attributes=r,e.selfClosing=this.eat(52),this.expect(139),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){if(this.eat(139)){let s=this.startNodeAt(e);return this.finishNode(s,"JSXClosingFragment")}let r=this.startNodeAt(e);return r.name=this.jsxParseElementName(),this.expect(139),this.finishNode(r,"JSXClosingElement")}jsxParseElementAt(e){let r=this.startNodeAt(e),s=[],n=this.jsxParseOpeningElementAt(e),i=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 138:if(e=this.state.startLoc,this.next(),this.eat(52)){this.setLoc(e),i=this.jsxParseClosingElementAt(e);break e}s.push(this.jsxParseElementAt(e));break;case 137:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 2:{let o=this.startNode();this.setContext(ht.brace),this.next(),this.match(17)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,ht.j_expr));break}default:this.unexpected()}bn(n)&&!bn(i)&&i!==null?this.raise(Rs.MissingClosingTagFragment,i):!bn(n)&&bn(i)?this.raise(Rs.MissingClosingTagElement,i,{openingTagName:ea(n.name)}):!bn(n)&&!bn(i)&&ea(i.name)!==ea(n.name)&&this.raise(Rs.MissingClosingTagElement,i,{openingTagName:ea(n.name)})}if(bn(n)?(r.openingFragment=n,r.closingFragment=i):(r.openingElement=n,r.closingElement=i),r.children=s,this.match(43))throw this.raise(Rs.UnwrappedAdjacentJSXElements,this.state.startLoc);return bn(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:r}=this.state;r[r.length-1]=e}parseExprAtom(e){return this.match(138)?this.jsxParseElement():this.match(43)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let r=this.curContext();if(r===ht.j_expr){this.jsxReadToken();return}if(r===ht.j_oTag||r===ht.j_cTag){if(As(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(139);return}if((e===34||e===39)&&r===ht.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(138);return}super.getTokenFromCode(e)}updateContext(e){let{context:r,type:s}=this.state;if(s===52&&e===138)r.splice(-2,2,ht.j_cTag),this.state.canStartJSXElement=!1;else if(s===138)r.push(ht.j_oTag);else if(s===139){let n=r[r.length-1];n===ht.j_oTag&&e===52||n===ht.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===ht.j_expr):(this.setContext(ht.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=A8(s)}},t6=class extends Qd{tsNames=new Map},r6=class extends Zd{get inTSNamespace(){let e=this.scopeStack;return e.length>=2&&e[e.length-1].flags===0&&(e[e.length-2].flags&2048)>0}importsStack=[];createScope(e){return this.importsStack.push(new Set),new t6(e)}enter(e){e&3072&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e&3072&&this.importsStack.pop(),e}hasImport(e,r){let s=this.importsStack.length;if(this.importsStack[s-1].has(e))return!0;if(!r&&s>1){for(let n=0;n<s-1;n++)if(this.importsStack[n].has(e))return!0}return!1}declareName(e,r,s){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(W.VarRedeclaration,s,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let n=this.currentScope(),i=n.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(n,e),n.tsNames.set(e,i|16);return}super.declareName(e,r,s),r&2&&(r&1||(this.checkRedeclarationInScope(n,e,r,s),this.maybeExportDefined(n,e)),i=i|1),r&256&&(i=i|2),r&512&&(i=i|4),r&128&&(i=i|8),i&&n.tsNames.set(e,i)}isRedeclaredInScope(e,r,s){let n=e.tsNames.get(r);if((n&2)>0){if(s&256){let i=(s&512)>0,o=(n&4)>0;return i!==o}return!0}return s&128&&(n&8)>0?e.names.get(r)&2?!!(s&1):!1:s&2&&(n&1)>0?!0:super.isRedeclaredInScope(e,r,s)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let s=this.scopeStack.length;for(let n=s-1;n>=0;n--){let i=this.scopeStack[n].tsNames.get(r);if((i&1)>0||(i&16)>0)return}super.checkLocalExport(e)}},s6=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,s]=e;if(!this.hasPlugin(r))return!1;let n=this.plugins.get(r);for(let i of Object.keys(s))if(n?.[i]!==s[i])return!1;return!0}}getPluginOption(e,r){return this.plugins.get(e)?.[r]}};function Q1(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function n6(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function Ho(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function En(t,e,r){let s=null,n=e.length;for(;s===null&&n>0;)s=e[--n];s===null||s.start>r.start?Ho(t,r.comments):Q1(s,r.comments)}var i6=class extends s6{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,s=r.length;if(s===0)return;let n=s-1,i=r[n];i.start===e.end&&(i.leadingNode=e,n--);let o=e.start;for(;n>=0;n--){let u=r[n],c=u.end;if(c>o)u.containingNode=e,this.finalizeComment(u),r.splice(n,1);else{c===o&&(u.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Q1(e.leadingNode,r),e.trailingNode!==null&&n6(e.trailingNode,r);else{let s=e.containingNode,n=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":En(s,s.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":En(s,s.arguments,e);break;case"ImportExpression":En(s,[s.source,s.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":En(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":En(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":En(s,s.specifiers,e);break;case"TSEnumBody":En(s,s.members,e);break;case"TSInterfaceBody":En(s,s.body,e);break;default:Ho(s,r)}else Ho(s,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:s}=r;if(s===0)return;let n=r[s-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,r,s){let{commentStack:n}=this.state,i=n.length;if(i===0)return;let o=i-1;for(;o>=0;o--){let u=n[o],c=u.end;if(u.start===s)u.leadingNode=e;else if(c===r)u.trailingNode=e;else if(c<r)break}}},a6=class Z1{flags=2048;get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:e,sourceType:r,startIndex:s,startLine:n,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.startIndex=s,this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new Dr(n,i,s)}errors=[];noArrowAt=[];noArrowParamsConversionAt=[];get canStartArrow(){return(this.flags&2)>0}set canStartArrow(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get inConditionalConsequent(){return(this.flags&256)>0}set inConditionalConsequent(e){e?this.flags|=256:this.flags&=-257}get inHackPipelineBody(){return(this.flags&512)>0}set inHackPipelineBody(e){e?this.flags|=512:this.flags&=-513}get seenTopicReference(){return(this.flags&1024)>0}set seenTopicReference(e){e?this.flags|=1024:this.flags&=-1025}labels=[];commentsLen=0;commentStack=[];pos=0;type=135;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[ht.brace];get canStartJSXElement(){return(this.flags&2048)>0}set canStartJSXElement(e){e?this.flags|=2048:this.flags&=-2049}get containsEsc(){return(this.flags&4096)>0}set containsEsc(e){e?this.flags|=4096:this.flags&=-4097}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&8192)>0}set hasTopLevelAwait(e){e?this.flags|=8192:this.flags&=-8193}strictErrors=new Map;tokensLength=0;curPosition(){return new Dr(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new Z1;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},o6=function(t){return t>=48&&t<=57},Uy={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},tl={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function zy(t,e,r,s,n,i){let o=r,u=s,c=n,d="",p=null,f=r,{length:D}=e;for(;;){if(r>=D){i.unterminated(o,u,c),d+=e.slice(f,r);break}let m=e.charCodeAt(r);if(u6(t,m,e,r)){d+=e.slice(f,r);break}if(m===92){d+=e.slice(f,r);let g=l6(e,r,s,n,t==="template",i);g.ch===null&&!p?p={pos:r,lineStart:s,curLine:n}:d+=g.ch,{pos:r,lineStart:s,curLine:n}=g,f=r}else m===8232||m===8233?(++r,++n,s=r):m===10||m===13?t==="template"?(d+=e.slice(f,r)+`
|
|
34
|
-
`,++r,m===13&&e.charCodeAt(r)===10&&++r,++n,f=s=r):i.unterminated(o,u,c):++r}return{pos:r,str:d,firstInvalidLoc:p,lineStart:s,curLine:n}}function u6(t,e,r,s){return t==="template"?e===96||e===36&&r.charCodeAt(s+1)===123:e===(t==="double"?34:39)}function l6(t,e,r,s,n,i){let o=!n;e++;let u=d=>({pos:e,ch:d,lineStart:r,curLine:s}),c=t.charCodeAt(e++);switch(c){case 110:return u(`
|
|
35
|
-
`);case 114:return u("\r");case 120:{let d;return{code:d,pos:e}=Eh(t,e,r,s,2,!1,o,i),u(d===null?null:String.fromCharCode(d))}case 117:{let d;return{code:d,pos:e}=tx(t,e,r,s,o,i),u(d===null?null:String.fromCodePoint(d))}case 116:return u(" ");case 98:return u("\b");case 118:return u("\v");case 102:return u("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++s;case 8232:case 8233:return u("");case 56:case 57:if(n)return u(null);i.strictNumericEscape(e-1,r,s);default:if(c>=48&&c<=55){let d=e-1,p=/^[0-7]+/.exec(t.slice(d,e+2))[0],f=parseInt(p,8);f>255&&(p=p.slice(0,-1),f=parseInt(p,8)),e+=p.length-1;let D=t.charCodeAt(e);if(p!=="0"||D===56||D===57){if(n)return u(null);i.strictNumericEscape(d,r,s)}return u(String.fromCharCode(f))}return u(String.fromCharCode(c))}}function Eh(t,e,r,s,n,i,o,u){let c=e,d;return{n:d,pos:e}=ex(t,e,r,s,16,n,i,!1,u,!o),d===null&&(o?u.invalidEscapeSequence(c,r,s):e=c-1),{code:d,pos:e}}function ex(t,e,r,s,n,i,o,u,c,d){let p=e,f=n===16?Uy.hex:Uy.decBinOct,D=n===16?tl.hex:n===10?tl.dec:n===8?tl.oct:tl.bin,m=!1,g=0;for(let x=0,b=i??1/0;x<b;++x){let A=t.charCodeAt(e),C;if(A===95&&u!=="bail"){let v=t.charCodeAt(e-1),P=t.charCodeAt(e+1);if(u){if(Number.isNaN(P)||!D(P)||f.has(v)||f.has(P)){if(d)return{n:null,pos:e};c.unexpectedNumericSeparator(e,r,s)}}else{if(d)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,r,s)}++e;continue}if(A>=97?C=A-97+10:A>=65?C=A-65+10:o6(A)?C=A-48:C=1/0,C>=n){if(C<=9&&d)return{n:null,pos:e};if(C<=9&&c.invalidDigit(e,r,s,n))C=0;else if(o)C=0,m=!0;else break}++e,g=g*n+C}return e===p||i!=null&&e-p!==i||m?{n:null,pos:e}:{n:g,pos:e}}function tx(t,e,r,s,n,i){let o=t.charCodeAt(e),u;if(o===123){if(++e,{code:u,pos:e}=Eh(t,e,r,s,t.indexOf("}",e)-e,!0,n,i),++e,u!==null&&u>1114111)if(n)i.invalidCodePoint(e,r,s);else return{code:null,pos:e}}else({code:u,pos:e}=Eh(t,e,r,s,4,!1,n,i));return{code:u,pos:e}}function Xa(t,e,r){return new Dr(r,t-e,t)}var c6=new Set([103,109,115,105,121,117,100,118]),p6=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new zl(e.startLoc,e.endLoc)}},rl,h6=class extends i6{isLookahead;tokens=[];constructor(e,r){super(),this.state=new a6,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1,(!rl||rl.length<(this.length+1)*2)&&(rl=new Uint32Array((this.length+1)*2)),this.locData=rl}setLoc(e){let r=this.offsetToSourcePos(e.index);this.locData[r*2]=e.line,this.locData[r*2+1]=e.column}getLoc(e){let r=this.offsetToSourcePos(e);return new Dr(this.locData[r*2],this.locData[r*2+1],e)}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&512&&this.pushToken(new p6(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Np.lastIndex=e,Np.test(this.input)?Np.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Lp.lastIndex=e,Lp.test(this.input)?Lp.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let s=this.input.charCodeAt(e);(s&64512)===56320&&(r=65536+((r&1023)<<10)+(s&1023))}return r}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([r,s])=>this.raise(r,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(135);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let s=this.state.pos,n=this.input.indexOf(e,s+2);if(n===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,el.lastIndex=s+2;el.test(this.input)&&el.lastIndex<=n;)++this.state.curLine,this.state.lineStart=el.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(s+2,n),start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(n+e.length),loc:new zl(r,this.state.curPosition())};return this.optionFlags&512&&this.pushToken(i),i}skipLineComment(e){let r=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!sa(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+e,i),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i),loc:new zl(s,this.state.curPosition())};return this.optionFlags&512&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,r=this.optionFlags&8192?[]:null;e:for(;this.state.pos<this.length;){let s=this.input.charCodeAt(this.state.pos);switch(s){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let n=this.skipBlockComment("*/");n!==void 0&&(this.addComment(n),r?.push(n));break}case 47:{let n=this.skipLineComment(2);n!==void 0&&(this.addComment(n),r?.push(n));break}default:break e}break;default:if(Q8(s))++this.state.pos;else if(s===45&&!this.inModule&&this.optionFlags&16384){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let i=this.skipLineComment(3);i!==void 0&&(this.addComment(i),r?.push(i))}else break e}else if(s===60&&!this.inModule&&this.optionFlags&16384){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let i=this.skipLineComment(4);i!==void 0&&(this.addComment(i),r?.push(i))}else break e}else break e}}if(r?.length>0){let s=this.state.pos,n={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(s),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(s)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(W.UnexpectedDigitAfterHash,this.state.curPosition());As(r)?(++this.state.pos,this.finishToken(134,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(23,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(17)):(++this.state.pos,this.finishToken(12))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(27,2):this.finishOp(52,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!sa(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let s=this.input.slice(r+2,this.state.pos);return this.finishToken(24,s),!0}readToken_mult_modulo(e){let r=e===42?51:50,s=1,n=this.input.charCodeAt(this.state.pos+1);e===42&&n===42&&(s++,n=this.input.charCodeAt(this.state.pos+2),r=53),n===61&&!this.state.inType&&(s++,r=e===37?29:26),this.finishOp(r,s)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(26,3):this.finishOp(e===124?37:38,2);return}if(e===124&&r===62){this.finishOp(35,2);return}if(r===61){this.finishOp(26,2);return}this.finishOp(e===124?39:41,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(28,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(33,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(40,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(34,2):this.finishOp(22,1)}readToken_plus_min(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(30,2);return}r===61?this.finishOp(26,2):this.finishOp(49,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(26,3);return}this.finishOp(47,2);return}if(r===61){this.finishOp(45,2);return}this.finishOp(43,1)}readToken_gt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let s=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+s)===61){this.finishOp(26,s+1);return}this.finishOp(48,s);return}if(r===61){this.finishOp(45,2);return}this.finishOp(44,1)}readToken_eq_excl(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(42,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&r===62){this.state.pos+=2,this.finishToken(15);return}this.finishOp(e===61?25:31,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(26,3):this.finishOp(36,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(14)):(++this.state.pos,this.finishToken(13))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(6);return;case 41:++this.state.pos,this.finishToken(7);return;case 59:++this.state.pos,this.finishToken(9);return;case 44:++this.state.pos,this.finishToken(8);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(1);return;case 123:++this.state.pos,this.finishToken(2);return;case 125:++this.state.pos,this.finishToken(4);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(11,2):(++this.state.pos,this.finishToken(10));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(32,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(As(e)){this.readWord(e);return}}throw this.raise(W.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let s=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,s)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,s,n,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(W.UnterminatedRegExp,Kr(e,1));let d=this.input.charCodeAt(i);if(sa(d))throw this.raise(W.UnterminatedRegExp,Kr(e,1));if(s)s=!1;else{if(d===91)n=!0;else if(d===93&&n)n=!1;else if(d===47&&!n)break;s=d===92}}let o=this.input.slice(r,i);++i;let u="",c=()=>Kr(e,i+2-r);for(;i<this.length;){let d=this.codePointAtPos(i),p=String.fromCharCode(d);if(c6.has(d))d===118?u.includes("u")&&this.raise(W.IncompatibleRegExpUVFlags,c()):d===117&&u.includes("v")&&this.raise(W.IncompatibleRegExpUVFlags,c()),u.includes(p)&&this.raise(W.DuplicateRegExpFlags,c());else if(ui(d)||d===92)this.raise(W.MalformedRegExpFlags,c());else break;++i,u+=p}this.state.pos=i,this.finishToken(133,{pattern:o,flags:u})}readInt(e,r,s=!1,n=!0){let{n:i,pos:o}=ex(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,s,n,this.errorHandlers_readInt,!1);return this.state.pos=o,i}readRadixNumber(e){let r=this.state.pos,s=this.state.curPosition(),n=!1;this.state.pos+=2;let i=this.readInt(e);if(i==null&&this.raise(W.InvalidDigit,Kr(s,2),{radix:e}),this.input.charCodeAt(this.state.pos)===110&&(++this.state.pos,n=!0),As(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());if(n){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(132,o);return}this.finishToken(131,i)}readNumber(e){let r=this.state.pos,s=this.state.curPosition(),n=!1,i=!1,o=!1;!e&&this.readInt(10)===null&&this.raise(W.InvalidNumber,this.state.curPosition());let u=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(u){let f=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(W.StrictOctalLiteral,s),!this.state.strict){let D=f.indexOf("_");D>0&&this.raise(W.ZeroDigitNumericSeparator,Kr(s,D))}o=u&&!/[89]/.test(f)}let c=this.input.charCodeAt(this.state.pos);c===46&&!o&&(++this.state.pos,this.readInt(10),n=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(W.InvalidOrMissingExponent,s),n=!0,c=this.input.charCodeAt(this.state.pos));let d=Zi(0,this.input.slice(r,this.state.pos),"_","");if(c===110&&((n||u)&&this.raise(W.InvalidBigIntLiteral,s),++this.state.pos,i=!0),As(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());if(i){this.finishToken(132,d);return}let p=o?parseInt(d,8):parseFloat(d);this.finishToken(131,p)}readCodePoint(e){let{code:r,pos:s}=tx(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=s,r}readString(e){let{str:r,pos:s,curLine:n,lineStart:i}=zy(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(130,r)}readTemplateContinuation(){this.match(4)||this.unexpected(null,4),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:s,pos:n,curLine:i,lineStart:o}=zy("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=o,this.state.curLine=i,s&&(this.state.firstInvalidTemplateEscapePos=new Dr(s.curLine,s.pos-s.lineStart,this.sourceToOffsetPos(s.pos))),this.input.codePointAt(n)===96?this.finishToken(20,s?null:e+r+"`"):(this.state.pos++,this.finishToken(21,s?null:e+r+"${"))}recordStrictModeErrors(e,r){let s=r.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(e,r):this.state.strictErrors.set(s,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",s=this.state.pos,n=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let i=this.codePointAtPos(this.state.pos);if(ui(i))this.state.pos+=i<=65535?1:2;else if(i===92){this.state.containsEsc=!0,r+=this.input.slice(n,this.state.pos);let o=this.state.curPosition(),u=this.state.pos===s?As:ui;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(W.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;let c=this.readCodePoint(!0);c!==null&&(u(c)||this.raise(W.EscapedCharNotAnIdentifier,o),r+=String.fromCodePoint(c)),n=this.state.pos}else break}return r+this.input.slice(n,this.state.pos)}readWord(e){let r=this.readWord1(e),s=zd.get(r);s!==void 0?this.finishToken(s,kn(s)):this.finishToken(128,r)}checkKeywordEscapes(){let{type:e}=this.state;Xd(e)&&this.state.containsEsc&&this.raise(W.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:kn(e)})}raise(e,r,s={}){let n=r instanceof Dr?r:typeof r=="number"?this.getLoc(r):this.optionFlags&256?r.loc.start:this.getLoc(r.start),i=r instanceof Dr?n.index:typeof r=="number"?r:r.start,o=e(n,i,s);if(!(this.optionFlags&4096))throw o;return this.isLookahead||this.state.errors.push(o),o}raiseOverwrite(e,r,s={}){let n=r instanceof Dr?r:this.optionFlags&256?r.loc.start:this.getLoc(r.start),i=r instanceof Dr?n.index:r.start,o=this.state.errors;for(let u=o.length-1;u>=0;u--){let c=o[u];if(c.pos===i)return o[u]=e(n,i,s);if(c.pos<i)break}return this.raise(e,n,s)}updateContext(e){}unexpected(e,r){throw this.raise(W.UnexpectedToken,e??this.state.startLoc,{expected:r?kn(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(W.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(W.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,s,n)=>{this.raise(e,Xa(r,s,n))}}errorHandlers_readInt={invalidDigit:(e,r,s,n)=>this.optionFlags&4096?(this.raise(W.InvalidDigit,Xa(e,r,s),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(W.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(W.UnexpectedNumericSeparator)};errorHandlers_readCodePoint={...this.errorHandlers_readInt,invalidEscapeSequence:this.errorBuilder(W.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(W.InvalidCodePoint)};errorHandlers_readStringContents_string={...this.errorHandlers_readCodePoint,strictNumericEscape:(e,r,s)=>{this.recordStrictModeErrors(W.StrictNumericEscape,Xa(e,r,s))},unterminated:(e,r,s)=>{throw this.raise(W.UnterminatedString,Xa(e-1,r,s))}};errorHandlers_readStringContents_template={...this.errorHandlers_readCodePoint,strictNumericEscape:this.errorBuilder(W.StrictNumericEscape),unterminated:(e,r,s)=>{throw this.raise(W.UnterminatedTemplate,Xa(e,r,s))}}},d6=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},f6=class{parser;stack=[];constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new d6)}exit(){let e=this.stack.pop(),r=this.current();for(let[s,n]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(s)||r.undefinedPrivateNames.set(s,n):this.parser.raise(W.InvalidPrivateFieldResolution,n,{identifierName:s})}declarePrivateName(e,r,s){let{privateNames:n,loneAccessors:i,undefinedPrivateNames:o}=this.current(),u=n.has(e);if(r&3){let c=u&&i.get(e);if(c){let d=c&4,p=r&4,f=c&3,D=r&3;u=f===D||d!==p,u||i.delete(e)}else u||i.set(e,r)}u&&this.parser.raise(W.PrivateNameRedeclaration,s,{identifierName:e}),n.add(e),o.delete(e)}usePrivateName(e,r){let s;for(s of this.stack)if(s.privateNames.has(e))return;s?s.undefinedPrivateNames.set(e,r):this.parser.raise(W.InvalidPrivateFieldResolution,r,{identifierName:e})}},bc=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},rx=class extends bc{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,r){this.declarationErrors.set(r,e)}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},m6=class{parser;stack=[new bc];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let{stack:s}=this,n=s.length-1,i=s[n];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,r);else return;i=s[--n]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,r){let{stack:s}=this,n=s[s.length-1],i=r.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,s=r.length-1,n=r[s];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(W.AwaitBindingIdentifier,e),n=r[--s]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors((s,n)=>{this.parser.raise(s,n);let i=e.length-2,o=e[i];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(n),o=e[--i]})}};function y6(){return new bc(3)}function D6(){return new rx(1)}function g6(){return new rx(2)}function sx(){return new bc}var x6=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}get inFSharpPipelineDirectBody(){return(this.currentFlags()&16)===0}};function kl(t,e){return(t?2:0)|(e?1:0)}var b6=class extends h6{addExtra(e,r,s,n=!0){if(!e)return;let{extra:i}=e;i==null&&(i={},e.extra=i),n?i[r]=s:Object.defineProperty(i,r,{enumerable:n,value:s})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let s=this.input.charCodeAt(e+r.length);return!(ui(s)||(s&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(135)||this.match(4)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return qy(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return qy(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(9)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(9))||this.raise(W.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let s={node:null};try{let n=e((i=null)=>{throw s.node=i,s});if(this.state.errors.length>r.errors.length){let i=this.state;return this.state=r,this.state.tokensLength=i.tokensLength,{node:n,error:i.errors[r.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let i=this.state;if(this.state=r,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:i};if(n===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:i};throw n}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:o,voidPatternLoc:u}=e,c=!!s||!!n||!!o||!!i||!!u;if(!r)return c;s!=null&&this.raise(W.InvalidCoverInitializedName,s),n!=null&&this.raise(W.DuplicateProto,n),i!=null&&this.raise(W.UnexpectedPrivateField,i),o!=null&&this.unexpected(o),u!=null&&this.raise(W.InvalidCoverDiscardElement,u)}isLiteralPropertyName(){return V1(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let i=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);let u=this.prodParam;this.prodParam=new x6;let c=this.classScope;this.classScope=new f6(this);let d=this.expressionScope;return this.expressionScope=new m6(this),()=>{this.state.labels=r,this.exportedIdentifiers=s,this.inModule=n,this.scope=i,this.prodParam=u,this.classScope=c,this.expressionScope=d}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let s=r?514:1;this.optionFlags&4&&(s|=512),this.optionFlags&16&&(s|=48),this.scope.enter(s)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Pl=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},bo=class{constructor(e,r,s,n){this.start=s,this.end=0,n!==void 0&&(this.loc=new zl(n)),e&128&&(this.range=[s,0]),n!==void 0&&r&&(this.loc.filename=r)}type=""},Vy=bo.prototype,E6=class extends b6{createPosition(e){return e}startNode(){let{startLoc:e}=this.state;return this.setLoc(e),this.startNodeAt(e)}startNodeAt(e){let{optionFlags:r,filename:s}=this;return r&256?new bo(r,s,e.index,this.createPosition(e)):new bo(r,s,e.index)}startNodeAtNode(e){let{optionFlags:r,filename:s}=this;return r&256?new bo(r,s,e.start,e.loc.start):new bo(r,s,e.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,s){e.type=r,e.end=s.index;let{optionFlags:n}=this;return n&256&&(e.loc.end=this.createPosition(s)),n&128&&(e.range[1]=s.index),n&8192&&this.processComment(e),e}finishNodeAtNode(e,r,s){e.type=r,e.end=s.end;let{optionFlags:n}=this;return n&256&&(e.loc.end=s.loc.end),n&128&&(e.range[1]=e.end),n&8192&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index;let{optionFlags:s}=this;s&256&&(e.loc.start=this.createPosition(r)),s&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index;let{optionFlags:s}=this;s&256&&(e.loc.end=this.createPosition(r)),s&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){e.start=r.start;let{optionFlags:s}=this;s&256&&(e.loc.start=r.loc.start),s&128&&(e.range[0]=r.start)}resetEndLocationFromNode(e,r){e.end=r.end;let{optionFlags:s}=this;s&256&&(e.loc.end=r.loc.end),s&128&&(e.range[1]=r.end)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:s,end:n,loc:i,range:o,name:u}=e,c=Object.create(Vy);return c.type=r,c.start=s,c.end=n,c.loc=i,c.range=o,c.name=u,e.extra&&(c.extra=e.extra),c}cloneStringLiteral(e){let{type:r,start:s,end:n,loc:i,range:o,extra:u}=e,c=Object.create(Vy);return c.type=r,c.start=s,c.end=n,c.loc=i,c.range=o,c.extra=u,c.value=e.value,c}},Ch=t=>t.type==="ParenthesizedExpression"?Ch(t.expression):t,C6=class extends E6{toAssignable(e,r=!1){let s;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(s=Ch(e),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(W.InvalidParenthesizedAssignment,e):s.type!=="CallExpression"&&s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(W.InvalidParenthesizedAssignment,e):this.raise(W.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let n=0,i=e.properties.length,o=i-1;n<i;n++){let u=e.properties[n],c=n===o;this.toAssignableObjectExpressionProp(u,c,r),c&&u.type==="RestElement"&&e.extra?.trailingCommaLoc&&this.raise(W.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:n,value:i}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.start),this.toAssignable(i,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(W.MissingEqInAssignment,this.optionFlags&256?e.left.loc.end:e.left),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(W.VoidPatternInitializer,e.left),this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(e,r,s){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?W.PatternHasAccessor:W.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,s),r||this.raise(W.RestTrailingComma,e)}else this.toAssignable(e,s)}toAssignableList(e,r,s){let n=e.length-1;for(let i=0;i<=n;i++){let o=e[i];o&&(this.toAssignableListItem(e,i,s),o.type==="RestElement"&&(i<n?this.raise(W.RestTrailingComma,o):r&&this.raise(W.RestTrailingComma,r)))}}toAssignableListItem(e,r,s){let n=e[r];if(n.type==="SpreadElement"){this.castNodeTo(n,"RestElement");let i=n.argument;this.checkToRestConversion(i,!0),this.toAssignable(i,s)}else this.toAssignable(n,s)}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let s=e.properties.length-1;return e.properties.every((n,i)=>n.type!=="ObjectMethod"&&(i===s||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(1,93,1),this.finishNode(e,"ArrayPattern")}case 2:return this.parseObjectLike(4,!0);case 84:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,r,s){let n=s&1,i=[],o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(8),n&&this.match(8))i.push(null);else{if(this.eat(e))break;if(this.match(17)){let u=this.parseRestBinding();if(s&2&&(u=this.parseFunctionParamType(u)),i.push(u),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let u=[];if(s&2)for(this.match(22)&&this.hasPlugin("decorators")&&this.raise(W.UnsupportedParameterDecorator,this.state.startLoc);this.match(22);)u.push(this.parseDecorator());i.push(this.parseBindingElement(s,u))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(84)?(e.argument=this.parseVoidPattern(null),this.raise(W.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===17)return this.parseBindingRestProperty(this.startNode());let s=this.startNode();return e===134?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,r,!1,!1,!0,!1)}parseBindingElement(e,r){let{startLoc:s}=this.state,n=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(s,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(25))return r;let s=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(W.VoidPatternInitializer,r),s.left=r,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(e,r,s,n){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&16384)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,s=64,n=!1,i=!1,o=!1,u=!1){let c=e.type;if(this.isObjectMethod(e))return;let d=this.isOptionalMemberExpression(e);if(d||c==="MemberExpression"){d&&(this.expectPlugin("optionalChainingAssign",e.start),r.type!=="AssignmentExpression"&&this.raise(W.InvalidLhsOptionalChaining,e,{ancestor:r})),s!==64&&this.raise(W.InvalidPropertyBindingPattern,e);return}if(c==="Identifier"){this.checkIdentifier(e,s,i);let{name:b}=e;n&&(n.has(b)?this.raise(W.ParamDupe,e):n.add(b));return}else c==="VoidPattern"&&r.type==="CatchClause"&&this.raise(W.VoidPatternCatchClauseParam,e);let p=Ch(e);u||(u=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let f=this.isValidLVal(c,u,!(o||e.extra?.parenthesized)&&r.type==="AssignmentExpression",s);if(f===!0)return;if(f===!1){let b=s===64?W.InvalidLhs:W.InvalidLhsBinding;this.raise(b,e,{ancestor:r});return}let D,m;typeof f=="string"?(D=f,m=c==="ParenthesizedExpression"):[D,m]=f;let g=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r,x=e[D];if(Array.isArray(x))for(let b of x)b&&this.checkLVal(b,g,s,n,i,m,!0);else x&&this.checkLVal(x,g,s,n,i,m,u)}checkIdentifier(e,r,s=!1){this.state.strict&&(s?Y1(e.name,this.inModule):X1(e.name))&&(r===64?this.raise(W.StrictEvalArguments,e,{referenceName:e.name}):this.raise(W.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(W.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(W.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(8)?(this.raise(this.lookaheadCharCode()===e?W.RestTrailingComma:W.ElementAfterRest,this.state.startLoc),!0):!1}},A6=class extends C6{checkProto(e,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?(r&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=this.getLoc(n.start)):this.raise(W.DuplicateProto,n)),!0):r}shouldExitDescending(e){return e.type==="ArrowFunctionExpression"&&!e.extra?.parenthesized}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(135))throw this.raise(W.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(135))throw this.raise(W.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&512&&(e.tokens=nx(this.tokens)),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,s=this.parseMaybeAssign(e);if(this.match(8)){let n=this.startNodeAt(r);for(n.expressions=[s];this.eat(8);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,r){let s=this.state.startLoc,n=this.isContextual(104);if(n&&this.prodParam.hasYield){this.next();let u=this.parseYield(s);return r&&(u=r.call(this,u,s)),u}let i;e?i=!1:(e=new Pl,i=!0),this.state.canStartArrow=!0;let o=this.parseMaybeConditional(e);if(r&&(o=r.call(this,o,s)),v8(this.state.type)){let u=this.startNodeAt(s),c=this.state.value;if(u.operator=c,this.match(25)){this.toAssignable(o,!0),u.left=o;let d=s.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=d&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=d&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=d&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=d&&(e.voidPatternLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(u,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),u}else i&&this.checkExpressionErrors(e,!0);if(n){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?xo(u):xo(u)&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.YieldNotInGeneratorFunction,s),this.parseYield(s)}return o}parseMaybeConditional(e){let r=this.state.startLoc,s=this.parseExprOps(e);return this.shouldExitDescending(s)?s:this.parseConditional(s,r,e)}parseConditional(e,r,s){if(this.eat(13)){let n=this.startNodeAt(r);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(10),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s)?s:(this.state.canStartArrow=!1,this.parseExprOp(s,r,-1))}parseExprOp(e,r,s){if(this.isPrivateName(e)){let i=this.getPrivateNameSV(e);(s>=Sl(54)||!this.prodParam.hasIn||!this.match(54))&&this.raise(W.PrivateInExpectedIn,r,{identifierName:i}),this.classScope.usePrivateName(i,r)}let n=this.state.type;if(jy(n)&&(this.prodParam.hasIn||!this.match(54))){let i=Sl(n);if(i>s){if(n===35&&(this.expectPlugin("pipelineOperator"),this.prodParam.inFSharpPipelineDirectBody))return e;let o=this.startNodeAt(r);o.left=e,o.operator=this.state.value;let u=n===37||n===38,c=n===36;c&&(i=Sl(38)),this.next(),o.right=this.parseExprOpRightExpr(n,i);let d=this.finishNode(o,u||c?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(c&&(p===37||p===38)||u&&p===36)throw this.raise(W.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(d,r,s)}}return e}parseExprOpRightExpr(e,r){switch(e){case 35:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.parseFSharpPipelineBody(r)}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,P8(e)?r-1:r)}parseHackPipeBody(){let{startLoc:e}=this.state,r=this.parseMaybeAssign();return d8.has(r.type)&&!r.extra?.parenthesized&&this.raise(W.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipeTopicUnused,e),r}checkExponentialAfterUnary(e){this.match(53)&&this.raise(W.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let s=this.state.startLoc,n=this.isContextual(92);if(n&&this.recordAwaitIfAllowed()){this.next();let c=this.parseAwait(s);return r||this.checkExponentialAfterUnary(c),c}let i=this.match(30),o=this.startNode();if(w8(this.state.type)){o.operator=this.state.value,o.prefix=!0,this.state.canStartArrow=!1,this.match(68)&&this.expectPlugin("throwExpressions");let c=this.match(85);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&c){let d=o.argument;d.type==="Identifier"?this.raise(W.StrictDelete,o):this.hasPropertyAsPrivateName(d)&&this.raise(W.DeletePrivateField,o)}if(!i)return r||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}let u=this.parseUpdate(o,i,e);if(n){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?xo(c):xo(c)&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.AwaitNotInAsyncContext,s),this.parseAwait(s)}return u}parseUpdate(e,r,s){if(r){let o=this.finishNode(e,"UpdateExpression");return this.checkLVal(o.argument,o),o}let n=this.state.startLoc,i=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return i;for(;F8(this.state.type)&&!this.canInsertSemicolon();){let o=this.startNodeAt(n);o.operator=this.state.value,o.prefix=!1,o.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(o,"UpdateExpression"))}return i}parseExprSubscripts(e){let r=this.state.startLoc;this.setLoc(r);let s=this.parseExprAtom(e);return this.shouldExitDescending(s)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,s){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,s,n),n.maybeAsyncArrow=!1;while(!n.stop);return e}parseSubscript(e,r,s,n){let{type:i}=this.state;if(!s&&i===11)return this.parseBind(e,r,n);if(xh(i))return this.parseTaggedTemplateExpression(e,r,n);let o=!1;if(i===14){if(s&&(this.raise(W.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,n);n.optionalChainMember=o=!0,this.next()}if(!s&&this.match(6))return this.parseCoverCallAndAsyncArrowHead(e,r,n,o);{let u=this.eat(0);return u||o||this.eat(12)?this.parseMember(e,r,n,u,o):this.stopParseSubscript(e,n)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,s,n,i){let o=this.startNodeAt(r);return o.object=e,o.computed=n,n?(o.property=this.parseExpression(),this.expect(1)):this.match(134)?(e.type==="Super"&&this.raise(W.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),s.optionalChainMember?(o.optional=i,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,r,s){let n=this.startNodeAt(r);n.object=e,this.next();let i=this.match(79),o=this.parseNoCallExpr();if(o.type==="Super"||i&&o.type==="ImportExpression"||o.type==="Import")throw this.raise(W.UnsupportedBindRHS,o);return n.callee=o,s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,!1)}parseCoverCallAndAsyncArrowHead(e,r,s,n){let i=null;this.next();let o=this.startNodeAt(r);o.callee=e;let{maybeAsyncArrow:u,optionalChainMember:c}=s;u&&(this.expressionScope.enter(g6()),i=new Pl),c&&(o.optional=n),n?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!=="Super",o,i);let d=this.finishCallExpression(o,c);return u&&this.shouldParseAsyncArrow()&&!n?(s.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),d=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),d)):(u&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedList(o.arguments)),d}parseTaggedTemplateExpression(e,r,s){let n=this.startNodeAt(r);return n.tag=e,n.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(W.OptionalChainingNoTemplate,r),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.state.canStartArrow}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(W.ImportCallArity,e);else for(let s of e.arguments)s.type==="SpreadElement"&&this.raise(W.ImportCallSpreadArgument,s);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,s){let n=[],i=!0;for(;!this.eat(7);){if(i)i=!1;else if(this.expect(8),this.match(7)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(7,!1,s,e))}return n}shouldParseAsyncArrow(){return this.match(15)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){return this.resetPreviousNodeTrailingComments(r),this.expect(15),this.parseArrowExpression(e,r.arguments,!0,r.extra?.trailingCommaLoc),r.innerComments&&Ho(e,r.innerComments),r.callee.trailingComments&&Ho(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,s=null,{type:n}=this.state;switch(n){case 75:return this.parseSuper();case 79:return r=this.startNode(),this.next(),this.match(12)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(6)?this.optionFlags&1024?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(W.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 74:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 86:return this.parseDo(this.startNode(),!1);case 52:case 27:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 131:return this.parseNumericLiteral(this.state.value);case 132:return this.parseBigIntLiteral(this.state.value);case 130:return this.parseStringLiteral(this.state.value);case 80:return this.parseNullLiteral();case 81:return this.parseBooleanLiteral(!0);case 82:return this.parseBooleanLiteral(!1);case 6:return this.parseParenAndDistinguishExpression(this.state.canStartArrow);case 0:return this.parseArrayLike(1,e);case 2:return this.parseObjectLike(4,!1,e);case 64:return this.parseFunctionOrFunctionSent();case 22:s=this.parseDecorators();case 76:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 73:return this.parseNewOrNewTarget();case 21:case 20:return this.parseTemplate(!1);case 11:{r=this.startNode(),this.next(),r.object=null;let i=r.callee=this.parseNoCallExpr();if(i.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(W.UnsupportedBind,i)}case 134:return this.raise(W.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 29:return this.parseTopicReferenceThenEqualsSign(50,"%");case 28:return this.parseTopicReferenceThenEqualsSign(40,"^");case 33:case 34:return this.parseTopicReference("hack");case 40:case 50:case 23:{let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.parseTopicReference(i);throw this.unexpected()}case 43:{let i=this.input.codePointAt(this.nextTokenStart());throw As(i)||i===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(at(n)){if(this.isContextual(123)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let{canStartArrow:i,containsEsc:o}=this.state,u=this.parseIdentifier();if(!o&&u.name==="async"&&!this.canInsertSemicolon()){let{type:c}=this.state;if(c===64)return this.resetPreviousNodeTrailingComments(u),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(u));if(at(c))return i&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(u)):u;if(c===86)return this.resetPreviousNodeTrailingComments(u),this.parseDo(this.startNodeAtNode(u),!0)}return i&&this.match(15)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(u),[u],!1)):u}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Kr(this.state.endLoc,-1),this.parseTopicReference(s);throw this.unexpected()}parseTopicReference(e){let r=this.startNode(),s=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(r,s,e,n)}finishTopicReference(e,r,s,n){if(this.testTopicReferenceConfiguration(s,r,n))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(W.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(W.PipeTopicUnconfiguredToken,r,{token:kn(n)})}testTopicReferenceConfiguration(e,r,s){if(e==="hack")return this.hasPlugin(["pipelineOperator",{topicToken:kn(s)}]);throw this.raise(W.PipeTopicRequiresHackPipes,r)}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(kl(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(W.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(15),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let s=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=s,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(6)&&!this.scope.allowDirectSuper?this.raise(W.SuperNotAllowed,e):this.scope.allowSuper||this.raise(W.UnexpectedSuper,e),!this.match(6)&&!this.match(0)&&!this.match(12)&&this.raise(W.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Kr(this.state.startLoc,1)),s=this.state.value;return this.next(),e.id=this.createIdentifier(r,s),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(12)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(99)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,s){e.meta=r;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==s||n)&&this.raise(W.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:s}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(101)||this.isContextual(93)){let r=this.isContextual(101);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(97)&&(this.inModule||this.raise(W.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,s){return this.addExtra(s,"rawValue",e),this.addExtra(s,"raw",this.input.slice(this.offsetToSourcePos(s.start),this.state.end)),s.value=e,this.next(),this.finishNode(s,r)}parseLiteral(e,r){let s=this.startNode();return this.parseLiteralAtNode(e,r,s)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){let r;try{r=BigInt(e)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,s;this.next(),this.expressionScope.enter(D6());let n=this.state.startLoc,i=[],o=new Pl,u=!0,c,d;for(;!this.match(7);){if(u)u=!1;else if(this.expect(8,o.optionalParametersLoc===null?null:o.optionalParametersLoc),this.match(7)){d=this.state.startLoc;break}if(this.match(17)){let D=this.state.startLoc;if(c=this.state.startLoc,i.push(this.parseParenItem(this.parseRestBinding(),D)),!this.checkCommaAfterRest(41))break}else i.push(this.parseMaybeAssignAllowInOrVoidPattern(7,o,this.parseParenItem))}let p=this.state.lastTokEndLoc;this.expect(7);let f=this.startNodeAt(r);return e&&this.shouldParseArrow(i)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,i,!1),f):(this.expressionScope.exit(),i.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),c&&this.unexpected(c),this.checkExpressionErrors(o,!0),this.toReferencedList(i,!0),i.length>1?(s=this.startNodeAt(n),s.expressions=i,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,p)):s=i[0],this.wrapParenthesis(r,s))}wrapParenthesis(e,r){if(!(this.optionFlags&2048))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let s=this.startNodeAt(e);return s.expression=r,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(15))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(12)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let s=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(W.UnexpectedNewTarget,s),s}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(6)){let r=this.parseExprList(7);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(79),s=this.parseNoCallExpr();e.callee=s,r&&s.type==="ImportExpression"&&this.raise(W.ImportCallNotNewExpression,s,s),s.type==="Import"&&this.raise(W.ImportCallNotNewExpression,s),s.type==="Super"&&this.raise(W.SuperCallNotNewExpression,s)}parseTemplateElement(e){let{start:r,startLoc:s,end:n,value:i}=this.state,o=r+1,u=this.startNodeAt(Kr(s,1));i===null&&(e||this.raise(W.InvalidEscapeSequenceTemplate,Kr(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(20),d=c?-1:-2,p=n+d;u.value={raw:this.input.slice(o,p).replace(/\r\n?/g,`
|
|
36
|
-
`),cooked:i===null?null:i.slice(1,d)},u.tail=c,this.next();let f=this.finishNode(u,"TemplateElement");return this.resetEndLocation(f,Kr(this.state.lastTokEndLoc,d)),f}parseTemplate(e){let r=this.startNode(),s=this.parseTemplateElement(e),n=[s],i=[];for(;!s.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(s=this.parseTemplateElement(e));return r.expressions=i,r.quasis=n,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,s){let n=!1,i=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(i)i=!1;else if(this.expect(8),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(s),n=this.checkProto(c,n,s)),o.properties.push(c)}this.next();let u=r?"ObjectPattern":"ObjectExpression";return this.finishNode(o,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(51))}parsePropertyDefinition(e){let r=[];if(this.match(22))for(this.hasPlugin("decorators")&&this.raise(W.UnsupportedPropertyDecorator,this.state.startLoc);this.match(22);)r.push(this.parseDecorator());let s=this.startNode(),n=!1,i=!1,o;if(this.match(17))return r.length&&this.unexpected(),this.parseSpread();r.length&&(s.decorators=r),s.method=!1,e&&(o=this.state.startLoc);let u=this.eat(51);this.parsePropertyNamePrefixOperator(s);let c=this.state.containsEsc;if(this.parsePropertyName(s,e),!u&&!c&&this.maybeAsyncOrAccessorProp(s)){let{key:d}=s,p=d.name;p==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(d),u=this.eat(51),this.parsePropertyName(s)),(p==="get"||p==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(d),s.kind=p,this.match(51)&&(u=!0,this.raise(W.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,o,u,n,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let r=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==r&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&s[s.length-1]?.type==="RestElement"&&this.raise(W.BadSetterRestParameter,e)}parseObjectMethod(e,r,s,n,i){if(i){let o=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(o),o}if(s||r||this.match(6))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,s,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,s,n){if(e.shorthand=!1,this.eat(10))return e.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(4,n),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.start,!0,!1),s)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(25)){let i=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=i):this.raise(W.InvalidCoverInitializedName,i),e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,r,s,n,i,o,u){let c=this.parseObjectMethod(e,s,n,i,o)||this.parseObjectProperty(e,r,i,u);return c||this.unexpected(),c}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(1);else{let{type:s,value:n}=this.state,i;if(os(s))i=this.parseIdentifier(!0);else switch(s){case 131:i=this.parseNumericLiteral(n);break;case 130:i=this.parseStringLiteral(n);break;case 132:i=this.parseBigIntLiteral(n);break;case 134:{let o=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=o):this.raise(W.UnexpectedPrivateField,o),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,s!==134&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,s,n,i,o,u=!1){this.initFunction(e,s),e.generator=r,this.scope.enter(530|(u?576:0)|(i?32:0)),this.prodParam.enter(kl(s,e.generator)),this.parseFunctionParams(e,n);let c=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),c}parseArrayLike(e,r){let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!0,r,s),this.finishNode(s,"ArrayExpression")}parseArrowExpression(e,r,s,n){this.scope.enter(518);let i=kl(s,!1);return this.match(2)||(i|=this.prodParam.currentFlags()&24),this.prodParam.enter(i),this.initFunction(e,s),r&&this.setArrowFunctionParameters(e,r,n),this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,s){this.toAssignableList(r,s,!1),e.params=r}parseFunctionBodyAndFinish(e,r,s=!1){return this.parseFunctionBody(e,!1,s),this.finishNode(e,r)}parseFunctionBody(e,r,s=!1){let n=r&&!this.match(2);if(this.expressionScope.enter(sx()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let i=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,u=>{let c=!this.isSimpleParamList(e.params);u&&c&&this.raise(W.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?this.optionFlags&256?e.key.loc.end:e.key:e);let d=!i&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!s&&!c,r,d),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,d)}),this.prodParam.exit(),this.state.labels=o}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,s=e.length;r<s;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,s,n=!0){let i=!r&&new Set,o={type:"FormalParameters"};for(let u of e.params)this.checkLVal(u,o,5,i,n)}parseExprList(e,r,s,n){let i=[],o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(8),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(e,r,s))}return i}parseExprListItem(e,r,s,n){let i;if(this.match(8))r||this.raise(W.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(17)){let o=this.state.startLoc;i=this.parseParenItem(this.parseSpread(s),o)}else if(this.match(13)){this.expectPlugin("partialApplication"),n||this.raise(W.UnexpectedArgumentPlaceholder,this.state.startLoc);let o=this.startNode();this.next(),i=this.finishNode(o,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,s,this.parseParenItem);return i}parseIdentifier(e){let r=this.startNode(),s=this.parseIdentifierName(e);return this.createIdentifier(r,s)}createIdentifier(e,r){return e.name=r,this.optionFlags&256&&(e.loc.identifierName=r),this.finishNode(e,"Identifier")}createIdentifierAt(e,r,s){return e.name=r,this.optionFlags&256&&(e.loc.identifierName=r),this.finishNodeAt(e,"Identifier",s)}parseIdentifierName(e){let r,{start:s,type:n}=this.state;os(n)?r=this.state.value:this.unexpected();let i=C8(n);return e?i&&this.replaceToken(128):this.checkReservedWord(r,this.sourceToOffsetPos(s),i,!1),this.next(),r}checkReservedWord(e,r,s,n){if(!(e.length>10||!q8(e))){if(s&&_8(e)){this.raise(W.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?n?Y1:K1:G1)(e,this.inModule)){this.raise(W.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(W.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(W.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(W.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(W.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e,r){let s=e.index;this.setLoc(e);let n=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(W.AwaitExpressionFormalParameter,s),this.eat(51)&&this.raise(W.ObsoleteAwaitStar,e),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),r||(n.argument=this.parseMaybeUnary(null,!0)),this.finishNode(n,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===49||e===6||e===0||xh(e)||e===98&&!this.state.containsEsc||e===133||e===52||this.hasPlugin("v8intrinsic")&&e===50}parseYield(e){this.setLoc(e);let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(W.YieldInParameter,e.index);let s=!1,n=null;if(!this.hasPrecedingLineBreak())switch(s=this.eat(51),this.state.type){case 9:case 135:case 4:case 7:case 1:case 5:case 10:case 8:if(!s)break;default:n=this.parseMaybeAssign()}return r.delegate=s,r.argument=n,this.finishNode(r,"YieldExpression")}parseImportCall(e){this.next();let r=this.parseCallExpressionArguments();if(r.length===0||r.length>2)this.raise(W.ImportCallArity,e,e);else for(let s of r)s.type==="SpreadElement"&&this.raise(W.ImportCallSpreadArgument,s,e);return e.source=r[0],e.options=r[1]??null,this.finishNode(e,"ImportExpression")}withTopicBindingContext(e){let r=this.state.inHackPipelineBody;this.state.inHackPipelineBody=!0;let s=this.state.seenTopicReference;this.state.seenTopicReference=!1;try{return e()}finally{this.state.inHackPipelineBody=r,this.state.seenTopicReference=s}}allowInAnd(e){let r=this.prodParam.currentFlags();if(24&~r){this.prodParam.enter(r|8|16);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags(),s=8&r,n=16&~r;if(s||n){this.prodParam.enter(r&-9|16);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.seenTopicReference=!0}topicReferenceIsAllowedInCurrentContext(){return this.state.inHackPipelineBody}topicReferenceWasUsedInCurrentContext(){return this.state.seenTopicReference}parseFSharpPipelineBody(e){let r=this.state.startLoc;this.prodParam.enter(this.prodParam.currentFlags()&-17);let s;if(this.isContextual(92)&&this.recordAwaitIfAllowed()){this.next(),s=this.parseAwait(r,!0);let n=this.state.type;jy(n)&&n!==35&&(this.prodParam.hasIn||n!==54)&&this.raise(W.PipelineUnparenthesized,r)}else this.state.canStartArrow=!0,s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.prodParam.exit(),s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(2)||this.unexpected(null,2);let r=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,4,"module")}finally{s()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,s){if(r!=null&&this.match(84)){let n=this.lookaheadCharCode();if(n===44||n===(e===1?93:e===4?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,s)}parsePropertyNamePrefixOperator(e){}},$p={kind:1},v6={kind:2},T6=/[\uD800-\uDFFF]/u,Mp=/in(?:stanceof)?/y;function nx(t){for(let e=0;e<t.length;e++){let r=t[e],{type:s}=r;typeof s=="number"&&(r.type=H1(s))}return t}var F6=class extends A6{parseTopLevel(e,r){return e.program=this.parseProgram(r,135,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&512&&(e.tokens=nx(this.tokens)),this.finishNode(e,"File")}parseProgram(e,r,s){if(e.sourceType=s,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[i,o]of Array.from(this.scope.undefinedExports))this.raise(W.ModuleExportUndefined,o,{localName:i});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return r===135?n=this.finishNode(e,"Program"):n=this.finishNodeAt(e,"Program",Kr(this.state.startLoc,-1)),n}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),s=this.castNodeTo(e.expression,"DirectiveLiteral"),n=s.value,i=this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end)),o=s.value=i.slice(1,-1);return this.addExtra(s,"raw",i),this.addExtra(s,"rawValue",o),this.addExtra(s,"expressionValue",n),r.value=s,delete e.expression,r}parseInterpreterDirective(){if(!this.match(24))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(96)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(103)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(103))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let s=this.lookaheadCharCodeSince(e+2);if(s!==61&&s!==58&&s!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isAwaitUsing(){if(!this.isContextual(92))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(As(e)){if(Mp.lastIndex=r,Mp.test(this.input)){let s=this.codePointAtPos(Mp.lastIndex);if(!ui(s)&&s!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(22)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let s=this.state.type,n=this.startNode(),i=!!(e&2),o=!!(e&4),u=e&1;switch(s){case 56:return this.parseBreakContinueStatement(n,!0);case 59:return this.parseBreakContinueStatement(n,!1);case 60:return this.parseDebuggerStatement(n);case 86:return this.parseDoWhileStatement(n);case 87:return this.parseForStatement(n);case 64:if(this.lookaheadCharCode()===46)break;return o||this.raise(this.state.strict?W.StrictFunction:this.options.annexB?W.SloppyFunctionAnnexB:W.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!i&&o);case 76:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,n),!0);case 65:return this.parseIfStatement(n);case 66:return this.parseReturnStatement(n);case 67:return this.parseSwitchStatement(n);case 68:return this.parseThrowStatement(n);case 69:return this.parseTryStatement(n);case 92:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,n):this.raise(W.UnexpectedLexicalDeclaration,n):this.raise(W.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 103:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(W.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 96:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),f=this.codePointAtPos(p);if(f!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(f,p)&&f!==123))break}case 71:i||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc);case 70:{let p=this.state.value;return this.parseVarStatement(n,p)}case 88:return this.parseWhileStatement(n);case 72:return this.parseWithStatement(n);case 2:return this.parseBlock();case 9:return this.parseEmptyStatement(n);case 79:{let p=this.lookaheadCharCode();if(p===40||p===46)break}case 78:{!(this.optionFlags&8)&&!u&&this.raise(W.UnexpectedImportExport,this.state.startLoc),this.next();let p;return s===79?p=this.parseImport(n):p=this.parseExport(n,r),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return i||this.raise(W.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!i&&o)}let c=this.state.value,d=this.parseExpression();return at(s)&&d.type==="Identifier"&&this.eat(10)?this.parseLabeledStatement(n,c,d,e):this.parseExpressionStatement(n,d,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(W.ImportOutsideModule,e)}maybeTakeDecorators(e,r,s){return e&&(r.decorators?.length?(this.raise(W.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),s&&this.resetStartLocationFromNode(s,r)),r}canHaveLeadingDecorator(){return this.match(76)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(22));if(this.match(78))e||this.unexpected();else if(!this.canHaveLeadingDecorator())throw this.raise(W.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,s;if(this.match(6)){let n=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(7),s=this.wrapParenthesis(n,s);let i=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(s,n),e.expression!==s&&this.raise(W.DecoratorArgumentsOutsideParentheses,i)}else{for(s=this.parseIdentifier(!1);this.eat(12);){let n=this.startNodeAt(r);n.object=s,this.match(134)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,s=this.finishNode(n,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(s,r)}}else this.state.canStartArrow=!1,e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(6)){let s=this.startNodeAt(r);return s.callee=e,s.arguments=this.parseCallExpressionArguments(),this.toReferencedList(s.arguments),this.finishNode(s,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let s;for(s=0;s<this.state.labels.length;++s){let n=this.state.labels[s];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(r||n.kind===1)||e.label&&r))break}if(s===this.state.labels.length){let n=r?"BreakStatement":"ContinueStatement";this.raise(W.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(6);let e=this.parseExpression();return this.expect(7),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push($p),e.body=this.parseStatement(),this.state.labels.pop(),this.expect(88),e.test=this.parseHeaderExpression(),this.eat(9),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push($p);let r=null;if(this.isContextual(92)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(6),this.match(9))return r!==null&&this.unexpected(r),this.parseFor(e,null);let s=this.isContextual(96);{let c=this.isAwaitUsing(),d=c||this.isForUsing(),p=s&&this.hasFollowingBindingAtom()||d;if(this.match(70)||this.match(71)||p){let f=this.startNode(),D;c?(D="await using",this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):D=this.state.value,this.next(),this.parseVar(f,!0,D);let m=this.finishNode(f,"VariableDeclaration"),g=this.match(54);return g&&d&&this.raise(W.ForInUsing,m),(g||this.isContextual(98))&&m.declarations.length===1?this.parseForIn(e,m,r):(r!==null&&this.unexpected(r),this.parseFor(e,m))}}let n=this.isContextual(91),i=new Pl,o=this.parseExpression(!0,i),u=this.isContextual(98);if(u&&(s&&this.raise(W.ForOfLet,o),r===null&&n&&o.type==="Identifier"&&this.raise(W.ForOfAsync,o)),u||this.match(54)){this.checkDestructuringPrivate(i),this.toAssignable(o,!0);let c=u?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{type:c}),this.parseForIn(e,o,r)}else this.checkExpressionErrors(i,!0);return r!==null&&this.unexpected(r),this.parseFor(e,o)}parseFunctionStatement(e,r,s){return this.next(),this.parseFunction(e,1|(s?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(62)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(W.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(2),this.state.labels.push(v6),this.scope.enter(256);let s;for(let n;!this.match(4);)if(this.match(57)||this.match(61)){let i=this.match(57);s&&this.finishNode(s,"SwitchCase"),r.push(s=this.startNode()),s.consequent=[],this.next(),i?s.test=this.parseExpression():(n&&this.raise(W.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!0,s.test=null),this.expect(10)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(W.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(58)){let r=this.startNode();this.next(),this.match(6)?(this.expect(6),r.param=this.parseCatchClauseParam(),this.expect(7)):(r.param=null,this.scope.enter(0)),r.body=this.parseBlock(!1,!1),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(63)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(W.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,s=!1){return this.next(),this.parseVar(e,!1,r,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push($p),e.body=this.parseStatement(),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(W.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.parseStatement(),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,s,n){for(let o of this.state.labels)o.name===r&&this.raise(W.LabelRedeclaration,s,{labelName:r});let i=T8(this.state.type)?1:this.match(67)?2:null;for(let o=this.state.labels.length-1;o>=0;o--){let u=this.state.labels[o];if(u.statementStart===e.start)u.statementStart=this.sourceToOffsetPos(this.state.start),u.kind=i;else break}return this.state.labels.push({name:r,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=n&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,s){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,s){let n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(2),r&&this.scope.enter(0),this.parseBlockBody(n,e,!1,4,s),r&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,s,n,i){let o=e.body=[],u=e.directives=[];this.parseBlockOrModuleBlockBody(o,r?u:void 0,s,n,i)}parseBlockOrModuleBlockBody(e,r,s,n,i){let o=this.state.strict,u=!1,c=!1;for(;!this.match(n);){let d=s?this.parseModuleItem():this.parseStatementListItem();if(r&&!c){if(this.isValidDirective(d)){let p=this.stmtToDirective(d);r.push(p),!u&&p.value.value==="use strict"&&(u=!0,this.setStrict(!0));continue}c=!0,this.state.strictErrors.clear()}e.push(d)}i?.call(this,u),o||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(9)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(7)?null:this.parseExpression(),this.expect(7),e.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,s){let n=this.match(54);return this.next(),n?s!==null&&this.unexpected(s):e.await=s!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(W.ForInOfLoopInitializer,r,{type:n?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(W.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(7),e.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,r,s,n=!1){let i=e.declarations=[];for(e.kind=s;;){let o=this.startNode();if(this.parseVarId(o,s),o.init=this.eat(25)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,o.init===null&&!n&&(o.id.type!=="Identifier"&&!(r&&(this.match(54)||this.isContextual(98)))?this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(54)||this.isContextual(98))&&this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),i.push(this.finishNode(o,"VariableDeclarator")),!this.eat(8))break}return e}parseVarId(e,r){let s=this.parseBindingAtom();r==="using"||r==="await using"?(s.type==="ArrayPattern"||s.type==="ObjectPattern")&&this.raise(W.UsingDeclarationHasBindingPattern,s):s.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,s),this.checkLVal(s,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=s}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let s=r&2,n=!!(r&1),i=n&&!(r&4),o=!!(r&8);return this.initFunction(e,o),this.match(51)&&(s&&this.raise(W.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(i)),this.scope.enter(514),this.prodParam.enter(kl(o,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression"),this.prodParam.exit(),this.scope.exit(),n&&!s&&this.registerFunctionStatementId(e),e}parseFunctionId(e){return e||at(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(6),this.expressionScope.enter(y6()),e.params=this.parseBindingList(7,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.start)}parseClass(e,r,s){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,s),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(25)||this.match(9)||this.match(4)}isClassMethod(){return this.match(6)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:e},n=[],i=this.startNode();for(i.body=[],this.expect(2);!this.match(4);){if(this.eat(9)){if(n.length>0)throw this.raise(W.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(22)){n.push(this.parseDecorator());continue}let o=this.startNode();n.length&&(o.decorators=n,this.resetStartLocationFromNode(o,n[0]),n=[]),this.parseClassMember(i,o,s)}if(this.state.strict=r,this.next(),n.length)throw this.raise(W.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,r){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let n=r;return n.kind="method",n.computed=!1,n.key=s,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let n=r;return n.computed=!1,n.key=s,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(e,r,s){let n=this.isContextual(102);if(n){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(2)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,s,n)}parseClassMemberWithIsStatic(e,r,s,n){let i=r,o=r,u=r,c=r,d=r,p=i,f=i;if(r.static=n,this.parsePropertyNamePrefixOperator(r),this.eat(51)){p.kind="method";let A=this.match(134);if(this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),A){this.pushClassPrivateMethod(e,o,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(W.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let D=!this.state.containsEsc&&at(this.state.type),m=this.parseClassElementName(r),g=D?m.name:null,x=this.isPrivateName(m),b=this.state.startLoc;if(this.parsePostMemberNameModifiers(f),this.isClassMethod()){if(p.kind="method",x){this.pushClassPrivateMethod(e,o,!1,!1);return}let A=this.isNonstaticConstructor(i),C=!1;A&&(i.kind="constructor",i.decorators&&i.decorators.length>0&&this.raise(W.DecoratorConstructor,r),s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(W.DuplicateConstructor,m),A&&this.hasPlugin("typescript")&&r.override&&this.raise(W.OverrideOnConstructor,m),s.hadConstructor=!0,C=s.hadSuperClass),this.pushClassMethod(e,i,!1,!1,A,C)}else if(this.isClassProperty())x?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u);else if(g==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let A=this.eat(51);f.optional&&this.unexpected(b),p.kind="method";let C=this.match(134);this.parseClassElementName(p),this.parsePostMemberNameModifiers(f),C?this.pushClassPrivateMethod(e,o,A,!0):(this.isNonstaticConstructor(i)&&this.raise(W.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,A,!0,!1,!1))}else if((g==="get"||g==="set")&&!(this.match(51)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),p.kind=g;let A=this.match(134);this.parseClassElementName(i),A?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(W.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(g==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let A=this.match(134);this.parseClassElementName(u),this.pushClassAccessorProperty(e,d,A)}else this.isLineTerminator()?x?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u):this.unexpected()}parseClassElementName(e){let{type:r,value:s}=this.state;if((r===128||r===130)&&e.static&&s==="prototype"&&this.raise(W.StaticPrototype,this.state.startLoc),r===134){s==="constructor"&&this.raise(W.ConstructorClassPrivateField,this.state.startLoc);let n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,4),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),r.decorators?.length&&this.raise(W.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(W.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let s=this.parseClassPrivateProperty(r);e.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.start)}pushClassAccessorProperty(e,r,s){!s&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(W.ConstructorClassField,r.key);let n=this.parseClassAccessorProperty(r);e.body.push(n),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.start)}pushClassMethod(e,r,s,n,i,o){e.body.push(this.parseMethod(r,s,n,i,o,"ClassMethod",!0))}pushClassPrivateMethod(e,r,s,n){let i=this.parseMethod(r,s,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let o=i.kind==="get"?i.static?6:2:i.kind==="set"?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,o)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(sx()),this.prodParam.enter(0),e.value=this.eat(25)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,s,n=8331){if(at(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,n);else if(s||!r)e.id=null;else throw this.raise(W.MissingClassName,this.state.startLoc)}parseClassSuper(e){this.eat(77)?(this.state.canStartArrow=!1,e.superClass=this.parseExprSubscripts()):e.superClass=null}parseExport(e,r){let s=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,s),i=!n||this.eat(8),o=i&&this.eatExportStar(e),u=o&&this.maybeParseExportNamespaceSpecifier(e),c=i&&(!u||this.eat(8)),d=n||o;if(o&&!u){if(n&&this.unexpected(),r)throw this.raise(W.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(e);n&&i&&!o&&!p&&this.unexpected(null,2),u&&c&&this.unexpected(null,94);let f;if(d||p){if(f=!1,r)throw this.raise(W.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else f=this.maybeParseExportDeclaration(e);if(d||p||f){let D=e;if(this.checkExport(D,!0,!1,!!D.source),D.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(r,D.declaration,D);else if(r)throw this.raise(W.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(D,"ExportNamedDeclaration")}if(this.eat(61)){let D=e,m=this.parseExportDefaultExpression();if(D.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(r,m,D);else if(r)throw this.raise(W.UnsupportedDecoratorExport,e);return this.checkExport(D,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(D,"ExportDefaultDeclaration")}throw this.unexpected(null,2)}eatExportStar(e){return this.eat(51)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.start);let s=r||this.parseIdentifier(!0),n=this.startNodeAtNode(s);return n.exported=s,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(89)){e.specifiers??(e.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(2)){let r=e;r.specifiers||(r.specifiers=[]);let s=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(s)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(91))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(64))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(76))return this.parseClass(e,!0,!0);if(this.match(22))return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(71)||this.match(70)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(W.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(76)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(at(e)){if(e===91&&!this.state.containsEsc||e===96)return!1;if((e===126||e===125)&&!this.state.containsEsc){let n=this.nextTokenStart(),i=this.input.charCodeAt(n);if(i===123||this.chStartsBindingIdentifier(i,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(61))return!1;let r=this.nextTokenStart(),s=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||at(this.state.type)&&s)return!0;if(this.match(61)&&s){let n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return n===34||n===39}return!1}parseExportFrom(e,r){this.eatContextual(94)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===22&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?!0:this.isUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):e===70||e===71||e===64||e===76||this.isLet()||this.isAsyncFunction()}checkExport(e,r,s,n){if(r){if(s){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let i=e.declaration;i.type==="Identifier"&&i.name==="from"&&i.end-i.start===4&&!i.extra?.parenthesized&&this.raise(W.ExportDefaultFromAsIdentifier,i)}}else if(e.specifiers?.length)for(let i of e.specifiers){let{exported:o}=i,u=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(i,u),!n&&i.local){let{local:c}=i;c.type!=="Identifier"?this.raise(W.ExportBindingIsString,i,{localName:c.value,exportName:u}):(this.checkReservedWord(c.name,c.start,!0,!1),this.scope.checkLocalExport(c))}}else if(e.declaration){let i=e.declaration;if(i.type==="FunctionDeclaration"||i.type==="ClassDeclaration"){let{id:o}=i;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(e,o.name)}else if(i.type==="VariableDeclaration")for(let o of i.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(W.DuplicateDefaultExport,e):this.raise(W.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],s=!0;for(this.expect(2);!this.eat(4);){if(s)s=!1;else if(this.expect(8),this.eat(4))break;let n=this.isContextual(126),i=this.match(130),o=this.startNode();o.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(o,i,e,n))}return r}parseExportSpecifier(e,r,s,n){return this.eatContextual(89)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(130)){let e=this.parseStringLiteral(this.state.value),r=T6.exec(e.value);return r&&this.raise(W.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}checkImportPhase(e){let{specifiers:r}=e,s=r.length===1?r[0].type:null;e.phase==="source"?s!=="ImportDefaultSpecifier"&&this.raise(W.SourcePhaseImportRequiresDefault,r[0]):e.phase==="defer"&&s!=="ImportNamespaceSpecifier"&&this.raise(W.DeferImportRequiresNamespace,r[0])}isPotentialImportPhase(e){return e?!1:this.isContextual(101)||this.isContextual(93)}applyImportPhase(e,r,s,n){r||(s==="source"?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):s==="defer"?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let s=this.startNode(),n=this.parseIdentifierName(!0),{type:i}=this.state;return(os(i)?i!==94||this.lookaheadCharCode()===102:i!==8)?(this.applyImportPhase(e,r,n,s.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(s,n))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return at(r)?r!==94||this.lookaheadCharCode()===102:r!==8}parseImport(e){return this.match(130)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(8),n=s&&this.maybeParseStarImportSpecifier(e);return s&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(94),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportPhase(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(130)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,s){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,s))}finishImportSpecifier(e,r,s=8201){return this.checkLVal(e.local,{type:r},s),this.finishNode(e,r)}parseImportAttributes(){this.expect(2);let e=[],r=new Set;do{if(this.match(4))break;let s=this.startNode(),n=this.state.value;if(r.has(n)&&this.raise(W.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),r.add(n),this.match(130)?s.key=this.parseStringLiteral(n):s.key=this.parseIdentifier(!0),this.expect(10),!this.match(130))throw this.raise(W.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(8));return this.expect(4),e}maybeParseImportAttributes(e){let r;if(this.match(72)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else r=[];e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let s=this.startNodeAtNode(r);return s.local=r,e.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(os(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(51)){let r=this.startNode();return this.next(),this.expectContextual(89),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(2);!this.eat(4);){if(r)r=!1;else{if(this.eat(10))throw this.raise(W.DestructureNamedImport,this.state.startLoc);if(this.expect(8),this.eat(4))break}let s=this.startNode(),n=this.match(130),i=this.isContextual(126);s.imported=this.parseModuleExportName();let o=this.parseImportSpecifier(s,n,e.importKind==="type"||e.importKind==="typeof",i,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,r,s,n,i){if(this.eatContextual(89))e.local=this.parseIdentifier();else{let{imported:o}=e;if(r)throw this.raise(W.ImportBindingIsString,e,{importName:o.value});this.checkReservedWord(o.name,e.start,!0,!0),e.local||(e.local=this.cloneIdentifier(o))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Op=/in(?:stanceof)?|as|satisfies/y;function w6(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Hy(t){if(!t)throw new Error("Assert fail")}var S6={AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DecoratorAbstractMethod:({kind:t})=>`Decorators can't be used with ${t.startsWith("a")?"an":"a"} ${t}.`,DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ExportAssignmentInTSNamespace:"An export assignment cannot be used in a namespace.",ExportInTSNamespace:"Export declarations are not permitted in a namespace.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportInTSNamespace:"Import declarations in a namespace cannot reference a module.",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InlineModuleDeclarationMustUseString:"`module ... {}` declarations must have a string name. Use `namespace ... {}` instead.",InvalidHeritageClauseType:({token:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NamespaceExportInTSNamespace:"Global module exports may only appear at top level.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterInitializer:"A parameter initializer is only allowed in a function or constructor implementation.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnexpectedTypeDeclaration:t=>`'${t}' declarations can only be declared inside a block.`,UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`},be=as`typescript`(S6);function k6(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Wy(t){return t==="private"||t==="public"||t==="protected"}function P6(t){return t==="in"||t==="out"}function Ah(t){if(t.extra?.parenthesized)return!1;switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&Ah(t.object);case"TSInstantiationExpression":return Ah(t.expression);default:return!1}}var I6=t=>class extends t{getScopeHandler(){return r6}tsIsIdentifier(){return at(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(2)||this.match(51)||this.match(17)||this.match(134)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(102)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,r,s){if(!at(this.state.type)&&this.state.type!==54&&this.state.type!==71)return;let n=this.state.value;if(e.includes(n)){if(s&&this.match(102)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:r,stopOnStartOfClassStaticBlock:s,errorTemplate:n=be.InvalidModifierOnTypeMember},i){let o=(c,d,p,f)=>{d===p&&i[f]&&this.raise(be.InvalidModifiersOrder,c,{orderedModifiers:[p,f]})},u=(c,d,p,f)=>{(i[p]&&d===f||i[f]&&d===p)&&this.raise(be.IncompatibleModifiers,c,{modifiers:[p,f]})};for(;;){let{startLoc:c}=this.state,d=this.tsParseModifier(e.concat(r??[]),s,i.static);if(!d)break;Wy(d)?i.accessibility?this.raise(be.DuplicateAccessibilityModifier,c,{modifier:d}):(o(c,d,d,"override"),o(c,d,d,"static"),o(c,d,d,"readonly"),i.accessibility=d):P6(d)?(i[d]&&this.raise(be.DuplicateModifier,c,{modifier:d}),i[d]=!0,o(c,d,"in","out")):(Ud(i,d)?this.raise(be.DuplicateModifier,c,{modifier:d}):(o(c,d,"static","readonly"),o(c,d,"static","override"),o(c,d,"override","readonly"),o(c,d,"abstract","override"),u(c,d,"declare","override"),u(c,d,"static","abstract")),i[d]=!0),r?.includes(d)&&this.raise(n,c,{modifier:d})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(4);case"HeritageClauseElement":return this.match(2);case"TupleElementTypes":return this.match(1);case"TypeParametersOrArguments":return this.match(44)}}tsParseList(e,r){let s=[];for(;!this.tsIsListTerminator(e);)s.push(r());return s}tsParseDelimitedList(e,r,s){return w6(this.tsParseDelimitedListWorker(e,r,!0,s))}tsParseDelimitedListWorker(e,r,s,n){let i=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let u=r();if(u==null)return;if(i.push(u),this.eat(8)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;s&&this.expect(8);return}return n&&(n.value=o),i}tsParseBracketedList(e,r,s,n,i){n||(s?this.expect(0):this.expect(43));let o=this.tsParseDelimitedList(e,r,i);return s?this.expect(1):this.expect(44),o}tsParseImportType(){let e=this.startNode();return this.expect(79),this.expect(6),this.match(130)?e.source=this.parseStringLiteral(this.state.value):(this.raise(be.UnsupportedImportTypeArgument,this.state.startLoc),e.source=this.tsParseNonConditionalType()),this.eat(8)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(7),this.eat(12)&&(e.qualifier=this.tsParseEntityName(3)),this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(2);let r=this.startNode();return this.isContextual(72)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,72),this.expect(10),r.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(r)],this.eat(8),this.expect(4),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),r=[];for(this.expect(2);!this.match(4);){let s=this.state.type;at(s)||s===130?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(8)}return e.properties=r,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let r;if(e&1&&this.match(74))if(e&2)r=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),r=this.finishNode(s,"ThisExpression")}else r=this.parseIdentifier(!!(e&1));for(;this.eat(12);){let s=this.startNodeAtNode(r);s.left=r,s.right=this.parseIdentifier(!!(e&1)),r=this.finishNode(s,"TSQualifiedName")}return r}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let r=this.startNodeAtNode(e);return r.parameterName=e,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(83),this.match(79)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:be.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:be.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:be.InvalidModifierOnTypeParameter});tsParseTypeParameter(e){let r=this.startNode();return e(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(77),r.default=this.tsEatThenParseType(25),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(43))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let r=this.startNode();this.match(43)||this.match(138)?this.next():this.unexpected();let s={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,s),r.params.length===0&&this.raise(be.EmptyTypeParameters,r),s.value!==-1&&this.addExtra(r,"trailingComma",s.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(e,r){let s=e===15,n="params",i="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(6),r[n]=this.tsParseBindingListForSignature(),s?r[i]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(r[i]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(7,41,2);for(let r of e){let{type:s}=r;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(be.UnsupportedSignatureParameterKind,r,{type:s})}return e}tsParseTypeMemberSemicolon(){!this.eat(8)&&!this.isLineTerminator()&&this.expect(9)}tsParseSignatureMember(e,r){return this.tsFillSignature(10,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),at(this.state.type)?(this.next(),this.match(10)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(1),e.parameters=[r];let s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,r){if(this.eat(13)&&(e.optional=!0),this.match(6)||this.match(43)){r&&this.raise(be.ReadonlyForMethodSignature,e);let s=e;if(s.kind&&this.match(43)&&this.raise(be.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(10,s),this.tsParseTypeMemberSemicolon(),s.kind==="get")s.params.length>0&&(this.raise(W.BadGetterArity,this.state.curPosition()),this.isThisParam(s.params[0])&&this.raise(be.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s.params.length!==1)this.raise(W.BadSetterArity,this.state.curPosition());else{let n=s.params[0];this.isThisParam(n)&&this.raise(be.AccessorCannotDeclareThisParameter,this.state.curPosition()),n.type==="Identifier"&&n.optional&&this.raise(be.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),n.type==="RestElement"&&this.raise(be.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s.returnType&&this.raise(be.SetAccessorCannotHaveReturnType,s.returnType)}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=e;r&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(6)||this.match(43))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(73)){let s=this.startNode();return this.next(),this.match(6)||this.match(43)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(6)&&!this.match(43)&&this.unexpected(null,6)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(2);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(4),e}tsIsStartOfMappedType(){return this.next(),this.eat(49)?this.isContextual(118):(this.isContextual(118)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(54)))}tsParseMappedType(){let e=this.startNode();return this.expect(2),this.match(49)?(e.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(54),e.nameType=this.eatContextual(89)?this.tsParseType():null,this.expect(1),this.match(49)?(e.optional=this.state.value,this.next(),this.expect(13)):this.eat(13)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(4),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return e.elementTypes.forEach(s=>{let{type:n}=s;r&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(be.OptionalTypeBeforeRequired,s),r||(r=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e=this.state.startLoc,r=this.eat(17),{startLoc:s}=this.state,n,i,o,u,c=os(this.state.type)?this.lookaheadCharCode():null;if(c===58)n=!0,o=!1,i=this.parseIdentifier(!0),this.expect(10),u=this.tsParseType();else if(c===63){o=!0;let d=this.state.value,p=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,i=this.createIdentifier(this.startNodeAt(s),d),this.expect(13),this.expect(10),u=this.tsParseType()):(n=!1,u=p,this.expect(13))}else u=this.tsParseType(),o=this.eat(13),n=this.eat(10);if(n){let d;i?(d=this.startNodeAt(s),d.optional=o,d.label=i,d.elementType=u,this.eat(13)&&(d.optional=!0,this.raise(be.TupleOptionalAfterType,this.state.lastTokStartLoc))):(d=this.startNodeAt(s),d.optional=o,this.raise(be.InvalidTupleMemberLabel,u),d.label=u,d.elementType=this.tsParseType()),u=this.finishNode(d,"TSNamedTupleMember")}else if(o){let d=this.startNodeAt(s);d.typeAnnotation=u,u=this.finishNode(d,"TSOptionalType")}if(r){let d=this.startNodeAt(e);d.typeAnnotation=u,u=this.finishNode(d,"TSRestType")}return u}tsParseParenthesizedType(){let e=this.startNode();return this.expect(6),e.typeAnnotation=this.tsParseType(),this.expect(7),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,r){let s=this.startNode();return e==="TSConstructorType"&&(s.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(15,s)),this.finishNode(s,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 131:case 132:case 130:case 81:case 82:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.state.startLoc,r=this.parseTemplateElement(!1),s=[r];if(r.tail){let n=this.startNodeAt(e),i=this.startNodeAt(e);return i.expressions=[],i.quasis=s,n.literal=this.finishNode(i,"TemplateLiteral"),this.finishNode(n,"TSLiteralType")}else{let n=[];for(;!r.tail;)n.push(this.tsParseType()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(!1));let i=this.startNodeAt(e);return i.types=n,i.quasis=s,this.finishNode(i,"TSTemplateLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(112)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 130:case 131:case 132:case 81:case 82:return this.tsParseLiteralTypeNode();case 49:if(this.state.value==="-"){let e=this.startNode(),r=this.lookahead();return r.type!==131&&r.type!==132&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 74:return this.tsParseThisTypeOrThisTypePredicate();case 83:return this.tsParseTypeQuery();case 79:return this.tsParseImportType();case 2:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 6:if(!(this.optionFlags&2048)){let e=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(7),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),r}return this.tsParseParenthesizedType();case 21:case 20:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(at(e)||e===84||e===80){let r=e===84?"TSVoidKeyword":e===80?"TSNullKeyword":k6(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(1)){let s=this.startNodeAt(e);s.elementType=r,this.expect(1),r=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(e);s.objectType=r,s.indexType=this.tsParseType(),this.expect(1),r=this.finishNode(s,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let e=this.startNode(),r=this.state.value;return this.next(),e.operator=r,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(be.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(111);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(77)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(13))return e}}tsParseTypeOperatorOrHigher(){return S8(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(111)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,r,s){let n=this.startNode(),i=this.eat(s),o=[];do o.push(r());while(this.eat(s));return o.length===1&&!i?o[0]:(n.types=o,this.finishNode(n,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),41)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),39)}tsIsStartOfFunctionType(){return this.match(43)?!0:this.match(6)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(at(this.state.type)||this.match(74))return this.next(),!0;if(this.match(2)){let{errors:e}=this.state,r=e.length;try{return this.parseObjectLike(4,!0),e.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,r=e.length;try{return super.parseBindingList(1,93,1),e.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(7)||this.match(17)||this.tsSkipParameterStart()&&(this.match(10)||this.match(8)||this.match(13)||this.match(25)||this.match(7)&&(this.next(),this.match(15))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let r=this.startNode();this.expect(e);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(74)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(s.parameterName=u,s.asserts=!0,s.typeAnnotation=null,u=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(u,s),u.asserts=!0),r.typeAnnotation=u,this.finishNode(r,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=i,s.typeAnnotation=o,s.asserts=n,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(10))return this.tsParseTypeOrTypePredicateAnnotation(10)}tsTryParseTypeAnnotation(){if(this.match(10))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(10)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(112)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==105)return!1;let e=this.state.containsEsc;return this.next(),!at(this.state.type)&&!this.match(74)?!1:(e&&this.raise(W.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,r=this.startNode()){return this.tsInType(()=>{e&&this.expect(10),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Hy(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(77))return e;let r=this.startNodeAtNode(e);return r.checkType=e,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(13),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(10),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(73)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(be.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71)?this.tsParseTypeReference():this.tsParseType())),this.expect(44),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let r=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=(this.state.canStartArrow=!1,super.parseExprSubscripts());Ah(n)||this.raise(be.InvalidHeritageClauseType,n.start,{token:e});let i=e==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(n.type==="TSInstantiationExpression")return n.type=i,n;let o=this.startNodeAtNode(n);return o.expression=n,(this.match(43)||this.match(47))&&(o.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(o,i)});return s.length||this.raise(be.EmptyHeritageClauseType,r,{token:e}),s}tsParseInterfaceDeclaration(e,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),r.declare&&(e.declare=!0),at(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(be.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(77)&&(e.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(25),this.isContextual(110)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==ht.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}tsInType(e){let r=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(e){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(e){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(130)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(25)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,r={}){return r.const&&(e.const=!0),r.declare&&(e.declare=!0),this.expectContextual(122),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(2),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(4),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(e){let r=this.startNode();return e||this.scope.enter(0),this.expect(2),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,4),e||this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseNamespaceDeclaration(e){return e.id=this.tsParseEntityName(0),e.id.type==="Identifier"&&this.checkIdentifier(e.id,1024),this.scope.enter(2048),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(!1),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){let r=this.isContextual(108);return r?(e.kind="global",e.id=this.parseIdentifier()):(e.kind="module",e.id=super.parseStringLiteral(this.state.value)),this.match(2)?(r||this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(r),this.prodParam.exit(),r||this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,r){e.id=r||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(25);let s=this.tsParseModuleReference();return e.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(be.ImportAliasHasImportType,s),e.moduleReference=s,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(115)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(115),this.expect(6),this.match(130)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(7),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let r=this.state.clone(),s=e();return this.state=r,s}tsTryParseAndCatch(e){let r=this.tryParse(s=>e()||s());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(e){let r=this.state.clone(),s=e();if(s!==void 0&&s!==!1)return s;this.state=r}tsTryParseDeclare(e){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 64:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 76:return e.declare=!0,this.parseClass(e,!0,!1);case 122:return this.tsParseEnumDeclaration(e,{declare:!0});case 108:return this.tsParseAmbientExternalModuleDeclaration(e);case 96:if(this.state.containsEsc)return;case 71:case 70:return!this.match(71)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(71),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 103:if(this.isUsing())return this.raise(be.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 92:if(this.isAwaitUsing())return this.raise(be.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 125:{let s=this.tsParseInterfaceDeclaration(e,{declare:!0});if(s)return s}default:if(at(r))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,r,s,n){switch(r){case 120:if(this.tsCheckLineTerminator(s)&&(this.match(76)||at(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case 123:if(this.tsCheckLineTerminator(s))return this.tsParseAmbientExternalModuleDeclaration(e);break;case 124:if(this.tsCheckLineTerminator(s)&&at(this.state.type))return e.kind="namespace",this.tsParseNamespaceDeclaration(e);break;case 126:if(this.tsCheckLineTerminator(s)&&at(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(43))return;let r=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(e);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(15),s});if(r)return super.parseArrowExpression(r,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===43)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(43),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(be.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===ht.brace&&this.reScan_lt_gt(),this.expect(44),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return k8(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,r){let s=r.length?null:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let i=n.accessibility,o=n.override,u=n.readonly;!(e&4)&&(i||u||o)&&this.raise(be.UnexpectedParameterModifier,s||r[0]);let c=this.state.startLoc,d=this.parseMaybeDefault(c);e&2&&this.parseFunctionParamType(d);let p=this.parseMaybeDefault(c,d);if(i||u||o){let f=s?this.startNodeAt(s):this.startNodeAtNode(r[0]);return r.length?f.decorators=r:this.setLoc(s),i&&(f.accessibility=i),u&&(f.readonly=u),o&&(f.override=o),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(be.UnsupportedParameterPropertyKind,s||r[0]),f.parameter=p,this.finishNode(f,"TSParameterProperty")}return r.length&&(d.decorators=r),p}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let r of e.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(be.PatternIsOptional,r)}setArrowFunctionParameters(e,r,s){super.setArrowFunctionParameters(e,r,s),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,r,s=!1){this.match(10)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(10));let n=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(n&&!this.match(2)&&this.isLineTerminator()){if(n==="TSDeclareMethod"&&e.kind==="constructor")for(let i of e.params)i.type==="TSParameterProperty"?this.raise(be.UnexpectedParameterModifier,i):i.type==="AssignmentPattern"&&this.raise(be.UnexpectedParameterInitializer,i);else for(let i of e.params)i.type==="AssignmentPattern"&&this.raise(be.UnexpectedParameterInitializer,i);return this.finishNode(e,n)}return n&&this.state.isAmbientContext&&(this.raise(be.DeclareFunctionHasImplementation,this.state.startLoc),n==="TSDeclareFunction"&&e.declare)?super.parseFunctionBodyAndFinish(e,n,s):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,r,s))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(be.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(e,r){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,r){let s=super.parseArrayLike(e,r);return s.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(e,r,s,n){if(!this.hasPrecedingLineBreak()&&this.match(31)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(r);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let i=!1;if(this.match(14)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(43)||this.match(47)){let o,u=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(r);if(f)return n.stop=!0,f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(i&&!this.match(6)){o=this.state.curPosition();return}if(xh(this.state.type)){let f=super.parseTaggedTemplateExpression(e,r,n);return f.typeArguments=c,f}if(!s&&this.eat(6)){let f=this.startNodeAt(r);return f.callee=e,f.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeArguments=c,n.optionalChainMember&&(f.optional=i),this.finishCallExpression(f,n.optionalChainMember)}let d=this.state.type;if(d===44||d===48||d!==6&&d!==89&&d!==116&&xo(d)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(r);return p.expression=e,p.typeArguments=c,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,6),u)return u.type==="TSInstantiationExpression"&&((this.match(12)||this.match(14)&&this.lookaheadCharCode()!==40)&&this.raise(be.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(12)&&!this.match(14)&&(u.expression=super.stopParseSubscript(e,n))),u}return super.parseSubscript(e,r,s,n)}parseNewCallee(e){super.parseNewCallee(e);let{callee:r}=e;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(e.typeArguments=r.typeArguments,e.callee=r.expression)}parseExprOp(e,r,s){let n;if(Sl(54)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(89)||(n=this.isContextual(116)))){let i=this.startNodeAt(r);i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71)?(n&&this.raise(W.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()));let o=this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression");return this.reScan_lt_gt(),this.parseExprOp(o,r,s)}return super.parseExprOp(e,r,s)}checkReservedWord(e,r,s,n){this.state.isAmbientContext||super.checkReservedWord(e,r,s,n)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(126)){let r=this.lookaheadCharCode();return e?r===123||r===42:r!==61}return!e&&this.isContextual(83)}applyImportPhase(e,r,s,n){super.applyImportPhase(e,r,s,n),r?e.exportKind=s==="type"?"type":"value":e.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(e){if(this.match(130))return e.importKind="value",this.scope.inTSNamespace&&this.raise(be.ImportInTSNamespace,e),super.parseImport(e);let r;if(at(this.state.type)&&this.lookaheadCharCode()===61){e.importKind="value";let s=this.tsParseImportEqualsDeclaration(e);return this.scope.inTSNamespace&&s.moduleReference.type==="TSExternalModuleReference"&&this.raise(be.ImportInTSNamespace,e),s}else if(this.isContextual(126)){let s=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.scope.inTSNamespace&&this.raise(be.ImportInTSNamespace,e),this.tsParseImportEqualsDeclaration(e,s);r=super.parseImportSpecifiersAndAfter(e,s)}else r=super.parseImport(e);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"?this.raise(be.TypeImportCannotSpecifyDefaultAndNamed,r):this.scope.inTSNamespace&&this.raise(be.ImportInTSNamespace,r),r}parseExport(e,r){if(this.match(79)){let s=this.startNode();this.next();let n=null;this.isContextual(126)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value";let i=this.tsParseImportEqualsDeclaration(s,n);return e.attributes=[],e.declaration=i,e.exportKind="value",e.source=null,e.specifiers=[],this.finishNode(e,"ExportNamedDeclaration")}else if(this.eat(25)){let s=e;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.scope.inTSNamespace&&this.raise(be.ExportAssignmentInTSNamespace,s),this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(89)){let s=e;return this.expectContextual(124),s.id=this.parseIdentifier(),this.checkIdentifier(s.id,8201),this.semicolon(),this.scope.inTSNamespace&&this.raise(be.NamespaceExportInTSNamespace,s),this.finishNode(s,"TSNamespaceExportDeclaration")}else{let s=super.parseExport(e,r);return this.scope.inTSNamespace&&(s.type!=="ExportNamedDeclaration"||s.source||!s.declaration&&!this.state.isAmbientContext)&&this.raise(be.ExportInTSNamespace,s),s}}isAbstractClass(){return this.isContextual(120)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(125)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,r,s=!1){let{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,r,s||n);if(!n)return i;if(!e.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(be.UsingDeclarationInAmbientContext,e,r),i;for(let{id:o,init:u}of i.declarations)u&&(r==="var"||r==="let"||o.typeAnnotation?this.raise(be.InitializerNotAllowedInAmbientContext,u):N6(u,this.hasPlugin("estree"))||this.raise(be.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return i}parseStatementContent(e,r){let s=!!(e&2);if(!this.state.containsEsc)switch(this.state.type){case 71:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.next(),this.tsParseEnumDeclaration(n,{const:!0})}break}case 120:case 121:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,i=this.startNode();this.next();let o=n===121?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,r);return o?(n===121&&(o.declare=!0),o):(i.expression=this.createIdentifier(this.startNodeAtNode(i),n===121?"declare":"abstract"),this.semicolon(!1),this.finishNode(i,"ExpressionStatement"))}break}case 122:return this.tsParseEnumDeclaration(this.startNode());case 108:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 125:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return s||this.raise(be.UnexpectedTypeDeclaration,n,"interface"),n;break}case 123:{if(this.nextTokenIsStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,123,!1,r)}else if(this.nextTokenIsIdentifierOnSameLine()){this.raise(be.InlineModuleDeclarationMustUseString,this.state.startLoc);let n=this.startNode();return this.next(),this.tsParseDeclaration(n,124,!1,r)}break}case 124:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,124,!1,r)}break}case 126:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return s||this.raise(be.UnexpectedTypeDeclaration,n,"type"),this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(e,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,r){return r.some(s=>Wy(s)?e.accessibility===s:!!e[s])}tsIsStartOfStaticBlocks(){return this.isContextual(102)&&this.lookaheadCharCode()===123}parseClassMember(e,r,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:be.InvalidModifierOnTypeParameterPositions},r);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,n)&&this.raise(be.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,r)):this.parseClassMemberWithIsStatic(e,r,s,!!r.static)};r.declare?this.tsInAmbientContext(i):i(),r.decorators&&r.decorators.length>0&&!this.hasPlugin("decorators-legacy")&&(r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"?this.raise(be.DecoratorAbstractMethod,r,{kind:"abstract method"}):(r.type==="ClassProperty"&&r.abstract||r.type==="ClassProperty"&&r.declare||r.type==="TSAbstractPropertyDefinition"||r.type==="PropertyDefinition"&&r.declare)&&this.raise(be.DecoratorAbstractMethod,r,{kind:r.declare?"declare field":"abstract field"}))}parseClassMemberWithIsStatic(e,r,s,n){let i=this.tsTryParseIndexSignature(r);if(i){e.body.push(i),r.abstract&&this.raise(be.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(be.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(be.IndexSignatureHasDeclare,r),r.override&&this.raise(be.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(be.NonAbstractClassHasAbstractMethod,r),r.override&&(s.hadSuperClass||this.raise(be.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(e,r,s,n)}parsePostMemberNameModifiers(e){this.eat(13)&&(e.optional=!0),e.readonly&&this.match(6)&&this.raise(be.ClassMethodHasReadonly,e),e.declare&&this.match(6)&&this.raise(be.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,r,s){if(!this.match(13))return e;if(s!=null){let o=this.lookaheadCharCode();if(o===44||o===61||o===58||o===41)return this.setOptionalParametersError(s),e}this.next();let n=this.startNodeAt(r);n.test=e;let i=this.state.inConditionalConsequent;return this.state.inConditionalConsequent=!0,n.consequent=this.parseMaybeAssignAllowIn(),this.state.inConditionalConsequent=i,this.expect(10),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}parseParenItem(e,r){let s=super.parseParenItem(e,r);if(this.eat(13)&&(s.optional=!0,this.resetEndLocation(e)),this.match(10)){let n=this.startNodeAt(r);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let r=this.state.startLoc,s=this.eatContextual(121);if(s&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(be.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=at(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||s)&&(e.exportKind="type"),s&&n.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(n,r),n.declare=!0),n):null}parseClassId(e,r,s,n){if((!r||s)&&this.isContextual(109)){e.id=null;return}super.parseClassId(e,r,s,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(31)?e.definite=!0:this.eat(13)&&(e.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(e.typeAnnotation=r)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(25)&&this.raise(be.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(25)){let{key:r}=e;this.raise(be.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!e.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(be.PrivateElementHasAbstract,e),e.accessibility&&this.raise(be.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(be.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,r,s,n,i,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&i&&this.raise(be.ConstructorHasTypeParameters,u);let{declare:c=!1,kind:d}=r;c&&(d==="get"||d==="set")&&this.raise(be.DeclareAccessor,r,{kind:d}),u&&(r.typeParameters=u),super.pushClassMethod(e,r,s,n,i,o)}pushClassPrivateMethod(e,r,s,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.pushClassPrivateMethod(e,r,s,n)}declareClassPrivateMethodInScope(e,r){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&e.value.body==null||super.declareClassPrivateMethodInScope(e,r))}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if(e.superClass.type==="TSInstantiationExpression"){let r=e.superClass,s=r.expression;this.takeSurroundingComments(s,s.start,s.end);let n=r.typeArguments;this.takeSurroundingComments(n,n.start,n.end),e.superClass=s,e.superTypeArguments=n}else(this.match(43)||this.match(47))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression());this.eatContextual(109)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,r,s,n,i,o,u){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(e.typeParameters=c),super.parseObjPropValue(e,r,s,n,i,o,u)}parseFunctionParams(e,r){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(e.typeParameters=s),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(31)&&(e.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(e.id.typeAnnotation=s,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){return this.match(10)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,r)}parseMaybeAssign(e,r){let s,n,i;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(s=this.state.clone(),n=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!n.error)return n.node;let{context:c}=this.state,d=c[c.length-1];(d===ht.j_oTag||d===ht.j_expr)&&c.pop()}if(!n?.error&&!this.match(43))return super.parseMaybeAssign(e,r);(!s||s===this.state)&&(s=this.state.clone());let o,u=this.tryParse(c=>{o=this.tsParseTypeParameters(this.tsParseConstModifier);let d=super.parseMaybeAssign(e,r);if((d.type!=="ArrowFunctionExpression"||d.extra?.parenthesized)&&c(),o?.params.length!==0&&this.resetStartLocationFromNode(d,o),d.typeParameters=o,this.hasPlugin("jsx")&&d.typeParameters.params.length===1&&!d.typeParameters.extra?.trailingComma){let p=d.typeParameters.params[0];p.constraint||this.raise(be.SingleTypeParameterWithoutTrailingComma,this.optionFlags&256?Kr(p.loc.end,1):p,{typeParameterName:p.name.name})}return d},s);if(!u.error&&!u.aborted)return o&&this.reportReservedArrowTypeParam(o),u.node;if(!n&&(Hy(!this.hasPlugin("jsx")),i=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!i.error))return i.node;if(n?.node)return this.state=n.failState,n.node;if(u.node)return this.state=u.failState,o&&this.reportReservedArrowTypeParam(o),u.node;if(i?.node)return this.state=i.failState,i.node;throw n?.error||u.error||i?.error}reportReservedArrowTypeParam(e){e.params.length===1&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(be.ReservedArrowTypeParam,e)}parseMaybeUnary(e,r){return!this.hasPlugin("jsx")&&this.match(43)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,r)}parseArrow(e){if(this.match(10)){let r=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(10);return(this.canInsertSemicolon()||!this.match(15))&&s(),n});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),e.returnType=r.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(13)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,r){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(e,r)}}toAssignable(e,r=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(be.UnexpectedTypeCastInParameter,e):this.raise(be.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,r);break;case"AssignmentExpression":!r&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,r)}}toAssignableParenthesizedExpression(e,r){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,r);break;default:super.toAssignable(e,r)}}checkToRestConversion(e,r){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,r)}}isValidLVal(e,r,s,n){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!s)&&["expression",!0];default:return super.isValidLVal(e,r,s,n)}}parseBindingAtom(){return this.state.type===74?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,r){if(this.match(43)||this.match(47)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(6)){let n=super.parseMaybeDecoratorArguments(e,r);return n.typeArguments=s,n}this.unexpected(null,6)}return super.parseMaybeDecoratorArguments(e,r)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(8)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(31)||this.match(10)||super.isClassProperty()}parseMaybeDefault(e,r){let s=super.parseMaybeDefault(e,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(be.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(44,1);return}if(e===60){this.finishOp(43,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===43?(this.state.pos-=1,this.readToken_lt()):e===44&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===47?(this.state.pos-=2,this.finishOp(43,1),43):e}toAssignableListItem(e,r,s){let n=e[r];n.type==="TSTypeCastExpression"&&(e[r]=this.typeCastToParameter(n)),super.toAssignableListItem(e,r,s)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocationFromNode(e.expression,e.typeAnnotation),e.expression}shouldParseArrow(e){return this.match(10)?e.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(10)?!this.state.inConditionalConsequent:super.shouldParseAsyncArrow()}parseParenAndDistinguishExpression(e){let r=this.state.inConditionalConsequent;this.state.inConditionalConsequent=!1;let s=super.parseParenAndDistinguishExpression(e);return this.state.inConditionalConsequent=r,s}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(43)||this.match(47)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(e.typeArguments=r)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let r=super.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e)[0];return s&&this.isThisParam(s)?r+1:r}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:r,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=r,this.state.strict=s}}parseClass(e,r,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,r,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,r){if(this.match(76))return e.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(e,!0,!1));if(this.isContextual(125))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(be.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,76)}parseMethod(e,r,s,n,i,o,u){let c=super.parseMethod(e,r,s,n,i,o,u);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:d}=c;this.raise(be.AbstractMethodHasImplementation,c,{methodName:d.type==="Identifier"&&!c.computed?d.name:`[${this.input.slice(this.offsetToSourcePos(d.start),this.offsetToSourcePos(d.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,r,s,n){return!r&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,s),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,r,s,n))}parseImportSpecifier(e,r,s,n,i){return!r&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,s),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,r,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(e,r,s){let n=r?"imported":"local",i=r?"local":"exported",o=e[n],u,c=!1,d=!0,p=o.start;if(this.isContextual(89)){let D=this.parseIdentifier();if(this.isContextual(89)){let m=this.parseIdentifier();os(this.state.type)?(c=!0,o=D,u=r?this.parseIdentifier():this.parseModuleExportName(),d=!1):(u=m,d=!1)}else os(this.state.type)?(d=!1,u=r?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=D)}else os(this.state.type)&&(c=!0,r?(o=this.parseIdentifier(!0),this.isContextual(89)||this.checkReservedWord(o.name,o.start,!0,!0)):o=this.parseModuleExportName());c&&s&&this.raise(r?be.TypeModifierIsUsedInTypeImports:be.TypeModifierIsUsedInTypeExports,p),e[n]=o,e[i]=u;let f=r?"importKind":"exportKind";e[f]=c?"type":"value",d&&this.eatContextual(89)&&(e[i]=r?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[n])),r&&this.checkIdentifier(e[i],c?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":e.directive??(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":e.decorators??(e.decorators=[]),e.optional??(e.optional=!1),e.typeAnnotation??(e.typeAnnotation=void 0);return;case"TSParameterProperty":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":e.declare??(e.declare=!1),e.returnType??(e.returnType=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"Property":e.optional??(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":e.optional??(e.optional=!1);case"TSIndexSignature":e.accessibility??(e.accessibility=void 0),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":e.declare??(e.declare=!1),e.definite??(e.definite=!1),e.readonly??(e.readonly=!1),e.typeAnnotation??(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.optional??(e.optional=!1);return;case"ClassExpression":e.id??(e.id=null);case"ClassDeclaration":e.abstract??(e.abstract=!1),e.declare??(e.declare=!1),e.decorators??(e.decorators=[]),e.implements??(e.implements=[]),e.superTypeArguments??(e.superTypeArguments=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":e.declare??(e.declare=!1);return;case"VariableDeclarator":e.definite??(e.definite=!1);return;case"TSEnumDeclaration":e.const??(e.const=!1),e.declare??(e.declare=!1);return;case"TSEnumMember":e.computed??(e.computed=!1);return;case"TSImportType":e.qualifier??(e.qualifier=null),e.options??(e.options=null),e.typeArguments??(e.typeArguments=null);return;case"TSInterfaceDeclaration":e.declare??(e.declare=!1),e.extends??(e.extends=[]);return;case"TSMappedType":e.optional??(e.optional=!1),e.readonly??(e.readonly=void 0);return;case"TSModuleDeclaration":e.declare??(e.declare=!1),e.global??(e.global=e.kind==="global");return;case"TSTypeParameter":e.const??(e.const=!1),e.in??(e.in=!1),e.out??(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,r){if(As(e)){if(Op.lastIndex=r,Op.test(this.input)){let s=this.codePointAtPos(Op.lastIndex);if(!ui(s)&&s!==92)return!1}return!0}else return e===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,e)}nextTokenIsStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===34||r===39}};function B6(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:ax(t.object)}function N6(t,e){let{type:r}=t;if(t.extra?.parenthesized)return!1;if(e){if(r==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(ix(t,e)||L6(t,e)||r==="TemplateLiteral"&&t.expressions.length===0||B6(t))}function ix(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function L6(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:s}=t;if(r==="-"&&ix(s,e))return!0}return!1}function ax(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:ax(t.object)}var $6={ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."},Jy=as`placeholders`($6),M6=t=>class extends t{parsePlaceholder(e){if(this.match(129)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(129),this.finishPlaceholder(r,e)}}finishPlaceholder(e,r){let s=e;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=r,s}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(129,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,r,s,n){e!==void 0&&super.checkReservedWord(e,r,s,n)}cloneIdentifier(e){let r=super.cloneIdentifier(e);return r.type==="Placeholder"&&(r.expectedNode=e.expectedNode),r}cloneStringLiteral(e){return e.type==="Placeholder"?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,r,s,n){return e==="Placeholder"||super.isValidLVal(e,r,s,n)}toAssignable(e,r){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,r)}chStartsBindingIdentifier(e,r){if(super.chStartsBindingIdentifier(e,r))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(e,r){e.label?.type!=="Placeholder"&&super.verifyBreakContinue(e,r)}parseExpressionStatement(e,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(e,r);if(this.match(10)){let n=e;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let s=e;return s.name=r.name,this.finishPlaceholder(s,"Statement")}parseBlock(e,r,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,r,s)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,r,s){let n=r?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(77)||this.match(129)||this.match(2))e.id=o;else{if(s||!r)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,n);throw this.raise(Jy.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,r,s);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(e,r);let n=e;if(!this.isContextual(94)&&!this.match(8))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=s,n.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(n,r)}isExportDefaultSpecifier(){if(this.match(61)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(kn(129),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,r){return e.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(e,r)}checkExport(e){let{specifiers:r}=e;r?.length&&(e.specifiers=r.filter(s=>s.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=r}parseImport(e){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(94)&&!this.match(8))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let s=this.startNodeAtNode(r);return s.local=r,e.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(8)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(94),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Jy.UnexpectedSpace,this.state.lastTokEndLoc)}},O6=t=>class extends t{parseV8Intrinsic(){if(this.match(50)){let e=this.state.startLoc,r=this.startNode();if(this.next(),at(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(r,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(6))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},Gy=["fsharp","hack"],Ky=["^^","@@","^","%","#"];function _6(t){if(t.has("decorators")&&t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){let e=t.get("pipelineOperator").proposal;if(!Gy.includes(e)){let r=Gy.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(e==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=t.get("pipelineOperator").topicToken;if(!Ky.includes(r)){let s=Ky.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}}}if(t.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(t.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead.");if(t.has("deprecatedImportAssert")?console.warn("`deprecatedImportAssert` has been removed in Babel 8, please use import attributes instead."):t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&console.warn("The 'importAttributes' plugin has been removed in Babel 8. Please migrate any usage of `assert`-style attributes to `with`."),t.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(t.has("optionalChainingAssign")&&t.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");if(t.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(t.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}var ox={estree:x8,jsx:e6,flow:X8,typescript:I6,v8intrinsic:O6,placeholders:M6},j6=Object.keys(ox),ux=class extends F6{constructor(e,r,s){let n=g8(e);super(n,r),this.options=n,this.initializeScopes(),this.plugins=s,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let i=0;n.allowAwaitOutsideFunction&&(i|=1),n.allowReturnOutsideFunction&&(i|=2),n.allowImportExportEverywhere&&(i|=8),n.allowSuperOutsideMethod&&(i|=16),n.allowUndeclaredExports&&(i|=64),n.allowNewTargetOutsideFunction&&(i|=4),n.allowYieldOutsideFunction&&(i|=32),n.ranges&&(i|=128),n.locations===!0&&(i|=256),n.tokens&&(i|=512),n.createImportExpressions&&(i|=1024),n.createParenthesizedExpressions&&(i|=2048),n.errorRecovery&&(i|=4096),n.attachComment&&(i|=8192),n.annexB&&(i|=16384),this.optionFlags=i}getScopeHandler(){return Zd}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();this.nextToken(),e.errors=[];let s=this.parseTopLevel(e,r);return s.errors=this.state.errors,s.comments.length=this.state.commentsLen,s}};function lx(t,e){if(e?.sourceType==="unambiguous"){e={...e};try{e.sourceType="module";let r=Eo(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Eo(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",Eo(e,t).parse()}catch{}throw r}}else return Eo(e,t).parse()}function cx(t,e){let r=Eo(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function R6(t){let e={};for(let r of Object.keys(t))e[r]=H1(t[r]);return e}R6(E8);function Eo(t,e){let r=ux,s=new Map;if(t?.plugins){for(let n of t.plugins){let i,o;typeof n=="string"?i=n:[i,o]=n,s.has(i)||s.set(i,o||{})}_6(s),r=q6(s)}return new r(t,e,s)}var Xy=new Map;function q6(t){let e=[];for(let n of j6)t.has(n)&&e.push(n);let r=e.join("|"),s=Xy.get(r);if(!s){s=ux;for(let n of e)s=ox[n](s);Xy.set(r,s)}return s}function px(t){return(e,r,s)=>{if(r===!1)return!1;let n=!!s?.backwards,{length:i}=e,o=r;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var U6=px(" "),z6=px(/[^\n\r]/);function V6(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var H6=V6,Yy=t=>t===`
|
|
37
|
-
`||t==="\r"||t==="\u2028"||t==="\u2029";function W6(t,e,r){if(e===!1)return!1;let s=!!r?.backwards,n=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&n===`
|
|
38
|
-
`)return e-2;if(Yy(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
|
|
39
|
-
`)return e+2;if(Yy(n))return e+1}return e}var J6=W6;function G6(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?z6(t,e):e}var K6=G6;function X6(t,e){let r=null,s=e;for(;s!==r;)r=s,s=U6(t,s),s=H6(t,s),s=K6(t,s),s=J6(t,s);return s}var Y6=X6;function Q6(t){let e=[];for(let r of t)try{return r()}catch(s){e.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:e})}function Z6(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
40
|
-
`);return e===-1?t:t.slice(0,e)}var hx=Z6,e9=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},t9=qd("findLast",function(){if(Array.isArray(this))return e9}),r9=t9,dx=Symbol.for("comments");function s9(t){return this[t<0?this.length+t:t]}var n9=qd("at",function(){if(Array.isArray(this)||typeof this=="string")return s9}),i9=n9;function Ec(t){let e=new Set(t);return r=>e.has(r?.type)}function ef(t){return t.range?.[1]??t.end}function Qr(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(Qr(r),e):e}var a9=5,o9=8,u9=8,Qy=t=>e=>e.label?$r(e.label):Qr(e)+t,l9=t=>t.__contentEnd??ef(t),fx=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],c9=new Map([["BreakStatement",Qy(a9)],["ContinueStatement",Qy(o9)],["DebuggerStatement",t=>Qr(t)+u9],["VariableDeclaration",t=>$r(i9(0,t.declarations,-1))],...fx.map(t=>[t,l9])]),p9=Ec(fx);function $r(t){let{type:e}=t;return e==="IfStatement"?$r(t.alternate??t.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?$r(t.body):c9.get(e)?.(t)??ef(t)}var tf=Ec(["Block","CommentBlock","MultiLine"]),h9=Ec(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function rf(t,e,r){if(!t.has(e)){let s=r(e);t.set(e,s)}return t.get(e)}var d9=new WeakMap;function f9(t){return rf(d9,t,e=>tf(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value))}function m9(t){return Zi(0,t,/[^\n]/g," ")}var y9=m9;function D9(t,e){for(let r of e){let s=Qr(r),n=$r(r);t=t.slice(0,s)+y9(t.slice(s,n))+t.slice(n)}return t}var g9=new WeakMap;function x9(t){let e=t[dx];return rf(g9,e,r=>D9(t.originalText,r))}function b9(t){if(!tf(t))return[];if(!t.value.includes(`
|
|
41
|
-
`))return[];let e=[];for(let r of`*${t.value}*`.split(`
|
|
42
|
-
`)){if(r=r.trimStart(),!r.startsWith("*"))return[];e.push(r)}return e}var mx=new WeakMap;function E9(t){return rf(mx,t,b9)}function C9(t){mx.delete(t)}function Zy(t){return E9(t).length>0}function A9(t){if(t.length<2)return;let e;for(let r=t.length-1;r>=0;r--){let s=t[r];if(e&&$r(s)===Qr(e)&&Zy(s)&&Zy(e)&&(t.splice(r+1,1),s.value+="*//*"+e.value,s.range=[Qr(s),$r(e)],C9(s)),!h9(s)&&!tf(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}function v9(t){return t!==null&&typeof t=="object"}var T9=v9,Ya=null;function Po(t){if(Ya!==null&&typeof Ya.property){let e=Ya;return Ya=Po.prototype=null,e}return Ya=Po.prototype=t??Object.create(null),new Po}var F9=10;for(let t=0;t<=F9;t++)Po();function w9(t){return Po(t)}function S9(t,e="type"){w9(t);function r(s){let n=s[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var k9=S9,X=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],P9={ArrayExpression:X[0],AssignmentExpression:X[1],BinaryExpression:X[1],InterpreterDirective:[],Directive:X[2],DirectiveLiteral:[],BlockStatement:X[3],BreakStatement:X[4],CallExpression:X[5],CatchClause:["param","body"],ConditionalExpression:X[6],ContinueStatement:X[4],DebuggerStatement:[],DoWhileStatement:X[7],EmptyStatement:[],ExpressionStatement:X[8],File:["program"],ForInStatement:X[9],ForStatement:["init","test","update","body"],FunctionDeclaration:X[10],FunctionExpression:X[10],Identifier:["typeAnnotation","decorators"],IfStatement:X[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:X[1],MemberExpression:X[11],NewExpression:X[5],Program:X[3],ObjectExpression:X[12],ObjectMethod:X[13],ObjectProperty:X[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:X[15],SequenceExpression:X[16],ParenthesizedExpression:X[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:X[15],TryStatement:["block","handler","finalizer"],UnaryExpression:X[15],UpdateExpression:X[15],VariableDeclaration:["declarations"],VariableDeclarator:X[17],WhileStatement:X[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:X[18],ClassExpression:X[19],ClassDeclaration:X[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:X[20],ExportSpecifier:["local","exported"],ForOfStatement:X[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:X[21],ImportNamespaceSpecifier:X[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:X[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:X[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:X[15],AwaitExpression:X[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:X[22],OptionalMemberExpression:X[11],OptionalCallExpression:X[5],ClassProperty:X[23],ClassPrivateProperty:X[23],ClassPrivateMethod:X[13],PrivateName:X[24],StaticBlock:X[18],ImportAttribute:X[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:X[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:X[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:X[28],DeclareModule:X[29],DeclareModuleExports:X[30],DeclareTypeAlias:X[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:X[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:X[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:X[32],GenericTypeAnnotation:X[27],InferredPredicate:[],InterfaceExtends:X[27],InterfaceDeclaration:X[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:X[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:X[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:X[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:X[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:X[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:X[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:X[31],TypeAnnotation:X[30],TypeCastExpression:X[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:X[37],TypeParameterInstantiation:X[37],UnionTypeAnnotation:X[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:X[29],EnumBooleanBody:X[38],EnumNumberBody:X[38],EnumStringBody:X[38],EnumSymbolBody:X[38],EnumBooleanMember:X[17],EnumNumberMember:X[17],EnumStringMember:X[17],EnumDefaultedMember:X[24],IndexedAccessType:X[39],OptionalIndexedAccessType:X[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:X[8],JSXSpreadChild:X[8],JSXIdentifier:[],JSXMemberExpression:X[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:X[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:X[40],Decorator:X[8],DoExpression:X[18],ExportDefaultSpecifier:X[22],ModuleExpression:X[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:X[41],TSDeclareMethod:X[42],TSQualifiedName:X[1],TSCallSignatureDeclaration:X[43],TSConstructSignatureDeclaration:X[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:X[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:X[43],TSConstructorType:X[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:X[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:X[38],TSArrayType:X[26],TSTupleType:X[35],TSOptionalType:X[30],TSRestType:X[30],TSNamedTupleMember:["label","elementType"],TSUnionType:X[33],TSIntersectionType:X[33],TSConditionalType:X[45],TSInferType:X[46],TSParenthesizedType:X[30],TSTypeOperator:X[30],TSIndexedAccessType:X[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:X[47],TSClassImplements:X[48],TSInterfaceHeritage:X[48],TSInterfaceDeclaration:X[28],TSInterfaceBody:X[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:X[48],TSAsExpression:X[36],TSSatisfiesExpression:X[36],TSTypeAssertion:X[36],TSEnumBody:X[38],TSEnumDeclaration:X[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:X[29],TSModuleBlock:X[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:X[8],TSNonNullExpression:X[8],TSExportAssignment:X[8],TSNamespaceExportDeclaration:X[24],TSTypeAnnotation:X[30],TSTypeParameterInstantiation:X[37],TSTypeParameterDeclaration:X[37],TSTypeParameter:["name","constraint","default"],ChainExpression:X[8],Literal:[],MethodDefinition:X[14],PrivateIdentifier:[],Property:X[25],PropertyDefinition:X[23],AccessorProperty:X[40],TSAbstractAccessorProperty:X[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:X[25],TSAbstractPropertyDefinition:X[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:X[8],AsExpression:X[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:X[32],ConditionalTypeAnnotation:X[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:X[29],DeclareHook:X[24],DeclareNamespace:X[29],EnumBigIntBody:X[38],EnumBigIntMember:X[17],EnumBody:X[38],HookDeclaration:X[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:X[46],KeyofTypeAnnotation:X[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:X[24],MatchExpression:X[50],MatchExpressionCase:X[51],MatchIdentifierPattern:X[24],MatchInstanceObjectPattern:X[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:X[47],MatchMemberPattern:["base","property"],MatchObjectPattern:X[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:X[15],MatchStatement:X[50],MatchStatementCase:X[51],MatchUnaryPattern:X[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:X[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:X[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:X[12],SatisfiesExpression:X[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:X[30],TypePredicate:X[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:X[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:X[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:X[25],NGRoot:X[53],JsExpressionRoot:X[53],JsonRoot:X[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:X[30],TSJSDocNonNullableType:X[30]},I9=k9(P9),B9=I9;function Il(t,e){if(!T9(t))return t;if(Array.isArray(t)){for(let s=0;s<t.length;s++)t[s]=Il(t[s],e);return t}if(e.onEnter){let s=e.onEnter(t)??t;if(s!==t)return Il(s,e);t=s}let r=B9(t);for(let s=0;s<r.length;s++)t[r[s]]=Il(t[r[s]],e);return e.onLeave&&(t=e.onLeave(t)||t),t}var N9=Il;Ec(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function L9(t,e){let{text:r,astType:s}=e,{comments:n}=t;A9(n);let i=t.type==="File"?t.program:t;i.interpreter&&(n.unshift(i.interpreter),delete i.interpreter),t.hashbang&&((s==="oxc-ts"||s==="yuku-js"||s==="yuku-ts")&&n.unshift(t.hashbang),delete t.hashbang),t.type==="Program"&&(t.range=[0,r.length]);let o;return t=N9(t,{onEnter(u){switch($9(u,n,r),u.type){case"ParenthesizedExpression":{let{expression:c}=u,d=Qr(u);if(c.type==="TypeCastExpression")return c.range=[d,$r(u)],c;let p=!1;if(s!=="oxc-ts"){if(!o){o=[];for(let D of n)f9(D)&&o.push($r(D))}let f=r9(0,o,D=>D<=d);p=f&&r.slice(f,d).trim().length===0}return p?void 0:(c.extra={...c.extra,parenthesized:!0},c)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(s==="flow"||s==="hermes"||s==="espree"||s==="typescript"||s==="oxc-ts"||s==="yuku-ts"){let c=Qr(u)+1,d=$r(u)-(u.tail?1:2);u.range=[c,d]}break;case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":t.extra={...t.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"TupleTypeAnnotation":u.types&&!u.elementTypes&&(u.elementTypes=u.types);break;case"ImportDeclaration":s==="hermes"&&u.assertions&&!u.attributes&&(u.attributes=u.assertions,delete u.assertions);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(yx(u))return vh(u);break}}}),t}function yx(t){return t.type==="LogicalExpression"&&t.right.type==="LogicalExpression"&&t.operator===t.right.operator}function vh(t){return yx(t)?vh({type:"LogicalExpression",operator:t.operator,left:vh({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[Qr(t.left),$r(t.right.left)]}),right:t.right.right,range:[Qr(t),$r(t)]}):t}function $9(t,e,r){if(!p9(t))return;let s=ef(t);if(r[s-1]!==";")return;let n=x9({[dx]:e,originalText:r});s-=1;let i=n.slice(Qr(t),s),o=i.trimEnd();t.__contentEnd=s-(i.length-o.length)}var M9=L9;function O9(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Dx=O9,e0="Unexpected parseExpression() input: ";function _9(t){let{message:e,loc:r,reasonCode:s}=t;if(!r)return t;let{line:n,column:i}=r,o=t;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",o=void 0);let u=` (${n}:${i})`;return e.endsWith(u)&&(e=e.slice(0,-u.length)),e.startsWith(e0)&&(e=e.slice(e0.length)),Dx(e,{loc:{start:{line:n,column:i+1}},cause:o})}var gx=_9,j9=/\*\/$/,R9=/^\/\*\*?/,q9=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,U9=/(^|\s+)\/\/([^\n\r]*)/g,t0=/^(\r?\n)+/,z9=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,r0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,V9=/(\r?\n|^) *\* ?/g,H9=[];function W9(t){let e=t.match(q9);return e?e[0].trimStart():""}function J9(t){t=Zi(0,t.replace(R9,"").replace(j9,""),V9,"$1");let e="";for(;e!==t;)e=t,t=Zi(0,t,z9,`
|
|
43
|
-
$1 $2
|
|
44
|
-
`);t=t.replace(t0,"").trimEnd();let r=Object.create(null),s=Zi(0,t,r0,"").replace(t0,"").trimEnd(),n;for(;n=r0.exec(t);){let i=Zi(0,n[2],U9,"");if(typeof r[n[1]]=="string"||Array.isArray(r[n[1]])){let o=r[n[1]];r[n[1]]=[...H9,...Array.isArray(o)?o:[o],i]}else r[n[1]]=i}return{comments:s,pragmas:r}}var G9=["noformat","noprettier"],K9=["format","prettier"];function xx(t){let e=hx(t);e&&(t=t.slice(e.length+1));let r=W9(t),{pragmas:s,comments:n}=J9(r);return{shebang:e,text:t,pragmas:s,comments:n}}function X9(t){let{pragmas:e}=xx(t);return K9.some(r=>Ud(e,r))}function Y9(t){let{pragmas:e}=xx(t);return G9.some(r=>Ud(e,r))}function Q9(t){return t=typeof t=="function"?{parse:t}:t,{astFormat:"estree",hasPragma:X9,hasIgnorePragma:Y9,locStart:Qr,locEnd:$r,...t}}var cu=Q9,sf="module",bx="commonjs";function Z9(t){if(typeof t=="string"){if(t=t.toLowerCase(),/\.(?:mjs|mts)$/i.test(t))return sf;if(/\.(?:cjs|cts)$/i.test(t))return bx}}function eI(t){let{type:e="JsExpressionRoot",expression:r,comments:s=r?.comments??[],text:n,rootMarker:i}=t,o={type:e,comments:s,range:[0,n.length],rootMarker:i};return r&&(delete r.comments,o.node=r),o}var Ex=eI,Da=t=>cu(iI(t)),tI={sourceType:sf,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions",["partialApplication",{version:"2018-07"}],"decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},s0="v8intrinsic",n0=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Qs=(t,e=tI)=>({...e,plugins:[...e.plugins,...t]}),rI=/@(?:no)?flow\b/;function sI(t,e){if(e?.endsWith(".js.flow"))return!0;let r=hx(t);r&&(t=t.slice(r.length));let s=Y6(t,0);return s!==!1&&(t=t.slice(0,s)),rI.test(t)}function nI(t,e,r){let s=t(e,r),n=s.errors.find(i=>!oI.has(i.reasonCode));if(n)throw n;return s}function iI({isExpression:t=!1,optionsCombinations:e}){return(r,s={})=>{let{filepath:n}=s;if(typeof n!="string"&&(n=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&sI(r,n))return s.parser="babel-flow",Ax.parse(r,s);let i=e,o=s.__babelSourceType??Z9(n);o&&o!==sf&&(i=i.map(p=>({...p,sourceType:o,...o===bx?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let u=/%[A-Z]/.test(r);r.includes("|>")?i=(u?[...n0,s0]:n0).flatMap(p=>i.map(f=>Qs([p],f))):u&&(i=i.map(p=>Qs([s0],p)));let c=t?cx:lx,d;try{d=Q6(i.map(p=>()=>nI(c,r,p)))}catch({errors:[p]}){throw gx(p)}return t&&(d=Ex({expression:d,text:r,rootMarker:s.rootMarker})),M9(d,{text:r})}}var aI=["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ParamDupe","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","PatternIsOptional","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","DeclarationMissingInitializer","DecoratorAbstractMethod"],oI=new Set(aI),Cx=[Qs(["jsx"])],i0=Da({optionsCombinations:Cx}),a0=Da({optionsCombinations:[Qs(["jsx","typescript"]),Qs(["typescript"])]}),o0=Da({isExpression:!0,optionsCombinations:[Qs(["jsx"])]}),u0=Da({isExpression:!0,optionsCombinations:[Qs(["typescript"])]}),Ax=Da({optionsCombinations:[Qs(["jsx",["flow",{all:!0}],"flowComments"])]}),uI=Da({optionsCombinations:Cx.map(t=>Qs(["estree"],t))}),vx={};Rd(vx,{json:()=>pI,"json-stringify":()=>fI,json5:()=>hI,jsonc:()=>dI});function lI(t){return Array.isArray(t)&&t.length>0}var Tx=lI,Fx={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function cI(t){let e=lx(t,Fx),{program:r}=e;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return{comments:e.comments}}function Cc(t,e={}){let{allowComments:r=!0,allowEmpty:s=!1}=e,n,i;try{n=cx(t,Fx),i=n.comments}catch(o){if(s&&o.code==="BABEL_PARSER_SYNTAX_ERROR"&&o.reasonCode==="ParseExpressionEmptyInput")try{({comments:i}=cI(t))}catch{}if(!i)throw gx(o)}if(!r&&Tx(i))throw Tn(i[0],"Comment");return(!s||n)&&Hi(n),n=Ex({type:"JsonRoot",expression:n,comments:i,text:t}),n}function Tn(t,e){let[r,s]=[t.loc.start,t.loc.end].map(({line:n,column:i})=>({line:n,column:i+1}));return Dx(`${e} is not allowed in JSON.`,{loc:{start:r,end:s}})}function Hi(t){switch(t.type){case"ArrayExpression":for(let e of t.elements)e!==null&&Hi(e);return;case"ObjectExpression":for(let e of t.properties)Hi(e);return;case"ObjectProperty":if(t.computed)throw Tn(t.key,"Computed key");if(t.shorthand)throw Tn(t.key,"Shorthand property");t.key.type!=="Identifier"&&Hi(t.key),Hi(t.value);return;case"UnaryExpression":{let{operator:e,argument:r}=t;if(e!=="+"&&e!=="-")throw Tn(t,`Operator '${t.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw Tn(r,`Operator '${e}' before '${r.type}'`)}case"Identifier":if(t.name!=="Infinity"&&t.name!=="NaN"&&t.name!=="undefined")throw Tn(t,`Identifier '${t.name}'`);return;case"TemplateLiteral":if(Tx(t.expressions))throw Tn(t.expressions[0],"'TemplateLiteral' with expression");for(let e of t.quasis)Hi(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Tn(t,`'${t.type}'`)}}var pI=cu({parse:t=>Cc(t),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),hI=cu(t=>Cc(t)),dI=cu(t=>Cc(t,{allowEmpty:!0})),fI=cu({parse:t=>Cc(t,{allowComments:!1}),astFormat:"estree-json"}),wx={...U1,...vx};const _p=Object.freeze(Object.defineProperty({__proto__:null,default:q1,parsers:wx},Symbol.toStringTag,{value:"Module"}));var mI=Object.defineProperty,nf=(t,e)=>{for(var r in e)mI(t,r,{get:e[r],enumerable:!0})},Sx={};nf(Sx,{languages:()=>aC,options:()=>nC,printers:()=>iC});var yI=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",aliases:["typescriptreact"],codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],kx={};nf(kx,{estree:()=>tC});function DI(t){return Array.isArray(t)&&t.length>0}var pt=DI,gI=()=>{},xI=gI;function Ne(t){let e=new Set(t);return r=>e.has(r?.type)}var af=(t,e)=>(r,s,...n)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,n);function bI(t){return this[t<0?this.length+t:t]}var EI=af("at",function(){if(Array.isArray(this)||typeof this=="string")return bI}),Ye=EI;function ss(t,e,r){if(!t.has(e)){let s=r(e);t.set(e,s)}return t.get(e)}function CI(t){let e=[];return t.this&&e.push(t.this),e.push(...t.params),t.rest&&e.push(t.rest),e}var AI=new WeakMap;function pr(t){return ss(AI,t,CI)}function vI(t,e){let{node:r}=t,s=0,n=()=>e(t,s++);r.this&&t.call(n,"this"),t.each(n,"params"),r.rest&&t.call(n,"rest")}function TI(t){if(t.rest)return!0;let e=pr(t);return Ye(0,e,-1)?.type==="RestElement"}var FI=t=>t?.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const";function of({node:t,parent:e}){return t?.type!=="EmptyStatement"?!1:e.type==="IfStatement"?e.consequent===t||e.alternate===t:e.type==="DoWhileStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="ForStatement"||e.type==="LabeledStatement"||e.type==="WithStatement"||e.type==="WhileStatement"?e.body===t:!1}function ga(t){return t.method&&t.kind==="init"||t.kind==="get"||t.kind==="set"}var Px=t=>Number.isSafeInteger(t)&&t>=0;function Ac(t){return t.range?.[1]??t.end}function Re(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(Re(r),e):e}var wI=5,SI=8,kI=8,l0=t=>e=>e.label?Le(e.label):Re(e)+t,PI=t=>t.__contentEnd??Ac(t),Ix=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],II=new Map([["BreakStatement",l0(wI)],["ContinueStatement",l0(SI)],["DebuggerStatement",t=>Re(t)+kI],["VariableDeclaration",t=>Le(Ye(0,t.declarations,-1))],...Ix.map(t=>[t,PI])]),BI=Ne(Ix),Th=t=>{if(BI(t)&&t.__contentEnd)return!0;let{type:e}=t;return e==="BreakStatement"||e==="ContinueStatement"||e==="DebuggerStatement"||e==="VariableDeclaration"?!0:e==="IfStatement"?Th(t.alternate??t.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?Th(t.body):!1};function Le(t){let{type:e}=t;return e==="IfStatement"?Le(t.alternate??t.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?Le(t.body):II.get(e)?.(t)??Ac(t)}function vc(t,e){let r=Re(t);return Px(r)&&r===Re(e)}function NI(t,e){let r=Le(t);return Px(r)&&r===Le(e)}function LI(t,e){return vc(t,e)&&NI(t,e)}function Mr(t){return t.extra?.raw??t.raw}function $I(t){return t.type==="BigIntLiteral"||t.type==="Literal"&&!!t.bigint}function MI(t){return t.type==="BooleanLiteral"||t.type==="Literal"&&typeof t.value=="boolean"}function Ps(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function Bx(t){return t.type==="RegExpLiteral"||t.type==="Literal"&&!!t.regex}function _t(t){return t?.type==="StringLiteral"||t?.type==="Literal"&&typeof t.value=="string"}var us=Ne(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),OI=Ne(["SatisfiesExpression","TSSatisfiesExpression"]),jr=Ne(["TSUnionType","UnionTypeAnnotation"]),pu=Ne(["TSIntersectionType","IntersectionTypeAnnotation"]),uf=Ne(["TupleTypeAnnotation","TSTupleType"]),Nn=Ne(["TSConditionalType","ConditionalTypeAnnotation"]),Nx=Ne(["TSTypeAliasDeclaration","TypeAlias"]),ua=Ne(["ReturnStatement","ThrowStatement"]),_I=Ne(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),er=Ne(["ArrayExpression"]),ps=Ne(["ObjectExpression"]),lf=Ne(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Ln=Ne(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Wo=Ne(["FunctionExpression","ArrowFunctionExpression"]),zt=Ne(["JSXElement","JSXFragment"]),Zs=Ne(["BinaryExpression","LogicalExpression","NGPipeExpression"]),ut=Ne(["CallExpression","OptionalCallExpression"]),ct=Ne(["MemberExpression","OptionalMemberExpression"]),Jo=Ne(["CallExpression","OptionalCallExpression","NewExpression"]),la=Ne(["CallExpression","OptionalCallExpression","NewExpression","ImportExpression"]),Ai=Ne(["ChainExpression","TSNonNullExpression"]),jI=Ne(["TSArrayType","ArrayTypeAnnotation"]),RI=Ne(["TSTypeParameterInstantiation","TypeParameterInstantiation"]);function Fh(t){if(t.type!=="ImportSpecifier"&&t.type!=="ExportSpecifier")return!1;let{local:e,[t.type==="ImportSpecifier"?"imported":"exported"]:r}=t;return e.type!==r.type||!LI(e,r)?!1:_t(e)?e.value===r.value&&Mr(e)===Mr(r):e.type==="Identifier"?e.name===r.name:!1}var qI=Ne(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),UI=(t,[e])=>e?.type==="ComponentParameter"&&e.shorthand&&e.name===t&&e.local!==e.name||e?.type==="MatchObjectPatternProperty"&&e.shorthand&&e.key===t||e?.type==="ObjectProperty"&&e.shorthand&&e.key===t&&e.value!==e.key||e?.type==="Property"&&e.shorthand&&e.key===t&&!ga(e)&&e.value!==e.key||e?.type==="ImportSpecifier"&&Fh(e)&&e.local===t&&e.local!==e.imported||e?.type==="ExportSpecifier"&&Fh(e)&&e.exported===t&&e.local!==e.exported,zI=(t,[e])=>!!(t.type==="FunctionExpression"&&e.type==="MethodDefinition"&&e.value===t&&pr(t).length===0&&!t.returnType&&!pt(t.typeParameters)&&t.body),c0=(t,[e])=>e?.typeAnnotation===t&&FI(e),VI=(t,[e,...r])=>c0(t,[e])||e?.typeName===t&&c0(e,r);function HI(t,e){return qI(t)||UI(t,e)||zI(t,e)?!1:t.type==="EmptyStatement"?of({node:t,parent:e[0]}):!(VI(t,e)||t.type==="TSTypeAnnotation"&&e[0].type==="TSPropertySignature")}var WI=HI;function JI(t){let e=t.type||t.kind||"(unknown type)",r=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),e+(r?" "+r:"")}function cf(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=JI(t)}function Pt(t,e){e.leading=!0,e.trailing=!1,cf(t,e)}function Cr(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),cf(t,e)}function mt(t,e){e.leading=!1,e.trailing=!0,cf(t,e)}function pf(t){return(e,r,s)=>{if(r===!1)return!1;let n=!!s?.backwards,{length:i}=e,o=r;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var ca=pf(" "),GI=pf(",; "),KI=pf(/[^\n\r]/);function XI(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var hf=XI,p0=t=>t===`
|
|
45
|
-
`||t==="\r"||t==="\u2028"||t==="\u2029";function YI(t,e,r){if(e===!1)return!1;let s=!!r?.backwards,n=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&n===`
|
|
46
|
-
`)return e-2;if(p0(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
|
|
47
|
-
`)return e+2;if(p0(n))return e+1}return e}var pa=YI;function QI(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?KI(t,e):e}var df=QI;function ZI(t,e){let r=null,s=e;for(;s!==r;)r=s,s=ca(t,s),s=hf(t,s),s=df(t,s),s=pa(t,s);return s}var Tc=ZI;function eB(t,e){let r=Tc(t,e);return r===!1?"":t.charAt(r)}var ws=eB;function tB(t,e,r={}){let s=ca(t,r.backwards?e-1:e,r),n=pa(t,s,r);return s!==n}var Ot=tB;function rB(t,e,r){for(let s=e;s<r;++s)if(t.charAt(s)===`
|
|
48
|
-
`)return!0;return!1}var Ar=rB,sB=new WeakMap;function nB(t){let e;return t.type==="ImportExpression"||t.type==="TSImportType"?(e=[t.source],t.options&&e.push(t.options)):t.type==="TSExternalModuleReference"?e=[t.expression]:e=t.arguments,e}function ns(t){return ss(sB,t,nB)}function wh(t,e){let{node:r}=t;r.type==="ImportExpression"||r.type==="TSImportType"?(t.call(()=>e(t,0),"source"),r.options&&t.call(()=>e(t,1),"options")):r.type==="TSExternalModuleReference"?t.call(()=>e(t,0),"expression"):t.each(e,"arguments")}function h0(t,e){if(t.type==="ImportExpression"||t.type==="TSImportType"){if(e===0||e===(t.options?-2:-1))return["source"];if(t.options&&(e===1||e===-1))return["options"];throw new RangeError("Invalid argument index")}if(t.type==="TSExternalModuleReference"){if(e===0||e===-1)return["expression"]}else if(e<0&&(e=t.arguments.length+e),e>=0&&e<t.arguments.length)return["arguments",e];throw new RangeError("Invalid argument index")}var iB=Symbol.for("comments"),aB=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},oB=af("replaceAll",function(){if(typeof this=="string")return aB}),qt=oB;function uB(t){return qt(0,t,/[^\n]/g," ")}var lB=uB;function cB(t,e){for(let r of e){let s=Re(r),n=Le(r);t=t.slice(0,s)+lB(t.slice(s,n))+t.slice(n)}return t}var pB=new WeakMap;function is(t){let e=t[iB];return ss(pB,e,r=>cB(t.originalText,r))}function Lx(t,e){let r=Le(t)-1;if(e.originalText[r]===")")return r}function hB(t,e){if(Lx(t,e)===void 0)return;let r=is(e),s=Le(t.typeArguments??t.callee),n=r.indexOf("(",s);if(n!==-1)return n}function dB(t,e,r){let s=Lx(t,r);if(s===void 0||Le(e)>s)return!1;let n=hB(t,r);return n===void 0?!1:Re(e)>n}var hs=Ne(["Block","CommentBlock","MultiLine"]),Rn=Ne(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function qn(t){return t?.type==="ObjectProperty"||t?.type==="Property"&&!ga(t)}function hi(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}var fB=new WeakMap;function ff(t){return ss(fB,t,e=>hs(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value))}function mf({comment:t,enclosingNode:e,followingNode:r,options:s}){if((e?.type==="ForInStatement"||e?.type==="ForOfStatement"||e?.type==="ForStatement")&&r&&r===e.body){let n=is(s).lastIndexOf(")",Re(r));if(Re(t)>n)return Pt(r,t),!0}return!1}var $x=(t,e)=>hs(t)&&!Ar(e,Re(t),Le(t)),yf=(t,e)=>Rn(t)||$x(t,e);function Sh(t,e){t.type==="BlockStatement"?hu(t,e):Pt(t,e)}function hu(t,e){let r=(t.body||t.properties).find(({type:s})=>s!=="EmptyStatement");r?Pt(r,e):Cr(t,e)}function Df({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n,options:i}){return r?.type!=="IfStatement"||!s?!1:ws(n,Le(t))===")"?(mt(e,t),!0):s===r.consequent?(Pt(s,t),!0):e===r.consequent&&s===r.alternate?mB({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n,options:i}):!1}function mB({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n,options:i}){let o=is(i).indexOf("else",Le(r.consequent));return Re(t)>=o?(Pt(s,t),!0):e.type!=="BlockStatement"&&yf(t,n)&&!Ar(n,Le(e),Re(t))?(mt(e,t),!0):(Cr(r,t),!0)}function gf({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n}){return r?.type==="SwitchStatement"&&r.cases.length===0&&!s&&e===r.discriminant&&ws(n,Le(t))==="}"?(Cr(r,t),!0):!1}function xf({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n}){return(r?.type==="WhileStatement"||r?.type==="WithStatement")&&s?ws(n,Le(t))===")"?(mt(e,t),!0):r.body===s?(Pt(s,t),!0):!1:!1}function Mx(t,{comment:e,text:r,options:s}){if(jr(t)&&$x(e,r)&&!hi(e)){let n=is(s).slice(Le(e),Re(t));return/^[ \t]*$/.test(n)}return!1}function d0(t,e){return Pt(Mx(t,e)?t.types[0]:t,e.comment),!0}function yB(t){return[bf,Wx,_x,Ux,bB,Df,xf,gf,Ox,jx,mf,wB,SB,Ef,Vx,PB,Rx,zx,EB,OB,Cf,Af,Gx].some(e=>e(t))}function DB(t){return[bf,xB,Ux,_x,Vx,Df,xf,gf,Ox,jx,mf,zx,FB,kB,Ef,Hx,$B,MB,_B,Cf,qB,Jx,jB,Af].some(e=>e(t))}function gB(t){return[bf,Wx,Df,xf,gf,mf,Rx,Ef,Hx,Cf,vB,AB,NB,Jx,Af,Gx].some(e=>e(t))}function xB({comment:t,followingNode:e}){return e&&ff(t)?(Pt(e,t),!0):!1}function Ox({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!s?!1:r.type==="CatchClause"&&e?(mt(e,t),!0):s.type==="BlockStatement"?(hu(s,t),!0):s.type==="TryStatement"?(Sh(s.finalizer,t),!0):s.type==="CatchClause"?(Sh(s.body,t),!0):!1}function bB({comment:t,enclosingNode:e,followingNode:r}){return ct(e)&&r?.type==="Identifier"?(Pt(e,t),!0):!1}function EB({comment:t,enclosingNode:e,followingNode:r,options:s}){return!s.experimentalTernaries||!(e?.type==="ConditionalExpression"||Nn(e))?!1:r?.type==="ConditionalExpression"||Nn(r)?(Cr(e,t),!0):!1}function _x({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n,options:i}){let o=e&&!Ar(n,Le(e),Re(t));return(!e||!o)&&(r?.type==="ConditionalExpression"||Nn(r))&&s?i.experimentalTernaries&&r.alternate===s&&!(hs(t)&&!Ar(i.originalText,Re(t),Le(t)))?(Cr(r,t),!0):(Pt(s,t),!0):!1}var CB=Ne(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function jx({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){if(CB(r)){let{decorators:n}=r;if(pt(n)&&s?.type!=="Decorator")return mt(Ye(0,n,-1),t),!0;if(r.body&&s===r.body)return hu(r.body,t),!0;if(s){let{superClass:i}=r;if(i&&s===i&&e&&(e===r.id||e===r.typeParameters))return mt(e,t),!0;for(let o of["implements","extends","mixins"])if(r[o]&&s===r[o][0])return e&&(e===r.id||e===r.typeParameters||e===i)?mt(e,t):Cr(r,t,o),!0}}return!1}var f0=Ne(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function Rx({placement:t,comment:e,precedingNode:r,enclosingNode:s,followingNode:n,text:i}){return s&&r&&ws(i,Le(e))==="("&&(s.type==="Property"||s.type==="TSDeclareMethod"||s.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&s.key===r&&ws(i,Le(r))!==":"?(mt(r,e),!0):f0(s)&&!n&&t==="remaining"?(mt(ws(i,Le(e))==="("?r:s,e),!0):r?.type==="Decorator"&&f0(s)&&(Rn(e)||t==="ownLine")?(mt(r,e),!0):!1}var qx=Ne(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function AB({comment:t,precedingNode:e,enclosingNode:r,text:s}){return ws(s,Le(t))!=="("?!1:e&&qx(r)?(mt(e,t),!0):!1}function vB({comment:t,enclosingNode:e,text:r}){if(e?.type!=="ArrowFunctionExpression")return!1;let s=Tc(r,Le(t));return s!==!1&&r.slice(s,s+2)==="=>"?(Cr(e,t,"commentBeforeArrow"),!0):!1}function m0(t,e,r){let s=Re(e),n=Le(t);if(s>=n)return!1;let i=Le(e),o=Re(t);if(i<=o)return!1;let u=is(r);return u.slice(0,Re(e)).trimEnd().endsWith("(")&&u.slice(Le(e)).trimStart().startsWith(")")}var TB=Ne(["ComponentDeclaration","DeclareComponent","ComponentTypeAnnotation"]);function bf({comment:t,enclosingNode:e,options:r}){if(!e)return!1;if(la(e)&&ns(e).length===0&&m0(e,t,r))return Cr(e,t),!0;let s=Kx(e)||TB(e)||e.type==="HookTypeAnnotation"?e:e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="Property"&&ga(e)?e.value:void 0;return s&&pr(s).length===0&&m0(s,t,r)?(Cr(s,t),!0):!1}function Ux({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n}){return e?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&s?.type!=="FunctionTypeParam"||e?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&s?.type!=="ComponentTypeParameter"||(e?.type==="Identifier"||e?.type==="AssignmentPattern"||e?.type==="ObjectPattern"||e?.type==="ArrayPattern"||e?.type==="RestElement"||e?.type==="TSParameterProperty")&&(Kx(r)||(r?.type==="TSAbstractMethodDefinition"||r?.type==="MethodDefinition")&&r.value.type==="TSEmptyBodyFunctionExpression")&&ws(n,Le(t))===")"||(e?.type==="ComponentParameter"||e?.type==="RestElement")&&(r?.type==="ComponentDeclaration"||r?.type==="DeclareComponent")&&ws(n,Le(t))===")"?(mt(e,t),!0):!hs(t)&&s?.type==="BlockStatement"&&qx(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===s&&Tc(n,Le(t))===Re(s)?(hu(s,t),!0):!1}function zx({comment:t,enclosingNode:e}){return e?.type==="LabeledStatement"?(Pt(e,t),!0):!1}function FB({comment:t,precedingNode:e,enclosingNode:r,options:s}){return Jo(r)&&r.callee===e&&r.arguments.length>0&&dB(r,t,s)?(Pt(r.arguments[0],t),!0):!1}function wB({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return jr(r)?(hi(t)&&(s.prettierIgnore=!0,t.unignore=!0),e?(mt(e,t),!0):!1):(jr(s)&&hi(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function SB({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return r&&r.type==="MatchOrPattern"?(hi(t)&&(s.prettierIgnore=!0,t.unignore=!0),e?(mt(e,t),!0):!1):(s&&s.type==="MatchOrPattern"&&hi(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function kB({comment:t,enclosingNode:e}){return qn(e)?(Pt(e,t),!0):!1}function Ef({comment:t,enclosingNode:e,ast:r,isLastComment:s}){return r?.body?.length===0?(s?Cr(r,t):Pt(r,t),!0):e?.type==="Program"&&e.body.length===0&&!pt(e.directives)?(s?Cr(e,t):Pt(e,t),!0):!1}function Vx({comment:t,precedingNode:e,enclosingNode:r,text:s}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Pt(r,t),!0;let n=e?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=e?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(n||i)&&Ot(s,Le(t))?(mt(e,t),!0):!1}function PB({comment:t,enclosingNode:e}){return e?.type==="AssignmentPattern"?(Pt(e,t),!0):!1}var IB=Ne(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),BB=Ne(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Hx(t){let{comment:e,enclosingNode:r,followingNode:s,options:n,placement:i}=t;if(IB(r)&&s&&i==="endOfLine"&&(BB(s)||hs(e)))return d0(s,t);if(Nx(r)&&s){let o=r.id,u=is(n).indexOf("=",Le(o));if(Re(e)>=u)return d0(s,t)}return!1}function NB({comment:t,enclosingNode:e,precedingNode:r,followingNode:s,text:n}){return!s&&(e?.type==="TSMethodSignature"||e?.type==="TSDeclareFunction"||e?.type==="TSAbstractMethodDefinition")&&(!r||r!==e.returnType)&&ws(n,Le(t))===";"?(mt(e,t),!0):!1}function Wx({comment:t,enclosingNode:e,followingNode:r}){if(hi(t)&&e?.type==="TSMappedType"&&r===e.key)return e.prettierIgnore=!0,t.unignore=!0,!0}function LB(t,e,r){let s=is(r).indexOf("[",Re(t));return Le(e)<s}function Cf({comment:t,enclosingNode:e,options:r}){if(e?.type==="TSMappedType"&&LB(e,t,r))return Cr(e,t),!0}function $B({comment:t,enclosingNode:e,followingNode:r}){return!e||e.type!=="SwitchCase"||e.test||!r||r!==e.consequent[0]?!1:(r.type==="BlockStatement"&&Rn(t)?hu(r,t):Cr(e,t),!0)}function MB({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return jr(e)&&(jI(r)&&!s||pu(r)||jr(r))?(mt(Ye(0,e.types,-1),t),!0):!1}function OB({comment:t,enclosingNode:e,precedingNode:r,followingNode:s}){if((e?.type==="ObjectPattern"||e?.type==="ArrayPattern")&&s?.type==="TSTypeAnnotation")return r?mt(r,t):Cr(e,t),!0}function _B({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:n}){return!s&&r?.type==="UnaryExpression"&&(e?.type==="LogicalExpression"||e?.type==="BinaryExpression")&&Ar(n,Re(r.argument),Re(e.right))&&yf(t,n)&&!Ar(n,Re(e.right),Re(t))?(mt(e.right,t),!0):!1}function jB({enclosingNode:t,followingNode:e,comment:r}){if(t&&(t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty")&&(jr(e)||pu(e)))return Pt(e,r),!0}function Af({enclosingNode:t,precedingNode:e,followingNode:r,comment:s,text:n}){if(us(t)&&e===t.expression&&!yf(s,n))return r?Pt(r,s):mt(t,s),!0}function RB(t,e,r){let s=is(r).lastIndexOf("=>",Re(e.body));return Le(t)<s}function qB({comment:t,enclosingNode:e,followingNode:r,precedingNode:s,options:n}){return e?.type!=="ArrowFunctionExpression"||!r||!s||RB(t,e,n)?!1:(Sh(r,t),!0)}function Jx({comment:t,enclosingNode:e,precedingNode:r,followingNode:s}){if(!s&&e&&r){if(e.type==="ExpressionStatement"&&e.expression===r)return mt(e,t),!0;let n=r.type==="SequenceExpression",i=r.type==="AssignmentExpression";if((n||i)&&(e.type==="ArrowFunctionExpression"&&e.body===r||e.type==="VariableDeclarator"&&e.init===r||e.type==="ReturnStatement"&&e.argument===r||e.type==="AssignmentExpression"&&e.right===r))return mt(n?Ye(0,r.expressions,-1):r.right,t),!0}return!1}function Gx(t){let{followingNode:e,comment:r}=t;return Mx(e,t)?(Pt(e.types[0],r),!0):!1}var Kx=Ne(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod","HookDeclaration"]),UB={endOfLine:DB,ownLine:yB,remaining:gB},zB=UB;function VB(t,{parser:e}){if(e==="flow"||e==="hermes"||e==="babel-flow")return t=qt(0,t,/[\s(]/g,""),t===""||t==="/*"||t==="/*::"}var HB=VB,Te={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Xx=(t,e)=>{if(typeof t=="function"&&(e=t,t=0),t||e)return(r,s,n)=>!(t&Te.Leading&&!r.leading||t&Te.Trailing&&!r.trailing||t&Te.Dangling&&(r.leading||r.trailing)||t&Te.Block&&!hs(r)||t&Te.Line&&!Rn(r)||t&Te.First&&s!==0||t&Te.Last&&s!==n.length-1||t&Te.PrettierIgnore&&!hi(r)||e&&!e(r))};function Ee(t,e,r){if(!pt(t?.comments))return!1;let s=Xx(e,r);return s?t.comments.some(s):!0}function Or(t,e,r){if(!Array.isArray(t?.comments))return[];let s=Xx(e,r);return s?t.comments.filter(s):t.comments}function Fc(t){return t?.prettierIgnore||Ee(t,Te.PrettierIgnore)}function Yx(t){let{node:e}=t;return(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression")&&(t.key==="callee"&&ut(t.parent)||t.key==="tag"&&t.parent.type==="TaggedTemplateExpression")}var WB=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((t,e)=>t.map(r=>[r,e])));function Vl(t){return WB.get(t)}var y0={"==":!0,"!=":!0,"===":!0,"!==":!0},sl={"*":!0,"/":!0,"%":!0},kh={">>":!0,">>>":!0,"<<":!0};function vf(t,e){return!(Vl(e)!==Vl(t)||t==="**"||y0[t]&&y0[e]||e==="%"&&sl[t]||t==="%"&&sl[e]||e!==t&&sl[e]&&sl[t]||kh[t]&&kh[e])}function JB(t){return!!kh[t]||t==="|"||t==="^"||t==="&"}function GB(t){return t.type==="LogicalExpression"&&t.operator==="??"}function ar(t,e){switch(t.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ar(t.left,e);case"MemberExpression":case"OptionalMemberExpression":return ar(t.object,e);case"TaggedTemplateExpression":return t.tag.type==="FunctionExpression"?!1:ar(t.tag,e);case"CallExpression":case"OptionalCallExpression":return t.callee.type==="FunctionExpression"?!1:ar(t.callee,e);case"ConditionalExpression":return ar(t.test,e);case"UpdateExpression":return!t.prefix&&ar(t.argument,e);case"BindExpression":return t.object&&ar(t.object,e);case"SequenceExpression":return ar(t.expressions[0],e);case"ChainExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ar(t.expression,e);default:return e(t)}}function KB(t){let{key:e,parent:r}=t;return e==="expression"&&r.type==="TSNonNullExpression"||e==="object"&&r.type==="MemberExpression"&&!r.optional||e==="callee"&&r.type==="CallExpression"&&!r.optional||e==="callee"&&r.type==="NewExpression"||e==="tag"&&r.type==="TaggedTemplateExpression"}var D0=t=>t.extra?.parenthesized,XB=Ne(["OptionalCallExpression","OptionalMemberExpression"]);function YB(t){let{node:e}=t,r=e;for(;r.type==="TSNonNullExpression";)if(r=r.expression,D0(r))return!1;return XB(r)?D0(e)?!0:!(t.key==="expression"&&t.parent.type==="TSNonNullExpression"):!1}function QB(t){return(t.node.type==="ChainExpression"||YB(t))&&KB(t)}function ZB(t){let{node:e}=t;if(e.type!=="Identifier")return!1;if(e.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.name))return!0;let{key:r,parent:s}=t;if(r==="left"&&(e.name==="async"&&!s.await||e.name==="let")&&s.type==="ForOfStatement")return!0;if(e.name==="let"){let n=t.findAncestor(i=>i.type==="ForOfStatement"||i.type==="ForInStatement")?.left;if(n&&ar(n,i=>i===e))return!0}if(r==="object"&&e.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let n=t.findAncestor(o=>o.type==="ExpressionStatement"||o.type==="ForStatement"||o.type==="ForInStatement"),i=n?n.type==="ExpressionStatement"?n.expression:n.type==="ForStatement"?n.init:n.left:void 0;if(i&&ar(i,o=>o===e))return!0}if(r==="expression")switch(e.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let n=t.findAncestor(i=>!us(i));if(n!==s&&n.type==="ExpressionStatement")return!0}}return!1}function eN(t){return t!==null&&typeof t=="object"}var Qx=eN;function*tN(t,e){let{getVisitorKeys:r,filter:s=()=>!0}=e,n=i=>Qx(i)&&s(i);for(let i of r(t)){let o=t[i];if(Array.isArray(o))for(let u of o)n(u)&&(yield u);else n(o)&&(yield o)}}function*rN(t,e){let r=[t];for(let s=0;s<r.length;s++){let n=r[s];for(let i of tN(n,e))yield i,r.push(i)}}function sN(t,{getVisitorKeys:e,predicate:r}){for(let s of rN(t,{getVisitorKeys:e}))if(r(s))return!0;return!1}var Qa=null;function Io(t){if(Qa!==null&&typeof Qa.property){let e=Qa;return Qa=Io.prototype=null,e}return Qa=Io.prototype=t??Object.create(null),new Io}var nN=10;for(let t=0;t<=nN;t++)Io();function iN(t){return Io(t)}function aN(t,e="type"){iN(t);function r(s){let n=s[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Zx=aN,Y=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],oN={ArrayExpression:Y[0],AssignmentExpression:Y[1],BinaryExpression:Y[1],InterpreterDirective:[],Directive:Y[2],DirectiveLiteral:[],BlockStatement:Y[3],BreakStatement:Y[4],CallExpression:Y[5],CatchClause:["param","body"],ConditionalExpression:Y[6],ContinueStatement:Y[4],DebuggerStatement:[],DoWhileStatement:Y[7],EmptyStatement:[],ExpressionStatement:Y[8],File:["program"],ForInStatement:Y[9],ForStatement:["init","test","update","body"],FunctionDeclaration:Y[10],FunctionExpression:Y[10],Identifier:["typeAnnotation","decorators"],IfStatement:Y[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:Y[1],MemberExpression:Y[11],NewExpression:Y[5],Program:Y[3],ObjectExpression:Y[12],ObjectMethod:Y[13],ObjectProperty:Y[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Y[15],SequenceExpression:Y[16],ParenthesizedExpression:Y[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:Y[15],TryStatement:["block","handler","finalizer"],UnaryExpression:Y[15],UpdateExpression:Y[15],VariableDeclaration:["declarations"],VariableDeclarator:Y[17],WhileStatement:Y[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:Y[18],ClassExpression:Y[19],ClassDeclaration:Y[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:Y[20],ExportSpecifier:["local","exported"],ForOfStatement:Y[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Y[21],ImportNamespaceSpecifier:Y[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:Y[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:Y[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:Y[15],AwaitExpression:Y[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:Y[22],OptionalMemberExpression:Y[11],OptionalCallExpression:Y[5],ClassProperty:Y[23],ClassPrivateProperty:Y[23],ClassPrivateMethod:Y[13],PrivateName:Y[24],StaticBlock:Y[18],ImportAttribute:Y[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:Y[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:Y[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:Y[28],DeclareModule:Y[29],DeclareModuleExports:Y[30],DeclareTypeAlias:Y[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:Y[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:Y[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Y[32],GenericTypeAnnotation:Y[27],InferredPredicate:[],InterfaceExtends:Y[27],InterfaceDeclaration:Y[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:Y[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:Y[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:Y[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Y[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:Y[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:Y[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:Y[31],TypeAnnotation:Y[30],TypeCastExpression:Y[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Y[37],TypeParameterInstantiation:Y[37],UnionTypeAnnotation:Y[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:Y[29],EnumBooleanBody:Y[38],EnumNumberBody:Y[38],EnumStringBody:Y[38],EnumSymbolBody:Y[38],EnumBooleanMember:Y[17],EnumNumberMember:Y[17],EnumStringMember:Y[17],EnumDefaultedMember:Y[24],IndexedAccessType:Y[39],OptionalIndexedAccessType:Y[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:Y[8],JSXSpreadChild:Y[8],JSXIdentifier:[],JSXMemberExpression:Y[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:Y[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:Y[40],Decorator:Y[8],DoExpression:Y[18],ExportDefaultSpecifier:Y[22],ModuleExpression:Y[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:Y[41],TSDeclareMethod:Y[42],TSQualifiedName:Y[1],TSCallSignatureDeclaration:Y[43],TSConstructSignatureDeclaration:Y[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:Y[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:Y[43],TSConstructorType:Y[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:Y[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:Y[38],TSArrayType:Y[26],TSTupleType:Y[35],TSOptionalType:Y[30],TSRestType:Y[30],TSNamedTupleMember:["label","elementType"],TSUnionType:Y[33],TSIntersectionType:Y[33],TSConditionalType:Y[45],TSInferType:Y[46],TSParenthesizedType:Y[30],TSTypeOperator:Y[30],TSIndexedAccessType:Y[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:Y[47],TSClassImplements:Y[48],TSInterfaceHeritage:Y[48],TSInterfaceDeclaration:Y[28],TSInterfaceBody:Y[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:Y[48],TSAsExpression:Y[36],TSSatisfiesExpression:Y[36],TSTypeAssertion:Y[36],TSEnumBody:Y[38],TSEnumDeclaration:Y[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:Y[29],TSModuleBlock:Y[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:Y[8],TSNonNullExpression:Y[8],TSExportAssignment:Y[8],TSNamespaceExportDeclaration:Y[24],TSTypeAnnotation:Y[30],TSTypeParameterInstantiation:Y[37],TSTypeParameterDeclaration:Y[37],TSTypeParameter:["name","constraint","default"],ChainExpression:Y[8],Literal:[],MethodDefinition:Y[14],PrivateIdentifier:[],Property:Y[25],PropertyDefinition:Y[23],AccessorProperty:Y[40],TSAbstractAccessorProperty:Y[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:Y[25],TSAbstractPropertyDefinition:Y[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:Y[8],AsExpression:Y[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Y[32],ConditionalTypeAnnotation:Y[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:Y[29],DeclareHook:Y[24],DeclareNamespace:Y[29],EnumBigIntBody:Y[38],EnumBigIntMember:Y[17],EnumBody:Y[38],HookDeclaration:Y[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:Y[46],KeyofTypeAnnotation:Y[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Y[24],MatchExpression:Y[50],MatchExpressionCase:Y[51],MatchIdentifierPattern:Y[24],MatchInstanceObjectPattern:Y[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:Y[47],MatchMemberPattern:["base","property"],MatchObjectPattern:Y[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Y[15],MatchStatement:Y[50],MatchStatementCase:Y[51],MatchUnaryPattern:Y[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:Y[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:Y[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:Y[12],SatisfiesExpression:Y[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:Y[30],TypePredicate:Y[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:Y[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:Y[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Y[25],NGRoot:Y[53],JsExpressionRoot:Y[53],JsonRoot:Y[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:Y[30],TSJSDocNonNullableType:Y[30]},uN=Zx(oN),eb=uN;function Ph(t,e){return e(t)||sN(t,{getVisitorKeys:eb,predicate:e})}function Tf(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||ut(t)||ct(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||us(t)||Ai(t)}function lN(t){return t.expressions?t.expressions[0]:t.left??t.test??t.callee??t.object??t.tag??t.argument??t.expression}function tb(t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function Xs(t,e){return zt(e)?Fc(e):Ee(e,Te.Leading,r=>Ot(t,Le(r)))}function cN(t,e){if(Xs(e.originalText,t)||Ee(t,Te.Leading,r=>Ar(e.originalText,Re(r),Le(r)))&&!zt(t))return!0;if(Tf(t)){let r=t,s;for(;s=lN(r);)if(r=s,Xs(e.originalText,r))return!0}return!1}var pN=new WeakMap;function rb(t,e){return ss(pN,t,r=>cN(r,e))}function Un(t){for(;Ai(t);)t=t.expression;return t}function hN(t,e,r){let{node:s,key:n,parent:i}=t;switch(i.type){case"ReturnStatement":case"ThrowStatement":if(dN(t,e))return!1;break;case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"){let o=Un(s);if(o.type==="ArrowFunctionExpression"||o.type==="AssignmentExpression"||o.type==="AwaitExpression"||o.type==="BinaryExpression"||o.type==="ConditionalExpression"||o.type==="LogicalExpression"||o.type==="NewExpression"||o.type==="ObjectExpression"||o.type==="SequenceExpression"||o.type==="TaggedTemplateExpression"||o.type==="UnaryExpression"||o.type==="UpdateExpression"||o.type==="YieldExpression"||o.type==="ClassExpression"&&pt(o.decorators))return!0}break;case"ExportDefaultDeclaration":if(sb(t,e,r))return!0;break;case"Decorator":if(n==="expression"&&!fN(s))return!0;break;case"TypeAnnotation":if(t.match(void 0,void 0,(o,u)=>u==="returnType"&&o.type==="ArrowFunctionExpression")&&!(s.type==="NullableTypeAnnotation"&&t.call(()=>r(t,e),"typeAnnotation"))&&mN(s))return!0;break;case"VariableDeclarator":if(n==="init"&&t.match(void 0,void 0,(o,u)=>u==="declarations"&&o.type==="VariableDeclaration",(o,u)=>u==="left"&&o.type==="ForInStatement"))return!0;break;case"TSInstantiationExpression":if(n==="expression"&&(s.type==="AwaitExpression"||s.type==="YieldExpression"))return!0;break}}function dN(t,e){let{key:r,parent:s}=t;if(!(r==="argument"&&ua(s)))return!1;let{node:n}=t;return!!((n.type==="SequenceExpression"||n.type==="AssignmentExpression")&&rb(n,e))}function sb(t,e,r){let{node:s,parent:n}=t;return s.type==="FunctionExpression"||s.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!r(t,e):!Tf(s)||n.type!=="ExportDefaultDeclaration"&&r(t,e)?!1:t.call(()=>sb(t,e,r),...tb(s))}function fN(t){return t.type==="ChainExpression"&&(t=t.expression),Ih(t)||ut(t)&&!t.optional&&Ih(t.callee)}function Ih(t){return t.type==="Identifier"?!0:ct(t)?!t.computed&&!t.optional&&t.property.type==="Identifier"&&Ih(t.object):!1}function mN(t){return Ph(t,e=>e.type==="ObjectTypeAnnotation"&&Ph(e,r=>r.type==="FunctionTypeAnnotation"))}function nb(t,e){if(t.isRoot)return!1;let{node:r,key:s,parent:n}=t;if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&gN(r)&&Co(t))return!0;if(yN(r))return!1;if(r.type==="Identifier")return ZB(t);if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let o=t.findAncestor(u=>u.type==="ExpressionStatement")?.expression;if(o&&ar(o,u=>u===r))return!0}if(r.type==="ObjectExpression"){let o=t.findAncestor(u=>u.type==="ArrowFunctionExpression")?.body;if(o&&o.type!=="SequenceExpression"&&o.type!=="AssignmentExpression"&&ar(o,u=>u===r))return!0}let i=hN(t,e,nb);if(typeof i=="boolean")return i;switch(r.type){case"UpdateExpression":if(n.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&n.operator==="+"||r.operator==="--"&&n.operator==="-");case"UnaryExpression":switch(n.type){case"UnaryExpression":return r.operator===n.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"BinaryExpression":return s==="left"&&r.type==="UnaryExpression"&&(n.operator==="in"||n.operator==="instanceof")?!0:s==="left"&&n.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(n.type==="UpdateExpression"||r.operator==="in"&&DN(t))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let o=t.grandparent;if(o.type==="BinaryExpression"&&o.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!us(r);case"ConditionalExpression":return us(r)||GB(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return s==="callee";case"ClassExpression":case"ClassDeclaration":return s==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"UnaryExpression":if(!Ee(r))return!0;break;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"AssignmentExpression":case"AssignmentPattern":return s==="left"&&(r.type==="TSTypeAssertion"||us(r));case"LogicalExpression":if(r.type==="LogicalExpression")return n.operator!==r.operator;case"BinaryExpression":{let{operator:o,type:u}=r;if(!o&&u!=="TSTypeAssertion")return!0;let c=Vl(o),d=n.operator,p=Vl(d);return!!(p>c||s==="right"&&p===c||p===c&&!vf(d,o)||p<c&&o==="%"&&(d==="+"||d==="-")||JB(d))}default:return!1}break;case"SequenceExpression":return n.type!=="ForStatement";case"YieldExpression":if(n.type==="AwaitExpression"||n.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return s==="test";case"BinaryExpression":return!(!r.argument&&n.operator==="|>");default:return!1}case"TSFunctionType":if(t.match(o=>o.type==="TSFunctionType",(o,u)=>u==="typeAnnotation"&&o.type==="TSTypeAnnotation",(o,u)=>u==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(s==="extendsType"&&Nn(r)&&n.type===r.type||s==="constraint"&&r.type==="TSConditionalType"&&n.type==="TSTypeParameter"||s==="typeAnnotation"&&r.type==="ConditionalTypeAnnotation"&&n.type==="TypeAnnotation"&&t.grandparent.type==="TypeParameter"&&t.grandparent.bound===n&&t.grandparent.usesExtendsBound||s==="checkType"&&Nn(n))return!0;if(s==="extendsType"&&n.type==="TSConditionalType"){let{typeAnnotation:o}=r.returnType||r.typeAnnotation;if(o.type==="TSTypePredicate"&&o.typeAnnotation&&(o=o.typeAnnotation.typeAnnotation),o.type==="TSInferType"&&o.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(jr(n)||pu(n))return!0;case"TSInferType":if(r.type==="TSInferType"){if(n.type==="TSRestType")return!1;if(s==="types"&&(n.type==="TSUnionType"||n.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return n.type==="TSArrayType"||n.type==="TSOptionalType"||n.type==="TSRestType"||s==="objectType"&&n.type==="TSIndexedAccessType"||n.type==="TSTypeOperator"||n.type==="TSTypeAnnotation"&&t.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return s==="objectType"&&n.type==="TSIndexedAccessType"||s==="elementType"&&n.type==="TSArrayType";case"TypeOperator":return n.type==="ArrayTypeAnnotation"||n.type==="NullableTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType")||n.type==="TypeOperator";case"TypeofTypeAnnotation":case"KeyofTypeAnnotation":return s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType")||s==="elementType"&&n.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return n.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return n.type==="TypeOperator"||n.type==="KeyofTypeAnnotation"||n.type==="ArrayTypeAnnotation"||n.type==="NullableTypeAnnotation"||n.type==="IntersectionTypeAnnotation"||n.type==="UnionTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":if(n.type==="ArrayTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType"))return!0;break;case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(t.match(void 0,(u,c)=>c==="typeAnnotation"&&u.type==="TypeAnnotation",(u,c)=>c==="returnType"&&u.type==="ArrowFunctionExpression")||t.match(void 0,(u,c)=>c==="typeAnnotation"&&u.type==="NullableTypeAnnotation",(u,c)=>c==="typeAnnotation"&&u.type==="TypeAnnotation",(u,c)=>c==="returnType"&&u.type==="ArrowFunctionExpression")||t.match(void 0,(u,c)=>c==="typeAnnotation"&&u.type==="TypePredicate",(u,c)=>c==="typeAnnotation"&&u.type==="TypeAnnotation",(u,c)=>c==="returnType"&&u.type==="ArrowFunctionExpression"))return!0;let o=n.type==="NullableTypeAnnotation"?t.grandparent:n;return o.type==="UnionTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="ArrayTypeAnnotation"||s==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||s==="checkType"&&n.type==="ConditionalTypeAnnotation"||s==="extendsType"&&n.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType.typeParameter.bound||o.type==="NullableTypeAnnotation"||n.type==="FunctionTypeParam"&&n.name===null&&pr(r).some(u=>u.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return s==="objectType"&&n.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&n.type==="ExpressionStatement"&&typeof n.directive!="string"){let o=t.grandparent;return o.type==="Program"||o.type==="BlockStatement"}return s==="object"&&ct(n)&&Ps(r);case"AssignmentExpression":return!((s==="init"||s==="update")&&n.type==="ForStatement"||s==="expression"&&r.left.type!=="ObjectPattern"&&n.type==="ExpressionStatement"||s==="key"&&n.type==="TSPropertySignature"||n.type==="AssignmentExpression"||s==="expressions"&&n.type==="SequenceExpression"&&t.match(void 0,void 0,(o,u)=>(u==="init"||u==="update")&&o.type==="ForStatement")||s==="value"&&n.type==="Property"&&t.match(void 0,void 0,(o,u)=>u==="properties"&&o.type==="ObjectPattern")||n.type==="NGChainedExpression"||s==="node"&&n.type==="JsExpressionRoot");case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return e.experimentalTernaries?!1:s==="test";case"MemberExpression":case"OptionalMemberExpression":return s==="object";default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"TaggedTemplateExpression":return!0;case"ExportDefaultDeclaration":return s==="declaration";default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return n.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return s==="expression";case"ConditionalExpression":return s==="test";default:return!1}case"ClassExpression":switch(n.type){case"NewExpression":return s==="callee";case"ExportDefaultDeclaration":return s==="declaration";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"ChainExpression":case"TSNonNullExpression":if(QB(t))return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"ImportExpression":if(s==="callee"&&(n.type==="BindExpression"||n.type==="NewExpression")){let o=r;for(;o;)switch(o.type){case"CallExpression":case"ImportExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":o=o.object;break;case"TaggedTemplateExpression":o=o.tag;break;case"TSNonNullExpression":o=o.expression;break;default:return!1}}return!1;case"BindExpression":return s==="callee"&&(n.type==="BindExpression"||n.type==="NewExpression")||s==="object"&&ct(n);case"NGPipeExpression":return!(n.type==="NGRoot"||n.type==="NGMicrosyntaxExpression"||n.type==="ObjectProperty"&&!r.extra?.parenthesized||er(n)||s==="arguments"&&ut(n)||s==="right"&&n.type==="NGPipeExpression"||s==="property"&&n.type==="MemberExpression"||n.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return s==="callee"||s==="left"&&n.type==="BinaryExpression"&&n.operator==="<"||!er(n)&&n.type!=="ArrowFunctionExpression"&&n.type!=="AssignmentExpression"&&n.type!=="AssignmentPattern"&&n.type!=="BinaryExpression"&&n.type!=="ConditionalExpression"&&n.type!=="ExpressionStatement"&&n.type!=="JsExpressionRoot"&&n.type!=="JSXAttribute"&&n.type!=="JSXElement"&&n.type!=="JSXExpressionContainer"&&n.type!=="JSXFragment"&&n.type!=="LogicalExpression"&&!Jo(n)&&!qn(n)&&!ua(n)&&n.type!=="TypeCastExpression"&&n.type!=="VariableDeclarator"&&n.type!=="YieldExpression"&&n.type!=="MatchExpressionCase"&&!(s==="declaration"&&n.type==="ExportDefaultDeclaration");case"TSInstantiationExpression":return s==="object"&&ct(n);case"MatchOrPattern":return n.type==="MatchAsPattern"}return!1}var yN=Ne(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function DN(t){let e=0,{node:r}=t;for(;r;){let s=t.getParentNode(e++);if(s?.type==="ForStatement"&&s.init===r)return!0;r=s}return!1}function gN(t){return ps(t)}function Co(t){let{parent:e,key:r}=t;switch(e.type){case"NGPipeExpression":if(r==="arguments"&&t.isLast)return t.callParent(Co);break;case"ObjectProperty":if(r==="value")return t.callParent(()=>t.key==="properties"&&t.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return t.callParent(Co);break;case"ConditionalExpression":if(r==="alternate")return t.callParent(Co);break;case"UnaryExpression":if(e.prefix&&t.callParent(Co))return!0;break}return!1}var Nr=nb,vi="string",en="array",xa="cursor",Ti="indent",Fi="align",wi="trim",Zr="group",zn="fill",Ss="if-break",Si="indent-if-break",ki="line-suffix",Vn="line-suffix-boundary",vr="line",cn="label",pn="break-parent",ib=new Set([xa,Ti,Fi,wi,Zr,zn,Ss,Si,ki,Vn,vr,cn,pn]);function xN(t){if(typeof t=="string")return vi;if(Array.isArray(t))return en;if(!t)return;let{type:e}=t;if(ib.has(e))return e}var Hn=xN,bN=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function EN(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
49
|
-
Expected it to be 'string' or 'object'.`;if(Hn(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=bN([...ib].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
50
|
-
Expected it to be ${s}.`}var CN=class extends Error{name="InvalidDocError";constructor(e){super(EN(e)),this.doc=e}},Go=CN,g0={};function AN(t,e,r,s){let n=[t];for(;n.length>0;){let i=n.pop();if(i===g0){r(n.pop());continue}r&&n.push(i,g0);let o=Hn(i);if(!o)throw new Go(i);if(e?.(i)!==!1)switch(o){case en:case zn:{let u=o===en?i:i.parts;for(let c=u.length,d=c-1;d>=0;--d)n.push(u[d]);break}case Ss:n.push(i.flatContents,i.breakContents);break;case Zr:if(s&&i.expandedStates)for(let u=i.expandedStates.length,c=u-1;c>=0;--c)n.push(i.expandedStates[c]);else n.push(i.contents);break;case Fi:case Ti:case Si:case cn:case ki:n.push(i.contents);break;case vi:case xa:case wi:case Vn:case vr:case pn:break;default:throw new Go(i)}}}var Ff=AN;function ba(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(i){return ss(r,i,n)}function n(i){switch(Hn(i)){case en:return e(i.map(s));case zn:return e({...i,parts:i.parts.map(s)});case Ss:return e({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Zr:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(s),u=o[0]):u=s(u),e({...i,contents:u,expandedStates:o})}case Fi:case Ti:case Si:case cn:case ki:return e({...i,contents:s(i.contents)});case vi:case xa:case wi:case Vn:case vr:case pn:return e(i);default:throw new Go(i)}}}function ab(t,e,r){let s=r,n=!1;function i(o){if(n)return!1;let u=e(o);u!==void 0&&(n=!0,s=u)}return Ff(t,i),s}function vN(t){if(t.type===Zr&&t.break||t.type===vr&&t.hard||t.type===pn)return!0}function ur(t){return ab(t,vN,!1)}function x0(t){if(t.length>0){let e=Ye(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function TN(t){let e=new Set,r=[];function s(i){if(i.type===pn&&x0(r),i.type===Zr){if(r.push(i),e.has(i))return!1;e.add(i)}}function n(i){i.type===Zr&&r.pop().break&&x0(r)}Ff(t,s,n,!0)}function FN(t){return t.type===vr&&!t.hard?t.soft?"":" ":t.type===Ss?t.flatContents:t}function Hl(t){return ba(t,FN)}function wN(t){switch(Hn(t)){case zn:{let{parts:e}=t;if(e.every(r=>r===""))return"";if(e.length===1)return e[0];break}case Zr:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Zr&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case Fi:case Ti:case Si:case ki:if(!t.contents)return"";break;case Ss:if(!t.flatContents&&!t.breakContents)return"";break;case en:{let e=[];for(let r of t){if(!r)continue;let[s,...n]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof Ye(0,e,-1)=="string"?e[e.length-1]+=s:e.push(s),e.push(...n)}return e.length===0?"":e.length===1?e[0]:e}case vi:case xa:case wi:case Vn:case vr:case cn:case pn:break;default:throw new Go(t)}return t}function wf(t){return ba(t,e=>wN(e))}function di(t,e=Sf){return ba(t,r=>typeof r=="string"?Qe(e,r.split(`
|
|
51
|
-
`)):r)}function SN(t){if(t.type===vr)return!0}function kN(t){return ab(t,SN,!1)}function ob(t,e){return t.type===cn?{...t,contents:e(t.contents)}:e(t)}function PN(t){let e=!0;return Ff(t,r=>{switch(Hn(r)){case vi:if(r==="")break;case wi:case Vn:case vr:case pn:return e=!1,!1}}),e}var IN=xI;function he(t){return{type:Ti,contents:t}}function Rr(t,e){return{type:Fi,contents:e,n:t}}function BN(t){return Rr(Number.NEGATIVE_INFINITY,t)}function NN(t){return Rr({type:"root"},t)}function ub(t){return Rr(-1,t)}function LN(t,e,r){let s=t;if(e>0){for(let n=0;n<Math.floor(e/r);++n)s=he(s);s=Rr(e%r,s),s=Rr(Number.NEGATIVE_INFINITY,s)}return s}var tn={type:pn},nl={type:xa};function lb(t){return{type:zn,parts:t}}function ee(t,e={}){return IN(e.expandedStates),{type:Zr,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function oi(t,e){return ee(t[0],{...e,expandedStates:t})}function Je(t,e="",r={}){return{type:Ss,breakContents:t,flatContents:e,groupId:r.groupId}}function Ko(t,e){return{type:Si,contents:t,groupId:e.groupId,negate:e.negate}}function Qe(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}function du(t,e){return t?{type:cn,label:t,contents:e}:e}var Ce={type:vr},ue={type:vr,soft:!0},cb={type:vr,hard:!0},pe=[cb,tn],$N={type:vr,hard:!0,literal:!0},Sf=[$N,tn];function b0(t){return{type:ki,contents:t}}var es={type:Vn},MN="cr",ON="crlf",_N="\r",jN=`\r
|
|
52
|
-
`,RN=`
|
|
53
|
-
`,qN=RN;function UN(t){return t===MN?_N:t===ON?jN:qN}var zN=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,VN=12288,HN=65510,WN=[12288,12288,65281,65376,65504,65510],JN=4352,GN=262141,pb=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],hb=(t,e)=>{let r=0,s=Math.floor(t.length/2)-1;for(;r<=s;){let n=Math.floor((r+s)/2),i=n*2;if(e<t[i])s=n-1;else if(e>t[i+1])r=n+1;else return!0}return!1},E0=19968,[KN,XN]=YN(pb);function YN(t){let e=t[0],r=t[1];for(let s=0;s<t.length;s+=2){let n=t[s],i=t[s+1];if(E0>=n&&E0<=i)return[n,i];i-n>r-e&&(e=n,r=i)}return[e,r]}var QN=t=>t<VN||t>HN?!1:hb(WN,t),ZN=t=>t>=KN&&t<=XN?!0:t<JN||t>GN?!1:hb(pb,t),e5=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,t5=t=>e5.test(t),r5=/[^\x20-\x7F]/;function s5(t){if(!t)return 0;if(!r5.test(t))return t.length;let e=0;t=t.replace(zN(),r=>(e+=t5(r)?1:2,""));for(let r of t){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(e+=QN(s)||ZN(s)?2:1)}return e}var ha=s5,n5={type:0},i5={type:1},db={value:"",length:0,queue:[],get root(){return db}};function fb(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],n="",i=0,o=0,u=0;for(let g of s)switch(g.type){case 0:p(),r.useTabs?c(1):d(r.tabWidth);break;case 3:{let{string:x}=g;p(),n+=x,i+=x.length;break}case 2:{let{width:x}=g;o+=1,u+=x;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return D(),{...t,value:n,length:i,queue:s};function c(g){n+=" ".repeat(g),i+=r.tabWidth*g}function d(g){n+=" ".repeat(g),i+=g}function p(){r.useTabs?f():D()}function f(){o>0&&c(o),m()}function D(){u>0&&d(u),m()}function m(){o=0,u=0}}function a5(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let s;return typeof e=="number"?e<0?s=i5:s={type:2,width:e}:s={type:3,string:e},fb(t,s,r)}function o5(t,e){return fb(t,n5,e)}function u5(t){let e=0;for(let r=t.length-1;r>=0;r--){let s=t[r];if(s===" "||s===" ")e++;else break}return e}function mb(t){let e=u5(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var l5=class{#e=[];#t="";#s=0;#n=[];#r=[];#i(){let t=this.#t;t!==""&&(this.#e.push(t),this.#s+=t.length,this.#t="");for(let e of this.#r)this.#n.push(Math.min(e,this.#s));this.#r.length=0}markPosition(){if(this.#n.length+this.#r.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#r.push(this.#s+this.#t.length)}write(t){this.#t+=t}trim(){let{text:t,count:e}=mb(this.#t);return this.#t=t,this.#i(),e}finish(){return this.#i(),{text:this.#e.join(""),positions:this.#n}}},c5=l5,Hr=Symbol("MODE_BREAK"),xs=Symbol("MODE_FLAT"),Bh=Symbol("DOC_FILL_PRINTED_LENGTH");function il(t,e,r,s,n,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=e.length,u=!1,c=[t],d="";for(;r>=0;){if(c.length===0){if(o===0)return!0;c.push(e[--o]);continue}let{mode:p,doc:f}=c.pop(),D=Hn(f);switch(D){case vi:f&&(u&&(d+=" ",r-=1,u=!1),d+=f,r-=ha(f));break;case en:case zn:{let m=D===en?f:f.parts,g=f[Bh]??0;for(let x=m.length-1;x>=g;x--)c.push({mode:p,doc:m[x]});break}case Ti:case Fi:case Si:case cn:c.push({mode:p,doc:f.contents});break;case wi:{let{text:m,count:g}=mb(d);d=m,r+=g;break}case Zr:{if(i&&f.break)return!1;let m=f.break?Hr:p,g=f.expandedStates&&m===Hr?Ye(0,f.expandedStates,-1):f.contents;c.push({mode:m,doc:g});break}case Ss:{let m=(f.groupId?n[f.groupId]||xs:p)===Hr?f.breakContents:f.flatContents;m&&c.push({mode:p,doc:m});break}case vr:if(p===Hr||f.hard)return!0;f.soft||(u=!0);break;case ki:s=!0;break;case Vn:if(s)return!1;break}}return!1}function yb(t,e){let r=Object.create(null),s=e.printWidth,n=UN(e.endOfLine),i=0,o=[{indent:db,mode:Hr,doc:t}],u=!1,c=[],d=new c5;for(TN(t);o.length>0;){let{indent:g,mode:x,doc:b}=o.pop();switch(Hn(b)){case vi:{let A=n!==`
|
|
54
|
-
`?qt(0,b,`
|
|
55
|
-
`,n):b;A&&(d.write(A),o.length>0&&(i+=ha(A)));break}case en:for(let A=b.length-1;A>=0;A--)o.push({indent:g,mode:x,doc:b[A]});break;case xa:d.markPosition();break;case Ti:o.push({indent:o5(g,e),mode:x,doc:b.contents});break;case Fi:o.push({indent:a5(g,b.n,e),mode:x,doc:b.contents});break;case wi:i-=d.trim();break;case Zr:{let A=(function(){if(x===xs&&!u)return{indent:g,mode:b.break?Hr:xs,doc:b.contents};u=!1;let C=s-i,v=c.length>0,P={indent:g,mode:xs,doc:b.contents};if(!b.break&&il(P,o,C,v,r))return P;if(!b.expandedStates)return{indent:g,mode:Hr,doc:b.contents};if(!b.break)for(let T=1;T<b.expandedStates.length-1;T++){let F={indent:g,mode:xs,doc:b.expandedStates[T]};if(il(F,o,C,v,r))return F}return{indent:g,mode:Hr,doc:Ye(0,b.expandedStates,-1)}})();o.push(A),b.id&&(r[b.id]=A.mode);break}case zn:{let A=s-i,C=b[Bh]??0,{parts:v}=b,P=v.length-C;if(P===0)break;let T=v[C+0],F=v[C+1],k={indent:g,mode:xs,doc:T},I={indent:g,mode:Hr,doc:T},L=il(k,[],A,c.length>0,r,!0);if(P===1){L?o.push(k):o.push(I);break}let B={indent:g,mode:xs,doc:F},O={indent:g,mode:Hr,doc:F};if(P===2){L?o.push(B,k):o.push(O,I);break}let R=v[C+2],q={indent:g,mode:x,doc:{...b,[Bh]:C+2}},V=il({indent:g,mode:xs,doc:[T,F,R]},[],A,c.length>0,r,!0);o.push(q),V?o.push(B,k):L?o.push(O,k):o.push(O,I);break}case Ss:case Si:{let A=b.groupId?r[b.groupId]:x;if(A===Hr){let C=b.type===Ss?b.breakContents:b.negate?b.contents:he(b.contents);C&&o.push({indent:g,mode:x,doc:C})}if(A===xs){let C=b.type===Ss?b.flatContents:b.negate?he(b.contents):b.contents;C&&o.push({indent:g,mode:x,doc:C})}break}case ki:c.push({indent:g,mode:x,doc:b.contents});break;case Vn:c.length>0&&o.push({indent:g,mode:x,doc:cb});break;case vr:switch(x){case xs:if(!b.hard){b.soft||(d.write(" "),i+=1);break}u=!0;case Hr:if(c.length>0){o.push({indent:g,mode:x,doc:b},...c.reverse()),c.length=0;break}b.literal?(d.write(n),i=0,g.root&&(g.root.value&&d.write(g.root.value),i=g.root.length)):(d.trim(),d.write(n+g.value),i=g.length);break}break;case cn:o.push({indent:g,mode:x,doc:b.contents});break;case pn:break;default:throw new Go(b)}o.length===0&&c.length>0&&(o.push(...c.reverse()),c.length=0)}let{text:p,positions:f}=d.finish();if(f.length!==2)return{formatted:p};let[D,m]=f;return{formatted:p,cursorNodeStart:D,cursorNodeText:p.slice(D,m)}}var Wl=class extends Error{name="ArgExpansionBailout"};function kf(t){return(t.type==="ObjectTypeProperty"||t.type==="ObjectTypeInternalSlot")&&!t.static&&!t.method&&t.kind!=="get"&&t.kind!=="set"&&t.value.type==="FunctionTypeAnnotation"}function p5(t,e){let r=null,s=e;for(;s!==r;)r=s,s=GI(t,s),s=hf(t,s),s=ca(t,s);return s=df(t,s),s=pa(t,s),s!==!1&&Ot(t,s)}var Jl=p5,Ns=(t,{originalText:e})=>{let r=Le(t);if(Jl(e,r))return!0;let s=Ac(t);return s===r?!1:Jl(e,s)},h5=Ne(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Db=h5,d5=Ne(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function f5({type:t}){return t.startsWith("TS")&&t.endsWith("Keyword")}var gb=f5;function Pf(t){return gb(t)||Db(t)||d5(t)||t.type==="GenericTypeAnnotation"&&!t.typeParameters||t.type==="TSTypeReference"&&!t.typeArguments}function m5(t){return(t.type==="TypeAnnotation"||t.type==="TSTypeAnnotation")&&t.typeAnnotation.type==="FunctionTypeAnnotation"&&!t.static&&!vc(t,t.typeAnnotation)}function y5(t,e){let r=e.split(".");for(let s=r.length-1;s>=0;s--){let n=r[s];if(s===0)return t.type==="Identifier"&&t.name===n;if(s===1&&t.type==="MetaProperty"&&t.property.type==="Identifier"&&t.property.name===n){t=t.meta;continue}if(t.type==="MemberExpression"&&!t.optional&&!t.computed&&t.property.type==="Identifier"&&t.property.name===n){t=t.object;continue}return!1}}function If(t,e){return e.some(r=>y5(t,r))}var D5=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function g5(t){return If(t,D5)}function x5(t){return t.type==="Identifier"&&(t.name==="beforeEach"||t.name==="beforeAll"||t.name==="afterEach"||t.name==="afterAll")}function jp(t){return ut(t)&&t.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(t.callee.name)}function b5(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"}function wc(t,e){if(t?.type!=="CallExpression"||t.optional)return!1;let r=ns(t);if(r.length===1){if(jp(t)&&wc(e))return Wo(r[0]);if(x5(t.callee))return jp(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||_t(r[0]))&&g5(t.callee))return r[2]&&!Ps(r[2])?!1:(r.length===2?Wo(r[1]):b5(r[1])&&pr(r[1]).length<=1)||jp(r[1]);return!1}function E5(t,e){let r=e-1;r=ca(t,r,{backwards:!0}),r=pa(t,r,{backwards:!0}),r=ca(t,r,{backwards:!0});let s=pa(t,r,{backwards:!0});return r!==s}var xb=E5,Bf=()=>!0;function Nf(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function C5(t,e){let r=t.node,s=[Nf(t,e)],{printer:n,originalText:i,locStart:o,locEnd:u}=e;if(n.isBlockComment?.(r)){let d=" ";Ot(i,u(r))&&(Ot(i,o(r),{backwards:!0})?d=pe:d=Ce),s.push(d)}else s.push(pe);let c=pa(i,ca(i,u(r)));return c!==!1&&Ot(i,c)&&s.push(pe),s}function A5(t,e,r){let s=t.node,n=Nf(t,e),{printer:i,originalText:o,locStart:u}=e,c=i.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||Ot(o,u(s),{backwards:!0})){let d=xb(o,u(s));return{doc:b0([pe,d?pe:"",n]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[b0([" ",n]),tn],isBlock:c,hasLineSuffix:!0}:{doc:[" ",n],isBlock:c,hasLineSuffix:!1}}function It(t,e,r={}){let{indent:s=!1,marker:n,filter:i=Bf}=r,o=new Set(t.node?.comments?.filter(d=>!(d.leading||d.trailing||d.marker!==n||!i(d))));if(o.size===0)return"";let u=t.map(({node:d})=>o.has(d)?Nf(t,e):"","comments").filter(Boolean),c=Qe(pe,u);return s?he([pe,c]):c}function Lf(t,e,r){let s=e[Symbol.for("printedComments")],n=r?.filter??Bf,i=new Set(t.node?.comments?.filter(o=>!s?.has(o)&&o.leading&&n(o)));return i.size===0?"":t.map(({node:o})=>i.has(o)?C5(t,e):"","comments").filter(Boolean)}function bb(t,e,r){let s=t.node?.comments,n=new Set(s?.filter(p=>p.trailing)),i=e[Symbol.for("printedComments")],o=r?.filter??Bf,u=new Set(s?.filter(p=>n.has(p)&&!i?.has(p)&&o(p)));if(u.size===0)return"";let c=[],d;return t.each(({node:p})=>{n.has(p)&&(d=A5(t,e,d),u.has(p)&&c.push(d.doc))},"comments"),c}function Eb(t,e,r){return{leading:Lf(t,e,r),trailing:bb(t,e,r)}}function rr(t,e,r,s){let n=Lf(t,r,s),i=bb(t,r,s);return n||i?ob(e,o=>[n,o,i]):e}function Cb(t,e="es5"){return t.trailingComma==="es5"&&e==="es5"||t.trailingComma==="all"&&(e==="all"||e==="es5")}function lr(t){let{node:e}=t;return!e.optional||e.type==="Identifier"&&e===t.parent.key?"":ut(e)||ct(e)&&e.computed||e.type==="OptionalIndexedAccessType"?"?.":"?"}function Ab(t){return t.node.definite||t.match(void 0,(e,r)=>r==="id"&&e.type==="VariableDeclarator"&&e.definite)?"!":""}var v5=Ne(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),T5=t=>{let{node:e}=t;return v5(e)?t.parent.type!=="DeclareExportDeclaration"&&!e.implicitDeclare:e.declare};function qr(t){return T5(t)?"declare ":""}var F5=Ne(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Sc({node:t}){return t.abstract||F5(t)?"abstract ":""}function kc(t){return t.accessibility?t.accessibility+" ":""}var C0=t=>t.type==="UnaryExpression"&&t.operator==="!";function w5(t){return Ee(t)||!C0(t)?!1:(t=t.argument,t=C0(t)?t.argument:t,t.type==="LogicalExpression")}function $f(t,e,r){let{node:s}=t,n=s.type==="WithStatement"?"object":"test",i=r(n);return w5(s[n])?i:ee([he([ue,i]),ue])}function Pc(t,e,r){let{node:s}=t;return Ee(s,Te.Dangling,r)?[he([ue,It(t,e,{filter:r})]),Ee(s,Te.Dangling|Te.Line,r)?pe:ue]:""}function Wn(t,e="es5"){return Cb(t,e)?Je(","):""}function bt(t){return t.semi?";":""}var S5=t=>t.mark!=="commentBeforeArrow";function Pi(t,e,r,s,n){let i=t.node,o=pr(i),u=n&&i.typeParameters?r("typeParameters"):"";if(o.length===0)return[u,"(",Pc(t,e,S5),")"];let{parent:c}=t,d=wc(c),p=vb(i),f=[];if(vI(t,(m,g)=>{let x=g===o.length-1;x&&i.rest&&f.push("..."),f.push(r()),!x&&(f.push(","),d||p?f.push(" "):Ns(o[g],e)?f.push(pe,pe):f.push(Ce))}),s&&!P5(t)){if(ur(u)||ur(f))throw new Wl;return ee([Hl(u),"(",Hl(f),")"])}let D=o.every(m=>!pt(m.decorators));return p&&D?[u,"(",...f,")"]:d?[u,"(",...f,")"]:(kf(c)||m5(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===i)&&o.length===1&&o[0].name===null&&i.this!==o[0]&&o[0].typeAnnotation&&i.typeParameters===null&&Pf(o[0].typeAnnotation)&&!i.rest?e.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...f,")"]:f:[u,"(",he([ue,...f]),!TI(i)&&t.root.type!=="NGRoot"?Wn(e,"all"):"",ue,")"]}function vb(t){if(!t)return!1;let e=pr(t);if(e.length!==1)return!1;let[r]=e;return!Ee(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Ln(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Ln(r.typeAnnotation)&&r!==t.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ps(r.right)&&r.right.properties.length===0||er(r.right)&&r.right.elements.length===0))}function k5(t){let e;return t.returnType?(e=t.returnType,e.typeAnnotation&&(e=e.typeAnnotation)):t.typeAnnotation&&(e=t.typeAnnotation),e}function fu(t,e){let r=k5(t);if(!r)return!1;let s=t.typeParameters?.params;if(s){if(s.length>1)return!1;if(s.length===1){let n=s[0];if(n.constraint||n.default)return!1}}return pr(t).length===1&&(Ln(r)||ur(e))}function P5(t){return t.match(e=>e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement",(e,r)=>{if(e.type==="CallExpression"&&r==="arguments"&&e.arguments.length===1&&e.callee.type==="CallExpression"){let s=e.callee.callee;return s.type==="Identifier"||s.type==="MemberExpression"&&!s.computed&&s.object.type==="Identifier"&&s.property.type==="Identifier"}return!1},(e,r)=>e.type==="VariableDeclarator"&&r==="init"||e.type==="ExportDefaultDeclaration"&&r==="declaration"||e.type==="TSExportAssignment"&&r==="expression"||e.type==="AssignmentExpression"&&r==="right"&&e.left.type==="MemberExpression"&&e.left.object.type==="Identifier"&&e.left.object.name==="module"&&e.left.property.type==="Identifier"&&e.left.property.name==="exports",e=>e.type!=="VariableDeclaration"||e.kind==="const"&&e.declarations.length===1)}function I5(t){let e=pr(t);return e.length>1&&e.some(r=>r.type==="TSParameterProperty")}function Bo(t,e){return(e==="params"||e==="this"||e==="rest")&&vb(t)}var B5=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,N5=t=>B5.test(t),L5=N5;function $5(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Xo=$5,Tb=Object.freeze({character:"'",codePoint:39}),Fb=Object.freeze({character:'"',codePoint:34}),M5=Object.freeze({preferred:Tb,alternate:Fb}),O5=Object.freeze({preferred:Fb,alternate:Tb});function wb(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?M5:O5,{length:n}=t,i=0,o=0;for(let u=0;u<n;u++){let c=t.charCodeAt(u);c===r.codePoint?i++:c===s.codePoint&&o++}return(i>o?s:r).character}var _5=/\\(["'\\])|(["'])/g;function j5(t,e){let r=e==='"'?"'":'"',s=qt(0,t,_5,(n,i,o)=>i?i===r?r:n:o===e?"\\"+o:o);return e+s+e}var R5=j5;function q5(t,e){let r=t.slice(1,-1),s;return e.parser==="json"||e.parser==="jsonc"||e.parser==="json-stringify"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?s='"':e.__isInHtmlAttribute?s="'":s=wb(r,e.singleQuote),t.charAt(0)===s?t:R5(r,s)}var fi=q5,Sb=t=>t.type==="TSEnumMember",kb=t=>Sb(t)?"id":"key",Yo=t=>t[kb(t)],Pb=t=>!Sb(t)&&t.computed;function Ib(t){return/^(?:\d+|\d+\.\d+)$/.test(t)}var U5=({parser:t})=>t==="typescript"||t==="babel-ts"||t==="oxc-ts"||t==="yuku-ts";function z5(t,e){let r=Yo(t);if(r.type==="Identifier")return!0;if(!Ps(r)||U5(e))return!1;let s=Xo(Mr(r));return String(r.value)===s&&Ib(s)}function Bb(t,e){let{parser:r}=e;if(r==="json"||r==="jsonc")return!1;let s=Yo(t);if(!_t(s))return!1;let{value:n}=s;return fi(Mr(s),e).slice(1,-1)!==n||t.type==="TSMethodSignature"&&n==="new"?!1:!!(!(r==="babel-ts"&&t.type==="ClassProperty"||(r==="typescript"||r==="oxc-ts"||r==="yuku-ts")&&t.type==="PropertyDefinition")&&L5(n)||(r==="babel"||r==="acorn"||r==="oxc"||r==="yuku"||r==="espree"||r==="meriyah"||r==="__babel_estree")&&t.type!=="ImportAttribute"&&Ib(n)&&String(Number(n))===n)}var V5=new WeakMap;function Nb(t,e){return ss(V5,t.parent,()=>t.siblings.some(r=>{if(Pb(r))return!1;let s=Yo(r);return _t(s)&&!Bb(r,e)}))}function H5(t,e){return(e.parser==="json"||e.parser==="jsonc"||e.quoteProps==="consistent"&&Nb(t,e))&&z5(t.node,e)}function W5(t,e){return(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!Nb(t,e))&&Bb(t.node,e)}function $n(t,e,r){let{node:s}=t,n=kb(s);if(Pb(s))return["[",r(n),"]"];if(H5(t,e)){let i=Yo(s),o=fi(JSON.stringify(i.type==="Identifier"?i.name:String(i.value)),e);return t.call(()=>rr(t,o,e),n)}if(W5(t,e)){let{value:i}=Yo(s),o=/^\d/.test(i)?Xo(i):i;return t.call(()=>rr(t,o,e),n)}return r(n)}var J5=Ne(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),G5=Ne(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function Lb(t){return t.key==="elementTypes"&&uf(t.parent)&&t.parent.elementTypes.length>1}function Ic(t){let{types:e}=t;if(e.some(s=>Ee(s)))return!1;let r=e.find(s=>G5(s));return r?e.every(s=>s===r||J5(s)):!1}function $b(t){let{key:e,node:r,parent:s}=t;return!(Ic(r)||e==="types"&&jr(s)||e==="types"&&pu(s)||Lb(t))}function Mb(t,e,r,s){let{node:n}=t;if(Ic(n))return Qe(" | ",t.map(r,"types"));let i=ee(t.map(({isFirst:o})=>{let u=o?Je("| "):[Ce,"| "],c=r();return Ee(t.node,Te.Leading)?[u,Rr(2,rr(t,c,e))]:[u,rr(t,Rr(2,c),e)]},"types"));return $b(t)&&(i=rr(t,i,e)),Nr(t,e)?ee([he([ue,i]),ue]):Lb(t)?ee([he([Je(["(",ue]),i]),ue,Je(")")]):s?.assignmentLayout==="break-after-operator"||!K5(t)?i:ee(he([ue,i]))}function K5(t){let{key:e,parent:r}=t;return!(e==="typeAnnotation"&&r.type==="TSTypeAssertion"||e==="elementTypes"&&uf(r)||(e==="trueType"||e==="falseType")&&Nn(r)||e==="params"&&RI(r)||e==="typeAnnotation"&&r.type==="FunctionTypeParam"&&!r.name&&t.grandparent.this!==r||t.match(void 0,(s,n)=>n==="typeAnnotation"&&s.type==="FunctionTypeParam",(s,n)=>n==="params"&&s.type==="FunctionTypeAnnotation",(s,n)=>n==="value"&&s.type==="ObjectTypeProperty"&&kf(s)))}function X5(t){return Pf(t)||Ln(t)?!0:jr(t)?Ic(t):!1}var Y5=new WeakSet;function Qt(t,e,r="typeAnnotation"){let{node:{[r]:s}}=t;if(!s)return"";let n=!1;if(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation"){let i=t.call(Ob,r);(i==="=>"||i===":"&&Ee(s,Te.Leading))&&(n=!0),Y5.add(s)}return n?[" ",e(r)]:e(r)}var Ob=t=>t.match(e=>e.type==="TSTypeAnnotation",(e,r)=>(r==="returnType"||r==="typeAnnotation")&&(e.type==="TSFunctionType"||e.type==="TSConstructorType"))?"=>":t.match(e=>e.type==="TSTypeAnnotation",(e,r)=>r==="typeAnnotation"&&(e.type==="TSJSDocNullableType"||e.type==="TSJSDocNonNullableType"||e.type==="TSTypePredicate"))||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="typeAnnotation"&&e.type==="Identifier",(e,r)=>r==="id"&&e.type==="DeclareFunction")||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="typeAnnotation"&&e.type==="Identifier",(e,r)=>r==="id"&&e.type==="DeclareHook")||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="bound"&&e.type==="TypeParameter"&&e.usesExtendsBound)?"":":";function _b(t,e,r){let s=Ob(t);return s?[s," ",r("typeAnnotation")]:r("typeAnnotation")}var Q5=({node:t,key:e,parent:r})=>e==="value"&&t.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&ga(r));function Mf(t,e,r,s){if(Q5(t))return Of(t,e,r);let{node:n}=t,i=!1;if(n.type==="FunctionExpression"&&s?.expandLastArg){let{parent:p}=t;ut(p)&&(ns(p).length>1||pr(n).every(f=>f.type==="Identifier"&&!f.typeAnnotation))&&(i=!0)}let o=Pi(t,e,r,i),u=_f(t,r),c=fu(n,u),d=n.type==="HookDeclaration"?"hook":"function";return[qr(t),n.async?"async ":"",d,n.generator?"*":""," ",n.id?r("id"):"",r("typeParameters"),ee([c?ee(o):o,u]),n.body?" ":"",r("body"),n.declare||!n.body?bt(e):""]}function Nh(t,e,r){let{node:s}=t,{kind:n}=s,i=s.value||s,o=[];return!n||n==="init"||n==="method"||n==="constructor"?i.async&&o.push("async "):o.push(n," "),i.generator&&o.push("*"),o.push($n(t,e,r),s.optional?"?":"",s===i?Of(t,e,r):r("value")),o}function Of(t,e,r){let{node:s}=t,n=Pi(t,e,r),i=_f(t,r),o=I5(s),u=fu(s,i),c=[r("typeParameters"),ee([o?ee(n,{shouldBreak:!0}):u?ee(n):n,i])];return s.body?c.push(" ",r("body")):c.push(bt(e)),c}function Z5(t){let e=pr(t);return e.length===1&&!t.typeParameters&&!Ee(t,Te.Dangling)&&e[0].type==="Identifier"&&!e[0].typeAnnotation&&!Ee(e[0])&&!e[0].optional&&!t.predicate&&!t.returnType}function jb(t,e){if(e.arrowParens==="always")return!1;if(e.arrowParens==="avoid"){let{node:r}=t;return Z5(r)}return!1}function _f(t,e){let{node:r}=t,s=[Qt(t,e,"returnType")];return r.predicate&&s.push(e("predicate")),s}function jf(t,e){if(e.semi)return!1;let{node:r}=t;if(r.type!=="ExpressionStatement"||qb(t,e)||zb(t,e)||Ub(t,e))return!1;let{key:s,parent:n}=t;return!!((s==="body"&&(n.type==="Program"||n.type==="BlockStatement"||n.type==="StaticBlock"||n.type==="TSModuleBlock")||s==="consequent"&&n.type==="SwitchCase")&&t.call(()=>Rb(t,e),"expression"))}function Rb(t,e){let{node:r}=t;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"TSTypeAssertion":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!jb(t,e))return!0;break;case"UnaryExpression":{let{prefix:s,operator:n}=r;if(s&&(n==="+"||n==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(zt(r))return!0}return Nr(t,e)?!0:Tf(r)?t.call(()=>Rb(t,e),...tb(r)):!1}var Rf=({node:t,parent:e})=>t.type==="ExpressionStatement"&&e.type==="Program"&&e.body.length===1&&(Array.isArray(e.directives)&&e.directives.length===0||!e.directives);function qb(t,e){return(e.parentParser==="markdown"||e.parentParser==="mdx")&&Rf(t)&&zt(t.node.expression)}function Ub(t,e){return e.__isHtmlInlineEventHandler&&Rf(t)}function zb(t,e){return(e.parser==="__vue_event_binding"||e.parser==="__vue_ts_event_binding")&&Rf(t)}function Vb(t,e){if(!jf(t,e))return!1;let r=Ye(0,Or(t.node,Te.Leading),-1);return!!(r&&ff(r))}var e7=Ne(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function t7(t,e){let{key:r,parent:s}=t;if(r==="types"&&jr(s)||r==="argument"&&s.type==="JSXSpreadAttribute"||r==="expression"&&s.type==="JSXSpreadChild"||r==="superClass"&&(s.type==="ClassDeclaration"||s.type==="ClassExpression")||(r==="id"||r==="typeParameters")&&e7(s)||r==="patterns"&&s.type==="MatchOrPattern"||Yx(t))return!0;let{node:n}=t;return Fc(n)?!1:n.type==="ExpressionStatement"?Vb(t,e):jr(n)?$b(t):!!zt(n)}var r7=t7;function s7(t,e,r=0){let s=0;for(let n=r;n<t.length;++n)t[n]===" "?s=s+e-s%e:s++;return s}var n7=s7;function i7(t,e){let r=t.lastIndexOf(`
|
|
56
|
-
`);return r===-1?0:n7(t.slice(r+1).match(/^[\t ]*/)[0],e)}var a7=i7;function Hb(t,e,r){if(h7(t)){let i=u7(t,e,r);if(i)return i}let s=mu(t,e,r),n=t.map(({isLast:i,index:o})=>[r(),i?"":s[o]],"quasis");return[es,"`",...n,"`"]}function o7(t,e,r){let s=r("quasi"),{node:n}=t,i="",o=Or(n.quasi,Te.Leading)[0];return o&&(Ar(e.originalText,Le(n.typeArguments??n.tag),Re(o))?i=ue:i=" "),du(s.label&&{tagged:!0,...s.label},[r("tag"),r("typeArguments"),i,es,s])}function u7(t,e,r){let{node:s}=t,n=s.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(n.length>1||n.some(i=>i.length>0)){e.__inJestEach=!0;let i=mu(t,e,r);e.__inJestEach=!1;let o=i.map(f=>yb(f,{...e,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted),u=[{hasLineBreak:!1,cells:[]}];for(let f=1;f<s.quasis.length;f++){let D=Ye(0,u,-1),m=o[f-1];D.cells.push(m),m.includes(`
|
|
57
|
-
`)&&(D.hasLineBreak=!0),s.quasis[f].value.raw.includes(`
|
|
58
|
-
`)&&u.push({hasLineBreak:!1,cells:[]})}let c=Math.max(n.length,...u.map(f=>f.cells.length)),d=Array.from({length:c},()=>0),p=[{cells:n},...u.filter(f=>f.cells.length>0)];for(let f of p)if(!f.hasLineBreak)for(let[D,m]of f.cells.entries())d[D]=Math.max(d[D],ha(m));return[es,"`",he([pe,Qe(pe,p.map(f=>Qe(" | ",f.cells.map((D,m)=>f.hasLineBreak?D:D+" ".repeat(d[m]-ha(D))))))]),pe,"`"]}}var l7=new WeakMap;function c7(t,e){let{parent:r,index:s}=t;return ss(l7,r,n=>{let{tabWidth:i}=e,o=0;return n.quasis.map(u=>{let c=u.value.raw,d=c.includes(`
|
|
59
|
-
`)?a7(c,i):o;return o=d,{indentSize:d,previousQuasiText:c}})})[s]}function p7(t,e,r){let{node:s,index:n}=t,i=r(),o=t.parent,{quasis:u}=o,c=Le(u[n]),d=Re(u[n+1]),p=Ar(e.originalText,c,d);if(!p){let m=yb(i,{...e,printWidth:Number.POSITIVE_INFINITY}).formatted;m.includes(`
|
|
60
|
-
`)?p=!0:i=m}p&&(Ee(s)||s.type==="Identifier"||ct(Un(s))||s.type==="ConditionalExpression"||s.type==="SequenceExpression"||us(s)||Zs(s))&&(i=[he([ue,i]),ue]);let{indentSize:f,previousQuasiText:D}=c7(t,e);return e.__inJestEach&&(f=Math.max(f,e.tabWidth)),i=f===0&&D.endsWith(`
|
|
61
|
-
`)?Rr(Number.NEGATIVE_INFINITY,i):LN(i,f,e.tabWidth),ee(["${",i,es,"}"])}function mu(t,e,r){return t.map(()=>p7(t,e,r),t.node.type==="TSTemplateLiteralType"?"types":"expressions")}function Wb(t,e){return ba(t,r=>typeof r=="string"?e?qt(0,r,/(\\*)`/g,"$1$1\\`"):Jb(r):r)}function Jb(t){return qt(0,t,/([\\`]|\$\{)/g,"\\$1")}var A0=/^[fx]?(?:describe|it|test)$/;function h7({node:t,parent:e}){return t.type==="TemplateLiteral"&&e.type==="TaggedTemplateExpression"&&e.quasi===t&&e.tag.type==="MemberExpression"&&e.tag.property.type==="Identifier"&&e.tag.property.name==="each"&&(e.tag.object.type==="Identifier"&&A0.test(e.tag.object.name)||e.tag.object.type==="MemberExpression"&&e.tag.object.property.type==="Identifier"&&(e.tag.object.property.name==="only"||e.tag.object.property.name==="skip")&&e.tag.object.object.type==="Identifier"&&A0.test(e.tag.object.object.name))}var Lh=[(t,e)=>e==="properties"&&t.type==="ObjectExpression",(t,e)=>e==="arguments"&&t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="Component",(t,e)=>e==="expression"&&t.type==="Decorator"];function d7(t){let e=s=>s.type==="TemplateLiteral",r=(s,n)=>qn(s)&&!s.computed&&s.key.type==="Identifier"&&s.key.name==="styles"&&n==="value";return t.match(e,(s,n)=>er(s)&&n==="elements",r,...Lh)||t.match(e,r,...Lh)}function f7(t){return t.match(e=>e.type==="TemplateLiteral",(e,r)=>qn(e)&&!e.computed&&e.key.type==="Identifier"&&e.key.name==="template"&&r==="value",...Lh)}function Rp(t,e){return Ee(t,Te.Block|Te.Leading,({value:r})=>r===` ${e} `)}function Gb({node:t,parent:e},r){return Rp(t,r)||m7(e)&&Rp(e,r)||e.type==="ExpressionStatement"&&Rp(e,r)}function m7(t){return t.type==="AsConstExpression"||t.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const"}async function y7(t,e,r,s){let{node:n}=r,i="";for(let[d,p]of n.quasis.entries()){let{raw:f}=p.value;d>0&&(i+="@prettier-placeholder-"+(d-1)+"-id"),i+=f}let o=await t(i,{parser:"scss"}),u=mu(r,s,e),c=D7(o,u);if(!c)throw new Error("Couldn't insert all the expressions");return["`",he([pe,c]),ue,"`"]}function D7(t,e){if(!pt(e))return t;let r=0,s=ba(wf(t),n=>typeof n!="string"||!n.includes("@prettier-placeholder")?n:n.split(/@prettier-placeholder-(\d+)-id/).map((i,o)=>o%2===0?di(i):(r++,e[i])));return e.length===r?s:null}function g7(t){return t.match(void 0,(e,r)=>r==="quasi"&&e.type==="TaggedTemplateExpression"&&If(e.tag,["css","css.global","css.resolve"]))||t.match(void 0,(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer",(e,r)=>r==="children"&&e.type==="JSXElement"&&e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.type==="JSXIdentifier"&&s.name.name==="jsx"))}function al(t){return t.type==="Identifier"&&t.name==="styled"}function v0(t){return/^[A-Z]/.test(t.object.name)&&t.property.name==="extend"}function x7({parent:t}){if(!t||t.type!=="TaggedTemplateExpression")return!1;let e=t.tag.type==="ParenthesizedExpression"?t.tag.expression:t.tag;switch(e.type){case"MemberExpression":return al(e.object)||v0(e);case"CallExpression":return al(e.callee)||e.callee.type==="MemberExpression"&&(e.callee.object.type==="MemberExpression"&&(al(e.callee.object.object)||v0(e.callee.object))||e.callee.object.type==="CallExpression"&&al(e.callee.object.callee));case"Identifier":return e.name==="css";default:return!1}}function b7({parent:t,grandparent:e}){return e?.type==="JSXAttribute"&&t.type==="JSXExpressionContainer"&&e.name.type==="JSXIdentifier"&&e.name.name==="css"}var E7=t=>g7(t)||x7(t)||b7(t)||d7(t);async function C7(t,e,r,s){let{node:n}=r,i=n.quasis.length,o=mu(r,s,e),u=[];for(let c=0;c<i;c++){let d=n.quasis[c],p=c===0,f=c===i-1,D=d.value.cooked,m=D.split(`
|
|
62
|
-
`),g=m.length;if(!f&&/#[^\n\r]*$/.test(m[g-1]))return null;let x=g>2&&m[0].trim()===""&&m[1].trim()==="",b=g>2&&m[g-1].trim()===""&&m[g-2].trim()==="",A=m.every(v=>/^\s*(?:#[^\n\r]*)?$/.test(v)),C;A?C=A7(m):C=await t(D,{parser:"graphql"}),C?(C=Wb(C,!1),!p&&x&&u.push(""),u.push(C),!f&&b&&u.push("")):!p&&!f&&x&&u.push(""),f||u.push(o[c])}return["`",he([pe,Qe(pe,u)]),pe,"`"]}function A7(t){let e=[],r=!1,s=t.map(n=>n.trim());for(let[n,i]of s.entries())i!==""&&(s[n-1]===""&&r?e.push([pe,i]):e.push(i),r=!0);return e.length===0?null:Qe(pe,e)}function v7({node:t,parent:e}){return Gb({node:t,parent:e},"GraphQL")||e&&(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"&&e.tag.object.name==="graphql"&&e.tag.property.name==="experimental"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"))||e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="graphql")}var qp=0;async function Kb(t,e,r,s,n){let{node:i}=s,o=qp;qp=qp+1>>>0;let u=A=>`PRETTIER_HTML_PLACEHOLDER_${A}_${o}_IN_JS`,c=i.quasis.map((A,C,v)=>C===v.length-1?A.value.cooked:A.value.cooked+u(C)).join(""),d=mu(s,n,r),p=new RegExp(u("(\\d+)"),"g"),f=0,D=await e(c,{parser:t,__onHtmlRoot(A){f=A.children.length}}),m=ba(D,A=>{if(typeof A!="string")return A;let C=[],v=A.split(p);for(let P=0;P<v.length;P++){let T=v[P];if(P%2===0){T&&(T=Jb(T),n.__embeddedInHtml&&(T=qt(0,T,/<\/(?=script\b)/gi,"<\\/")),C.push(T));continue}let F=Number(T);C.push(d[F])}return C}),g=/^\s/.test(c)?" ":"",x=/\s$/.test(c)?" ":"",b=n.htmlWhitespaceSensitivity==="ignore"?pe:g&&x?Ce:null;return b?ee(["`",he([b,ee(m)]),b,"`"]):du({hug:!1},ee(["`",g,f>1?he(ee(m)):ee(m),x,"`"]))}function T7(t){return Gb(t,"HTML")||t.match(e=>e.type==="TemplateLiteral",(e,r)=>e.type==="TaggedTemplateExpression"&&e.tag.type==="Identifier"&&e.tag.name==="html"&&r==="quasi")}var F7=Kb.bind(void 0,"html"),w7=Kb.bind(void 0,"angular");async function S7(t,e,r){let{node:s}=r,n=qt(0,s.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(c,d)=>"\\".repeat(d.length/2)+"`"),i=k7(n),o=i!=="";o&&(n=qt(0,n,new RegExp(`^${i}`,"gm"),""));let u=Wb(await t(n,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?he([ue,u]):[Sf,BN(u)],ue,"`"]}function k7(t){let e=t.match(/^([^\S\n]*)\S/m);return e===null?"":e[1]}function P7({node:t,parent:e}){return e?.type==="TaggedTemplateExpression"&&t.quasis.length===1&&e.tag.type==="Identifier"&&(e.tag.name==="md"||e.tag.name==="markdown")}var I7=[{test:E7,print:y7},{test:v7,print:C7},{test:T7,print:F7},{test:f7,print:w7},{test:P7,print:S7}].map(({test:t,print:e})=>({test:t,print:N7(e)}));function B7(t){let{node:e}=t;if(e.type!=="TemplateLiteral"||L7(e))return;let r=I7.find(({test:s})=>s(t));if(r)return e.quasis.length===1&&e.quasis[0].value.raw.trim()===""?"``":r.print}function N7(t){return async(...e)=>{let r=await t(...e);return r&&du({embed:!0,...r.label},r)}}function L7({quasis:t}){return t.some(({value:{cooked:e}})=>e===null)}var $7=B7;function M7(t,e){t.type==="ChainExpression"?O7(e):(t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&_7(e)}function Xb(t){if(ct(t))return"object";if(ut(t))return"callee";if(Ai(t))return"expression"}function Gl(t){let e=Xb(t);if(e)return t[e]}function O7(t){for(t=Gl(t);t.type==="MemberExpression"||t.type==="CallExpression"||t.type==="TSNonNullExpression";t=Gl(t)){let e=Xb(t),r=t[e];r.type==="ChainExpression"&&(t[e]=r.expression)}}function _7(t){for(t=Gl(t);t.type==="MemberExpression"||t.type==="CallExpression";t=Gl(t))t.type=`Optional${t.type}`}function T0(t,e,r){let s=e[r];(_t(s)||Ps(s))&&(t[r]=String(s.value)),s.type==="Identifier"&&(t[r]=s.name)}function j7(t,e){(t.type==="Property"||t.type==="ObjectProperty"||t.type==="MethodDefinition"||t.type==="ClassProperty"||t.type==="ClassMethod"||t.type==="PropertyDefinition"||t.type==="TSDeclareMethod"||t.type==="TSPropertySignature"||t.type==="TSMethodSignature"||t.type==="ObjectTypeProperty"||t.type==="ImportAttribute"||t.type==="RecordDeclarationProperty"||t.type==="RecordDeclarationStaticProperty")&&!t.computed&&T0(e,t,"key"),t.type==="TSEnumMember"&&T0(e,t,"id")}function R7(t,e){t.type==="RegExpLiteral"&&(e.flags=[...t.flags].sort().join("")),t.type==="Literal"&&"regex"in t&&(e.regex.flags=[...t.regex.flags].sort().join(""))}var q7=new Set(["range","raw","comments","extra","start","end","loc","errors","tokens","trailingComma","docblock","__contentEnd"]),Ui=t=>{for(let e of t.quasis)delete e.value};function Yb(t,e,r){if(t.type==="Program"&&delete e.sourceType,M7(t,e),j7(t,e),R7(t,e),($I(t)||t.type==="BigIntLiteralTypeAnnotation")&&"bigint"in t&&(e.bigint=t.bigint.toLowerCase()),t.type==="EmptyStatement"&&!of({node:t,parent:r})||t.type==="JSXText"||t.type==="JSXExpressionContainer"&&(t.expression.type==="Literal"||t.expression.type==="StringLiteral")&&t.expression.value===" ")return null;if(t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx"))for(let{type:n,expression:i}of e.children)n==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&Ui(i);t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&Ui(e.value.expression),t.type==="JSXAttribute"&&_t(t.value)&&/["']|"|'/.test(t.value.value)&&(e.value.value=qt(0,t.value.value,/["']|"|'/g,'"'));let s=t.expression||t.callee;if(t.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){let n=t.expression.arguments[0].properties;for(let[i,o]of e.expression.arguments[0].properties.entries())switch(n[i].key.name){case"styles":er(o.value)&&Ui(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Ui(o.value);break}}t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"||t.tag.name==="css"||t.tag.name==="md"||t.tag.name==="markdown"||t.tag.name==="html")||t.tag.type==="CallExpression")&&Ui(e.quasi),(t.type==="CallExpression"||t.type==="MemberExpression")&&!t.optional&&delete e.optional,t.type==="TemplateLiteral"&&Ui(e)}Yb.ignoredProperties=q7;var U7=/\*\/$/,z7=/^\/\*\*?/,Qb=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,V7=/(^|\s+)\/\/([^\n\r]*)/g,F0=/^(\r?\n)+/,H7=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,w0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,W7=/(\r?\n|^) *\* ?/g,Zb=[];function J7(t){let e=t.match(Qb);return e?e[0].trimStart():""}function G7(t){let e=t.match(Qb)?.[0];return e==null?t:t.slice(e.length)}function K7(t){t=qt(0,t.replace(z7,"").replace(U7,""),W7,"$1");let e="";for(;e!==t;)e=t,t=qt(0,t,H7,`
|
|
63
|
-
$1 $2
|
|
64
|
-
`);t=t.replace(F0,"").trimEnd();let r=Object.create(null),s=qt(0,t,w0,"").replace(F0,"").trimEnd(),n;for(;n=w0.exec(t);){let i=qt(0,n[2],V7,"");if(typeof r[n[1]]=="string"||Array.isArray(r[n[1]])){let o=r[n[1]];r[n[1]]=[...Zb,...Array.isArray(o)?o:[o],i]}else r[n[1]]=i}return{comments:s,pragmas:r}}function X7({comments:t="",pragmas:e={}}){let r=Object.keys(e),s=r.flatMap(i=>S0(i,e[i])).map(i=>` * ${i}
|
|
65
|
-
`).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let i=e[r[0]];return`/** ${S0(r[0],i)[0]} */`}}let n=t.split(`
|
|
66
|
-
`).map(i=>` * ${i}`).join(`
|
|
67
|
-
`)+`
|
|
68
|
-
`;return`/**
|
|
69
|
-
`+(t?n:"")+(t&&r.length>0?` *
|
|
70
|
-
`:"")+s+" */"}function S0(t,e){return[...Zb,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var Y7="format";function Q7(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
71
|
-
`);return e===-1?t:t.slice(0,e)}var Z7=Q7;function eL(t){let e=Z7(t);e&&(t=t.slice(e.length+1));let r=J7(t),{pragmas:s,comments:n}=K7(r);return{shebang:e,text:t,pragmas:s,comments:n}}function tL(t){let{shebang:e,text:r,pragmas:s,comments:n}=eL(t),i=G7(r),o=X7({pragmas:{[Y7]:"",...s},comments:n.trimStart()});return(e?`${e}
|
|
72
|
-
`:"")+o+(i.startsWith(`
|
|
73
|
-
`)?`
|
|
74
|
-
`:`
|
|
75
|
-
|
|
76
|
-
`)+i}function rL(t){if(!hs(t))return[];if(!t.value.includes(`
|
|
77
|
-
`))return[];let e=[];for(let r of`*${t.value}*`.split(`
|
|
78
|
-
`)){if(r=r.trimStart(),!r.startsWith("*"))return[];e.push(r)}return e}var sL=new WeakMap;function eE(t){return ss(sL,t,rL)}function tE(t){return eE(t).length>0}function nL(t,e){let r=t.node;if(Rn(r))return e.originalText.slice(Re(r),Le(r)).trimEnd();if(tE(r))return iL(r);if(hs(r))return["/*",di(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function iL(t){let e=eE(t),r=t.value[0]==="*"&&t.value[1]!=="*";return["/",e.map((s,n)=>{if(n===0)return[s.trimEnd(),pe];if(n===e.length-1)return[" ",s];let i=s.trimEnd(),o=[" ",i];return r&&i!=="*"&&s.endsWith(" ")?[o," ",NN(Sf)]:[o,pe]}),"/"]}function aL(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var oL=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,s=0;for(let n=0;n<e.length&&r.has(e.charAt(n));n++)s++;return s}getTrailingWhitespaceCount(e){let r=this.#e,s=0;for(let n=e.length-1;n>=0&&r.has(e.charAt(n));n--)s++;return s}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(Ye(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let s=`[${aL([...this.#e].join(""))}]+`,n=new RegExp(r?`(${s})`:s);return e.split(n)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>r.has(s))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>!r.has(s))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,s=>r.has(s))}#t(e){let r=Number.POSITIVE_INFINITY;for(let s of e.split(`
|
|
79
|
-
`)){if(s.length===0)continue;let n=this.getLeadingWhitespaceCount(s);if(n===0)return 0;s.length!==n&&n<r&&(r=n)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
|
|
80
|
-
`).map(s=>s.slice(r)).join(`
|
|
81
|
-
`)}},uL=oL,Bl=new uL(`
|
|
82
|
-
\r `);function Qo(t){return t.type==="JSXText"&&(Bl.hasNonWhitespaceCharacter(Mr(t))||!/\n/.test(Mr(t)))}function lL(t){let{node:e,parent:r}=t;if(!zt(e)||!zt(r))return!1;let{index:s,siblings:n}=t,i;for(let o=s;o>0;o--){let u=n[o-1];if(!(u.type==="JSXText"&&!Qo(u))){i=u;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&Fc(i.expression)}function cL(t){return Fc(t.node)||lL(t)}var qf=cL,pL=class extends Error{name="UnexpectedNodeError";constructor(e,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(e[s])}.`),this.node=e}},Ea=pL;function hL(t){return t.type==="CallExpression"&&!t.optional&&t.arguments.length===1&&t.callee.type==="Identifier"&&t.callee.name==="Boolean"}var dL=0;function rE(t,e,r){let{node:s,parent:n,grandparent:i,key:o}=t,u=o!=="body"&&(n.type==="IfStatement"||n.type==="WhileStatement"||n.type==="SwitchStatement"||n.type==="DoWhileStatement"),c=s.operator==="|>"&&t.root.extra?.__isUsingHackPipeline,d=$h(t,e,r,!1,u);if(u)return d;if(c)return ee(d);if(o==="callee"&&Jo(n)||n.type==="UnaryExpression"&&!Ee(s)||ct(n)&&!n.computed)return ee([he([ue,...d]),ue]);let p=ua(n)||n.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||s.operator!=="|"&&n.type==="JsExpressionRoot"||s.type!=="NGPipeExpression"&&(n.type==="NGRoot"&&e.parser==="__ng_binding"||n.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||s===n.body&&n.type==="ArrowFunctionExpression"||s!==n.body&&n.type==="ForStatement"||n.type==="ConditionalExpression"&&!ua(i)&&!Jo(i)||n.type==="TemplateLiteral"||o==="argument"&&n.type==="UnaryExpression"||o==="arguments"&&hL(n),f=n.type==="AssignmentExpression"||n.type==="VariableDeclarator"||n.type==="ClassProperty"||n.type==="PropertyDefinition"||n.type==="TSAbstractPropertyDefinition"||n.type==="ClassPrivateProperty"||qn(n),D=Zs(s.left)&&vf(s.operator,s.left.operator);if(p||Zo(s)&&!D||!Zo(s)&&f)return ee(d);if(d.length===0)return"";let m=zt(s.right),g=d.findIndex(P=>typeof P!="string"&&!Array.isArray(P)&&P.type===Zr),x=d.slice(0,g===-1?1:g+1),b=d.slice(x.length,m?-1:void 0),A=Symbol("logicalChain-"+ ++dL),C=ee([...x,he(b)],{id:A});if(!m)return C;let v=Ye(0,d,-1);return ee([C,Ko(v,{groupId:A})])}function $h(t,e,r,s,n){let{node:i}=t;if(!Zs(i))return[ee(r())];let o=[];vf(i.operator,i.left.operator)?o=t.call(()=>$h(t,e,r,!0,n),"left"):o.push(ee(r("left")));let u=Zo(i),c=i.right.type==="ChainExpression"?i.right.expression:i.right,d=(i.type==="NGPipeExpression"||i.operator==="|>"||fL(t,e))&&!Xs(e.originalText,c),p=!Ee(c,Te.Leading,ff)&&Xs(e.originalText,c),f=i.type==="NGPipeExpression"?"|":i.operator,D=i.type==="NGPipeExpression"&&i.arguments.length>0?ee(he([ue,": ",Qe([Ce,": "],t.map(()=>Rr(2,ee(r())),"arguments"))])):"",m;if(u)m=[f,Xs(e.originalText,c)?he([Ce,r("right"),D]):[" ",r("right"),D]];else{let b=f==="|>"&&t.root.extra?.__isUsingHackPipeline?t.call(()=>$h(t,e,r,!0,n),"right"):r("right");if(e.experimentalOperatorPosition==="start"){let A="";if(p)switch(Hn(b)){case en:A=b[0],b.shift();break;case cn:A=b.contents[0],b.contents.shift();break}m=[Ce,A,f," ",b,D]}else m=[d?Ce:"",f,d?" ":Ce,b,D]}let{parent:g}=t,x=Ee(i.left,Te.Trailing|Te.Line);if((x||!(n&&i.type==="LogicalExpression")&&g.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(m=ee(m,{shouldBreak:x})),e.experimentalOperatorPosition==="start"?o.push(u||p?" ":"",m):o.push(d?"":" ",m),s&&Ee(i)){let b=wf(rr(t,o,e));return b.type===zn?b.parts:Array.isArray(b)?b:[b]}return o}function Zo(t){return t.type!=="LogicalExpression"?!1:!!(ps(t.right)&&t.right.properties.length>0||er(t.right)&&t.right.elements.length>0||zt(t.right))}var k0=t=>t.type==="BinaryExpression"&&t.operator==="|";function fL(t,e){return(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&k0(t.node)&&!t.hasAncestor(r=>!k0(r)&&r.type!=="JsExpressionRoot")}function mL(t,e,r){let{node:s}=t;if(s.type.startsWith("NG"))switch(s.type){case"NGRoot":return r("node");case"NGPipeExpression":return rE(t,e,r);case"NGChainedExpression":return ee(Qe([";",Ce],t.map(()=>gL(t)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return t.map(()=>[t.isFirst?"":P0(t)?" ":[";",Ce],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(s.name)?s.name:JSON.stringify(s.name);case"NGMicrosyntaxExpression":return[r("expression"),s.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:n,parent:i}=t,o=P0(t)||yL(t)||(n===1&&(s.key.name==="then"||s.key.name==="else"||s.key.name==="as")||n===2&&(s.key.name==="else"&&i.body[n-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[n-1].key.name==="then"||s.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),o?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),s.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Ea(s,"Angular")}}function P0({node:t,index:e}){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1}function yL(t){let{node:e}=t;return t.parent.body[1].key.name==="of"&&e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="track"&&e.key.type==="NGMicrosyntaxKey"}var DL=Ne(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function gL({node:t}){return Ph(t,DL)}function sE(t,e,r){let{node:s}=t;return ee([Qe(Ce,t.map(r,"decorators")),iE(s,e)?pe:Ce])}function xL(t,e,r){return aE(t.node)?[Qe(pe,t.map(r,"declaration","decorators")),pe]:""}function nE(t,e,r){let{node:s,parent:n}=t,{decorators:i}=s;if(!pt(i)||aE(n)||qf(t))return"";let o=s.type==="ClassExpression"||s.type==="ClassDeclaration"||iE(s,e);return[t.key==="declaration"&&_I(n)?pe:o?tn:"",Qe(Ce,t.map(r,"decorators")),Ce]}function iE(t,e){return t.decorators.some(r=>Ot(e.originalText,Le(r)))}function aE(t){if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return!1;let e=t.declaration?.decorators;return pt(e)&&vc(t,e[0])}function oE(t){return t.type==="UnaryExpression"&&(t.operator==="+"||t.operator==="-")&&Ps(t.argument)}function Uf(t,e,r){let{node:s}=t,n=[],i=uf(s)?"elementTypes":"elements",o=s[i];if(o.length===0&&!s.inexact)n.push(ee(["[",Pc(t,e),"]"]));else{let u=Ye(0,o,-1),c=u?.type!=="RestElement"&&!s.inexact,d=u===null,p=Symbol("array"),f=!e.__inJestEach&&o.length>1&&o.every((g,x,b)=>{if(!er(g)&&!ps(g))return!1;let A=g?.type,C=b[x+1];if(C&&A!==C.type)return!1;let v=er(g)?"elements":"properties";return g[v]&&g[v].length>1})||Ee(s,Te.Dangling|Te.Line),D=uE(s,e),m=c?d?",":Cb(e)?D?Je(",","",{groupId:p}):Je(","):"":"";n.push(ee(["[",he([ue,D?EL(t,e,r,m):[bL(t,e,r,i,s.inexact),m],It(t,e)]),ue,"]"],{shouldBreak:f,id:p}))}return n.push(lr(t),Qt(t,r)),n}function uE(t,e){return er(t)&&t.elements.length>0&&t.elements.every(r=>r&&(Ps(r)||oE(r)&&!Ee(r.argument))&&!Ee(r,Te.Trailing|Te.Line,s=>!Ot(e.originalText,Re(s),{backwards:!0})))}function lE({node:t},{originalText:e}){let r=Le(t);if(r===Re(t))return!1;let{length:s}=e;for(;r<s&&e[r]!==",";)r=hf(e,df(e,r+1));return Jl(e,r)}function bL(t,e,r,s,n){let i=[];return t.each(({node:o,isLast:u})=>{i.push(o?ee(r()):""),(!u||n)&&i.push([",",Ce,o&&lE(t,e)?ue:""])},s),n&&i.push("..."),i}function EL(t,e,r,s){let n=[];return t.each(({isLast:i,next:o})=>{n.push([r(),i?s:","]),i||n.push(lE(t,e)?[pe,pe]:Ee(o,Te.Leading|Te.Line)?pe:Ce)},"elements"),lb(n)}function I0(t){return t.quasis.some(e=>e.value.raw.includes(`
|
|
83
|
-
`))}function cE(t,e){return(t.type==="TemplateLiteral"&&I0(t)||t.type==="TaggedTemplateExpression"&&I0(t.quasi))&&!Ot(e,Re(t),{backwards:!0})}var CL=new WeakMap;function pE(t){return ss(CL,t,e=>e.type==="ConditionalExpression"&&!ar(e,r=>r.type==="ObjectExpression"))}var AL=t=>t.type==="SequenceExpression";function vL(t,e,r,s={}){let n=[],i,o=[],u=!1,c=!s.expandLastArg&&t.node.body.type==="ArrowFunctionExpression",d;(function A(){let{node:C}=t,v=TL(t,e,r,s);if(n.length===0)n.push(v);else{let{leading:P,trailing:T}=Eb(t,e);n.push([P,v]),o.unshift(T)}c&&(u||(u=C.returnType&&pr(C).length>0||C.typeParameters||pr(C).some(P=>P.type!=="Identifier"))),!c||C.body.type!=="ArrowFunctionExpression"?(i=r("body",s),d=C.body):t.call(A,"body")})();let p=!Xs(e.originalText,d)&&(AL(d)||FL(d,i,e)||!u&&pE(d)),f=t.key==="callee"&&la(t.parent),D=Symbol("arrow-chain"),m=wL(t,s,{signatureDocs:n,shouldBreak:u}),g=!1,x=!1,b=!1;return c&&(f||s.assignmentLayout)&&(x=!0,b=!Ee(t.node,Te.Leading&Te.Line),g=s.assignmentLayout==="chain-tail-arrow-chain"||f&&!p),i=SL(t,e,s,{bodyDoc:i,bodyComments:o,functionBody:d,shouldPutBodyOnSameLine:p}),ee([ee(x?he([b?ue:"",m]):m,{shouldBreak:g,id:D})," =>",c?Ko(i,{groupId:D}):ee(i),c&&f?Je(ue,"",{groupId:D}):""])}function TL(t,e,r,s){let{node:n}=t,i=[];if(n.async&&i.push("async "),jb(t,e))i.push(r(["params",0]));else{let u=s.expandLastArg||s.expandFirstArg,c=_f(t,r);if(u){if(ur(c))throw new Wl;c=ee(Hl(c))}i.push(ee([Pi(t,e,r,u,!0),c]))}let o=It(t,e,{marker:"commentBeforeArrow"});return o&&i.push(" ",o),i}function FL(t,e,r){return er(t)||ps(t)||t.type==="ArrowFunctionExpression"||t.type==="DoExpression"||t.type==="BlockStatement"||zt(t)||e.label?.hug!==!1&&(e.label?.embed||cE(t,r.originalText))}function wL(t,e,{signatureDocs:r,shouldBreak:s}){if(r.length===1)return r[0];let{parent:n,key:i}=t;return i!=="callee"&&la(n)||Zs(n)?ee([r[0]," =>",he([Ce,Qe([" =>",Ce],r.slice(1))])],{shouldBreak:s}):i==="callee"&&la(n)||e.assignmentLayout?ee(Qe([" =>",Ce],r),{shouldBreak:s}):ee(he(Qe([" =>",Ce],r)),{shouldBreak:s})}function SL(t,e,r,{bodyDoc:s,bodyComments:n,functionBody:i,shouldPutBodyOnSameLine:o}){let{node:u,parent:c}=t,d=r.expandLastArg?Wn(e,"all"):"",p=(r.expandLastArg||c.type==="JSXExpressionContainer")&&!Ee(u)?ue:"";return o&&pE(i)?[" ",ee([Je("","("),he([ue,s]),Je("",")"),d,p]),n]:o?[" ",s,n]:[he([Ce,s,n]),d,p]}var kL=.25;function zf(t,e){let{printWidth:r}=e;if(Ee(t))return!1;let s=r*kL;if(t.type==="ThisExpression"||t.type==="Identifier"&&t.name.length<=s||oE(t)&&!Ee(t.argument))return!0;let n=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return n?n.length<=s:_t(t)?fi(Mr(t),e).length<=s:t.type==="TemplateLiteral"?t.expressions.length===0&&t.quasis[0].value.raw.length<=s&&!t.quasis[0].value.raw.includes(`
|
|
84
|
-
`):t.type==="UnaryExpression"?zf(t.argument,{printWidth:r}):t.type==="CallExpression"&&t.arguments.length===0&&t.callee.type==="Identifier"?t.callee.name.length<=s-2:lf(t)}function Wi(t){return ct(t)||t.type==="BindExpression"&&!!t.object}function PL(t){if(t.length<=1)return!1;let e=0;for(let r of t)if(Wo(r)){if(e+=1,e>1)return!0}else if(r=Un(r),ut(r)){for(let s of ns(r))if(Wo(s))return!0}return!1}function hE(t){let{node:e,parent:r,key:s}=t;return s==="callee"&&ut(e)&&ut(r)&&r.arguments.length>0&&e.arguments.length>r.arguments.length}var IL=new Set(["!","-","+","~"]),BL=Ne(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]);function vs(t,e=2){if(e<=0)return!1;let r=s=>vs(s,e-1);if(t=Un(t),Bx(t))return ha(t.pattern??t.regex.pattern)<=5;if(lf(t)||BL(t)||t.type==="ArgumentPlaceholder")return!0;if(t.type==="TemplateLiteral")return t.quasis.every(s=>!s.value.raw.includes(`
|
|
85
|
-
`))&&t.expressions.every(r);if(ps(t))return t.properties.every(s=>!s.computed&&(s.shorthand||s.value&&r(s.value)));if(er(t))return t.elements.every(s=>s===null||r(s));if(la(t)){if(t.type==="ImportExpression"||vs(t.callee,e)){let s=ns(t);return s.length<=e&&s.every(r)}return!1}return ct(t)?vs(t.object,e)&&vs(t.property,e):t.type==="UnaryExpression"&&IL.has(t.operator)||t.type==="UpdateExpression"?vs(t.argument,e):!1}function NL(t,e,r){let{node:s}=t,n=ns(s);if(n.length===0)return ee(["(",Pc(t,e),")"]);let i=n.length-1;if(ML(n)){let f=["("];return wh(t,(D,m)=>{f.push(r()),m!==i&&f.push(", ")}),f.push(")"),f}let o=!1,u=[];wh(t,({node:f},D)=>{let m=r();D===i||(Ns(f,e)?(o=!0,m=[m,",",pe,pe]):m=[m,",",Ce]),u.push(m)});let c=t.root.type!=="NGRoot"&&s.type!=="ImportExpression"&&s.type!=="TSImportType"&&s.type!=="TSExternalModuleReference"?Wn(e,"all"):"";function d(){return ee(["(",he([Ce,...u]),c,Ce,")"],{shouldBreak:!0})}if(o||t.parent.type!=="Decorator"&&PL(n))return d();if($L(n)){let f=u.slice(1);if(f.some(ur))return d();let D;try{D=r(h0(s,0),{expandFirstArg:!0})}catch(m){if(m instanceof Wl)return d();throw m}return ur(D)?[tn,oi([["(",ee(D,{shouldBreak:!0}),", ",...f,")"],d()])]:oi([["(",D,", ",...f,")"],["(",ee(D,{shouldBreak:!0}),", ",...f,")"],d()])}if(LL(n,u,e)){let f=u.slice(0,-1);if(f.some(ur))return d();let D;try{D=r(h0(s,-1),{expandLastArg:!0})}catch(m){if(m instanceof Wl)return d();throw m}return ur(D)?[tn,oi([["(",...f,ee(D,{shouldBreak:!0}),")"],d()])]:oi([["(",...f,D,")"],["(",...f,ee(D,{shouldBreak:!0}),")"],d()])}let p=["(",he([ue,...u]),c,ue,")"];return hE(t)?p:ee(p,{shouldBreak:u.some(ur)||o})}function Kl(t,e=!1){if(ps(t)&&(t.properties.length>0||Ee(t))||er(t)&&(t.elements.length>0||Ee(t))||(us(t)||t.type==="TSTypeAssertion")&&Kl(t.expression)||t.type==="FunctionExpression"||t.type==="DoExpression"||t.type==="ModuleExpression")return!0;if(t.type==="ArrowFunctionExpression"){let{body:r}=t;if(r.type==="BlockStatement"||zt(r)||ps(r)||er(r)||r.type==="ArrowFunctionExpression"&&Kl(r,!0)||!e&&(r.type==="ConditionalExpression"||ut(Un(r))))return!0}return!1}function LL(t,e,r){if(t.length===1){let i=Ye(0,e,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let s=Ye(0,t,-1),n=Ye(0,t,-2);return!Ee(s,Te.Leading)&&!Ee(s,Te.Trailing)&&Kl(s)&&(!n||n.type!==s.type)&&(t.length!==2||n.type!=="ArrowFunctionExpression"||!er(s))&&!(t.length>1&&uE(s,r))}function $L(t){if(t.length!==2)return!1;let[e,r]=t;return e.type==="ModuleExpression"&&OL(r)?!0:!Ee(e)&&(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&dE(r)&&!Kl(r)}function dE(t){if(t.type==="ParenthesizedExpression")return dE(t.expression);if(us(t)||t.type==="TypeCastExpression"){let{typeAnnotation:e}=t;if(e.type==="TypeAnnotation"&&(e=e.typeAnnotation),e.type==="TSArrayType"&&(e=e.elementType,e.type==="TSArrayType"&&(e=e.elementType)),e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference"){let r=e.type==="GenericTypeAnnotation"?e.typeParameters:e.typeArguments;r?.params.length===1&&(e=r.params[0])}return Pf(e)&&vs(t.expression,1)}return la(t)&&ns(t).length>1?!1:Zs(t)?vs(t.left,1)&&vs(t.right,1):Bx(t)||vs(t)}function ML(t){return t.length===2?B0(t,0):t.length===3?t[0].type==="Identifier"&&B0(t,1):!1}function B0(t,e){let r=t[e],s=t[e+1];return r.type==="ArrowFunctionExpression"&&pr(r).length===0&&r.body.type==="BlockStatement"&&s.type==="ArrayExpression"&&t.every(n=>!Ee(n))}function OL(t){if(!(t.type==="ObjectExpression"&&t.properties.length===1))return!1;let[e]=t.properties;return qn(e)?!e.computed&&(e.key.type==="Identifier"&&e.key.name==="type"||_t(e.key)&&e.key.value==="type")&&_t(e.value)&&e.value.value==="module":!1}var Mh=NL;function _L(t,e,r){return[r("object"),ee(he([ue,fE(t,e,r)]))]}function fE(t,e,r){return["::",r("callee")]}var jL=t=>ut(t)&&ns(t).length>0;function RL(t){let{node:e,ancestors:r}=t;for(let s of r){if(!(ct(s)&&s.object===e||s.type==="TSNonNullExpression"&&s.expression===e))return s.type==="NewExpression"&&s.callee===e;e=s}return!1}function qL(t,e,r){let s=r("object"),n=mE(t,e,r),{node:i}=t,o=t.findAncestor(d=>!(ct(d)||d.type==="TSNonNullExpression")),u=t.findAncestor(d=>!Ai(d)),c=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||RL(t)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!ct(u)||(u.type==="AssignmentExpression"||u.type==="VariableDeclarator")&&(jL(Un(i.object))||s.label?.memberChain);return du(s.label,[s,es,c?n:ee(he([ue,n]))])}function mE(t,e,r){let s=r("property"),{node:n}=t,i=lr(t);return n.computed?!n.property||Ps(n.property)?[i,"[",s,"]"]:ee([i,"[",he([ue,s]),ue,"]"]):[i,".",s]}function UL(t,e,r){let s=(t.parent.type==="ChainExpression"?t.grandparent:t.parent).type==="ExpressionStatement",n=[];function i(q){let{originalText:V}=e,j=Tc(V,Le(q));return V.charAt(j)===")"?j!==!1&&Jl(V,j+1):Ns(q,e)}function o(){let{node:q}=t;if(ut(q)&&(Wi(q.callee)||ut(q.callee))&&!Nr(t,e)){let V=i(q);n.unshift({node:q,hasTrailingEmptyLine:V,printed:[rr(t,[lr(t),r("typeArguments"),Mh(t,e,r)],e),V?pe:""]}),t.call(o,"callee")}else Wi(q)&&!Nr(t,e)?(n.unshift({node:q,printed:rr(t,ct(q)?mE(t,e,r):fE(t,e,r),e)}),t.call(o,"object")):q.type==="ChainExpression"&&!Nr(t,e)?t.call(o,"expression"):q.type==="TSNonNullExpression"&&!Nr(t,e)?(n.unshift({node:q,printed:rr(t,"!",e)}),t.call(o,"expression")):n.unshift({node:q,printed:r()})}let{node:u}=t;n.unshift({node:u,printed:[lr(t),r("typeArguments"),Mh(t,e,r)]}),u.callee&&t.call(o,"callee");let c=[],d=[n[0]],p=1;for(;p<n.length&&(n[p].node.type==="TSNonNullExpression"||n[p].node.type==="ChainExpression"||ut(n[p].node)||ct(n[p].node)&&n[p].node.computed&&Ps(n[p].node.property));++p)d.push(n[p]);if(!ut(n[0].node))for(;p+1<n.length&&Wi(n[p].node)&&Wi(n[p+1].node);++p)d.push(n[p]);c.push(d),d=[];let f=!1;for(;p<n.length;++p){if(f&&Wi(n[p].node)){if(n[p].node.computed&&Ps(n[p].node.property)){d.push(n[p]);continue}c.push(d),d=[],f=!1}(ut(n[p].node)||n[p].node.type==="ImportExpression")&&(f=!0),d.push(n[p]),Ee(n[p].node,Te.Trailing)&&(c.push(d),d=[],f=!1)}d.length>0&&c.push(d);function D(q){return/^[A-Z]|^[$_]+$/.test(q)}function m(q){return q.length<=e.tabWidth}function g(q){let V=q[1][0]?.node.computed;if(q[0].length===1){let z=q[0][0].node;return z.type==="ThisExpression"||z.type==="Identifier"&&(D(z.name)||s&&m(z.name)||V)}let j=Ye(0,q[0],-1).node;return ct(j)&&j.property.type==="Identifier"&&(D(j.property.name)||V)}let x=c.length>=2&&!Ee(c[1][0].node)&&g(c);function b(q){return q.map(V=>V.printed)}function A(q){return q.length===0?"":he([pe,Qe(pe,q.map(b))])}let C=c.map(b),v=C,P=x?3:2,T=c.flat(),F=T.slice(1,-1).some(q=>Ee(q.node,Te.Leading))||T.slice(0,-1).some(q=>Ee(q.node,Te.Trailing))||c[P]&&Ee(c[P][0].node,Te.Leading);if(c.length<=P&&!F&&c.every(q=>!Ye(0,q,-1).hasTrailingEmptyLine))return hE(t)?v:ee(v);let k=Ye(0,c[x?1:0],-1).node,I=!ut(k)&&i(k),L=[b(c[0]),x?c.slice(1,2).map(b):"",I?pe:"",A(c.slice(x?2:1))],B=n.map(({node:q})=>q).filter(ut);function O(){let q=Ye(0,Ye(0,c,-1),-1).node,V=Ye(0,C,-1);return ut(q)&&ur(V)&&B.slice(0,-1).some(j=>j.arguments.some(Wo))}let R;return F||B.length>2&&B.some(q=>q.arguments.some(V=>!vs(V)))||C.slice(0,-1).some(ur)||O()?R=ee(L):R=[ur(v)||I?tn:"",oi([v,L])],du({memberChain:!0},R)}var zL=UL;function Xl(t,e,r){let{node:s}=t,n=s.type==="NewExpression",i=lr(t),o=ns(s),u=s.type!=="TSImportType"&&s.typeArguments?[r("typeArguments"),es]:"",c=o.length===1&&cE(o[0],e.originalText);if(c||HL(t)||WL(t)||wc(s,t.parent)){let f=[];if(wh(t,()=>{f.push(r())}),!(c&&f[0].label?.embed))return[N0(t,r),i,u,"(",Qe(", ",f),")"]}let d=s.type==="ImportExpression"||s.type==="TSImportType"||s.type==="TSExternalModuleReference";if(!d&&!n&&Wi(s.callee)&&!t.call(()=>Nr(t,e),"callee",...s.callee.type==="ChainExpression"?["expression"]:[]))return zL(t,e,r);let p=[N0(t,r),i,u,Mh(t,e,r)];return d||ut(s.callee)?ee(p):p}function N0(t,e){let{node:r}=t;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":[r.type==="NewExpression"?"new ":"",e("callee"),es]}var VL=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function HL(t){let{node:e}=t;if(!(e.type==="ImportExpression"||e.type==="TSImportType"||e.type==="TSExternalModuleReference"||e.type==="CallExpression"&&!e.optional&&If(e.callee,VL)))return!1;let r=ns(e);return r.length===1&&_t(r[0])&&!Ee(r[0])}function WL(t){let{node:e}=t;if(e.type!=="CallExpression"||e.optional||e.callee.type!=="Identifier")return!1;let r=ns(e);return e.callee.name==="require"?(r.length===1&&_t(r[0])||r.length>1)&&!Ee(r[0]):e.callee.name==="define"&&t.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&_t(r[0])&&r[1].type==="ArrayExpression":!1}function yu(t,e,r,s,n,i){let o=KL(t,e,r,s,i),u=i?r(i,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return ee([ee(s),n,ee(he([Ce,u]))]);case"never-break-after-operator":return ee([ee(s),n," ",u]);case"fluid":{let c=Symbol("assignment");return ee([ee(s),n,ee(he(Ce),{id:c}),es,Ko(u,{groupId:c})])}case"break-lhs":return ee([s,n," ",ee(u)]);case"chain":return[ee(s),n,Ce,u];case"chain-tail":return[ee(s),n,he([Ce,u])];case"chain-tail-arrow-chain":return[ee(s),n,u];case"only-left":return s}}function JL(t,e,r){let{node:s}=t;return yu(t,e,r,r("left"),[" ",s.operator],"right")}function GL(t,e,r){return yu(t,e,r,r("id")," =","init")}function KL(t,e,r,s,n){let{node:i}=t,o=i[n];if(!o)return"only-left";let u=!Nl(o);if(t.match(Nl,yE,p=>!u||p.type!=="ExpressionStatement"&&p.type!=="VariableDeclaration"))return u?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!u&&Nl(o.right)||jr(o)&&!Ic(o)||Xs(e.originalText,o)||Ee(o,Te.Leading,tE))return"break-after-operator";if(i.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||t.root.type==="JsonRoot")return"never-break-after-operator";let c=kN(s);if(YL(i)||e$(i)||DE(i)&&c)return"break-lhs";let d=t$(i,s,e);return t.call(()=>XL(t,e,r,d),n)?"break-after-operator":QL(i)?"break-lhs":!c&&(d||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||MI(o)||Ps(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function XL(t,e,r,s){let n=t.node;if(Zs(n)&&!Zo(n))return!0;switch(n.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!e.experimentalTernaries&&!s$(n))break;return!0;case"ConditionalExpression":{if(!e.experimentalTernaries){let{test:d}=n;return Zs(d)&&!Zo(d)}let{consequent:u,alternate:c}=n;return u.type==="ConditionalExpression"||c.type==="ConditionalExpression"}case"ClassExpression":return pt(n.decorators)}if(s)return!1;let i=n,o=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,o.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,o.push("expression");else break;return!!(_t(i)||t.call(()=>gE(t,e,r),...o))}function YL(t){if(yE(t)){let e=t.left||t.id;return e.type==="ObjectPattern"&&e.properties.length>2&&e.properties.some(r=>qn(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function Nl(t){return t.type==="AssignmentExpression"}function yE(t){return Nl(t)||t.type==="VariableDeclarator"}function QL(t){let e=ZL(t);if(pt(e)){let r=t.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(e.length>1&&e.some(s=>s[r]||s.default))return!0}return!1}function ZL(t){if(Nx(t))return t.typeParameters?.params}function e$(t){if(t.type!=="VariableDeclarator")return!1;let{typeAnnotation:e}=t.id;if(!e||!e.typeAnnotation)return!1;let r=L0(e.typeAnnotation);return pt(r)&&r.length>1&&r.some(s=>pt(L0(s))||s.type==="TSConditionalType")}function DE(t){return t.type==="VariableDeclarator"&&t.init?.type==="ArrowFunctionExpression"}function L0(t){let e;switch(t.type){case"GenericTypeAnnotation":e=t.typeParameters;break;case"TSTypeReference":e=t.typeArguments;break}return e?.params}function gE(t,e,r,s=!1){let{node:n}=t,i=()=>gE(t,e,r,!0);if(Ai(n))return t.call(i,"expression");if(ut(n)){if(Xl(t,e,r).label?.memberChain)return!1;let o=ns(n);return!(o.length===0||o.length===1&&zf(o[0],e))||r$(n,r)?!1:t.call(i,"callee")}return ct(n)?t.call(i,"object"):s&&(n.type==="Identifier"||n.type==="ThisExpression")}function t$(t,e,r){return qn(t)?(e=wf(e),typeof e=="string"&&ha(e)<r.tabWidth+3):!1}function r$(t,e){let r=t.typeArguments?.params;if(pt(r)){if(r.length>1)return!0;if(r.length===1){let s=r[0];if(jr(s)||pu(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}if(ur(e("typeArguments")))return!0}return!1}function $0(t){switch(t.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!t.typeParameters;case"TSTypeReference":return!!t.typeArguments;default:return!1}}function s$(t){return $0(t.checkType)||$0(t.extendsType)}function n$(t,e,r){let{node:s}=t,n=["await"];if(s.argument){n.push(" ",r("argument"));let{parent:i}=t;if(ut(i)&&i.callee===s||ct(i)&&i.object===s){n=[he([ue,...n]),ue];let o=t.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if(o?.type!=="AwaitExpression"||!ar(o.argument,u=>u===s))return ee(n)}}return n}var i$=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},a$=af("findLast",function(){if(Array.isArray(this))return i$}),o$=a$;function Oh(t,e,r,s){let{node:n}=t,i=[],o=o$(0,n[s],u=>u.type!=="EmptyStatement");return t.each(({node:u})=>{u.type!=="EmptyStatement"&&(i.push(r()),u!==o&&(i.push(pe),Ns(u,e)&&i.push(pe)))},s),i}function xE(t,e,r){let s=u$(t,e,r),{node:n,parent:i}=t;if(n.type==="Program"&&i?.type!=="ModuleExpression")return s?[s,pe]:"";let o=[];if(n.type==="StaticBlock"&&o.push("static "),o.push("{"),s)o.push(he([pe,s]),pe);else{let u=t.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!u.finalizer||i.type==="TSModuleDeclaration"||i.type==="DeclareModule"||i.type==="MatchStatementCase"||n.type==="StaticBlock"||o.push(pe)}return o.push("}"),o}function u$(t,e,r){let{node:s}=t,n=pt(s.directives),i=s.body.some(c=>c.type!=="EmptyStatement"),o=Ee(s,Te.Dangling);if(!n&&!i&&!o)return"";let u=[];return n&&(u.push(Oh(t,e,r,"directives")),(i||o)&&(u.push(pe),Ns(Ye(0,s.directives,-1),e)&&u.push(pe))),i&&u.push(Oh(t,e,r,"body")),o&&u.push(It(t,e)),u}function l$(t){let e=new WeakMap;return r=>ss(e,r,()=>Symbol(t))}var c$=l$,bE=["properties","indexers","callProperties","internalSlots"];function p$(t,e){let{node:r}=t;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){t.each(e,"body");return}if(r.type==="TSTypeLiteral"){t.each(e,"members");return}if(r.type==="RecordDeclarationBody"){t.each(e,"elements");return}if(r.type==="ObjectTypeAnnotation"){let s=bE.flatMap(n=>t.map(({node:i,index:o})=>({node:i,loc:Re(i),selector:[n,o]}),n)).sort((n,i)=>n.loc-i.loc);for(let[n,{node:i,selector:o}]of s.entries())t.call(()=>e({node:i,next:s[n+1]?.node,isLast:n===s.length-1}),...o)}}function h$(t){if(t.type==="ObjectTypeAnnotation")return bE.some(r=>pt(t[r]));let e=t.type==="RecordDeclarationBody"?t.elements:t.body;return pt(e)}function Vf(t,e,r){let{node:s}=t,n=[],i=s.type==="ObjectTypeAnnotation",o=s.type==="RecordDeclarationBody",u=!EE(t),c=u?Ce:pe,d=Ee(s,Te.Dangling),[p,f]=i&&s.exact?["{|","|}"]:"{}",D=!0,m;if(p$(t,({node:g,next:x,isLast:b})=>{if(m??(m=g),D&&(D=!1),n.push(r()),!o&&u&&i){let{parent:A}=t;A.inexact||!b?n.push(","):n.push(Wn(e))}o&&g.type!=="MethodDefinition"&&n.push(","),!o&&!u&&(d$({node:g,next:x},e)||AE({node:g,next:x},e))&&n.push(";"),b||(n.push(c),Ns(g,e)&&n.push(pe))}),d&&n.push(It(t,e)),s.type==="ObjectTypeAnnotation"&&s.inexact){D&&(D=!1);let g;Ee(s,Te.Dangling)?g=[Ee(s,Te.Line)||Ot(e.originalText,Le(Ye(0,Or(s),-1)))?pe:Ce,"..."]:g=[m?Ce:"","..."],n.push(g)}if(u){let g=Ee(s,Te.Dangling|Te.Line)||e.objectWrap==="preserve"&&m&&Ar(e.originalText,Re(s),Re(m)),x;if(n.length===0)x=p+f;else{let b=!e.bracketSpacing||D&&!g?ue:Ce;x=[p,he([b,...n]),b,f]}return t.match(void 0,(b,A)=>A==="typeAnnotation",(b,A)=>A==="typeAnnotation",Bo)||t.match(void 0,(b,A)=>b.type==="FunctionTypeParam"&&A==="typeAnnotation",Bo)?x:ee(x,{shouldBreak:g})}return[p,n.length>0?[he([pe,n]),pe]:"",f]}function EE(t){let{node:e}=t;if(e.type==="ObjectTypeAnnotation"){let{key:r,parent:s}=t;return r==="body"&&(s.type==="InterfaceDeclaration"||s.type==="DeclareInterface"||s.type==="DeclareClass")}return e.type==="ClassBody"||e.type==="TSInterfaceBody"||e.type==="RecordDeclarationBody"}function Hs(t,e){let{parent:r}=t;return t.callParent(EE)?r.type==="ObjectTypeAnnotation"?";":bt(e):r.type==="TSTypeLiteral"?t.isLast?e.semi?Je(";"):"":e.semi||AE({node:t.node,next:t.next},e)?";":Je("",";"):""}var M0=Ne(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),CE=t=>{if(t.computed||t.typeAnnotation)return!1;let{type:e,name:r}=t.key;return e==="Identifier"&&(r==="static"||r==="get"||r==="set")};function d$({node:t,next:e},r){if(r.semi||!M0(t))return!1;if(!t.value&&CE(t))return!0;if(!e||e.static||e.accessibility||e.readonly)return!1;if(!e.computed){let s=e.key?.name;if(s==="in"||s==="instanceof")return!0}if(M0(e)&&!e.static&&e.variance&&!e.declare)return!0;switch(e.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((e.value?e.value.async:e.async)||e.kind==="get"||e.kind==="set")return!1;let s=e.value?e.value.generator:e.generator;return!!(e.computed||s)}case"TSIndexSignature":return!0}return!1}var f$=Ne(["TSPropertySignature"]);function AE({node:t,next:e},r){return r.semi||!f$(t)?!1:CE(t)?!0:e&&e.type==="TSCallSignatureDeclaration"?!(t.type==="TSPropertySignature"&&t.typeAnnotation):!1}var m$=c$("heritageGroup"),y$=Ne(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Hf(t,e,r){let s=D$(t,e,r),{node:n}=t;if(n.type==="ClassExpression"&&pt(n.decorators)){let i=nE(t,e,r);return Nr(t,e)?[he([ue,i,s]),ue]:[i,s]}return s}function D$(t,e,r){let{node:s}=t,n=y$(s),i=s.type==="RecordDeclaration",o=n?"interface":i?"record":"class",u=[qr(t),Sc(t),o],c=TE(t),d=[],p=[];if(s.type!=="InterfaceTypeAnnotation"){s.id&&d.push(" ");for(let D of["id","typeParameters"])if(s[D]){let{leading:m,trailing:g}=t.call(()=>Eb(t,e),D);d.push(m,r(D),he(g))}}if(s.superClass){let D=[b$(t,e,r),r("superTypeArguments")],m=t.call(()=>["extends ",rr(t,D,e)],"superClass");c?p.push(Ce,ee(m)):p.push(" ",m)}else p.push(Up(t,e,r,"extends"));p.push(Up(t,e,r,"mixins"),Up(t,e,r,"implements"));let f;return c?(f=m$(s),u.push(ee([...d,he(p)],{id:f}))):u.push(...d,...p),!n&&c&&h$(s.body)?u.push(Je(pe," ",{groupId:f})):u.push(" "),u.push(r("body")),u}function vE(t){let e=t.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(t[r])&&(e+=t[r].length),e>1)return!0;return e>1}function g$(t){let{node:e}=t;if(Ee(e.id,Te.Trailing)||Ee(e.typeParameters,Te.Trailing)||Ee(e.superClass)||vE(e))return!0;if(e.superClass)return t.parent.type==="AssignmentExpression"?!1:!e.superTypeArguments&&ct(Un(e.superClass));let r=e.extends?.[0]??e.mixins?.[0]??e.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&ct(r.expression)&&!r.typeArguments:!1}var x$=new WeakMap;function TE(t){return ss(x$,t.node,()=>g$(t))}function Up(t,e,r,s){let{node:n}=t;if(!pt(n[s]))return"";let i=It(t,e,{marker:s}),o=Qe([",",Ce],t.map(r,s));if(!vE(n)){let u=[`${s} `,i,o];return TE(t)?[Ce,ee(u)]:[" ",u]}return[Ce,i,i&&pe,s,ee(he([Ce,o]))]}function b$(t,e,r){let s=r("superClass"),{parent:n}=t;return n.type==="AssignmentExpression"?ee(Je(["(",he([ue,s]),ue,")"],s)):s}function FE(t,e,r){let{node:s}=t,n=[];return pt(s.decorators)&&n.push(sE(t,e,r)),n.push(kc(s)),s.static&&n.push("static "),n.push(Sc(t)),s.override&&n.push("override "),n.push(Nh(t,e,r)),n}function wE(t,e,r){let{node:s}=t,n=[];pt(s.decorators)&&n.push(sE(t,e,r)),n.push(qr(t),kc(s)),s.static&&n.push("static "),n.push(Sc(t)),s.override&&n.push("override "),s.readonly&&n.push("readonly "),s.variance&&n.push(r("variance")),(s.type==="ClassAccessorProperty"||s.type==="AccessorProperty"||s.type==="TSAbstractAccessorProperty")&&n.push("accessor "),n.push($n(t,e,r),lr(t),Ab(t),Qt(t,r));let i=s.type==="TSAbstractPropertyDefinition"||s.type==="TSAbstractAccessorProperty";return[yu(t,e,r,n," =",i?void 0:"value"),bt(e)]}function E$(t,e){let r=Or(t,Te.Leading);if(r.length===0)return!1;let[s]=r,n=e.originalText,i=Re(s);return Ar(n,i,Le(s))||Ot(n,i,{backwards:!0})}function Ca(t,e,r,s="body"){return t.call(({node:n})=>{let i=r();if(n.type==="EmptyStatement")return Ee(n,Te.Leading)?[" ",i]:i;let o=n.type==="BlockStatement";return E$(n,e)?o?[pe,i]:he([pe,i]):o||n.type==="IfStatement"&&t.parent.type==="IfStatement"&&t.key==="alternate"?[" ",i]:he([Ce,i])},s)}var C$=(t,e,r)=>Ca(t,e,r,"consequent"),A$=(t,e,r)=>Ca(t,e,r,"alternate");function v$(t,e,r){return[ee(["do",Ca(t,e,r)]),t.node.body.type==="BlockStatement"?" ":pe,"while (",$f(t,e,r),")",bt(e)]}var T$=Ne(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function SE(t){return T$(t)?SE(t.expression):t}var F$=Ne(["FunctionExpression","ArrowFunctionExpression"]);function w$(t){return t.type==="MemberExpression"||t.type==="OptionalMemberExpression"||t.type==="Identifier"&&t.name!=="undefined"}function S$(t,e){if(zb(t,e)){let r=SE(t.node.expression);return F$(r)||w$(r)}return!(!e.semi||qb(t,e)||Ub(t,e))}function k$(t,e,r){let s=[r("expression")];if(jf(t,e)){if(Vb(t,e)){let{node:n}=t,i=Ye(0,Or(n,Te.Leading),-1),o=Lf(t,e,{filter:u=>u===i});return rr(t,[";",o,...s],e,{filter:u=>u!==i})}s.unshift(";")}else S$(t,e)&&s.push(";");return s}function P$(t,e,r){let{node:s}=t,n=Ca(t,e,r),i=It(t,e),o=i?[i,ue]:"";return!s.init&&!s.test&&!s.update?[o,ee(["for (;;)",n])]:[o,ee(["for (",ee([he([ue,r("init"),";",Ce,r("test"),";",s.update?[Ce,r("update")]:""]),ue]),")",n])]}function I$(t,e,r){let{node:s}=t,n=s.type==="ForOfStatement";return ee(["for",n&&s.await?" await":""," (",r("left")," ",n?"of":"in"," ",r("right"),")",Ca(t,e,r)])}function B$(t,e,r){if(e.__isVueBindings||e.__isVueForBindingLeft){let s=t.map(r,"program","body",0,"params");if(s.length===1)return s[0];let n=Qe([",",Ce],s);return e.__isVueForBindingLeft?["(",he([ue,ee(n)]),ue,")"]:n}if(e.__isEmbeddedTypescriptGenericParameters){let s=t.map(r,"program","body",0,"typeParameters","params");return Qe([",",Ce],s)}}var N$=(t,{originalText:e})=>xb(e,Re(t));function kE(t){return Rn(Ye(0,Or(t,Te.Dangling),-1))}function L$(t,e,r){let{node:s}=t,n=ee(["if (",$f(t,e,r),")",C$(t,e,r)]);if(!s.alternate)return n;let{consequent:i}=s,o=i.type==="BlockStatement",u=[n],c=o;o||(u.push(pe),c=!1);let d=Or(s,Te.Dangling);if(d.length>0){let[p]=d;N$(p,e)?u.push(o?[pe,pe]:pe):Ot(e.originalText,Re(p),{backwards:!0})?u.push(o?pe:""):u.push(" "),u.push(It(t,e),kE(s)||Ot(e.originalText,Le(Ye(0,d,-1)))?pe:" "),c=!1}return u.push(c?" ":"","else",ee(A$(t,e,r))),u}function $$(t,e){let{node:r}=t;switch(r.type){case"RegExpLiteral":return O0(r);case"BigIntLiteral":return _h(r.extra.raw);case"NumericLiteral":return Xo(r.extra.raw);case"StringLiteral":return di(fi(r.extra.raw,e));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return _0(r.extra.raw,e);case"Literal":{if(r.regex)return O0(r.regex);if(r.bigint)return _h(r.raw);let{value:s}=r;return typeof s=="number"?Xo(r.raw):typeof s=="string"?M$(t)?_0(r.raw,e):di(fi(r.raw,e)):String(s)}}}function M$(t){if(t.key!=="expression")return;let{parent:e}=t;return e.type==="ExpressionStatement"&&typeof e.directive=="string"}function _h(t){return t.toLowerCase()}function O0({pattern:t,flags:e}){return e=[...e].sort().join(""),`/${t}/${e}`}var O$="use strict";function _0(t,e){let r=t.slice(1,-1);if(r===O$||!(r.includes('"')||r.includes("'"))){let s=e.singleQuote?"'":'"';return s+r+s}return t}var PE=Ne(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),_$=Ne(["EnumBody","EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function Aa(t,e,r){let{node:s,parent:n}=t,i=_$(s),o=s.type==="TSEnumBody"||i,u=PE(s),c=i&&s.hasUnknownMembers,d=o?"members":u?"attributes":"properties",p=s[d],f=o||s.type==="ObjectPattern"&&n.type!=="FunctionDeclaration"&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ObjectMethod"&&n.type!=="ClassMethod"&&n.type!=="ClassPrivateMethod"&&n.type!=="AssignmentPattern"&&n.type!=="CatchClause"&&s.properties.some(b=>b.value&&(b.value.type==="ObjectPattern"||b.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&e.objectWrap==="preserve"&&p.length>0&&j$(s,p[0],e),D=[],m=t.map(({node:b})=>{let A=[...D,r()];return D=[",",Ce],Ns(b,e)&&D.push(pe),A},d);if(c){let b;if(Ee(s,Te.Dangling)){let A=Ee(s,Te.Line);b=[It(t,e),A||Ot(e.originalText,Le(Ye(0,Or(s),-1)))?pe:Ce,"..."]}else b=["..."];m.push([...D,...b])}let g=!(c||Ye(0,p,-1)?.type==="RestElement"),x;if(m.length===0)x=ee(["{",Pc(t,e),"}",lr(t),Qt(t,r)]);else{let b=e.bracketSpacing?Ce:ue;x=["{",he([b,...m]),g?Wn(e):"",b,"}",lr(t),Qt(t,r)]}return t.match(b=>b.type==="ObjectPattern"&&!pt(b.decorators),Bo)||Ln(s)&&(t.match(void 0,(b,A)=>A==="typeAnnotation",(b,A)=>A==="typeAnnotation",Bo)||t.match(void 0,(b,A)=>b.type==="FunctionTypeParam"&&A==="typeAnnotation",Bo))||!f&&t.match(b=>b.type==="ObjectPattern",b=>b.type==="AssignmentExpression"||b.type==="VariableDeclarator")?x:ee(x,{shouldBreak:f})}function j$(t,e,r){let s=r.originalText,n=Re(e),i=Re(t);return PE(t)&&(i=is(r).lastIndexOf("{",n)),Ar(s,i,n)}function R$(t,e,r){let{node:s}=t;return["import",s.phase?` ${s.phase}`:"",NE(s),$E(t,e,r),LE(t,e,r),OE(t,e,r),bt(e)]}var IE=t=>t.type==="ExportDefaultDeclaration"||t.type==="DeclareExportDeclaration"&&t.default;function BE(t,e,r){let{node:s}=t,n=[xL(t,e,r),qr(t),"export",IE(s)?" default":""],{declaration:i,exported:o}=s;return Ee(s,Te.Dangling)&&(n.push(" ",It(t,e)),kE(s)&&n.push(pe)),i?n.push(" ",r("declaration")):(n.push(z$(s)),s.type==="ExportAllDeclaration"||s.type==="DeclareExportAllDeclaration"?(n.push(" *"),o&&n.push(" as ",r("exported"))):n.push($E(t,e,r)),n.push(LE(t,e,r),OE(t,e,r))),n.push(U$(s,e)),n}var q$=Ne(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function U$(t,e){return!t.declaration||IE(t)&&!q$(t.declaration)?bt(e):""}function Wf(t,e=!0){return t&&t!=="value"?`${e?" ":""}${t}${e?"":" "}`:""}function NE(t,e){return Wf(t.importKind,e)}function z$(t){return Wf(t.exportKind)}function LE(t,e,r){let{node:s}=t;return s.source?[ME(s,e)?" from":""," ",r("source")]:""}function $E(t,e,r){let{node:s}=t;if(!ME(s,e))return"";let n=[" "];if(pt(s.specifiers)){let i=[],o=[];t.each(()=>{let u=t.node.type;if(u==="ExportNamespaceSpecifier"||u==="ExportDefaultSpecifier"||u==="ImportNamespaceSpecifier"||u==="ImportDefaultSpecifier")i.push(r());else if(u==="ExportSpecifier"||u==="ImportSpecifier")o.push(r());else throw new Ea(s,"specifier")},"specifiers"),n.push(Qe(", ",i)),o.length>0&&(i.length>0&&n.push(", "),o.length>1||i.length>0||s.specifiers.some(u=>Ee(u))?n.push(ee(["{",he([e.bracketSpacing?Ce:ue,Qe([",",Ce],o)]),Wn(e),e.bracketSpacing?Ce:ue,"}"])):n.push(["{",e.bracketSpacing?" ":"",...o,e.bracketSpacing?" ":"","}"]))}else n.push("{}");return n}function ME(t,e){return t.type!=="ImportDeclaration"||pt(t.specifiers)||t.importKind==="type"?!0:is(e).slice(Re(t),Re(t.source)).trimEnd().endsWith("from")}function V$(t,e){let r=is(e).slice(Le(t.source),t.attributes?.[0]?Re(t.attributes[0]):Le(t)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||pt(t.attributes)?"with":void 0}var H$=t=>{let{attributes:e}=t;if(e.length!==1)return!1;let[r]=e,{type:s,key:n,value:i}=r;return s==="ImportAttribute"&&(n.type==="Identifier"&&n.name==="type"||_t(n)&&n.value==="type")&&_t(i)&&!Ee(r)&&!Ee(n)&&!Ee(i)};function OE(t,e,r){let{node:s}=t;if(!s.source)return"";let n=V$(s,e);if(!n)return"";let i=Aa(t,e,r);return H$(s)&&(i=Hl(i)),[` ${n} `,i]}function W$(t,e,r){let{node:s}=t,{type:n}=s,i=n.startsWith("Import"),o=i?"imported":"local",u=i?"local":"exported",c=s[o],d=s[u],p="",f="";return n==="ExportNamespaceSpecifier"||n==="ImportNamespaceSpecifier"?p="*":c&&(p=r(o)),d&&!Fh(s)&&(f=r(u)),[Wf(n==="ImportSpecifier"?s.importKind:s.exportKind,!1),p,p&&f?" as ":"",f]}function zp(t,e,r){let{node:s}=t;return s.shorthand?r("value"):yu(t,e,r,$n(t,e,r),":","value")}function jh(t,e){return["...",e("argument"),Qt(t,e)]}function J$(t,e,r){let{node:s}=t,n=r();return rb(s,e)?["(",he([pe,n]),pe,")"]:Zs(s)||e.experimentalTernaries&&s.type==="ConditionalExpression"&&(s.consequent.type==="ConditionalExpression"||s.alternate.type==="ConditionalExpression")?ee([Je("("),he([ue,n]),ue,Je(")")]):n}function j0(t,e,r){let{node:s}=t;return[s.type==="ThrowStatement"?"throw":"return",s.argument?[" ",t.call(()=>J$(t,e,r),"argument")]:"",bt(e)]}function G$(t,e){let{key:r,parent:s}=t;return!!(r==="argument"&&ua(s)&&Nr(t,e)||r==="body"&&s.type==="ArrowFunctionExpression")}function K$(t,e,r){let{parent:s}=t;if(s.type==="ExpressionStatement"||s.type==="ForStatement"){let i=[];return t.each(({isFirst:o})=>{o?i.push(r()):i.push(",",he([Ce,r()]))},"expressions"),ee(i)}let n=Qe([",",Ce],t.map(r,"expressions"));return G$(t,e)?ee(Je([he([ue,n]),ue],n)):ee(n)}function X$(t,e,r){return[ee(["switch (",he([ue,r("discriminant")]),ue,")"])," {",t.node.cases.length>0?he([pe,Qe(pe,t.map(({node:s,isLast:n})=>[r(),!n&&Ns(s,e)?pe:""],"cases"))]):It(t,e,{indent:!0}),pe,"}"]}function Y$(t,e,r){let{node:s}=t,n=[];s.test?n.push("case ",r("test"),":"):n.push("default:"),Ee(s,Te.Dangling)&&n.push(" ",It(t,e));let i=s.consequent.filter(o=>o.type!=="EmptyStatement");if(i.length>0){let o=Oh(t,e,r,"consequent");n.push(i.length===1&&i[0].type==="BlockStatement"?[" ",o]:he([pe,o]))}return n}function _E(t,e){let r=0;for(let s in t){let n=t[s];if(Qx(n)&&typeof n.type=="string"&&(r++,r+=_E(n,e-r)),r>e)return r}return r}function R0(t,e=5){return _E(t,e)<=e}function Q$(t){let e=[t];for(let r=0;r<e.length;r++){let s=e[r];for(let n of["test","consequent","alternate"]){let i=s[n];if(zt(i))return!0;i.type==="ConditionalExpression"&&e.push(i)}}return!1}function Z$(t,e,r){let{node:s}=t,n=s.type==="ConditionalExpression",i=n?"alternate":"falseType",{parent:o}=t,u=n?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return o.type===s.type&&o[i]===s?Rr(2,u):u}var eM=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function tM(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,s=e;for(let n=0;!r;n++){let i=t.getParentNode(n);if(Ai(i)&&i.expression===s||ut(i)&&i.callee===s||ct(i)&&i.object===s){s=i;continue}i.type==="NewExpression"&&i.callee===s||us(i)&&i.expression===s?(r=t.getParentNode(n+1),s=i):r=i}return s===e?!1:r[eM.get(r.type)]===s}function rM(t,e,r){let{node:s}=t,n=s.type==="ConditionalExpression",i=n?"consequent":"trueType",o=n?"alternate":"falseType",u=n?["test"]:["checkType","extendsType"],c=s[i],d=s[o],p=[],f=!1,{parent:D}=t,m=D.type===s.type&&u.some(I=>D[I]===s),g=D.type===s.type&&!m,x,b,A=0;do b=x||s,x=t.getParentNode(A),A++;while(x&&x.type===s.type&&u.every(I=>x[I]!==b));let C=x||D,v=b;if(n&&(zt(s[u[0]])||zt(c)||zt(d)||Q$(v))){f=!0,g=!0;let I=B=>[Je("("),he([ue,B]),ue,Je(")")],L=B=>B.type==="NullLiteral"||B.type==="Literal"&&B.value===null||B.type==="Identifier"&&B.name==="undefined";p.push(" ? ",L(c)?r(i):I(r(i))," : ",d.type===s.type||L(d)?r(o):I(r(o)))}else{let I=B=>e.useTabs?he(r(B)):Rr(2,r(B)),L=[Ce,"? ",c.type===s.type?Je("","("):"",I(i),c.type===s.type?Je("",")"):"",Ce,": ",I(o)];p.push(D.type!==s.type||D[o]===s||m?L:e.useTabs?ub(he(L)):Rr(Math.max(0,e.tabWidth-2),L))}let P=I=>D===C?ee(I):I,T=!f&&(ct(D)||D.type==="NGPipeExpression"&&D.left===s)&&!D.computed,F=tM(t),k=P([Z$(t,e,r),g?p:he(p),n&&T&&!F?ue:""]);return m||F?ee([he([ue,k]),ue]):k}function sM(t,e){return(ct(e)||e.type==="NGPipeExpression"&&e.left===t)&&!e.computed}function nM(t,e,r,s){return[...t.map(n=>Or(n)),Or(e),Or(r)].flat().some(n=>hs(n)&&Ar(s.originalText,Re(n),Le(n)))}var iM=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function aM(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,s=e;for(let n=0;!r;n++){let i=t.getParentNode(n);if(Ai(i)&&i.expression===s||ut(i)&&i.callee===s||ct(i)&&i.object===s){s=i;continue}i.type==="NewExpression"&&i.callee===s||us(i)&&i.expression===s?(r=t.getParentNode(n+1),s=i):r=i}return s===e?!1:r[iM.get(r.type)]===s}var Vp=t=>[Je("("),he([ue,t]),ue,Je(")")];function Jf(t,e,r,s){if(!e.experimentalTernaries)return rM(t,e,r);let{node:n}=t,i=n.type==="ConditionalExpression",o=Nn(n),u=i?"consequent":"trueType",c=i?"alternate":"falseType",d=i?["test"]:["checkType","extendsType"],p=n[u],f=n[c],D=d.map(de=>n[de]),{parent:m}=t,g=m.type===n.type,x=g&&d.some(de=>m[de]===n),b=g&&m[c]===n,A=p.type===n.type,C=f.type===n.type,v=C||b,P=e.tabWidth>2||e.useTabs,T,F,k=0;do F=T||n,T=t.getParentNode(k),k++;while(T&&T.type===n.type&&d.every(de=>T[de]!==F));let I=T||m,L=s&&s.assignmentLayout&&s.assignmentLayout!=="break-after-operator"&&(m.type==="AssignmentExpression"||m.type==="VariableDeclarator"||m.type==="ClassProperty"||m.type==="PropertyDefinition"||m.type==="ClassPrivateProperty"||m.type==="ObjectProperty"||m.type==="Property"),B=ua(m)&&!(A||C),O=i&&I.type==="JSXExpressionContainer"&&t.grandparent.type!=="JSXAttribute",R=aM(t),q=sM(n,m),V=o&&Nr(t,e),j=P?e.useTabs?" ":" ".repeat(e.tabWidth-1):"",z=nM(D,p,f,e)||A||C,M=!v&&!g&&!o&&(O?p.type==="NullLiteral"||p.type==="Literal"&&p.value===null:zf(p,e)&&R0(n.test,3)),ae=v||b||o&&!g||g&&i&&R0(n.test,1)||M,ce=[];Ee(n.test,Te.Dangling)&&t.call(()=>{ce.push(It(t,e))},"test"),Ee(n,Te.Dangling)&&ce.push(It(t,e));let S=Symbol("test"),te=Symbol("consequent"),Z=Symbol("test-and-consequent"),N=i?[Vp(r("test")),n.test.type==="ConditionalExpression"?tn:""]:[r("checkType")," ","extends"," ",Nn(n.extendsType)||n.extendsType.type==="TSMappedType"?r("extendsType"):ee(Vp(r("extendsType")))],se=ee([N," ?"],{id:S}),ye=r(u),ne=he([A||O&&(zt(p)||g||v)?pe:Ce,ye]),Q=ae?ee([se,v?ne:Je(ne,ee(ne,{id:te}),{groupId:S})],{id:Z}):[se,ne],J=r(c),G=M?Je(J,ub(Vp(J)),{groupId:Z}):J,ie=[Q,ce.length>0?[he([pe,ce]),pe]:C?pe:M?Je(Ce," ",{groupId:Z}):Ce,":",C||!P?" ":ae?Je(j,Je(v||M?" ":j," "),{groupId:Z}):Je(j," "),C?G:ee([he(G),O&&!M?ue:""]),q&&!R?ue:"",z?tn:""];return L&&!z?ee(he([ue,ee(ie)])):L||B?ee(he(ie)):R||o&&x?ee([he([ue,ie]),V?ue:""]):m===I?ee(ie):ie}function oM(t,e,r){let{node:s}=t;return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""]}function uM(t,e,r){let{node:s}=t;if(s.param){let n=Ee(s.param,o=>!hs(o)||o.leading&&Ot(e.originalText,Le(o))||o.trailing&&Ot(e.originalText,Re(o),{backwards:!0})),i=r("param");return["catch ",n?["(",he([ue,i]),ue,") "]:["(",i,") "],r("body")]}return["catch ",r("body")]}function jE(t,e,r){let{node:s}=t,n=t.map(r,"declarations"),i=t.key==="init"&&t.parent.type==="ForStatement"||t.key==="left"&&(t.parent.type==="ForInStatement"||t.parent.type==="ForOfStatement"),o=s.declarations.some(c=>c.init),u;return n.length===1&&!Ee(s.declarations[0])?u=n[0]:u=he(n[0]),ee([qr(t),s.kind,u?[" ",u]:"",he(n.slice(1).map(c=>[",",o&&!i?pe:Ce,c])),i?"":bt(e)])}function lM(t,e,r){let{node:s}=t,n=s.type==="WithStatement"?"with":"while";return ee([n," (",$f(t,e,r),")",Ca(t,e,r)])}function cM(t,e,r,s){let{node:n}=t;if(lf(n))return $$(t,e);switch(n.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[It(t,e),r("node"),pe];case"File":return B$(t,e,r)??r("program");case"ExpressionStatement":return k$(t,e,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!Ee(n.expression)&&(ps(n.expression)||er(n.expression))?["(",r("expression"),")"]:ee(["(",he([ue,r("expression")]),ue,")"]);case"AssignmentExpression":return JL(t,e,r);case"VariableDeclarator":return GL(t,e,r);case"BinaryExpression":case"LogicalExpression":return rE(t,e,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return qL(t,e,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return _L(t,e,r);case"Identifier":return[n.name,lr(t),Ab(t),Qt(t,r)];case"V8IntrinsicIdentifier":return["%",n.name];case"SpreadElement":return jh(t,r);case"RestElement":return jh(t,r);case"FunctionDeclaration":case"FunctionExpression":return Mf(t,e,r,s);case"ArrowFunctionExpression":return vL(t,e,r,s);case"YieldExpression":return[`yield${n.delegate?"*":""}`,n.argument?[" ",r("argument")]:""];case"AwaitExpression":return n$(t,e,r);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return BE(t,e,r);case"ImportDeclaration":return R$(t,e,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return W$(t,e,r);case"ImportAttribute":return zp(t,e,r);case"Program":case"BlockStatement":case"StaticBlock":return xE(t,e,r);case"ClassBody":return Vf(t,e,r);case"ThrowStatement":return j0(t,e,r);case"ReturnStatement":return j0(t,e,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Xl(t,e,r);case"ObjectExpression":case"ObjectPattern":return Aa(t,e,r);case"Property":return ga(n)?Nh(t,e,r):zp(t,e,r);case"ObjectProperty":return zp(t,e,r);case"ObjectMethod":return Nh(t,e,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return Uf(t,e,r);case"SequenceExpression":return K$(t,e,r);case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),bt(e)];case"UnaryExpression":{let i=[n.operator];/[a-z]$/.test(n.operator)&&i.push(" ");let o=r("argument");return Ee(n.argument)?i.push(ee(["(",he([ue,o]),ue,")"])):i.push(o),i}case"UpdateExpression":return[n.prefix?n.operator:"",r("argument"),n.prefix?"":n.operator];case"ConditionalExpression":return Jf(t,e,r,s);case"VariableDeclaration":return jE(t,e,r);case"IfStatement":return L$(t,e,r);case"ForStatement":return P$(t,e,r);case"WithStatement":case"WhileStatement":return lM(t,e,r);case"DoWhileStatement":return v$(t,e,r);case"ForInStatement":case"ForOfStatement":return I$(t,e,r);case"DoExpression":return[n.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[n.type==="BreakStatement"?"break":"continue",n.label?[" ",r("label")]:"",bt(e)];case"LabeledStatement":return[r("label"),`:${n.body.type==="EmptyStatement"&&!Ee(n.body,Te.Leading)?"":" "}`,r("body")];case"TryStatement":return oM(t,e,r);case"CatchClause":return uM(t,e,r);case"SwitchStatement":return X$(t,e,r);case"SwitchCase":return Y$(t,e,r);case"DebuggerStatement":return["debugger",bt(e)];case"ClassDeclaration":case"ClassExpression":return Hf(t,e,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return FE(t,e,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return wE(t,e,r);case"TemplateElement":return di(n.value.raw);case"TemplateLiteral":return Hb(t,e,r);case"TaggedTemplateExpression":return o7(t,e,r);case"PrivateIdentifier":return["#",n.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(of(t))return";";default:throw new Ea(n,"ESTree")}}function RE(t){return[t("elementType"),"[]"]}function qE(t,e,r){let{parent:s,node:n,key:i}=t,o=n.type==="AsConstExpression"?"const":r("typeAnnotation"),u=[r("expression")," ",OI(n)?"satisfies":"as"," ",o];return i==="callee"&&Jo(s)||i==="object"&&ct(s)?ee([he([ue,...u]),ue]):u}function pM(t,e,r){let{node:s}=t,n=[qr(t),s.async?"async ":"","component"];s.id&&n.push(" ",r("id")),n.push(r("typeParameters"));let i=Pi(t,e,r);return s.rendersType?n.push(ee([i," ",r("rendersType")])):n.push(ee([i])),s.body&&n.push(" ",r("body")),s.type==="DeclareComponent"&&n.push(bt(e)),n}function hM(t,e,r){let{node:s}=t;return s.shorthand?r("local"):[r("name")," as ",r("local")]}function dM(t,e,r){let{node:s}=t,n=[];return s.name&&n.push(r("name"),s.optional?"?: ":": "),n.push(r("typeAnnotation")),n}function fM(t,e,r){let{node:s}=t;return[s.explicitType?`of ${s.explicitType} `:"",Aa(t,e,r)]}function mM(t,e,r){let{node:s}=t;return[s.type==="EnumSymbolBody"||s.explicitType?`of ${s.type.slice(4,-4).toLowerCase()} `:"",Aa(t,e,r)]}function UE(t,e,r){let{node:s}=t,n=s.type==="TSEnumMember",i=n?$n(t,e,r):r("id"),o=n?"initializer":"init";return s[o]?[i," = ",r(o)]:i}function zE(t,e){let{node:r}=t;return[qr(t),r.const?"const ":"","enum ",e("id")," ",e("body")]}function VE(t,e,r){let{node:s}=t,n=[Sc(t)];(s.type==="TSConstructorType"||s.type==="TSConstructSignatureDeclaration")&&n.push("new ");let i=Pi(t,e,r,!1,!0),o=[];return s.type==="FunctionTypeAnnotation"?o.push(yM(t)?" => ":": ",r("returnType")):o.push(Qt(t,r,"returnType")),fu(s,o)&&(i=ee(i)),n.push(i,o),[ee(n),s.type==="TSConstructSignatureDeclaration"||s.type==="TSCallSignatureDeclaration"?Hs(t,e):""]}function yM(t){let{node:e,parent:r}=t;return e.type==="FunctionTypeAnnotation"&&(kf(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&vc(r,e)||r.type==="ObjectTypeCallProperty"||t.getParentNode(2)?.type==="DeclareFunction"))}function DM(t,e,r){return[qr(t),"hook",t.node.id?[" ",r("id")]:"",bt(e)]}function q0(t){let{node:e}=t;return e.type==="HookTypeAnnotation"&&t.getParentNode(2)?.type==="DeclareHook"}function gM(t,e,r){let{node:s}=t,n=Pi(t,e,r,!1,!0),i=[q0(t)?": ":" => ",r("returnType")];return ee([q0(t)?"":"hook ",fu(s,i)?ee(n):n,i])}function HE(t,e,r){return[r("objectType"),lr(t),"[",r("indexType"),"]"]}function WE(t,e,r){return["infer ",r("typeParameter")]}function JE(t,e,r){let s=!1;return ee(t.map(({isFirst:n,previous:i,node:o,index:u})=>{let c=r();if(n)return c;let d=Ln(o),p=Ln(i);return p&&d?[" & ",s?he(c):c]:!p&&!d||Xs(e.originalText,o)?e.experimentalOperatorPosition==="start"?he([Ce,"& ",c]):he([" &",Ce,c]):(u>1&&(s=!0),[" & ",u>1?he(c):c])},"types"))}function xM(t){switch(t){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function bM(t,e,r){let{node:s}=t;return[ee([s.variance?r("variance"):"",ee(["[",he([ue,r("keyTparam")," in ",r("sourceType")]),ue,"]"]),xM(s.optional),": ",r("propType")]),Hs(t,e)]}function U0(t,e){return t==="+"||t==="-"?t+e:e}function EM(t,e,r){let{node:s}=t,n=!1;if(e.objectWrap==="preserve"){let u=is(e),c=Re(s)+1,d=u.slice(c),p=c+d.search(/\S/);Ar(e.originalText,c,p)&&(n=!0)}let i=[],o=Or(s,Te.Dangling);if(o.length>0){let u=Ye(0,o,-1),c=It(t,e);i.push(...c.slice(0,-1),ee([Ye(0,c,-1),Rn(u)||Ot(e.originalText,Le(u))?pe:Ce]))}return ee(["{",he([e.bracketSpacing?Ce:ue,...i,s.readonly?[U0(s.readonly,"readonly")," "]:"",ee(["[",he([ue,r("key")," in ",r("constraint"),s.nameType?[" as ",r("nameType")]:""]),ue,"]"]),s.optional?U0(s.optional,"?"):"",s.typeAnnotation?": ":"",r("typeAnnotation"),e.semi?Je(";"):""]),e.bracketSpacing?Ce:ue,"}"],{shouldBreak:n})}function CM(t,e,r){let{node:s}=t;return[ee(["match (",he([ue,r("argument")]),ue,")"])," {",s.cases.length>0?he([pe,Qe(pe,t.map(({node:n,isLast:i})=>[r(),!i&&Ns(n,e)?pe:""],"cases"))]):"",pe,"}"]}function AM(t,e,r){let{node:s}=t,n=Ee(s,Te.Dangling)?[" ",It(t,e)]:[],i=s.type==="MatchStatementCase"?[" ",r("body")]:he([Ce,r("body"),","]);return[r("pattern"),s.guard?ee([he([Ce,"if (",r("guard"),")"])]):"",ee([" =>",n,i])]}function vM(t,e,r){let{node:s}=t;switch(s.type){case"MatchOrPattern":return SM(t,e,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[s.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let n=s.property.type==="Identifier"?[".",r("property")]:["[",he([ue,r("property")]),ue,"]"];return ee([r("base"),n])}case"MatchBindingPattern":return[s.kind," ",r("id")];case"MatchObjectPattern":case"MatchInstanceObjectPattern":return TM(t,e,r);case"MatchInstancePattern":return ee([r("targetConstructor")," ",r("properties")]);case"MatchArrayPattern":{let n=t.map(r,"elements");return s.rest&&n.push(r("rest")),ee(["[",he([ue,Qe([",",Ce],n)]),s.rest?"":Je(","),ue,"]"])}case"MatchObjectPatternProperty":return s.shorthand?r("pattern"):ee([r("key"),":",he([Ce,r("pattern")])]);case"MatchRestPattern":{let n=["..."];return s.argument&&n.push(r("argument")),n}}}function TM(t,e,r){let{node:s}=t,n=t.map(r,"properties");return s.rest&&n.push(r("rest")),ee(["{",he([ue,Qe([",",Ce],n)]),s.rest?"":Je(","),ue,"}"])}var GE=Ne(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function FM(t){let{patterns:e}=t;if(e.some(s=>Ee(s)))return!1;let r=e.find(s=>s.type==="MatchObjectPattern");return r?e.every(s=>s===r||GE(s)):!1}function wM(t){return GE(t)||t.type==="MatchObjectPattern"?!0:t.type==="MatchOrPattern"?FM(t):!1}function SM(t,e,r){let{node:s}=t,{parent:n}=t,i=n.type!=="MatchStatementCase"&&n.type!=="MatchExpressionCase"&&n.type!=="MatchArrayPattern"&&n.type!=="MatchObjectPatternProperty"&&!Xs(e.originalText,s),o=wM(s),u=t.map(()=>{let d=r();return o||(d=Rr(2,d)),rr(t,d,e)},"patterns");if(o)return Qe(" | ",u);let c=[Je(["| "]),Qe([Ce,"| "],u)];return Nr(t,e)?ee([he([Je([ue]),c]),ue]):n.type==="MatchArrayPattern"&&n.elements.length>1?ee([he([Je(["(",ue]),c]),ue,Je(")")]):ee(i?he(c):c)}function kM(t,e,r){let{node:s}=t,n=[qr(t),"opaque type ",r("id"),r("typeParameters")];if(s.supertype&&n.push(": ",r("supertype")),s.lowerBound||s.upperBound){let i=[];s.lowerBound&&i.push(he([Ce,"super ",r("lowerBound")])),s.upperBound&&i.push(he([Ce,"extends ",r("upperBound")])),n.push(ee(i))}return s.impltype&&n.push(" = ",r("impltype")),n.push(bt(e)),n}function KE(t,e,r){let{node:s}=t;return["...",...s.type==="TupleTypeSpreadElement"&&s.label?[r("label"),": "]:[],r("typeAnnotation")]}function XE(t,e,r){let{node:s}=t;return[s.variance?r("variance"):"",r("label"),s.optional?"?":"",": ",r("elementType")]}function YE(t,e,r){let{node:s}=t,n=[qr(t),"type ",r("id"),r("typeParameters")],i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[yu(t,e,r,n," =",i),bt(e)]}function PM(t,e,r){let{node:s}=t;return pr(s).length===1&&s.type.startsWith("TS")&&!s[r][0].constraint&&t.parent.type==="ArrowFunctionExpression"&&!(e.filepath&&/\.ts$/.test(e.filepath))}function No(t,e,r,s){let{node:n}=t,i=n[s];if(!i)return"";if(!Array.isArray(i))return r(s);let o=wc(t.grandparent),u=t.match(d=>!(d[s].length===1&&Ln(d[s][0])),void 0,(d,p)=>p==="typeAnnotation",d=>d.type==="Identifier",DE);if(i.length===0||!u&&(o||i.length===1&&(i[0].type==="NullableTypeAnnotation"||X5(i[0])))&&!i.some(d=>{let p=Or(d,f=>f.leading||f.trailing);return p.length>0&&(p.some(f=>Rn(f))||Ot(e.originalText,Le(Ye(0,p,-1))))}))return["<",Qe(", ",t.map(r,s)),IM(t,e),">"];let c=n.type==="TSTypeParameterInstantiation"?"":PM(t,e,s)?",":Wn(e);return ee(["<",he([ue,Qe([",",Ce],t.map(r,s))]),c,ue,">"])}function IM(t,e){let{node:r}=t;if(!Ee(r,Te.Dangling))return"";let s=!Ee(r,Te.Line),n=It(t,e,{indent:!s});return s?n:[n,pe]}function QE(t,e,r){let{node:s}=t,n=[s.const?"const ":""],i=s.type==="TSTypeParameter"?r("name"):s.name;if(s.variance&&n.push(r("variance")),s.in&&n.push("in "),s.out&&n.push("out "),n.push(i),s.bound&&(s.usesExtendsBound&&n.push(" extends "),n.push(Qt(t,r,"bound"))),s.constraint){let o=Symbol("constraint");n.push(" extends",ee(he(Ce),{id:o}),es,Ko(r("constraint"),{groupId:o}))}if(s.default){let o=Symbol("default");n.push(" =",ee(he(Ce),{id:o}),es,Ko(r("default"),{groupId:o}))}return ee(n)}function ZE(t,e){let{node:r}=t;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",e("parameterName"),r.typeAnnotation?[" is ",Qt(t,e)]:""]}function eC({node:t},e){let r=t.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",e(r),e("typeArguments")]}function BM(t,e,r,s){let{node:n}=t;if(Db(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return pM(t,e,r);case"ComponentParameter":return hM(t,e,r);case"ComponentTypeParameter":return dM(t,e,r);case"HookDeclaration":return Mf(t,e,r);case"DeclareHook":return DM(t,e,r);case"HookTypeAnnotation":return gM(t,e,r);case"DeclareFunction":return[qr(t),"function ",r("id"),r("predicate"),bt(e)];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Qt(t,r),bt(e)];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return Array.isArray(n.declarations)?jE(t,e,r):[qr(t),n.kind??"var"," ",r("id"),bt(e)];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return BE(t,e,r);case"DeclareOpaqueType":case"OpaqueType":return kM(t,e,r);case"DeclareTypeAlias":case"TypeAlias":return YE(t,e,r);case"IntersectionTypeAnnotation":return JE(t,e,r);case"UnionTypeAnnotation":return Mb(t,e,r,s);case"ConditionalTypeAnnotation":return Jf(t,e,r);case"InferTypeAnnotation":return WE(t,e,r);case"FunctionTypeAnnotation":return VE(t,e,r);case"TupleTypeAnnotation":return Uf(t,e,r);case"TupleTypeLabeledElement":return XE(t,e,r);case"TupleTypeSpreadElement":return KE(t,e,r);case"GenericTypeAnnotation":return[r("id"),No(t,e,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return HE(t,e,r);case"TypeAnnotation":return _b(t,e,r);case"TypeParameter":return QE(t,e,r);case"TypeofTypeAnnotation":return eC(t,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return RE(r);case"DeclareEnum":case"EnumDeclaration":return zE(t,r);case"EnumBody":return fM(t,e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return mM(t,e,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return UE(t,e,r);case"FunctionTypeParam":{let i=n.name?r("name"):t.parent.this===n?"this":"";return[i,lr(t),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"RecordDeclaration":return Hf(t,e,r);case"ObjectTypeAnnotation":case"RecordDeclarationBody":return Vf(t,e,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"RecordDeclarationImplements":return[r("id"),r("typeArguments")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:i}=n;return i==="plus"?"+":i==="minus"?"-":`${i} `}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),Hs(t,e)];case"ObjectTypeMappedTypeProperty":return bM(t,e,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),Hs(t,e)];case"ObjectTypeProperty":{let i="";return n.proto?i="proto ":n.static&&(i="static "),[i,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",$n(t,e,r),lr(t),ga(n)?"":": ",r("value"),Hs(t,e)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",lr(t),n.method?"":": ",r("value"),Hs(t,e)];case"ObjectTypeSpreadProperty":return jh(t,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return di(fi(Mr(n),e));case"NumberLiteralTypeAnnotation":return Xo(Mr(n));case"BigIntLiteralTypeAnnotation":return _h(Mr(n));case"TypeCastExpression":return["(",r("expression"),Qt(t,r),")"];case"TypePredicate":return ZE(t,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return No(t,e,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[t.key==="predicate"&&t.parent.type!=="DeclareFunction"&&!t.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return qE(t,e,r);case"MatchExpression":case"MatchStatement":return CM(t,e,r);case"MatchExpressionCase":case"MatchStatementCase":return AM(t,e,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchInstancePattern":case"MatchInstanceObjectPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return vM(t,e,r);case"RecordExpression":return[r("recordConstructor"),r("typeArguments")," ",r("properties")];case"RecordExpressionProperties":return Aa(t,e,r);case"RecordDeclarationProperty":case"RecordDeclarationStaticProperty":{let i=n.type==="RecordDeclarationStaticProperty",o=i?"value":"defaultValue";return[i?"static ":"",$n(t,e,r),Qt(t,r),n[o]?[" = ",r(o)]:""]}}}function NM(t,e){let{node:r}=t,s=e.originalText.slice(Re(r),Le(r));return e.semi&&Th(r)?s+=";":jf(t,e)&&(s=`;${s}`),r.type==="ClassExpression"&&pt(r.decorators)?[he([ue,s]),ue]:s}var Hp=t=>t===""||t===Ce||t===pe||t===ue;function LM(t,e,r){let{node:s}=t;if(s.type==="JSXElement"&&XM(s))return[r("openingElement"),r("closingElement")];let n=s.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=s.type==="JSXElement"?r("closingElement"):r("closingFragment");if(s.children.length===1&&s.children[0].type==="JSXExpressionContainer"&&(s.children[0].expression.type==="TemplateLiteral"||s.children[0].expression.type==="TaggedTemplateExpression"))return[n,...t.map(r,"children"),i];s.children=s.children.map(v=>YM(v)?{type:"JSXText",value:" ",raw:" "}:v);let o=s.children.some(zt),u=s.children.filter(v=>v.type==="JSXExpressionContainer").length>1,c=s.type==="JSXElement"&&s.openingElement.attributes.length>1,d=ur(n)||o||c||u,p=t.parent.rootMarker==="mdx",f=e.singleQuote?"{' '}":'{" "}',D=p?Ce:Je([f,ue]," "),m=s.openingElement?.name?.name==="fbt",g=$M(t,e,r,D,m),x=s.children.some(v=>Qo(v));for(let v=g.length-2;v>=0;v--){let P=g[v]===""&&g[v+1]==="",T=g[v]===pe&&g[v+1]===""&&g[v+2]===pe,F=(g[v]===ue||g[v]===pe)&&g[v+1]===""&&g[v+2]===D,k=g[v]===D&&g[v+1]===""&&(g[v+2]===ue||g[v+2]===pe),I=g[v]===D&&g[v+1]===""&&g[v+2]===D,L=g[v]===ue&&g[v+1]===""&&g[v+2]===pe||g[v]===pe&&g[v+1]===""&&g[v+2]===ue;T&&x||P||F||I||L?g.splice(v,2):k&&g.splice(v+1,2)}for(;g.length>0&&Hp(Ye(0,g,-1));)g.pop();for(;g.length>1&&Hp(g[0])&&Hp(g[1]);)g.shift(),g.shift();let b=[""];for(let[v,P]of g.entries()){if(P===D){if(v===1&&PN(g[v-1])){if(g.length===2){b.push([b.pop(),f]);continue}b.push([f,pe],"");continue}if(v===g.length-1){b.push([b.pop(),f]);continue}if(g[v-1]===""&&g[v-2]===pe){b.push([b.pop(),f]);continue}}v%2===0?b.push([b.pop(),P]):b.push(P,""),ur(P)&&(d=!0)}let A=x?lb(b):ee(b,{shouldBreak:!0});if(e.cursorNode?.type==="JSXText"&&s.children.includes(e.cursorNode)?A=[nl,A,nl]:e.nodeBeforeCursor?.type==="JSXText"&&s.children.includes(e.nodeBeforeCursor)?A=[nl,A]:e.nodeAfterCursor?.type==="JSXText"&&s.children.includes(e.nodeAfterCursor)&&(A=[A,nl]),p)return A;let C=ee([n,he([pe,A]),pe,i]);return d?C:oi([ee([n,...g,i]),C])}function $M(t,e,r,s,n){let i="",o=[i];function u(d){i=d,o.push([o.pop(),d])}function c(d){d!==""&&(i=d,o.push(d,""))}return t.each(({node:d,next:p})=>{if(d.type==="JSXText"){let f=Mr(d);if(Qo(d)){let D=Bl.split(f,!0);D[0]===""&&(D.shift(),/\n/.test(D[0])?c(V0(n,D[1],d,p)):c(s),D.shift());let m;if(Ye(0,D,-1)===""&&(D.pop(),m=D.pop()),D.length===0)return;for(let[g,x]of D.entries())g%2===1?c(Ce):u(x);m!==void 0?/\n/.test(m)?c(V0(n,i,d,p)):c(s):c(z0(n,i,d,p))}else/\n/.test(f)?f.match(/\n/g).length>1&&c(pe):c(s)}else{let f=r();if(u(f),p&&Qo(p)){let D=Bl.trim(Mr(p)),[m]=Bl.split(D);c(z0(n,m,d,p))}else c(pe)}},"children"),o}function z0(t,e,r,s){return t?"":r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?e.length===1?ue:pe:ue}function V0(t,e,r,s){return t?pe:e.length===1?r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?pe:ue:pe}var MM=Ne(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function OM(t,e,r){let{parent:s}=t;if(MM(s))return e;let n=_M(t),i=Nr(t,r);return ee([i?"":Je("("),he([ue,e]),ue,i?"":Je(")")],{shouldBreak:n})}function _M(t){return t.match(void 0,(e,r)=>r==="body"&&e.type==="ArrowFunctionExpression",(e,r)=>r==="arguments"&&ut(e))&&(t.match(void 0,void 0,void 0,(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer")||t.match(void 0,void 0,void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer"))}function jM(t,e,r){let{node:s}=t,n=[r("name")];if(s.value){let i;if(_t(s.value)){let o=Mr(s.value),u=qt(0,qt(0,o.slice(1,-1),"'","'"),""",'"'),c=wb(u,e.jsxSingleQuote);u=c==='"'?qt(0,u,'"',"""):qt(0,u,"'","'"),i=t.call(()=>rr(t,di(c+u+c),e),"value")}else i=r("value");n.push("=",i)}return n}function RM(t,e,r){let{node:s}=t,n=(i,o)=>i.type==="JSXEmptyExpression"||!Ee(i)&&(er(i)||ps(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(n(i.argument,i)||i.argument.type==="JSXElement")||ut(Un(i))||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||zt(o)&&(i.type==="ConditionalExpression"||Zs(i)));return n(s.expression,t.parent)?ee(["{",r("expression"),es,"}"]):ee(["{",he([ue,r("expression")]),ue,es,"}"])}function qM(t,e,r){let{node:s}=t,n=Ee(s.name)||Ee(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!n)return["<",r("name"),r("typeArguments")," />"];if(s.attributes?.length===1&&_t(s.attributes[0].value)&&!s.attributes[0].value.value.includes(`
|
|
86
|
-
`)&&!n&&!Ee(s.attributes[0]))return ee(["<",r("name"),r("typeArguments")," ",...t.map(r,"attributes"),s.selfClosing?" />":">"]);let i=s.attributes?.some(u=>_t(u.value)&&u.value.value.includes(`
|
|
87
|
-
`)),o=e.singleAttributePerLine&&s.attributes.length>1?pe:Ce;return ee(["<",r("name"),r("typeArguments"),he(t.map(({isFirst:u,previous:c})=>[u?o:Ns(c,e)?[pe,pe]:o,r()],"attributes")),...UM(s,e,n)],{shouldBreak:i})}function UM(t,e,r){return t.selfClosing?[Ce,"/>"]:zM(t,e,r)?[">"]:[ue,">"]}function zM(t,e,r){let s=t.attributes.length>0&&Ee(Ye(0,t.attributes,-1),Te.Trailing);return t.attributes.length===0&&!r||(e.bracketSameLine||e.jsxBracketSameLine)&&(!r||t.attributes.length>0)&&!s}function VM(t,e,r){let{node:s}=t,n=["</"],i=r("name");return Ee(s.name,Te.Leading|Te.Line)?n.push(he([pe,i]),pe):Ee(s.name,Te.Leading|Te.Block)?n.push(" ",i):n.push(i),n.push(">"),n}function HM(t,e){let{node:r}=t,s=Ee(r),n=Ee(r,Te.Line),i=r.type==="JSXOpeningFragment";return[i?"<":"</",he([n?pe:s&&!i?" ":"",It(t,e)]),n?pe:"",">"]}function WM(t,e,r){let s=rr(t,LM(t,e,r),e);return OM(t,s,e)}function JM(t,e){let{node:r}=t,s=Ee(r,Te.Line);return[It(t,e,{indent:s}),s?pe:""]}function GM(t,e,r){let{node:s}=t;return["{",t.call(({node:n})=>{let i=["...",r()];return Ee(n)?[he([ue,rr(t,i,e)]),ue]:i},s.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function KM(t,e,r){let{node:s}=t;if(s.type.startsWith("JSX"))switch(s.type){case"JSXAttribute":return jM(t,e,r);case"JSXIdentifier":return s.name;case"JSXNamespacedName":return Qe(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return Qe(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return GM(t,e,r);case"JSXExpressionContainer":return RM(t,e,r);case"JSXFragment":case"JSXElement":return WM(t,e,r);case"JSXOpeningElement":return qM(t,e,r);case"JSXClosingElement":return VM(t,e,r);case"JSXOpeningFragment":case"JSXClosingFragment":return HM(t,e);case"JSXEmptyExpression":return JM(t,e);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Ea(s,"JSX")}}function XM(t){if(t.children.length===0)return!0;if(t.children.length>1)return!1;let e=t.children[0];return e.type==="JSXText"&&!Qo(e)}function YM(t){return t.type==="JSXExpressionContainer"&&_t(t.expression)&&t.expression.value===" "&&!Ee(t.expression)}function QM(t,e,r){let{node:s}=t,n=s.parameters.length>1?Wn(e):"",i=ee([he([ue,Qe([", ",ue],t.map(r,"parameters"))]),n,ue]);return[t.key==="body"&&t.parent.type==="ClassBody"&&s.static?"static ":"",s.readonly?"readonly ":"","[",s.parameters?i:"","]",Qt(t,r),Hs(t,e)]}function H0(t,e,r){let{node:s}=t;return[s.postfix?"":r,Qt(t,e),s.postfix?r:""]}function ZM(t,e,r){let{node:s}=t,n=[],i=s.kind&&s.kind!=="method"?`${s.kind} `:"";n.push(kc(s),i,$n(t,e,r),lr(t));let o=Pi(t,e,r,!1,!0),u=Qt(t,r,"returnType"),c=fu(s,u);return n.push(c?ee(o):o),s.returnType&&n.push(ee(u)),[ee(n),Hs(t,e)]}function eO(t,e,r){let{node:s}=t;return[qr(t),s.kind==="global"?"":`${s.kind} `,r("id"),s.body?[" ",ee(r("body"))]:bt(e)]}function tO(t,e,r){let{node:s}=t,n=!(er(s.expression)||ps(s.expression)),i=ee(["<",he([ue,r("typeAnnotation")]),ue,">"]),o=[Je("("),he([ue,r("expression")]),ue,Je(")")];return n?oi([[i,r("expression")],[i,ee(o,{shouldBreak:!0})],[i,r("expression")]]):ee([i,r("expression")])}function rO(t,e,r,s){let{node:n}=t;if(n.type.startsWith("TS")){if(gb(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return tO(t,e,r);case"TSDeclareFunction":return Mf(t,e,r);case"TSExportAssignment":return["export = ",r("expression"),bt(e)];case"TSModuleBlock":return xE(t,e,r);case"TSInterfaceBody":case"TSTypeLiteral":return Vf(t,e,r);case"TSTypeAliasDeclaration":return YE(t,e,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return FE(t,e,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return wE(t,e,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return Hb(t,e,r);case"TSNamedTupleMember":return XE(t,e,r);case"TSRestType":return KE(t,e,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Hf(t,e,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return No(t,e,r,"params");case"TSTypeParameter":return QE(t,e,r);case"TSAsExpression":case"TSSatisfiesExpression":return qE(t,e,r);case"TSArrayType":return RE(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",$n(t,e,r),lr(t),Qt(t,r),Hs(t,e)];case"TSParameterProperty":return[kc(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return eC(t,r);case"TSIndexSignature":return QM(t,e,r);case"TSTypePredicate":return ZE(t,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[Xl(t,e,r),n.qualifier?[".",r("qualifier")]:"",No(t,e,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return HE(t,e,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return EM(t,e,r);case"TSMethodSignature":return ZM(t,e,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),bt(e)];case"TSEnumDeclaration":return zE(t,r);case"TSEnumBody":return Aa(t,e,r);case"TSEnumMember":return UE(t,e,r);case"TSImportEqualsDeclaration":return["import ",NE(n,!1),r("id")," = ",r("moduleReference"),bt(e)];case"TSExternalModuleReference":return Xl(t,e,r);case"TSModuleDeclaration":return eO(t,e,r);case"TSConditionalType":return Jf(t,e,r);case"TSInferType":return WE(t,e,r);case"TSIntersectionType":return JE(t,e,r);case"TSUnionType":return Mb(t,e,r,s);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return VE(t,e,r);case"TSTupleType":return Uf(t,e,r);case"TSTypeReference":return[r("typeName"),No(t,e,r,"typeArguments")];case"TSTypeAnnotation":return _b(t,e,r);case"TSEmptyBodyFunctionExpression":return Of(t,e,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return H0(t,r,"?");case"TSJSDocNonNullableType":return H0(t,r,"!");default:throw new Ea(n,"TypeScript")}}}function sO(t,e,r,s){for(let n of[mL,KM,BM,rO,cM]){let i=n(t,e,r,s);if(i!==void 0)return i}}var nO=Ne(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function W0(t,e,r,s){t.isRoot&&e.__onHtmlBindingRoot?.(t.node,e);let{node:n}=t,i=qf(t)?NM(t,e):sO(t,e,r,s);if(!i)return"";if(nO(n))return i;i=iO(t,e,i);let o=n.type!=="ClassExpression"&&pt(n.decorators)?nE(t,e,r):"",u=Nr(t,e);return!o&&!u?i:ob(i,c=>[u?"(":"",o?ee([o,c]):c,u?")":""])}function iO(t,e,r){let{node:s}=t;return(Ee(s,Te.Leading)||Ee(s,Te.Trailing))&&Yx(t)?[he([ue,rr(t,r,e)]),ue]:r}var aO={experimental_avoidAstMutation:!0,experimental_locForRangeFormat:{locStart:Re,locEnd:Ac}},tC={features:aO,massageAstNode:Yb,canAttachComment:WI,handleComments:zB,isGap:HB,willPrintOwnComments:r7,embed:$7,insertPragma:tL,printComment:nL,printPrettierIgnored:W0,print:W0,getVisitorKeys:eb,isBlockComment:hs,hasPrettierIgnore:qf},oO=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".slnlaunch",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],rC={};nf(rC,{estree:()=>tC,"estree-json":()=>dO});var uO={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},lO=Zx(uO),cO=lO;function Rh(t){return t.extra.raw}var pO=new Set(["start","end","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function sC(t,e){let{type:r}=t;if(r==="ObjectProperty"){let{key:s}=t;if(s.type==="Identifier"){let{name:n}=s;e.key={type:"StringLiteral",value:n,extra:{rawValue:n}}}else if(s.type==="NumericLiteral"){let n=Rh(s);String(Number(n))===n&&(e.key={type:"StringLiteral",value:n,extra:{rawValue:n}})}}if(r==="StringLiteral"&&delete e.extra.raw,r==="UnaryExpression"&&t.operator==="+")return e.argument;if((r==="ArrayExpression"||r==="ObjectExpression")&&(e.extra??(e.extra={}),t.extra?.trailingComma&&delete e.extra.trailingComma),r==="ArrayExpression"){for(let[s,n]of t.elements.entries())n===null&&e.elements.splice(s,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral"){let s=t.quasis[0].value.cooked;return{type:"StringLiteral",value:s,extra:{rawValue:s}}}}sC.ignoredProperties=pO;function hO(t,e,r){let{node:s}=t;switch(s.type){case"JsonRoot":return[r("node"),pe];case"ArrayExpression":{if(s.elements.length===0)return"[]";let n=t.map(()=>t.node===null?"null":r(),"elements");return["[",he([pe,Qe([",",pe],n)]),pe,"]"]}case"ObjectExpression":return s.properties.length===0?"{}":["{",he([pe,Qe([",",pe],t.map(r,"properties"))]),pe,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[s.operator==="+"?"":s.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return s.value?"true":"false";case"StringLiteral":return fi(Rh(s),e);case"NumericLiteral":{let n=Rh(s);return J0(t)&&String(Number(n))===n?`"${n}"`:n}case"Identifier":return J0(t)?JSON.stringify(s.name):s.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(s.value.cooked);default:throw new Ea(s,"JSON")}}function J0(t){return t.key==="key"&&t.parent.type==="ObjectProperty"}var dO={massageAstNode:sC,print:hO,getVisitorKeys:cO},Za={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Cn="JavaScript",fO={arrowParens:{category:Cn,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Za.bracketSameLine,objectWrap:Za.objectWrap,bracketSpacing:Za.bracketSpacing,jsxBracketSameLine:{category:Cn,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Cn,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Cn,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Cn,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Za.singleQuote,jsxSingleQuote:{category:Cn,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Cn,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Cn,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Za.singleAttributePerLine},nC=fO,iC={...kx,...rC},aC=[...yI,...oO];const ol=Object.freeze(Object.defineProperty({__proto__:null,default:Sx,languages:aC,options:nC,printers:iC},Symbol.toStringTag,{value:"Module"}));var oC=Object.defineProperty,uC=t=>{throw TypeError(t)},mO=(t,e,r)=>e in t?oC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lC=(t,e)=>{for(var r in e)oC(t,r,{get:e[r],enumerable:!0})},G0=(t,e,r)=>mO(t,typeof e!="symbol"?e+"":e,r),yO=(t,e,r)=>e.has(t)||uC("Cannot "+r),ul=(t,e,r)=>(yO(t,e,"read from private field"),r?r.call(t):e.get(t)),DO=(t,e,r)=>e.has(t)?uC("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),cC={};lC(cC,{languages:()=>sA,options:()=>nA,parsers:()=>cm,printers:()=>lA});var Gf=(t,e)=>(r,s,...n)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,n),gO=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},xO=Gf("replaceAll",function(){if(typeof this=="string")return gO}),cr=xO;function bO(t){return this[t<0?this.length+t:t]}var EO=Gf("at",function(){if(Array.isArray(this)||typeof this=="string")return bO}),va=EO,CO=()=>{},AO=CO,pC="string",hC="array",dC="cursor",Kf="indent",Xf="align",fC="trim",Yf="group",Qf="fill",Zf="if-break",em="indent-if-break",mC="line-suffix",yC="line-suffix-boundary",Ta="line",DC="label",tm="break-parent",gC=new Set([dC,Kf,Xf,fC,Yf,Qf,Zf,em,mC,yC,Ta,DC,tm]);function xC(t,e,r){if(!t.has(e)){let s=r(e);t.set(e,s)}return t.get(e)}function vO(t){if(typeof t=="string")return pC;if(Array.isArray(t))return hC;if(!t)return;let{type:e}=t;if(gC.has(e))return e}var bC=vO,TO=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function FO(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
88
|
-
Expected it to be 'string' or 'object'.`;if(bC(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=TO([...gC].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
89
|
-
Expected it to be ${s}.`}var wO=class extends Error{name="InvalidDocError";constructor(e){super(FO(e)),this.doc=e}},SO=wO;function EC(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(i){return xC(r,i,n)}function n(i){switch(bC(i)){case hC:return e(i.map(s));case Qf:return e({...i,parts:i.parts.map(s)});case Zf:return e({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Yf:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(s),u=o[0]):u=s(u),e({...i,contents:u,expandedStates:o})}case Xf:case Kf:case em:case DC:case mC:return e({...i,contents:s(i.contents)});case pC:case dC:case fC:case yC:case Ta:case tm:return e(i);default:throw new SO(i)}}}function ls(t,e=$O){return EC(t,r=>typeof r=="string"?Fa(e,r.split(`
|
|
90
|
-
`)):r)}var kO=AO;function Ls(t){return{type:Kf,contents:t}}function PO(t,e){return{type:Xf,contents:e,n:t}}function IO(t){return PO(Number.NEGATIVE_INFINITY,t)}var Du={type:tm};function CC(t){return{type:Qf,parts:t}}function $t(t,e={}){return kO(e.expandedStates),{type:Yf,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function eu(t,e="",r={}){return{type:Zf,breakContents:t,flatContents:e,groupId:r.groupId}}function BO(t,e){return{type:em,contents:t,groupId:e.groupId,negate:e.negate}}function Fa(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var Tt={type:Ta},Xt={type:Ta,soft:!0},NO={type:Ta,hard:!0},xt=[NO,Du],LO={type:Ta,hard:!0,literal:!0},$O=[LO,Du],AC=Object.freeze({character:"'",codePoint:39}),vC=Object.freeze({character:'"',codePoint:34}),MO=Object.freeze({preferred:AC,alternate:vC}),OO=Object.freeze({preferred:vC,alternate:AC});function _O(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?MO:OO,{length:n}=t,i=0,o=0;for(let u=0;u<n;u++){let c=t.charCodeAt(u);c===r.codePoint?i++:c===s.codePoint&&o++}return(i>o?s:r).character}function jO(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var RO=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,s=0;for(let n=0;n<e.length&&r.has(e.charAt(n));n++)s++;return s}getTrailingWhitespaceCount(e){let r=this.#e,s=0;for(let n=e.length-1;n>=0&&r.has(e.charAt(n));n--)s++;return s}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(va(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let s=`[${jO([...this.#e].join(""))}]+`,n=new RegExp(r?`(${s})`:s);return e.split(n)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>r.has(s))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>!r.has(s))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,s=>r.has(s))}#t(e){let r=Number.POSITIVE_INFINITY;for(let s of e.split(`
|
|
91
|
-
`)){if(s.length===0)continue;let n=this.getLeadingWhitespaceCount(s);if(n===0)return 0;s.length!==n&&n<r&&(r=n)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
|
|
92
|
-
`).map(s=>s.slice(r)).join(`
|
|
93
|
-
`)}},qO=RO,UO=[" ",`
|
|
94
|
-
`,"\f","\r"," "],zO=new qO(UO),ts=zO,VO=class extends Error{name="UnexpectedNodeError";constructor(e,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(e[s])}.`),this.node=e}},HO=VO;function gu(t,e=!0){return[Ls([Xt,t]),e?Xt:""]}function wa(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression"||e.parser==="__ng_binding"||e.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function rs(t,e,r,s){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let n=!0;s&&(r.__onHtmlBindingRoot=(o,u)=>{n=s(o,u)});let i=await e(t,r,e);return n?$t(i):gu(i)}function WO(t,e,r,s){let{node:n}=r,i=s.originalText.slice(n.sourceSpan.start.offset,n.sourceSpan.end.offset);return/^\s*$/.test(i)?"":rs(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},wa)}var JO=WO,GO=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),xu=GO,KO=Array.prototype.toReversed??function(){return[...this].reverse()},XO=Gf("toReversed",function(){if(Array.isArray(this))return KO}),YO=XO;function QO(){let t=globalThis,e=t.process?.platform;if(typeof e=="string")return e.startsWith("win");let r=t.Deno?.build?.os;return typeof r=="string"?r==="windows":t.navigator?.platform?.startsWith("Win")??!1}var ZO=QO();function TC(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function e_(t){return t=TC(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function t_(t){t=TC(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function r_(t){return ZO?t_(t):e_(t)}var s_=t=>String(t).split(/[/\\]/).pop(),n_=t=>String(t).startsWith("file:");function i_(t){return Array.isArray(t)&&t.length>0}var Bc=i_;function K0(t,e){if(!e)return;let r=s_(e).toLowerCase();return t.find(({filenames:s})=>s?.some(n=>n.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(n=>r.endsWith(n)))}function a_(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var o_=void 0;function X0(t,e){if(e){if(n_(e))try{e=r_(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function u_(t,e){let r=YO(0,t.plugins).flatMap(s=>s.languages??[]);return(a_(r,e.language)??K0(r,e.physicalFile)??K0(r,e.file)??X0(r,e.physicalFile)??X0(r,e.file)??o_?.(r,e.physicalFile))?.parsers[0]}var rm=u_,FC=Symbol.for("PRETTIER_IS_FRONT_MATTER");function l_(t){return!!t?.[FC]}var Nc=l_;function c_(t){return cr(0,t,/[^\n]/g," ")}var wC=c_,eo=3;function p_(t){let e=t.slice(0,eo);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
95
|
-
`,eo);if(r===-1)return;let s=t.slice(eo,r).trim(),n=t.indexOf(`
|
|
96
|
-
${e}`,r),i=s;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
|
|
97
|
-
...`,r)),n===-1)return;let o=n+1+eo,u=t.charAt(o+1);if(!/\s?/.test(u))return;let c=t.slice(0,o),d;return{language:i,explicitLanguage:s||null,value:t.slice(r+1,n),startDelimiter:e,endDelimiter:c.slice(-eo),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return d??(d=c.split(`
|
|
98
|
-
`)),d.length},get column(){return d??(d=c.split(`
|
|
99
|
-
`)),va(0,d,-1).length}},[FC]:!0}}function h_(t){let e=p_(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return wC(r)+t.slice(r.length)}}:{content:t}}var d_=h_,f_="inline",Y0={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",option:"block",optgroup:"block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block"},m_="normal",Q0={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function y_(t){return t.kind==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var bu=y_,D_=t=>cr(0,t,/^[\t\f\r ]*\n/g,""),SC=t=>D_(ts.trimEnd(t)),g_=t=>{let e=t,r=ts.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let s=ts.getTrailingWhitespace(e);return s&&(e=e.slice(0,-s.length)),{leadingWhitespace:r,trailingWhitespace:s,text:e}};function kC(t,e){return!!(t.kind==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.kind==="ieConditionalComment"&&!t.complete||mi(t)&&t.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||nm(t,e)&&!rn(t,e)&&t.kind!=="interpolation")}function Lc(t){return t.kind==="attribute"||!t.parent||!t.prev?!1:x_(t.prev)}function x_(t){return t.kind==="comment"&&t.value.trim()==="prettier-ignore"}function Xr(t){return t.kind==="text"||t.kind==="comment"}function rn(t,e){return t.kind==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||t.fullName==="mj-style"&&e.parser==="mjml"||bu(t)&&(t.name==="script"||t.name==="style"))}function b_(t,e){return t.children&&!rn(t,e)}function E_(t,e){return rn(t,e)||t.kind==="interpolation"||PC(t)}function PC(t){return OC(t).startsWith("pre")}function C_(t,e){let r=s();if(r&&!t.prev&&t.parent?.tagDefinition?.ignoreFirstLf)return t.kind==="interpolation";return r;function s(){return Nc(t)||t.kind==="angularControlFlowBlock"?!1:(t.kind==="text"||t.kind==="interpolation")&&t.prev&&(t.prev.kind==="text"||t.prev.kind==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:mi(t.parent)?!0:!(!t.prev&&(t.parent.kind==="root"||mi(t)&&t.parent||rn(t.parent,e)||$c(t.parent,e)||!I_(t.parent.cssDisplay))||t.prev&&!L_(t.prev.cssDisplay))}}function A_(t,e){return Nc(t)||t.kind==="angularControlFlowBlock"?!1:(t.kind==="text"||t.kind==="interpolation")&&t.next&&(t.next.kind==="text"||t.next.kind==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:mi(t.parent)?!0:!(!t.next&&(t.parent.kind==="root"||mi(t)&&t.parent||rn(t.parent,e)||$c(t.parent,e)||!B_(t.parent.cssDisplay))||t.next&&!N_(t.next.cssDisplay))}function v_(t,e){return $_(t.cssDisplay)&&!rn(t,e)}function ll(t){return Nc(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+1<t.next.sourceSpan.start.line}function T_(t){return IC(t)||t.kind==="element"&&t.children.length>0&&(["body","script","style"].includes(t.name)||t.children.some(e=>w_(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.kind!=="text"&&NC(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||LC(t.lastChild))}function IC(t){return t.kind==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function Wp(t){return $C(t)||t.prev&&F_(t.prev)||BC(t)}function F_(t){return $C(t)||t.kind==="element"&&t.fullName==="br"||BC(t)}function BC(t){return NC(t)&&LC(t)}function NC(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.line<t.sourceSpan.start.line:t.parent.kind==="root"||t.parent.startSourceSpan.end.line<t.sourceSpan.start.line)}function LC(t){return t.hasTrailingSpaces&&(t.next?t.next.sourceSpan.start.line>t.sourceSpan.end.line:t.parent.kind==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function $C(t){switch(t.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function sm(t){return t.lastChild?sm(t.lastChild):t}function w_(t){return t.children?.some(e=>e.kind!=="text")}function MC(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function S_(t,e){let{name:r,attrMap:s}=t;if(r!=="script"||xu(s,"src"))return;let{type:n,lang:i}=t.attrMap;return!i&&!n?"babel":rm(e,{language:i})??MC(n)}function k_(t,e){if(!nm(t,e))return;let{attrMap:r}=t;if(xu(r,"src"))return;let{type:s,lang:n}=r;return rm(e,{language:n})??MC(s)}function P_(t,e){if(t.name==="style"){let{lang:r}=t.attrMap;return r?rm(e,{language:r}):"css"}if(t.name==="mj-style"&&e.parser==="mjml")return"css"}function Z0(t,e){return S_(t,e)??P_(t,e)??k_(t,e)}function Eu(t){return t==="block"||t==="list-item"||t.startsWith("table")}function I_(t){return!Eu(t)&&t!=="inline-block"}function B_(t){return!Eu(t)&&t!=="inline-block"}function N_(t){return!Eu(t)}function L_(t){return!Eu(t)}function $_(t){return!Eu(t)&&t!=="inline-block"}function mi(t){return OC(t).startsWith("pre")}function M_(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function O_(t,e){if(Sa(t,e))return"block";if(t.prev?.kind==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.kind==="element"&&t.namespace==="svg")if(M_(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(t.kind==="element"&&(!t.namespace||r||bu(t))&&xu(Y0,t.name))return Y0[t.name]}return f_}function OC(t){return t.kind==="element"&&(!t.namespace||bu(t))&&xu(Q0,t.name)?Q0[t.name]:m_}function _C(t){return cr(0,cr(0,t,"'","'"),""",'"')}function Tr(t){return _C(t.value)}var __=new Set(["template","style","script"]);function $c(t,e){return Sa(t,e)&&!__.has(t.fullName)}function Sa(t,e){return e.parser==="vue"&&t.kind==="element"&&t.parent.kind==="root"&&t.fullName.toLowerCase()!=="html"}function nm(t,e){return Sa(t,e)&&($c(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function j_(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function R_(t,e){let r=t.parent;if(!Sa(r,e))return!1;let s=r.fullName,n=t.fullName;return s==="script"&&n==="setup"||s==="style"&&n==="vars"}function jC(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?ls(e):ls(ts.dedentString(SC(e)),xt):Fa(Tt,ts.split(e))}function RC(t,e){return Sa(t,e)&&t.name==="script"}function q_(t){let{valueSpan:e,value:r}=t;return e.end.offset-e.start.offset===r.length+2}function qC(t,e){if(q_(t))return!1;let{value:r}=t;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r)||e.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var UC=/\{\{(.+?)\}\}/s,U_=({node:{value:t}})=>UC.test(t);async function z_(t,e,r){let s=Tr(r.node),n=[];for(let[i,o]of s.split(UC).entries())if(i%2===0)n.push(ls(o));else try{n.push($t(["{{",Ls([Tt,await rs(o,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Tt,"}}"]))}catch{n.push("{{",ls(o),"}}")}return n}var Jp=t=>(e,r,s)=>rs(Tr(s.node),e,{parser:t},wa),V_=[{test(t){let e=t.node.fullName;return e.startsWith("(")&&e.endsWith(")")||e.startsWith("on-")},print:Jp("__ng_action")},{test(t){let e=t.node.fullName;return e.startsWith("[")&&e.endsWith("]")||/^bind(?:on)?-/.test(e)||/^ng-(?:if|show|hide|class|style)$/.test(e)},print:Jp("__ng_binding")},{test:t=>t.node.fullName.startsWith("*"),print:Jp("__ng_directive")},{test:t=>/^i18n(?:-.+)?$/.test(t.node.fullName),print:H_},{test:U_,print:z_}].map(({test:t,print:e})=>({test:(r,s)=>s.parser==="angular"&&t(r),print:e}));function H_(t,e,{node:r}){let s=Tr(r);return gu(CC(jC(r,s.trim())),!s.includes("@@"))}var W_=V_,J_=({node:t},e)=>!e.parentParser&&t.fullName==="class"&&!t.value.includes("{{"),G_=(t,e,r)=>cr(0,Tr(r.node).trim(),/\s+/g," "),K_=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],X_=new Set(K_),Y_=({node:t},e)=>X_.has(t.fullName)&&!e.parentParser&&!t.value.includes("{{"),Q_=(t,e,r)=>rs(Tr(r.node),t,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function Z_(t){let e=[];for(let r of t.split(";")){if(r=ts.trim(r),!r)continue;let[s,...n]=ts.split(r);e.push({name:s,value:n})}return e}var ej=Z_,tj=({node:t},e)=>t.fullName==="allow"&&!e.parentParser&&t.parent.fullName==="iframe"&&!t.value.includes("{{");function rj(t,e,r){let{node:s}=r,n=ej(Tr(s));return n.length===0?[""]:gu(n.map(({name:i,value:o},u)=>[[i,...o].join(" "),u===n.length-1?eu(";"):[";",Tt]]))}function eD(t){return t===" "||t===`
|
|
100
|
-
`||t==="\f"||t==="\r"||t===" "}var sj=/^[ \t\n\r\u000c]+/,nj=/^[, \t\n\r\u000c]+/,ij=/^[^ \t\n\r\u000c]+/,aj=/[,]+$/,tD=/^\d+$/,oj=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function uj(t){let e=t.length,r,s,n,i,o,u=0,c;function d(m){let g,x=m.exec(t.substring(u));if(x)return[g]=x,u+=g.length,g}let p=[];for(;;){if(d(nj),u>=e){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}c=u,r=d(ij),s=[],r.slice(-1)===","?(r=r.replace(aj,""),D()):f()}function f(){for(d(sj),n="",i="in descriptor";;){if(o=t.charAt(u),i==="in descriptor")if(eD(o))n&&(s.push(n),n="",i="after descriptor");else if(o===","){u+=1,n&&s.push(n),D();return}else if(o==="(")n+=o,i="in parens";else if(o===""){n&&s.push(n),D();return}else n+=o;else if(i==="in parens")if(o===")")n+=o,i="in descriptor";else if(o===""){s.push(n),D();return}else n+=o;else if(i==="after descriptor"&&!eD(o))if(o===""){D();return}else i="in descriptor",u-=1;u+=1}}function D(){let m=!1,g,x,b,A,C={},v,P,T,F,k;for(A=0;A<s.length;A++)v=s[A],P=v[v.length-1],T=v.substring(0,v.length-1),F=parseInt(T,10),k=parseFloat(T),tD.test(T)&&P==="w"?((g||x)&&(m=!0),F===0?m=!0:g=F):oj.test(T)&&P==="x"?((g||x||b)&&(m=!0),k<0?m=!0:x=k):tD.test(T)&&P==="h"?((b||x)&&(m=!0),F===0?m=!0:b=F):m=!0;if(!m)C.source={value:r,startOffset:c},g&&(C.width={value:g}),x&&(C.density={value:x}),b&&(C.height={value:b}),p.push(C);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${v}".`)}}var lj=uj,cj=t=>t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"),zC={width:"w",height:"h",density:"x"},pj=Object.keys(zC);function hj(t,e,r){let s=Tr(r.node),n=lj(s),i=pj.filter(m=>n.some(g=>xu(g,m)));if(i.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[o]=i,u=zC[o],c=n.map(m=>m.source.value),d=Math.max(...c.map(m=>m.length)),p=n.map(m=>m[o]?String(m[o].value):""),f=p.map(m=>{let g=m.indexOf(".");return g===-1?m.length:g}),D=Math.max(...f);return gu(Fa([",",Tt],c.map((m,g)=>{let x=[m],b=p[g];if(b){let A=d-m.length+1,C=D-f[g],v=" ".repeat(A+C);x.push(eu(v," "),b+u)}return x})))}var dj=({node:t},e)=>t.fullName==="style"&&!e.parentParser&&!t.value.includes("{{"),fj=async(t,e,r)=>gu(await t(Tr(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),mj=new WeakMap;function yj(t,e){return xC(mj,t.root,r=>r.children.some(s=>RC(s,e)&&["ts","typescript"].includes(s.attrMap.lang)))}var ka=yj;function Dj(t,e,r){let s=Tr(r.node);return rs(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},wa)}function gj(t,e,r,s){let n=Tr(r.node),i=ka(r,s)?"babel-ts":"babel";return rs(`function _(${n}) {}`,t,{parser:i,__isVueBindings:!0})}async function xj(t,e,r,s){let n=Tr(r.node),{left:i,operator:o,right:u}=bj(n),c=ka(r,s);return[$t(await rs(`function _(${i}) {}`,t,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",o," ",await rs(u,t,{parser:c?"__ts_expression":"__js_expression"})]}function bj(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=t.match(e);if(!r)return;let s={for:r[3].trim()};if(!s.for)return;let n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,i=/^\(|\)$/g,o=cr(0,r[1].trim(),i,""),u=o.match(n);u?(s.alias=o.replace(n,""),s.iterator1=u[1].trim(),u[2]&&(s.iterator2=u[2].trim())):s.alias=o;let c=[s.alias,s.iterator1,s.iterator2];if(!c.some((d,p)=>!d&&(p===0||c.slice(p+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:r[2],right:s.for}}var Ej=[{test:t=>t.node.fullName==="v-for",print:xj},{test:(t,e)=>t.node.fullName==="generic"&&RC(t.parent,e),print:Dj},{test:({node:t},e)=>j_(t)||R_(t,e),print:gj},{test(t){let e=t.node.fullName;return e.startsWith("@")||e.startsWith("v-on:")},print:Cj},{test(t){let e=t.node.fullName;return e.startsWith(":")||e.startsWith(".")||e.startsWith("v-bind:")},print:Aj},{test:t=>t.node.fullName.startsWith("v-"),print:VC}].map(({test:t,print:e})=>({test:(r,s)=>s.parser==="vue"&&t(r,s),print:e}));async function Cj(t,e,r,s){try{return await VC(t,e,r,s)}catch(o){if(o.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw o}let n=Tr(r.node),i=ka(r,s)?"__vue_ts_event_binding":"__vue_event_binding";return rs(n,t,{parser:i},wa)}function Aj(t,e,r,s){let n=Tr(r.node),i=ka(r,s)?"__vue_ts_expression":"__vue_expression";return rs(n,t,{parser:i},wa)}function VC(t,e,r,s){let n=Tr(r.node),i=ka(r,s)?"__ts_expression":"__js_expression";return rs(n,t,{parser:i},wa)}var vj=Ej,Tj=[{test:cj,print:hj},{test:dj,print:fj},{test:Y_,print:Q_},{test:J_,print:G_},{test:tj,print:rj},...vj,...W_].map(({test:t,print:e})=>({test:t,print:wj(e)}));function Fj(t,e){let{node:r}=t,{value:s}=r;if(s)return qC(r,e)?[r.rawName,"=",s]:Tj.find(({test:n})=>n(t,e))?.print}function wj(t){return async(e,r,s,n)=>{let i=await t(e,r,s,n);if(i)return i=EC(i,o=>typeof o=="string"?cr(0,o,'"',"""):o),[s.node.rawName,'="',$t(i),'"']}}var Sj=Fj,da=t=>t.sourceSpan.start.offset,Mc=t=>t.sourceSpan.end.offset;function qh(t,e){return[t.isSelfClosing?"":kj(t,e),Lo(t,e)]}function kj(t,e){return t.lastChild&&fa(t.lastChild)?"":[Pj(t,e),im(t,e)]}function Lo(t,e){return(t.next?Di(t.next):Au(t.parent))?"":[Cu(t,e),yi(t,e)]}function Pj(t,e){return Au(t)?Cu(t.lastChild,e):""}function yi(t,e){return fa(t)?im(t.parent,e):Oc(t)?am(t.next,e):""}function im(t,e){if(HC(t,e))return"";switch(t.kind){case"ieConditionalComment":return"<!";case"element":if(t.hasHtmComponentClosingTag)return"<//";default:return`</${t.rawName}`}}function Cu(t,e){if(HC(t,e))return"";switch(t.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function HC(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(Lc(t)||kC(t.parent,e))}function Di(t){return t.prev&&t.prev.kind!=="docType"&&t.kind!=="angularControlFlowBlock"&&!Xr(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Au(t){return t.lastChild?.isTrailingSpaceSensitive&&!t.lastChild.hasTrailingSpaces&&!Xr(sm(t.lastChild))&&!mi(t)}function fa(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&Xr(sm(t))}function Oc(t){return t.next&&!Xr(t.next)&&Xr(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Ij(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function _c(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Bj(t,e,r){let{node:s}=t,{attrs:n=[],startTagComments:i=[]}=s;if(n.length===0&&i.length===0)return s.isSelfClosing?" ":"";let o=s.prev?.kind==="comment"&&Ij(s.prev.value),u=typeof o=="boolean"?()=>o:Array.isArray(o)?g=>o.includes(g.rawName):()=>!1,c=["attrs","startTagComments"].filter(g=>Bc(s[g])),d=c.flatMap(g=>t.map(({node:x})=>({loc:da(x),printed:x.kind==="attribute"&&u(x)?ls(e.originalText.slice(da(x),Mc(x))):r()}),g));c.length>1&&d.sort((g,x)=>g.loc-x.loc);let p=s.kind==="element"&&s.fullName==="script"&&n.length===1&&n[0].fullName==="src"&&s.children.length===0&&i.length===0,f=i.some(g=>g.type==="single"),D=f||e.singleAttributePerLine&&n.length>1&&!Sa(s,e)?xt:Tt,m=[Ls([p?" ":f?xt:Tt,Fa(D,d.map(({printed:g})=>g))])];return s.firstChild&&_c(s.firstChild)||s.isSelfClosing&&Au(s.parent)||p?m.push(s.isSelfClosing?" ":""):m.push(e.bracketSameLine?s.isSelfClosing?" ":"":s.isSelfClosing?Tt:Xt),m}function Nj(t){return t.firstChild&&_c(t.firstChild)?"":om(t)}function Uh(t,e,r){let{node:s}=t;return[$o(s,e),Bj(t,e,r),s.isSelfClosing?"":Nj(s)]}function $o(t,e){return t.prev&&Oc(t.prev)?"":[gi(t,e),am(t,e)]}function gi(t,e){return _c(t)?om(t.parent):Di(t)?Cu(t.prev,e):""}var rD="<!doctype";function am(t,e){switch(t.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${t.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(t.value==="html"){let{filepath:s}=e;if(s&&/\.html?$/.test(s))return rD}let r=da(t);return e.originalText.slice(r,r+rD.length)}case"angularIcuExpression":return"{";case"element":if(t.condition)return`<!--[if ${t.condition}]><!--><${t.rawName}`;default:return`<${t.rawName}`}}function om(t){switch(t.kind){case"ieConditionalComment":return"]>";case"element":if(t.condition)return"><!--<![endif]-->";default:return">"}}function Lj(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&_c(t.firstChild)&&(r-=om(t).length);let s=t.endSourceSpan.start.offset;return t.lastChild&&fa(t.lastChild)?s+=im(t,e).length:Au(t)&&(s-=Cu(t.lastChild,e).length),e.originalText.slice(r,s)}var WC=Lj,$j=new Set(["if","else if","for","switch","case"]);function Mj(t,e){let{node:r}=t;switch(r.kind){case"element":if(rn(r,e)||r.kind==="interpolation")return;if(!r.isSelfClosing&&nm(r,e)){let s=Z0(r,e);return s?async(n,i)=>{let o=WC(r,e),u=/^\s*$/.test(o),c="";return u||(c=await n(SC(o),{parser:s,__embeddedInHtml:!0}),u=c===""),[gi(r,e),$t(Uh(t,e,i)),u?"":xt,c,u?"":xt,qh(r,e),yi(r,e)]}:void 0}break;case"text":if(rn(r.parent,e)){let s=Z0(r.parent,e);if(s)return async n=>{let i=s==="markdown"?ts.dedentString(r.value.replace(/^[^\S\n]*\n/,"")):r.value,o={parser:s,__embeddedInHtml:!0};if(e.parser==="html"&&s==="babel"){let u="script",{attrMap:c}=r.parent;c&&(c.type==="module"||(c.type==="text/babel"||c.type==="text/jsx")&&c["data-type"]==="module")&&(u="module"),o.__babelSourceType=u}return[Du,gi(r,e),await n(i,o),yi(r,e)]}}else if(r.parent.kind==="interpolation")return async s=>{let n={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?n.parser="__ng_interpolation":e.parser==="vue"?n.parser=ka(t,e)?"__vue_ts_expression":"__vue_expression":n.parser="__js_expression",[Ls([Tt,await s(r.value,n)]),r.parent.next&&Di(r.parent.next)?" ":Tt]};break;case"attribute":return Sj(t,e);case"angularControlFlowBlockParameters":return $j.has(t.parent.name)?JO:void 0;case"angularLetDeclarationInitializer":return s=>rs(r.value,s,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Oj=Mj,to=null;function Mo(t){if(to!==null&&typeof to.property){let e=to;return to=Mo.prototype=null,e}return to=Mo.prototype=t??Object.create(null),new Mo}var _j=10;for(let t=0;t<=_j;t++)Mo();function jj(t){return Mo(t)}function Rj(t,e="type"){jj(t);function r(s){let n=s[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var qj=Rj,ro=[["children"]],Uj={root:ro[0],element:["attrs","startTagComments","children"],ieConditionalComment:ro[0],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:ro[0],text:ro[0],docType:[],comment:[],attribute:[],startTagComment:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:ro[0],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},zj=qj(Uj,"kind"),Vj=zj,Hj=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Wj=new Set(["if","else if","for","switch","case"]);function JC(t,e,r){if(t.kind==="text"||t.kind==="comment")return null;if(t.kind==="yaml"&&delete e.value,t.kind==="attribute"){let{fullName:s,value:n}=t;s==="style"||s==="class"||s==="srcset"&&(r.fullName==="img"||r.fullName==="source")||s==="allow"&&r.fullName==="iframe"||s.startsWith("on")||s.startsWith("@")||s.startsWith(":")||s.startsWith(".")||s.startsWith("#")||s.startsWith("v-")||s==="vars"&&r.fullName==="style"||(s==="setup"||s==="generic")&&r.fullName==="script"||s==="slot-scope"||s.startsWith("(")||s.startsWith("[")||s.startsWith("*")||s.startsWith("bind")||s.startsWith("i18n")||s.startsWith("on-")||s.startsWith("ng-")||n?.includes("{{")?delete e.value:n&&(e.value=cr(0,n,/'|"|'/g,'"'))}if(t.kind==="docType"&&(e.value=cr(0,t.value.toLowerCase(),/\s+/g," ")),t.kind==="angularControlFlowBlock"&&t.parameters?.children)for(let s of e.parameters.children)Wj.has(t.name)?delete s.expression:s.expression=s.expression.trim();t.kind==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.kind==="angularLetDeclarationInitializer"&&delete e.value,t.kind==="element"&&t.isVoid&&!t.isSelfClosing&&(e.isSelfClosing=!0)}JC.ignoredProperties=Hj;var Jj="format",Gj=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/,Kj=/^\s*<!--\s*@(?:format|prettier)\s*-->/,Xj=t=>Kj.test(t),Yj=t=>Gj.test(t),Qj=t=>`<!-- @${Jj} -->
|
|
101
|
-
|
|
102
|
-
${t}`,Zj=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function GC(t){let e=Mc(t);return t.kind==="element"&&!t.endSourceSpan&&Bc(t.children)?Math.max(e,GC(va(0,t.children,-1))):e}function so(t,e,r){let s=t.node;if(Lc(s)){let n=GC(s);return[gi(s,e),ls(ts.trimEnd(e.originalText.slice(da(s)+(s.prev&&Oc(s.prev)?am(s).length:0),n-(s.next&&Di(s.next)?Cu(s,e).length:0)))),yi(s,e)]}return r()}function cl(t,e){return Xr(t)&&Xr(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?Wp(e)?xt:Tt:"":Wp(e)?xt:Xt:Oc(t)&&(Lc(e)||e.firstChild||e.isSelfClosing||e.kind==="element"&&e.attrs.length>0)||t.kind==="element"&&t.isSelfClosing&&Di(e)?"":e.kind==="comment"&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces?Xt:!e.isLeadingSpaceSensitive||Wp(e)||Di(e)&&t.lastChild&&fa(t.lastChild)&&t.lastChild.lastChild&&fa(t.lastChild.lastChild)?xt:e.hasLeadingSpaces?Tt:Xt}function um(t,e,r){let{node:s}=t;if(IC(s))return[Du,...t.map(()=>{let i=t.node,o=i.prev?cl(i.prev,i):"";return[o?[o,ll(i.prev)?xt:""]:"",so(t,e,r)]},"children")];let n=s.children.map(()=>Symbol(""));return t.map(({node:i,index:o})=>{if(Xr(i)){if(i.prev&&Xr(i.prev)){let m=cl(i.prev,i);if(m)return ll(i.prev)?[xt,xt,so(t,e,r)]:[m,so(t,e,r)]}return so(t,e,r)}let u=[],c=[],d=[],p=[],f=i.prev?cl(i.prev,i):"",D=i.next?cl(i,i.next):"";return f&&(ll(i.prev)?u.push(xt,xt):f===xt?u.push(xt):Xr(i.prev)?c.push(f):c.push(eu("",Xt,{groupId:n[o-1]}))),D&&(ll(i)?Xr(i.next)&&p.push(xt,xt):D===xt?Xr(i.next)&&p.push(xt):d.push(D)),[...u,$t([...c,$t([so(t,e,r),...d],{id:n[o]})]),...p]},"children")}function eR(t,e,r){let{node:s}=t,n=[];nR(t)&&n.push("} "),n.push("@",s.name);let i=rR(s);if(s.parameters&&(i||n.push(" "),n.push("(",$t(r("parameters")),")")),i)return n.push(";"),n;if(!sR(s)){n.push(" {");let o=KC(s);s.children.length>0?(s.firstChild.hasLeadingSpaces=!0,s.lastChild.hasTrailingSpaces=!0,n.push(Ls([xt,um(t,e,r)])),o&&n.push(xt,"}")):o&&n.push("}")}return $t(n,{shouldBreak:!0})}function KC(t){return!(t.next?.kind==="angularControlFlowBlock"&&Zj.get(t.name)?.has(t.next.name))}var tR=t=>t?.kind==="angularControlFlowBlock"&&(t.name==="case"||t.name==="default"),rR=t=>t?.kind==="angularControlFlowBlock"&&t.name==="default never";function sR(t){return tR(t)&&t.endSourceSpan&&t.endSourceSpan.start.offset===t.endSourceSpan.end.offset}function nR(t){let{previous:e}=t;return e?.kind==="angularControlFlowBlock"&&!Lc(e)&&!KC(e)}function iR(t,e,r){return[Ls([Xt,Fa([";",Tt],t.map(r,"children"))]),Xt]}function aR(t,e,r){let{node:s}=t;return[$o(s,e),$t([s.switchValue.trim(),", ",s.type,s.cases.length>0?[",",Ls([Tt,Fa(Tt,t.map(r,"cases"))])]:"",Xt]),Lo(s,e)]}function oR(t,e,r){let{node:s}=t;return[s.value," {",$t([Ls([Xt,t.map(({node:n,isLast:i})=>{let o=[r()];return n.kind==="text"&&(n.hasLeadingSpaces&&o.unshift(Tt),n.hasTrailingSpaces&&!i&&o.push(Tt)),o},"expression")]),Xt]),"}"]}function uR(t,e,r){let{node:s}=t;if(kC(s,e))return[gi(s,e),$t(Uh(t,e,r)),ls(WC(s,e)),...qh(s,e),yi(s,e)];let n=s.children.length===1&&(s.firstChild.kind==="interpolation"||s.firstChild.kind==="angularIcuExpression")&&s.firstChild.isLeadingSpaceSensitive&&!s.firstChild.hasLeadingSpaces&&s.lastChild.isTrailingSpaceSensitive&&!s.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),o=p=>$t([$t(Uh(t,e,r),{id:i}),p,qh(s,e)]);if(s.children.length===0)return o(s.hasDanglingSpaces&&s.isDanglingSpaceSensitive?Tt:"");let u=p=>n?BO(p,{groupId:i}):(rn(s,e)||$c(s,e))&&s.parent.kind==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?p:Ls(p),c=()=>n?eu(Xt,"",{groupId:i}):s.firstChild.hasLeadingSpaces&&s.firstChild.isLeadingSpaceSensitive?Tt:s.firstChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive?IO(Xt):Xt,d=()=>(s.next?Di(s.next):Au(s.parent))?s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?" ":"":mi(s)&&fa(s.lastChild)?"":n?eu(Xt,"",{groupId:i}):s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?Tt:(s.lastChild.kind==="comment"||s.lastChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(s.lastChild.value)?"":Xt;return o([T_(s)?Du:"",u([c(),um(t,e,r)]),d()])}function lR(t){let{node:{value:e,type:r}}=t;return r==="single"?`//${e.trimEnd()}`:["/*",ls(e),"*/"]}var cR=(function(t){return t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA",t})({});function Pa(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function sD(t){return Pa(t)[1]==="ng-container"}function nD(t){return Pa(t)[1]==="ng-content"}function Ll(t){return t===null?null:Pa(t)[0]}function Oo(t,e){return t?`:${t}:${e}`:e}var $l,pR="math",zh=()=>Object.create(null);function hR(){return $l||($l=zh(),An(1,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),An(2,void 0,[["*",["style"]]]),An(4,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),An(4,pR,[["*",["href","xlink:href"]]]),An(5,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),An(4,"svg",[["a",["href","xlink:href"]]]),An(6,"svg",[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),An(6,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),$l)}function An(t,e,r){let s=e??"";for(let[i,o]of r){let u=i.toLowerCase();for(let c of o){var n;let d=c.toLowerCase(),p=(n=$l)[d]??(n[d]=zh()),f=p[s]??(p[s]=zh());f[u]=t}}}function dR(t,e,r){let s=hR()[e.toLowerCase()];if(!s)return 0;let n=t.toLowerCase(),i;if(r){let o=s[r];o&&(i=o[n]??o["*"])}if(i===void 0){let o=s[""];o&&(i=o[n]??o["*"])}return i??0}var iD={name:"custom-elements"},aD={name:"no-errors-schema"},fR=/-+([a-z0-9])/g;function mR(t){return t.replace(fR,(...e)=>e[1].toUpperCase())}var yR=class{},DR="boolean",gR="number",xR="string",bR="object";function pl(t){let[e,r]=Pa(t.toLowerCase(),!1);return e==="svg"||e==="math"?`:${e}:${r}`:r}var ER=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],XC=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),CR=Array.from(XC).reduce((t,[e,r])=>(t.set(e,r),t),new Map),AR=class extends yR{_schema=new Map;_eventSchema=new Map;constructor(){super(),ER.forEach(e=>{let r=new Map,s=new Set,[n,i]=e.split("|"),o=i.split(","),[u,c]=n.split("^");u.split(",").forEach(p=>{this._schema.set(p.toLowerCase(),r),this._eventSchema.set(p.toLowerCase(),s)});let d=c&&this._schema.get(c.toLowerCase());if(d){for(let[p,f]of d)r.set(p,f);for(let p of this._eventSchema.get(c.toLowerCase()))s.add(p)}o.forEach(p=>{if(p.length>0)switch(p[0]){case"*":s.add(p.substring(1));break;case"!":r.set(p.substring(1),DR);break;case"#":r.set(p.substring(1),gR);break;case"%":r.set(p.substring(1),bR);break;default:r.set(p,xR)}})})}hasProperty(e,r,s){if(s.some(i=>i.name===aD.name))return!0;let n=pl(e);if(n.includes("-")){if(sD(n)||nD(n))return!1;if(s.some(i=>i.name===iD.name))return!0}return(this._schema.get(n)||this._schema.get("unknown")).has(r)}hasElement(e,r){if(r.some(n=>n.name===aD.name))return!0;let s=pl(e);return s.includes("-")&&(sD(s)||nD(s)||r.some(n=>n.name===iD.name))?!0:this._schema.has(s)}securityContext(e,r,s){s&&(r=this.getMappedPropName(r));let[n,i]=Pa(e,!1);return dR(i,r,n)}getMappedPropName(e){return XC.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
103
|
-
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=pl(e),s=this._schema.get(r)||this._schema.get("unknown");return Array.from(s.keys()).map(n=>CR.get(n)??n)}allKnownEventsOfElement(e){let r=pl(e);return Array.from(this._eventSchema.get(r)??[])}normalizeAnimationStyleProperty(e){return mR(e)}normalizeAnimationStyleValue(e,r,s){let n="",i=s.toString().trim(),o=null;if(vR(e)&&s!==0&&s!=="0")if(typeof s=="number")n="px";else{let u=s.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(o=`Please provide a CSS unit value for ${r}:${s}`)}return{error:o,value:i+n}}};function vR(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Ve=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:t,implicitNamespacePrefix:e,contentType:r=2,closedByParent:s=!1,isVoid:n=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){t&&t.length>0&&t.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=n,this.closedByParent=s||n,this.implicitNamespacePrefix=e||null,this.contentType=r,this.ignoreFirstLf=i,this.preventNamespaceInheritance=o,this.canSelfClose=u??n}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){return typeof this.contentType=="object"?(t===void 0?void 0:this.contentType[t])??this.contentType.default:this.contentType}},oD,no;function Vh(t){return no||(oD=new Ve({canSelfClose:!0}),no=Object.assign(Object.create(null),{base:new Ve({isVoid:!0}),meta:new Ve({isVoid:!0}),area:new Ve({isVoid:!0}),embed:new Ve({isVoid:!0}),link:new Ve({isVoid:!0}),img:new Ve({isVoid:!0}),input:new Ve({isVoid:!0}),param:new Ve({isVoid:!0}),hr:new Ve({isVoid:!0}),br:new Ve({isVoid:!0}),source:new Ve({isVoid:!0}),track:new Ve({isVoid:!0}),wbr:new Ve({isVoid:!0}),p:new Ve({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Ve({closedByChildren:["tbody","tfoot"]}),tbody:new Ve({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Ve({closedByChildren:["tbody"],closedByParent:!0}),tr:new Ve({closedByChildren:["tr"],closedByParent:!0}),td:new Ve({closedByChildren:["td","th"],closedByParent:!0}),th:new Ve({closedByChildren:["td","th"],closedByParent:!0}),col:new Ve({isVoid:!0}),svg:new Ve({implicitNamespacePrefix:"svg"}),foreignObject:new Ve({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Ve({implicitNamespacePrefix:"math"}),li:new Ve({closedByChildren:["li"],closedByParent:!0}),dt:new Ve({closedByChildren:["dt","dd"]}),dd:new Ve({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Ve({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Ve({closedByChildren:["optgroup"],closedByParent:!0}),option:new Ve({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Ve({ignoreFirstLf:!0}),listing:new Ve({ignoreFirstLf:!0}),style:new Ve({contentType:0}),script:new Ve({contentType:0}),title:new Ve({contentType:{default:1,svg:2}}),textarea:new Ve({contentType:1,ignoreFirstLf:!0})}),new AR().allKnownElementNames().forEach(e=>{!no[e]&&Ll(e)===null&&(no[e]=new Ve({canSelfClose:!1}))})),no[t]??oD}var Hh=class YC{file;offset;line;col;constructor(e,r,s,n){this.file=e,this.offset=r,this.line=s,this.col=n}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,s=r.length,n=this.offset,i=this.line,o=this.col;for(;n>0&&e<0;)if(n--,e++,r.charCodeAt(n)==10){i--;let u=r.substring(0,n-1).lastIndexOf(`
|
|
104
|
-
`);o=u>0?n-u:n}else o--;for(;n<s&&e>0;){let u=r.charCodeAt(n);n++,e--,u==10?(i++,o=0):o++}return new YC(this.file,n,i,o)}getContext(e,r){let s=this.file.content,n=this.offset;if(n!=null){n>s.length-1&&(n=s.length-1);let i=n,o=0,u=0;for(;o<e&&n>0&&(n--,o++,!(s[n]==`
|
|
105
|
-
`&&++u==r)););for(o=0,u=0;o<e&&i<s.length-1&&(i++,o++,!(s[i]==`
|
|
106
|
-
`&&++u==r)););return{before:s.substring(n,this.offset),after:s.substring(this.offset,i+1)}}return null}},QC=class{content;url;constructor(e,r){this.content=e,this.url=r}},ze=class{start;end;fullStart;details;constructor(t,e,r=t,s=null){this.start=t,this.end=e,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},TR=(function(t){return t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR",t})({}),Ji=class extends Error{span;msg;level;relatedError;constructor(t,e,r=1,s){super(e),this.span=t,this.msg=e,this.level=r,this.relatedError=s,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let t=this.span.start.getContext(100,3);return t?`${this.msg} ("${t.before}[${TR[this.level]} ->]${t.after}")`:this.msg}toString(){let t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}},Ii=class{sourceSpan;i18n;constructor(e,r){this.sourceSpan=e,this.i18n=r}},FR=class extends Ii{value;tokens;constructor(e,r,s,n){super(r,n),this.value=e,this.tokens=s}visit(e,r){return e.visitText(this,r)}kind="text"},wR=class extends Ii{value;tokens;constructor(e,r,s,n){super(r,n),this.value=e,this.tokens=s}visit(e,r){return e.visitCdata(this,r)}kind="cdata"},SR=class extends Ii{switchValue;type;cases;switchValueSourceSpan;constructor(e,r,s,n,i,o){super(n,o),this.switchValue=e,this.type=r,this.cases=s,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}kind="expansion"},kR=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,r,s,n,i){this.value=e,this.expression=r,this.sourceSpan=s,this.valueSourceSpan=n,this.expSourceSpan=i}visit(e,r){return e.visitExpansionCase(this,r)}kind="expansionCase"},PR=class extends Ii{name;value;keySpan;valueSpan;valueTokens;constructor(e,r,s,n,i,o,u){super(s,u),this.name=e,this.value=r,this.keySpan=n,this.valueSpan=i,this.valueTokens=o}visit(e,r){return e.visitAttribute(this,r)}kind="attribute";get nameSpan(){return this.keySpan}},IR=class{value;type;sourceSpan;constructor(e,r,s){this.value=e,this.type=r,this.sourceSpan=s}visit(e,r){return e.visitStartTagComment?e.visitStartTagComment(this,r):void 0}kind="startTagComment"},Yn=class extends Ii{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;nameSpan;isVoid;comments;constructor(e,r,s,n,i,o,u,c=null,d=null,p,f,D=[]){super(o,f),this.name=e,this.attrs=r,this.directives=s,this.children=n,this.isSelfClosing=i,this.startSourceSpan=u,this.endSourceSpan=c,this.nameSpan=d,this.isVoid=p,this.comments=D}visit(e,r){return e.visitElement(this,r)}kind="element"},BR=class{value;sourceSpan;constructor(e,r){this.value=e,this.sourceSpan=r}visit(e,r){return e.visitComment(this,r)}kind="comment"},NR=class{value;sourceSpan;constructor(e,r){this.value=e,this.sourceSpan=r}visit(e,r){return e.visitDocType(this,r)}kind="docType"},zi=class extends Ii{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,r,s,n,i,o,u=null,c){super(n,c),this.name=e,this.parameters=r,this.children=s,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=u}visit(e,r){return e.visitBlock(this,r)}kind="block"},qs=class extends Ii{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;comments;constructor(e,r,s,n,i,o,u,c,d,p=null,f,D=[]){super(c,f),this.componentName=e,this.tagName=r,this.fullName=s,this.attrs=n,this.directives=i,this.children=o,this.isSelfClosing=u,this.startSourceSpan=d,this.endSourceSpan=p,this.comments=D}visit(e,r){return e.visitComponent(this,r)}kind="component"},LR=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,r,s,n,i=null){this.name=e,this.attrs=r,this.sourceSpan=s,this.startSourceSpan=n,this.endSourceSpan=i}visit(e,r){return e.visitDirective(this,r)}kind="directive"},uD=class{expression;sourceSpan;constructor(e,r){this.expression=e,this.sourceSpan=r}visit(e,r){return e.visitBlockParameter(this,r)}kind="blockParameter";startSourceSpan=null;endSourceSpan=null},lD=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,r,s,n,i){this.name=e,this.value=r,this.sourceSpan=s,this.nameSpan=n,this.valueSpan=i}visit(e,r){return e.visitLetDeclaration(this,r)}kind="letDeclaration";startSourceSpan=null;endSourceSpan=null};function ZC(t,e,r=null){let s=[],n=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let o=n(i);o&&s.push(o)}),s}var $R=class{constructor(){}visitElement(t,e){this.visitChildren(e,r=>{r(t.attrs),r(t.directives),r(t.comments),r(t.children)})}visitAttribute(t,e){}visitStartTagComment(t,e){}visitText(t,e){}visitCdata(t,e){}visitComment(t,e){}visitDocType(t,e){}visitExpansion(t,e){return this.visitChildren(e,r=>{r(t.cases)})}visitExpansionCase(t,e){}visitBlock(t,e){this.visitChildren(e,r=>{r(t.parameters),r(t.children)})}visitBlockParameter(t,e){}visitLetDeclaration(t,e){}visitComponent(t,e){this.visitChildren(e,r=>{r(t.attrs),r(t.comments),r(t.children)})}visitDirective(t,e){this.visitChildren(e,r=>{r(t.attrs)})}visitChildren(t,e){let r=[],s=this;function n(i){i&&r.push(ZC(s,i,t))}return e(n),Array.prototype.concat.apply([],r)}};function Yl(t){return t>=9&&t<=32||t==160}function vu(t){return 48<=t&&t<=57}function tu(t){return t>=97&&t<=122||t>=65&&t<=90}function MR(t){return t>=97&&t<=102||t>=65&&t<=70||vu(t)}function _o(t){return t===10||t===13}function cD(t){return 48<=t&&t<=55}function Gp(t){return t===39||t===34||t===96}var ru={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:`
|
|
107
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""};ru.ngsp="";var OR=class{tokens;errors;nonNormalizedIcuExpressions;constructor(t,e,r){this.tokens=t,this.errors=e,this.nonNormalizedIcuExpressions=r}};function _R(t,e,r,s={}){let n=new VR(new QC(t,e),r,s);return n.tokenize(),new OR(YR(n.tokens),n.errors,n.nonNormalizedIcuExpressions)}var jR=/\r\n?/g;function Qn(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function pD(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function RR(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var qR=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error","@content"],io={start:"{{",end:"}}"},UR=/^default[^\S\r\n]+never/,zR=/^else[^\S\r\n]+if/,VR=class{_getTagContentType;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_allowStartTagComments;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,r,s){this._getTagContentType=r,this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=s.canSelfClose||!1,this._allowHtmComponentClosingTags=s.allowHtmComponentClosingTags||!1,this._allowStartTagComments=s.allowStartTagComments??!0;let n=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new QR(e,n):new eA(e,n),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet??!0,this._selectorlessEnabled=s.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(jR,`
|
|
108
|
-
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(43),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();this._attemptCharCodeUntilFn(n=>Yl(n)?!e:XR(n)?(e=!0,!1):!0);let s=this._cursor.getChars(r).trim();return zR.test(s)?s="else if":UR.test(s)&&(s="default never"),s}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(26,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ot),this._attemptCharCode(41))this._attemptCharCodeUntilFn(ot);else{r.type=30;return}if(r.parts[0]==="default never"&&this._attemptCharCode(59)){this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([]);return}this._attemptCharCode(123)?(this._beginToken(27),this._endToken([])):this._isBlockStart()&&(r.parts[0]==="case"||r.parts[0]==="default")?(this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([])):r.type=30}_consumeBlockEnd(e){this._beginToken(28,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(dD);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(29);let e=this._cursor.clone(),r=null,s=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===r)r=null;else if(r===null&&Gp(n))r=n;else if(n===40&&r===null)s++;else if(n===41&&r===null){if(s===0)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(dD)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(31,e),Yl(this._cursor.peek()))this._attemptCharCodeUntilFn(ot);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=34;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ot),!this._attemptCharCode(61)){r.type=34;return}this._attemptCharCodeUntilFn(s=>ot(s)&&!_o(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(33),this._cursor.advance(),this._endToken([])):(r.type=34,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(s=>tu(s)||s===36||s===95||r&&vu(s)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(32,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;Gp(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>s===92?(this._cursor.advance(),!1):s===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(GR(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new Ji(this._cursor.getSpan(r),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new Ji(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let s={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let s=new Ji(r,e);return this._currentTokenStart=null,this._currentTokenType=null,s}handleError(e){if(e instanceof lm&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ji)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return KR(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Qn(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let s=this._cursor.clone();for(let n=0;n<r;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(e){for(let r=0;r<e.length;r++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(r)))return!1;return!0}_requireStr(e){let r=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Qn(this._cursor.peek()),this._cursor.getSpan(r))}_requireStrCaseInsensitive(e){let r=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Qn(this._cursor.peek()),this._cursor.getSpan(r))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,r){let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(s)<r)throw this._createError(Qn(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let s=this._cursor.clone();for(let n=0;n<r;n++){if(s.peek()!==e.charCodeAt(n))return!1;s.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&qR.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let r=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let s=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(WR),this._cursor.peek()!=59){this._cursor.advance();let o=s?"hexadecimal":"decimal";throw this._createError(RR(o,this._cursor.getChars(r)),this._cursor.getSpan())}let i=this._cursor.getChars(n);this._cursor.advance();try{let o=parseInt(i,s?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(r)])}catch{throw this._createError(pD(this._cursor.getChars(r)),this._cursor.getSpan())}}else{let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(JR),this._cursor.peek()!=59)this._beginToken(e,r),this._cursor=s,this._endToken(["&"]);else{let n=this._cursor.getChars(s);this._cursor.advance();let i=ru.hasOwnProperty(n)&&ru[n];if(!i)throw this._createError(pD(n),this._cursor.getSpan(r));this._endToken([i,`&${n};`])}}}_consumeRawText(e,r){this._beginToken(e?6:7);let s=[];for(;;){let n=this._cursor.clone(),i=r();if(this._cursor=n,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(6),this._beginToken(6)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(13,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(14),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(19,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(20),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let r=this._cursor.clone(),s="";for(;this._cursor.peek()!==58&&!HR(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(s=this._cursor.getChars(r),this._cursor.advance(),n=this._cursor.clone()):n=r,this._requireCharCodeUntilFn(e,s===""?0:1);let i=this._cursor.getChars(n);return[s,i]}_consumeSingleLineComment(e){let r=this._cursor.clone();this._attemptCharCodeUntilFn(i=>_o(i)||i===0);let s=this._cursor.clone(),n=s.getChars(r);this._beginToken(12,e),this._endToken([n,"single"],s),this._attemptCharCodeUntilFn(ot)}_consumeMultiLineComment(e){let r=this._cursor.clone();this._attemptCharCodeUntilFn(o=>{if(o===0)return!0;if(o===42){let u=this._cursor.clone();return u.advance(),u.peek()===47}return!1});let s=this._cursor.clone(),n=s.getChars(r),i=s;this._attemptStr("*/")&&(i=this._cursor.clone(),this._attemptCharCodeUntilFn(ot)),this._beginToken(12,e),this._endToken([n,"multi"],i)}_consumeTagOpen(e){let r,s,n,i,o=[];try{if(this._selectorlessEnabled&&hl(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,s,r]=i.parts,s&&(n+=`:${s}`),r&&(n+=`:${r}`),this._attemptCharCodeUntilFn(ot);else{if(!tu(this._cursor.peek()))throw this._createError(Qn(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),s=i.parts[0],r=n=i.parts[1],this._attemptCharCodeUntilFn(ot)}for(;;){if(this._allowStartTagComments){let c=this._cursor.clone();if(this._attemptStr("//")){this._consumeSingleLineComment(c);continue}if(this._attemptStr("/*")){this._consumeMultiLineComment(c);continue}}if(mD(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let c=this._cursor.clone(),d=c.clone();d.advance(),hl(d.peek())&&this._consumeDirective(c,d)}else{let c=this._consumeAttribute();o.push(c)}}i.type===35?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(c){if(c instanceof Ji){i?i.type=i.type===35?39:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw c}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let u=this._getTagContentType(r,s,this._fullNameStack.length>0,o);this._handleFullNameStackForTagOpen(s,r),u===0?this._consumeRawTextWithTagClose(s,i,n,!1):u===1&&this._consumeRawTextWithTagClose(s,i,n,!0)}_consumeRawTextWithTagClose(e,r,s,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(ot),!this._attemptStrCaseInsensitive(e&&r.type!==35?`${e}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(ot),this._attemptCharCode(62))),this._beginToken(r.type===35?38:3),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(r.parts),this._handleFullNameStackForTagClose(e,s)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName(Zn);return this._endToken(r)}_consumeComponentOpenStart(e){this._beginToken(35,e);let r=this._consumeComponentName();return this._endToken(r)}_consumeComponentName(){let e=this._cursor.clone();for(;fD(this._cursor.peek());)this._cursor.advance();let r=this._cursor.getChars(e),s="",n="";return this._cursor.peek()===58&&(this._cursor.advance(),[s,n]=this._consumePrefixAndName(Zn)),[r,s,n]}_consumeAttribute(){let[e,r]=this._consumeAttributeName(),s;return this._attemptCharCodeUntilFn(ot),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(ot),s=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ot),{prefix:e,name:r,value:s}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Qn(e),this._cursor.getSpan());this._beginToken(15);let r;if(this._openDirectiveCount>0){let n=0;r=i=>{if(this._openDirectiveCount>0){if(i===40)n++;else if(i===41){if(n===0)return!0;n--}}return Zn(i)}}else if(e===91){let n=0;r=i=>(i===91?n++:i===93&&n--,n<=0?Zn(i):_o(i))}else r=Zn;let s=this._consumePrefixAndName(r);return this._endToken(s),s}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let s=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(17,18,s,s),this._consumeQuote(r)}else{let r=()=>Zn(this._cursor.peek());e=this._consumeWithInterpolation(17,18,r,r)}return e}_consumeQuote(e){this._beginToken(16),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?37:36;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==62&&!hl(r.peek());)r.advance();if(hl(r.peek())){this._beginToken(38,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken(s);return}}if(this._beginToken(3,e),this._attemptCharCodeUntilFn(ot),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken([]);else{let[r,s]=this._consumePrefixAndName(Zn);this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken([r,s]),this._handleFullNameStackForTagClose(r,s)}}_consumeExpansionFormStart(){this._beginToken(21),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(21),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let n=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ot),this._beginToken(7);let s=this._readUntil(44);this._endToken([s]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ot)}_consumeExpansionCaseStart(){this._beginToken(22);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ot),this._beginToken(23),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ot),this._expansionCaseStack.push(23)}_consumeExpansionCaseEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ot),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(25),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,s,n){this._beginToken(e);let i=[];for(;!s();){let u=this._cursor.clone();this._attemptStr(io.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let o=this._processCarriageReturns(i.join(""));return this._endToken([o]),o}_consumeInterpolation(e,r,s){let n=[];this._beginToken(e,r),n.push(io.start);let i=this._cursor.clone(),o=null,u=!1;for(;this._cursor.peek()!==0&&(s===null||!s());){let c=this._cursor.clone();if(this._isTagStart()){this._cursor=c,n.push(this._getProcessedChars(i,c)),this._endToken(n);return}if(o===null)if(this._attemptStr(io.end)){n.push(this._getProcessedChars(i,c)),n.push(io.end),this._endToken(n);return}else this._attemptStr("//")&&(u=!0);let d=this._cursor.peek();this._cursor.advance(),d===92?this._cursor.advance():d===o?o=null:!u&&o===null&&Gp(d)&&(o=d)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,r){for(this._requireCharCode(64),this._cursor.advance();fD(this._cursor.peek());)this._cursor.advance();this._beginToken(40,e);let s=this._cursor.getChars(r);if(this._endToken([s]),this._attemptCharCodeUntilFn(ot),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(41),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ot);!mD(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(ot),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Qn(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(42),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ot)}}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===23}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),r=this._attemptStr(io.start);return this._cursor=e,!r}_handleFullNameStackForTagOpen(e,r){let s=Oo(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===s)&&this._fullNameStack.push(s)}_handleFullNameStackForTagClose(e,r){let s=Oo(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===s&&this._fullNameStack.pop()}};function ot(t){return!Yl(t)||t===0}function Zn(t){return Yl(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function HR(t){return(t<97||122<t)&&(t<65||90<t)&&(t<48||t>57)}function WR(t){return t===59||t===0||!MR(t)}function JR(t){return t===59||t===0||!(tu(t)||vu(t))}function GR(t){return t!==125}function KR(t,e){return hD(t)===hD(e)}function hD(t){return t>=97&&t<=122?t-97+65:t}function XR(t){return tu(t)||vu(t)||t===95}function dD(t){return t!==59&&ot(t)}function hl(t){return t===95||t>=65&&t<=90}function fD(t){return tu(t)||vu(t)||t===95}function mD(t){return t===47||t===62||t===60||t===0}function YR(t){let e=[],r;for(let s=0;s<t.length;s++){let n=t[s];r&&r.type===5&&n.type===5||r&&r.type===17&&n.type===17?(r.parts[0]+=n.parts[0],r.sourceSpan.end=n.sourceSpan.end):(r=n,e.push(r))}return e}var eA=class Wh{state;file;input;end;constructor(e,r){if(e instanceof Wh){this.file=e.file,this.input=e.input,this.end=e.end;let s=e.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new Wh(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,r){e=e||this;let s=e;if(r)for(;this.diff(e)>0&&r.indexOf(e.peek())!==-1;)s===e&&(e=e.clone()),e.advance();let n=this.locationFromCursor(e);return new ze(n,this.locationFromCursor(this),s!==e?this.locationFromCursor(s):n)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new lm('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):_o(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Hh(e.file,e.state.offset,e.state.line,e.state.column)}},QR=class Jh extends eA{internalState;constructor(e,r){e instanceof Jh?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Jh(this)}getChars(e){let r=e.clone(),s="";for(;r.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(r.peek()),r.advance();return s}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;e()!==125;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(r,s)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(cD(e())){let r="",s=0,n=this.clone();for(;cD(e())&&s<3;)n=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(r,8),this.internalState=n.internalState}else _o(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let s=this.input.slice(e.internalState.offset,e.internalState.offset+r),n=parseInt(s,16);if(isNaN(n))throw e.state=e.internalState,new lm("Invalid hexadecimal escape sequence",e);return n}},lm=class extends Error{msg;cursor;constructor(e,r){super(e),this.msg=e,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},Nt=class tA extends Ji{elementName;static create(e,r,s){return new tA(e,r,s)}constructor(e,r,s){super(r,s),this.elementName=e}},ZR=class{rootNodes;errors;constructor(e,r){this.rootNodes=e,this.errors=r}},eq=class{getTagDefinition;constructor(e){this.getTagDefinition=e}parse(e,r,s,n=!1,i){let o=g=>(x,...b)=>g(x.toLowerCase(),...b),u=n?this.getTagDefinition:o(this.getTagDefinition),c=g=>u(g).getContentType(),d=n?i:o(i),p=_R(e,r,i?(g,x,b,A)=>{let C=d(g,x,b,A);return C!==void 0?C:c(g)}:c,s),f=s&&s.canSelfClose||!1,D=s&&s.allowHtmComponentClosingTags||!1,m=new tq(p.tokens,u,f,D,n);return m.build(),new ZR(m.rootNodes,[...p.errors,...m.errors])}},tq=class rA{tokens;tagDefinitionResolver;canSelfClose;allowHtmComponentClosingTags;isTagNameCaseSensitive;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,r,s,n,i){this.tokens=e,this.tagDefinitionResolver=r,this.canSelfClose=s,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=i,this._advance()}build(){for(;this._peek.type!==43;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===13?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===21?this._consumeExpansion(this._advance()):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===31?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===19?this._consumeDocType(this._advance()):this._peek.type===34?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===35||this._peek.type===39?this._consumeComponentStartTag(this._advance()):this._peek.type===38?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof zi&&this.errors.push(Nt.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let r=this._advance(),s=this._getText(r),n=this._advanceIf(14);this._addToParent(new wR(s,new ze(e.sourceSpan.start,(n||r).sourceSpan.end),[r]))}_consumeComment(e){let r=this._advanceIf(7),s=this._advanceIf(11),n=r!=null?r.parts[0].trim():null,i=s==null?e.sourceSpan:new ze(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new BR(n,i))}_consumeDocType(e){let r=this._advanceIf(7),s=this._advanceIf(20),n=r!=null?r.parts[0].trim():null,i=new ze(e.sourceSpan.start,(s||r||e).sourceSpan.end);this._addToParent(new NR(n,i))}_consumeExpansion(e){let r=this._advance(),s=this._advance(),n=[];for(;this._peek.type===22;){let o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==25){this.errors.push(Nt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new ze(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new SR(r.parts[0],s.parts[0],n,i,r.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==23)return this.errors.push(Nt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),s=this._collectExpansionExpTokens(r);if(!s)return null;let n=this._advance();s.push({type:43,parts:[],sourceSpan:n.sourceSpan});let i=new rA(s,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new ze(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart),u=new ze(r.sourceSpan.start,n.sourceSpan.end,r.sourceSpan.fullStart);return new kR(e.parts[0],i.rootNodes,o,e.sourceSpan,u)}_collectExpansionExpTokens(e){let r=[],s=[23];for(;;){if((this._peek.type===21||this._peek.type===23)&&s.push(this._peek.type),this._peek.type===24)if(yD(s,23)){if(s.pop(),s.length===0)return r}else return this.errors.push(Nt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===25)if(yD(s,21))s.pop();else return this.errors.push(Nt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===43)return this.errors.push(Nt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==`
|
|
109
|
-
`){var s;let n=this._getClosestElementLikeParent();n!=null&&n.children.length==0&&!((s=this._getTagDefinition(n))===null||s===void 0)&&s.ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],s=e.sourceSpan,n=e.parts[0];if(n.length>0&&n[0]===`
|
|
110
|
-
`){var i;let o=this._getContainer();o!=null&&o.children.length===0&&!((i=this._getTagDefinition(o))===null||i===void 0)&&i.ignoreFirstLf&&(n=n.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?n+=e.parts.join("").replace(/&([^;]+);/g,DD):e.type===9?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){let o=e.sourceSpan;this._addToParent(new FR(n,new ze(s.start,o.end,s.fullStart,s.details),r))}}_closeVoidElement(){var e;let r=this._getContainer();r!==null&&!((e=this._getTagDefinition(r))===null||e===void 0)&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var r;let s=[],n=[],i=[];this._consumeAttributesAndDirectives(s,n,i);let o=this._getElementFullName(e,this._getClosestElementLikeParent()),u=this._getTagDefinition(o),c=!1;if(this._peek.type===2){this._advance(),c=!0;let b=this._getTagDefinition(o);this.canSelfClose||b?.canSelfClose||Ll(o)!==null||b?.isVoid||this.errors.push(Nt.create(o,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),c=!1);let d=this._peek.sourceSpan.fullStart,p=new ze(e.sourceSpan.start,d,e.sourceSpan.fullStart),f=new ze(e.sourceSpan.start,d,e.sourceSpan.fullStart),D=new ze(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),m=new Yn(o,s,n,[],c,p,f,void 0,D,u?.isVoid??!1,void 0,i),g=this._getContainer(),x=g!==null&&!!(!((r=this._getTagDefinition(g))===null||r===void 0)&&r.isClosedByChild(m.name));this._pushContainer(m,x),c?this._popContainer(o,Yn,p):e.type===4&&(this._popContainer(o,Yn,null),this.errors.push(Nt.create(o,p,`Opening tag "${o}" not terminated.`)))}_consumeComponentStartTag(e){var r;let s=e.parts[0],n=[],i=[],o=[];this._consumeAttributesAndDirectives(n,i,o);let u=this._getClosestElementLikeParent(),c=this._getComponentTagName(e,u),d=this._getComponentFullName(e,u),p=this._peek.type===37;this._advance();let f=this._peek.sourceSpan.fullStart,D=new ze(e.sourceSpan.start,f,e.sourceSpan.fullStart),m=new qs(s,c,d,n,i,[],p,D,new ze(e.sourceSpan.start,f,e.sourceSpan.fullStart),void 0,void 0,o),g=this._getContainer(),x=g!==null&&m.tagName!==null&&!!(!((r=this._getTagDefinition(g))===null||r===void 0)&&r.isClosedByChild(m.tagName));this._pushContainer(m,x),p?this._popContainer(d,qs,D):e.type===39&&(this._popContainer(d,qs,null),this.errors.push(Nt.create(d,D,`Opening tag "${d}" not terminated.`)))}_consumeAttributesAndDirectives(e,r,s){for(;this._peek.type===15||this._peek.type===40||this._peek.type===12;)if(this._peek.type===40)r.push(this._consumeDirective(this._peek));else if(this._peek.type===15)e.push(this._consumeAttr(this._advance()));else{let n=this._advance();s.push(new IR(n.parts[0],n.parts[1],n.sourceSpan))}}_consumeComponentEndTag(e){let r=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(r,qs,e.sourceSpan)){let s=this._containerStack[this._containerStack.length-1],n;s instanceof qs&&s.componentName===e.parts[0]?n=`, did you mean "${s.fullName}"?`:n=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${r}"${n}`;this.errors.push(Nt.create(r,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof Yn?this.tagDefinitionResolver(e.name):e instanceof qs&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var r;let s=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(s&&!((r=this._getTagDefinition(s))===null||r===void 0)&&r.isVoid)this.errors.push(Nt.create(s,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(s,Yn,e.sourceSpan)){let n=`Unexpected closing tag "${s}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Nt.create(s,e.sourceSpan,n))}}_popContainer(e,r,s){let n=!1;for(let o=this._containerStack.length-1;o>=0;o--){var i;let u=this._containerStack[o],c=u instanceof qs?u.fullName:u.name;if(Ll(c)?c===e:(c===e||e===null)&&u instanceof r)return u.endSourceSpan=s,u.sourceSpan.end=s!==null?s.end:u.sourceSpan.end,this._containerStack.splice(o,this._containerStack.length-o),!n;(u instanceof zi||!(!((i=this._getTagDefinition(u))===null||i===void 0)&&i.closedByParent))&&(n=!0)}return!1}_consumeAttr(e){let r=Oo(e.parts[0],e.parts[1]),s=e.sourceSpan.end,n;this._peek.type===16&&(n=this._advance());let i="",o=[],u,c;if(this._peek.type===17)for(u=this._peek.sourceSpan,c=this._peek.sourceSpan.end;this._peek.type===17||this._peek.type===18||this._peek.type===9;){let p=this._advance();o.push(p),p.type===18?i+=p.parts.join("").replace(/&([^;]+);/g,DD):p.type===9?i+=p.parts[0]:i+=p.parts.join(""),c=s=p.sourceSpan.end}this._peek.type===16&&(c=s=this._advance().sourceSpan.end);let d=u&&c&&new ze(n?.sourceSpan.start??u.start,c,n?.sourceSpan.fullStart??u.fullStart);return new PR(r,i,new ze(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,d,o.length>0?o:void 0,void 0)}_consumeDirective(e){let r=[],s=e.sourceSpan.end,n=null;if(this._advance(),this._peek.type===41){for(s=this._peek.sourceSpan.end,this._advance();this._peek.type===15;)r.push(this._consumeAttr(this._advance()));this._peek.type===42?(n=this._peek.sourceSpan,this._advance()):this.errors.push(Nt.create(null,e.sourceSpan,"Unterminated directive definition"))}let i=new ze(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new ze(i.start,n===null?e.sourceSpan.end:n.end,i.fullStart);return new LR(e.parts[0],r,o,i,n)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===29;){let u=this._advance();r.push(new uD(u.parts[0],u.sourceSpan))}this._peek.type===27&&this._advance();let s=this._peek.sourceSpan.fullStart,n=new ze(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new ze(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new zi(e.parts[0],r,[],n,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){let r=this._containerStack.length,s=this._containerStack[r-1];if(!this._popContainer(null,zi,e.sourceSpan)){if(this._containerStack.length<r){let n=s instanceof qs?s.fullName:s.name;this.errors.push(Nt.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${n}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(Nt.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===29;){let u=this._advance();r.push(new uD(u.parts[0],u.sourceSpan))}let s=this._peek.sourceSpan.fullStart,n=new ze(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new ze(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new zi(e.parts[0],r,[],n,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,zi,null),this.errors.push(Nt.create(e.parts[0],n,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],s,n;if(this._peek.type!==32){this.errors.push(Nt.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==33){this.errors.push(Nt.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else n=this._advance();let i=n.sourceSpan.end,o=new ze(e.sourceSpan.start,i,e.sourceSpan.fullStart),u=e.sourceSpan.toString().lastIndexOf(r),c=new ze(e.sourceSpan.start.moveBy(u),e.sourceSpan.end),d=new lD(r,s.parts[0],o,c,s.sourceSpan);this._addToParent(d)}_consumeIncompleteLet(e){let r=e.parts[0]??"",s=r?` "${r}"`:"";if(r.length>0){let n=e.sourceSpan.toString().lastIndexOf(r),i=new ze(e.sourceSpan.start.moveBy(n),e.sourceSpan.end),o=new ze(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new lD(r,"",e.sourceSpan,i,o);this._addToParent(u)}this.errors.push(Nt.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let r=this._containerStack[e];if(r instanceof Yn||r instanceof qs)return r}return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r){return Oo(this._getPrefix(e,r),e.parts[1])}_getComponentFullName(e,r){let s=e.parts[0],n=this._getComponentTagName(e,r);return n===null?s:n.startsWith(":")?s+n:`${s}:${n}`}_getComponentTagName(e,r){let s=this._getPrefix(e,r),n=e.parts[2];return!s&&!n?null:!s&&n?n:Oo(s,n||"ng-component")}_getPrefix(e,r){var s;let n,i;if(e.type===35||e.type===39||e.type===38?(n=e.parts[1],i=e.parts[2]):(n=e.parts[0],i=e.parts[1]),n=n||((s=this._getTagDefinition(i))===null||s===void 0?void 0:s.implicitNamespacePrefix)||"",!n&&r){let o=r instanceof Yn?r.name:r.tagName;if(o!==null){let u=Pa(o)[1],c=this._getTagDefinition(u);c!==null&&!c.preventNamespaceInheritance&&(n=Ll(o))}}return n}};function yD(t,e){return t.length>0&&t[t.length-1]===e}function DD(t,e){return ru[e]!==void 0?ru[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var rq=class extends eq{constructor(){super(Vh)}parse(t,e,r,s=!1,n){return super.parse(t,e,r,s,n)}},Kp;function Gh(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:s=!1,allowStartTagComments:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:o,tokenizeAngularBlocks:u=!1,tokenizeAngularLetDeclaration:c=!1,enableAngularSelectorlessSyntax:d=!1}=e;return Kp??(Kp=new rq),Kp.parse(t,"angular-html-parser",{tokenizeExpansionForms:u,canSelfClose:r,allowHtmComponentClosingTags:s,allowStartTagComments:n,tokenizeBlocks:u,tokenizeLet:c,selectorlessEnabled:d},i,o)}var sq=[iq,aq,uq,cq,pq,fq,hq,dq,mq,lq];function nq(t,e){for(let r of sq)r(t,e);return t}function iq(t){t.walk(e=>{if(e.kind==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].kind==="text"&&e.children[0].value[0]===`
|
|
111
|
-
`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function aq(t){let e=r=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;t.walk(r=>{if(r.children)for(let s=0;s<r.children.length;s++){let n=r.children[s];if(!e(n))continue;let i=n.prev,o=n.firstChild;r.removeChild(i),s--;let u=new ze(i.sourceSpan.start,o.sourceSpan.end),c=new ze(u.start,n.sourceSpan.end);n.condition=i.condition,n.sourceSpan=c,n.startSourceSpan=u,n.removeChild(o)}})}function oq(t,e,r){t.walk(s=>{if(s.children)for(let n=0;n<s.children.length;n++){let i=s.children[n];if(i.kind!=="text"&&!e(i))continue;i.kind!=="text"&&(i.kind="text",i.value=r(i));let o=i.prev;!o||o.kind!=="text"||(o.value+=i.value,o.sourceSpan=new ze(o.sourceSpan.start,i.sourceSpan.end),s.removeChild(i),n--)}})}function uq(t){return oq(t,e=>e.kind==="cdata",e=>`<![CDATA[${e.value}]]>`)}function lq(t){let e=r=>r.kind==="element"&&r.attrs.length===0&&!Bc(r.startTagComments)&&r.children.length===1&&r.firstChild.kind==="text"&&!ts.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";t.walk(r=>{if(r.children)for(let s=0;s<r.children.length;s++){let n=r.children[s];if(!e(n))continue;let i=n.prev,o=n.next;i.value+=`<${n.rawName}>`+n.firstChild.value+`</${n.rawName}>`+o.value,i.sourceSpan=new ze(i.sourceSpan.start,o.sourceSpan.end),i.isTrailingSpaceSensitive=o.isTrailingSpaceSensitive,i.hasTrailingSpaces=o.hasTrailingSpaces,r.removeChild(n),s--,r.removeChild(o)}})}function cq(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/s;t.walk(s=>{if(b_(s,e))for(let n of s.children){if(n.kind!=="text")continue;let i=n.sourceSpan.start,o,u=n.value.split(r);for(let c=0;c<u.length;c++,i=o){let d=u[c];if(c%2===0){o=i.moveBy(d.length),d.length>0&&s.insertChildBefore(n,{kind:"text",value:d,sourceSpan:new ze(i,o)});continue}o=i.moveBy(d.length+4),s.insertChildBefore(n,{kind:"interpolation",sourceSpan:new ze(i,o),children:d.length===0?[]:[{kind:"text",value:d,sourceSpan:new ze(i.moveBy(2),o.moveBy(-2))}]})}s.removeChild(n)}})}function pq(t,e){t.walk(r=>{let s=r.$children;if(!s)return;if(s.length===0||s.length===1&&s[0].kind==="text"&&ts.trim(s[0].value).length===0){r.hasDanglingSpaces=s.length>0,r.$children=[];return}let n=E_(r,e),i=PC(r);if(!n)for(let o=0;o<s.length;o++){let u=s[o];if(u.kind!=="text")continue;let{leadingWhitespace:c,text:d,trailingWhitespace:p}=g_(u.value),f=u.prev,D=u.next;d?(u.value=d,u.sourceSpan=new ze(u.sourceSpan.start.moveBy(c.length),u.sourceSpan.end.moveBy(-p.length)),c&&(f&&(f.hasTrailingSpaces=!0),u.hasLeadingSpaces=!0),p&&(u.hasTrailingSpaces=!0,D&&(D.hasLeadingSpaces=!0))):(r.removeChild(u),o--,(c||p)&&(f&&(f.hasTrailingSpaces=!0),D&&(D.hasLeadingSpaces=!0)))}r.isWhitespaceSensitive=n,r.isIndentationSensitive=i})}function hq(t){t.walk(e=>{e.isSelfClosing=!e.children||e.kind==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function dq(t,e){t.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function fq(t,e){t.walk(r=>{r.cssDisplay=O_(r,e)})}function mq(t,e){t.walk(r=>{let{children:s}=r;if(s){if(s.length===0){r.isDanglingSpaceSensitive=v_(r,e);return}for(let n of s)n.isLeadingSpaceSensitive=C_(n,e),n.isTrailingSpaceSensitive=A_(n,e);for(let n=0;n<s.length;n++){let i=s[n];i.isLeadingSpaceSensitive=(n===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(n===s.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}var yq=nq;function Dq(t,e,r){let{node:s}=t;switch(s.kind){case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(s),[$t(um(t,e,r)),xt];case"element":case"ieConditionalComment":return uR(t,e,r);case"angularControlFlowBlock":return eR(t,e,r);case"angularControlFlowBlockParameters":return iR(t,e,r);case"angularControlFlowBlockParameter":return ts.trim(s.expression);case"angularLetDeclaration":return $t(["@let ",$t([s.id," =",$t(Ls([Tt,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return s.value;case"angularIcuExpression":return aR(t,e,r);case"angularIcuCase":return oR(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[$o(s),Lo(s)];case"interpolation":return[$o(s,e),...t.map(r,"children"),Lo(s,e)];case"text":{if(s.parent.kind==="interpolation"){let u=/\n[^\S\n]*$/,c=u.test(s.value),d=c?s.value.replace(u,""):s.value;return[ls(d),c?xt:""]}let n=gi(s,e),i=jC(s),o=yi(s,e);return i[0]=[n,i[0]],i.push([i.pop(),o]),CC(i)}case"docType":return[$t([$o(s,e)," ",cr(0,s.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Lo(s,e)];case"comment":return[gi(s,e),ls(e.originalText.slice(da(s),Mc(s))),yi(s,e)];case"attribute":{if(s.value===null)return s.rawName;let n=_C(s.value),i=qC(s,e)?"":_O(n,'"');return[s.rawName,"=",i,ls(i==='"'?cr(0,n,'"',"""):cr(0,n,"'","'")),i]}case"startTagComment":return lR(t);default:throw new HO(s,"HTML")}}var gq={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:yq,print:Dq,insertPragma:Qj,massageAstNode:JC,embed:Oj,getVisitorKeys:Vj},xq=gq,sA=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["LWC","lwc"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"text.html.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],gD={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},xD="HTML",bq={bracketSameLine:gD.bracketSameLine,htmlWhitespaceSensitivity:{category:xD,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:gD.singleAttributePerLine,vueIndentScriptAndStyle:{category:xD,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},nA=bq,cm={};lC(cm,{angular:()=>Gq,html:()=>Hq,lwc:()=>Xq,mjml:()=>Jq,vue:()=>Kq});function Eq(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Cq=Eq,Aq={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,allowStartTagComments:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function iA(t){return{...Aq,...t}}function aA(t){let{canSelfClose:e,allowHtmComponentClosingTags:r,allowStartTagComments:s,isTagNameCaseSensitive:n,shouldParseAsRawText:i,tokenizeAngularBlocks:o,tokenizeAngularLetDeclaration:u}=t;return{canSelfClose:e,allowHtmComponentClosingTags:r,allowStartTagComments:s,isTagNameCaseSensitive:n,getTagContentType:i?(...c)=>i(...c)?cR.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:o,tokenizeAngularLetDeclaration:u}}var Xp=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),vq=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","geolocation","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),dl={attrs:!0,children:!0,cases:!0,expression:!0},bD=new Set(["parent"]),Gi,Kh,Xh,Tq=class Ao{constructor(e={}){DO(this,Gi),G0(this,"kind"),G0(this,"parent");for(let r of new Set([...bD,...Object.keys(e)]))this.setProperty(r,e[r]);if(Nc(e))for(let r of Object.getOwnPropertySymbols(e))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in dl&&(r=r.map(s=>this.createChild(s))),!bD.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let s in dl){let n=this[s];if(n){let i=wq(n,o=>o.map(e));r!==n&&(r??(r=new Ao({parent:this.parent})),r.setProperty(s,i))}}if(r)for(let s in this)s in dl||(r[s]=this[s]);return e(r||this)}walk(e){for(let r in dl){let s=this[r];if(s)for(let n=0;n<s.length;n++)s[n].walk(e)}e(this)}createChild(e){let r=e instanceof Ao?e.clone():new Ao(e);return r.setProperty("parent",this),r}insertChildBefore(e,r){let s=this.$children;s.splice(s.indexOf(e),0,this.createChild(r))}removeChild(e){let r=this.$children;r.splice(r.indexOf(e),1)}replaceChild(e,r){let s=this.$children;s[s.indexOf(e)]=this.createChild(r)}clone(){return new Ao(this)}get $children(){return this[ul(this,Gi,Kh)]}set $children(e){this[ul(this,Gi,Kh)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return va(1,this.$children,-1)}get prev(){let e=ul(this,Gi,Xh);return e[e.indexOf(this)-1]}get next(){let e=ul(this,Gi,Xh);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};Gi=new WeakSet,Kh=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Xh=function(){return this.parent?.$children??[]};var Fq=Tq;function wq(t,e){let r=t.map(e);return r.some((s,n)=>s!==t[n])?r:t}var Sq=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/s,parse:Pq},{regex:/^\[if(?<condition>[^\]]*)\]><!$/,parse:Iq},{regex:/^<!\s*\[endif\]$/,parse:Bq}];function kq(t,e){if(t.value)for(let{regex:r,parse:s}of Sq){let n=t.value.match(r);if(n)return s(t,n,e)}return null}function Pq(t,e,r){let{openingTagSuffix:s,condition:n,data:i}=e.groups,o=4+s.length,u=t.sourceSpan.start.moveBy(o),c=u.moveBy(i.length),[d,p]=(()=>{try{return[!0,r(i,u).children]}catch{return[!1,[{kind:"text",value:i,sourceSpan:new ze(u,c)}]]}})();return{kind:"ieConditionalComment",complete:d,children:p,condition:cr(0,n.trim(),/\s+/g," "),sourceSpan:t.sourceSpan,startSourceSpan:new ze(t.sourceSpan.start,u),endSourceSpan:new ze(c,t.sourceSpan.end)}}function Iq(t,e){let{condition:r}=e.groups;return{kind:"ieConditionalStartComment",condition:cr(0,r.trim(),/\s+/g," "),sourceSpan:t.sourceSpan}}function Bq(t){return{kind:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var Nq=class extends $R{visitExpansionCase(t,e){e.parseOptions.name==="angular"&&this.visitChildren(e,r=>{r(t.expression)})}visit(t,{parseOptions:e}){_q(t),jq(t,e),qq(t,e),Rq(t)}};function Lq(t,e,r,s){let n=r.name==="angular";ZC(new Nq,t.children,{parseOptions:r}),e&&t.children.unshift(e);let i=new Fq(t);return i.walk(o=>{if(o.kind==="comment"){let u=kq(o,s);u&&o.parent.replaceChild(o,u)}else n&&o.kind==="element"&&o.comments&&(o.startTagComments=o.comments,delete o.comments);n&&($q(o),Mq(o),Oq(o))}),i}function $q(t){if(t.kind==="block"){if(t.name=cr(0,t.name.toLowerCase(),/\s+/g," ").trim(),t.kind="angularControlFlowBlock",!Bc(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.kind="angularControlFlowBlockParameter";t.parameters={kind:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new ze(t.parameters[0].sourceSpan.start,va(0,t.parameters,-1).sourceSpan.end)}}}function Mq(t){t.kind==="letDeclaration"&&(t.kind="angularLetDeclaration",t.id=t.name,t.init={kind:"angularLetDeclarationInitializer",sourceSpan:new ze(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function Oq(t){t.kind==="expansion"&&(t.kind="angularIcuExpression"),t.kind==="expansionCase"&&(t.kind="angularIcuCase")}function ED(t,e){let r=t.toLowerCase();return e(r)?r:t}function CD(t){let e=t.name.startsWith(":")?t.name.slice(1).split(":",1)[0]:null,r=t.nameSpan.toString(),s=e!==null&&r.startsWith(`${e}:`),n=s?r.slice(e.length+1):r;t.name=n,t.namespace=e,t.hasExplicitNamespace=s}function _q(t){switch(t.kind){case"element":CD(t);for(let e of t.attrs)CD(e),e.valueSpan?(e.value=e.valueSpan.toString(),/["']/.test(e.value[0])&&(e.value=e.value.slice(1,-1))):e.value=null;break;case"comment":t.value=t.sourceSpan.toString().slice(4,-3);break;case"text":t.value=t.sourceSpan.toString();break}}function jq(t,e){if(t.kind==="element"){let r=Vh(e.isTagNameCaseSensitive?t.name:t.name.toLowerCase());!t.namespace||t.namespace===r.implicitNamespacePrefix||bu(t)?t.tagDefinition=r:t.tagDefinition=Vh("")}}function Rq(t){t.sourceSpan&&t.endSourceSpan&&(t.sourceSpan=new ze(t.sourceSpan.start,t.endSourceSpan.end))}function qq(t,e){if(t.kind==="element"&&(e.normalizeTagName&&(!t.namespace||t.namespace===t.tagDefinition.implicitNamespacePrefix||bu(t))&&(t.name=ED(t.name,r=>vq.has(r))),e.normalizeAttributeName))for(let r of t.attrs)r.namespace||(r.name=ED(r.name,s=>Xp.has(t.name)&&(Xp.get("*").has(s)||Xp.get(t.name).has(s))))}function oA(t,e){let{rootNodes:r,errors:s}=Gh(t,aA(e));return s.length>0&&Yh(s[0]),{parseOptions:e,rootNodes:r}}function Uq(t,e){let r=aA(e),{rootNodes:s,errors:n}=Gh(t,r);if(s.some(c=>c.kind==="docType"&&c.value==="html"||c.kind==="element"&&c.name.toLowerCase()==="html"))return oA(t,pm);let i,o=()=>i??(i=Gh(t,{...r,getTagContentType:void 0})),u=c=>{let{offset:d}=c.startSourceSpan.start;return o().rootNodes.find(p=>p.kind==="element"&&p.startSourceSpan.start.offset===d)??c};for(let[c,d]of s.entries())if(d.kind==="element"){if(d.isVoid)n=o().errors,s[c]=u(d);else if(zq(d)){let{endSourceSpan:p,startSourceSpan:f}=d,D=o().errors.find(m=>m.span.start.offset>f.start.offset&&m.span.start.offset<p.end.offset);D&&Yh(D),s[c]=u(d)}}return n.length>0&&Yh(n[0]),{parseOptions:e,rootNodes:s}}function zq(t){if(t.kind!=="element"||t.name!=="template")return!1;let e=t.attrs.find(r=>r.name==="lang")?.value;return!e||e==="html"}function Yh(t){let{msg:e,span:{start:r,end:s}}=t;throw Cq(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:s.line+1,column:s.col+1}},cause:t})}function Vq(t,e,r,s,n,i){let{offset:o}=s,u=wC(e.slice(0,o))+r,c=uA(u,t,{...n,shouldParseFrontMatter:!1},i);c.sourceSpan=new ze(s,va(0,c.children,-1).sourceSpan.end);let d=c.children[0];return d.length===o?c.children.shift():(d.sourceSpan=new ze(d.sourceSpan.start.moveBy(o),d.sourceSpan.end),d.value=d.value.slice(o)),c}function uA(t,e,r,s={}){let{frontMatter:n,content:i}=r.shouldParseFrontMatter?d_(t):{content:t},o=new QC(t,s.filepath),u=new Hh(o,0,0,0),c=u.moveBy(t.length),{parseOptions:d,rootNodes:p}=e(i,r),f={kind:"root",sourceSpan:new ze(u,c),children:p},D;if(n){let[m,g]=[n.start,n.end].map(x=>new Hh(o,x.index,x.line-1,x.column));D={...n,kind:"frontMatter",sourceSpan:new ze(m,g)}}return Lq(f,D,d,(m,g)=>Vq(e,t,m,g,d,s))}var pm=iA({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Tu(t){let e=iA(t),r=e.name==="vue"?Uq:oA;return{parse:(s,n)=>uA(s,r,e,n),hasPragma:Xj,hasIgnorePragma:Yj,astFormat:"html",locStart:da,locEnd:Mc}}var Hq=Tu(pm),Wq=new Set(["mj-style","mj-raw"]),Jq=Tu({...pm,name:"mjml",shouldParseAsRawText:t=>Wq.has(t)}),Gq=Tu({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0,allowStartTagComments:!0}),Kq=Tu({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,s){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||s.some(({name:n,value:i})=>n==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),Xq=Tu({name:"lwc",canSelfClose:!1}),lA={html:xq};const Yq=Object.freeze(Object.defineProperty({__proto__:null,default:cC,languages:sA,options:nA,parsers:cm,printers:lA},Symbol.toStringTag,{value:"Module"}));var Qq=Object.create,hm=Object.defineProperty,Zq=Object.getOwnPropertyDescriptor,eU=Object.getOwnPropertyNames,tU=Object.getPrototypeOf,rU=Object.prototype.hasOwnProperty,me=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},jc=(t,e)=>{for(var r in e)hm(t,r,{get:e[r],enumerable:!0})},sU=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eU(e))!rU.call(t,n)&&n!==r&&hm(t,n,{get:()=>e[n],enumerable:!(s=Zq(e,n))||s.enumerable});return t},Ia=(t,e,r)=>(r=t!=null?Qq(tU(t)):{},sU(hm(r,"default",{value:t,enumerable:!0}),t)),nU=me((t,e)=>{"use strict";e.exports=g;var r=9,s=10,n=32,i=33,o=58,u=91,c=92,d=93,p=94,f=96,D=4,m=1024;function g(T){var F=this.Parser,k=this.Compiler;x(F)&&A(F,T),b(k)&&C(k)}function x(T){return!!(T&&T.prototype&&T.prototype.blockTokenizers)}function b(T){return!!(T&&T.prototype&&T.prototype.visitors)}function A(T,F){for(var k=F||{},I=T.prototype,L=I.blockTokenizers,B=I.inlineTokenizers,O=I.blockMethods,R=I.inlineMethods,q=L.definition,V=B.reference,j=[],z=-1,M=O.length,ae;++z<M;)ae=O[z],!(ae==="newline"||ae==="indentedCode"||ae==="paragraph"||ae==="footnoteDefinition")&&j.push([ae]);j.push(["footnoteDefinition"]),k.inlineNotes&&(v(R,"reference","inlineNote"),B.inlineNote=te),v(O,"definition","footnoteDefinition"),v(R,"reference","footnoteCall"),L.definition=N,L.footnoteDefinition=ce,B.footnoteCall=S,B.reference=Z,I.interruptFootnoteDefinition=j,Z.locator=V.locator,S.locator=se,te.locator=ye;function ce(ne,Q,J){for(var G=this,ie=G.interruptFootnoteDefinition,de=G.offset,Pe=Q.length+1,ve=0,We=[],nt,lt,rt,ke,fe,we,Vt,_e,Ct,tt,jt,re,le;ve<Pe&&(ke=Q.charCodeAt(ve),!(ke!==r&&ke!==n));)ve++;if(Q.charCodeAt(ve++)===u&&Q.charCodeAt(ve++)===p){for(lt=ve;ve<Pe;){if(ke=Q.charCodeAt(ve),ke!==ke||ke===s||ke===r||ke===n)return;if(ke===d){rt=ve,ve++;break}ve++}if(!(rt===void 0||lt===rt||Q.charCodeAt(ve++)!==o)){if(J)return!0;for(nt=Q.slice(lt,rt),fe=ne.now(),Ct=0,tt=0,jt=ve,re=[];ve<Pe;){if(ke=Q.charCodeAt(ve),ke!==ke||ke===s)le={start:Ct,contentStart:jt||ve,contentEnd:ve,end:ve},re.push(le),ke===s&&(Ct=ve+1,tt=0,jt=void 0,le.end=Ct);else if(tt!==void 0)if(ke===n||ke===r)tt+=ke===n?1:D-tt%D,tt>D&&(tt=void 0,jt=ve);else{if(tt<D&&le&&(le.contentStart===le.contentEnd||P(ie,L,G,[ne,Q.slice(ve,m),!0])))break;tt=void 0,jt=ve}ve++}for(ve=-1,Pe=re.length;Pe>0&&(le=re[Pe-1],le.contentStart===le.contentEnd);)Pe--;for(we=ne(Q.slice(0,le.contentEnd));++ve<Pe;)le=re[ve],de[fe.line+ve]=(de[fe.line+ve]||0)+(le.contentStart-le.start),We.push(Q.slice(le.contentStart,le.end));return Vt=G.enterBlock(),_e=G.tokenizeBlock(We.join(""),fe),Vt(),we({type:"footnoteDefinition",identifier:nt.toLowerCase(),label:nt,children:_e})}}}function S(ne,Q,J){var G=Q.length+1,ie=0,de,Pe,ve,We;if(Q.charCodeAt(ie++)===u&&Q.charCodeAt(ie++)===p){for(Pe=ie;ie<G;){if(We=Q.charCodeAt(ie),We!==We||We===s||We===r||We===n)return;if(We===d){ve=ie,ie++;break}ie++}if(!(ve===void 0||Pe===ve))return J?!0:(de=Q.slice(Pe,ve),ne(Q.slice(0,ie))({type:"footnoteReference",identifier:de.toLowerCase(),label:de}))}}function te(ne,Q,J){var G=this,ie=Q.length+1,de=0,Pe=0,ve,We,nt,lt,rt,ke,fe;if(Q.charCodeAt(de++)===p&&Q.charCodeAt(de++)===u){for(nt=de;de<ie;){if(We=Q.charCodeAt(de),We!==We)return;if(ke===void 0)if(We===c)de+=2;else if(We===u)Pe++,de++;else if(We===d)if(Pe===0){lt=de,de++;break}else Pe--,de++;else if(We===f){for(rt=de,ke=1;Q.charCodeAt(rt+ke)===f;)ke++;de+=ke}else de++;else if(We===f){for(rt=de,fe=1;Q.charCodeAt(rt+fe)===f;)fe++;de+=fe,ke===fe&&(ke=void 0),fe=void 0}else de++}if(lt!==void 0)return J?!0:(ve=ne.now(),ve.column+=2,ve.offset+=2,ne(Q.slice(0,de))({type:"footnote",children:G.tokenizeInline(Q.slice(nt,lt),ve)}))}}function Z(ne,Q,J){var G=0;if(Q.charCodeAt(G)===i&&G++,Q.charCodeAt(G)===u&&Q.charCodeAt(G+1)!==p)return V.call(this,ne,Q,J)}function N(ne,Q,J){for(var G=0,ie=Q.charCodeAt(G);ie===n||ie===r;)ie=Q.charCodeAt(++G);if(ie===u&&Q.charCodeAt(G+1)!==p)return q.call(this,ne,Q,J)}function se(ne,Q){return ne.indexOf("[",Q)}function ye(ne,Q){return ne.indexOf("^[",Q)}}function C(T){var F=T.prototype.visitors,k=" ";F.footnote=I,F.footnoteReference=L,F.footnoteDefinition=B;function I(O){return"^["+this.all(O).join("")+"]"}function L(O){return"[^"+(O.label||O.identifier)+"]"}function B(O){for(var R=this.all(O).join(`
|
|
112
|
-
|
|
113
|
-
`).split(`
|
|
114
|
-
`),q=0,V=R.length,j;++q<V;)j=R[q],j!==""&&(R[q]=k+j);return"[^"+(O.label||O.identifier)+"]: "+R.join(`
|
|
115
|
-
`)}}function v(T,F,k){T.splice(T.indexOf(F),0,k)}function P(T,F,k,I){for(var L=T.length,B=-1;++B<L;)if(F[T[B][0]].apply(k,I))return!0;return!1}}),cA=me(t=>{t.isRemarkParser=e,t.isRemarkCompiler=r;function e(s){return!!(s&&s.prototype&&s.prototype.blockTokenizers)}function r(s){return!!(s&&s.prototype&&s.prototype.visitors)}}),iU=me((t,e)=>{var r=cA();e.exports=f;var s=9,n=32,i=36,o=48,u=57,c=92,d=["math","math-inline"],p="math-display";function f(g){let x=this.Parser,b=this.Compiler;r.isRemarkParser(x)&&D(x,g),r.isRemarkCompiler(b)&&m(b,g)}function D(g,x){let b=g.prototype,A=b.inlineMethods;v.locator=C,b.inlineTokenizers.math=v,A.splice(A.indexOf("text"),0,"math");function C(P,T){return P.indexOf("$",T)}function v(P,T,F){let k=T.length,I=!1,L=!1,B=0,O,R,q,V,j,z,M;if(T.charCodeAt(B)===c&&(L=!0,B++),T.charCodeAt(B)===i){if(B++,L)return F?!0:P(T.slice(0,B))({type:"text",value:"$"});if(T.charCodeAt(B)===i&&(I=!0,B++),q=T.charCodeAt(B),!(q===n||q===s)){for(V=B;B<k;){if(R=q,q=T.charCodeAt(B+1),R===i){if(O=T.charCodeAt(B-1),O!==n&&O!==s&&(q!==q||q<o||q>u)&&(!I||q===i)){j=B-1,B++,I&&B++,z=B;break}}else R===c&&(B++,q=T.charCodeAt(B+1));B++}if(z!==void 0)return F?!0:(M=T.slice(V,j+1),P(T.slice(0,z))({type:"inlineMath",value:M,data:{hName:"span",hProperties:{className:d.concat(I&&x.inlineMathDouble?[p]:[])},hChildren:[{type:"text",value:M}]}}))}}}}function m(g){let x=g.prototype;x.visitors.inlineMath=b;function b(A){let C="$";return(A.data&&A.data.hProperties&&A.data.hProperties.className||[]).includes(p)&&(C="$$"),C+A.value+C}}}),aU=me((t,e)=>{var r=cA();e.exports=p;var s=10,n=32,i=36,o=`
|
|
116
|
-
`,u="$",c=2,d=["math","math-display"];function p(){let m=this.Parser,g=this.Compiler;r.isRemarkParser(m)&&f(m),r.isRemarkCompiler(g)&&D(g)}function f(m){let g=m.prototype,x=g.blockMethods,b=g.interruptParagraph,A=g.interruptList,C=g.interruptBlockquote;g.blockTokenizers.math=v,x.splice(x.indexOf("fencedCode")+1,0,"math"),b.splice(b.indexOf("fencedCode")+1,0,["math"]),A.splice(A.indexOf("fencedCode")+1,0,["math"]),C.splice(C.indexOf("fencedCode")+1,0,["math"]);function v(P,T,F){var k=T.length,I=0;let L,B,O,R,q,V,j,z,M,ae,ce;for(;I<k&&T.charCodeAt(I)===n;)I++;for(q=I;I<k&&T.charCodeAt(I)===i;)I++;if(V=I-q,!(V<c)){for(;I<k&&T.charCodeAt(I)===n;)I++;for(j=I;I<k;){if(L=T.charCodeAt(I),L===i)return;if(L===s)break;I++}if(T.charCodeAt(I)===s){if(F)return!0;for(B=[],j!==I&&B.push(T.slice(j,I)),I++,O=T.indexOf(o,I+1),O=O===-1?k:O;I<k;){for(z=!1,ae=I,ce=O,R=O,M=0;R>ae&&T.charCodeAt(R-1)===n;)R--;for(;R>ae&&T.charCodeAt(R-1)===i;)M++,R--;for(V<=M&&T.indexOf(u,ae)===R&&(z=!0,ce=R);ae<=ce&&ae-I<q&&T.charCodeAt(ae)===n;)ae++;if(z)for(;ce>ae&&T.charCodeAt(ce-1)===n;)ce--;if((!z||ae!==ce)&&B.push(T.slice(ae,ce)),z)break;I=O+1,O=T.indexOf(o,I+1),O=O===-1?k:O}return B=B.join(`
|
|
117
|
-
`),P(T.slice(0,O))({type:"math",value:B,data:{hName:"div",hProperties:{className:d.concat()},hChildren:[{type:"text",value:B}]}})}}}}function D(m){let g=m.prototype;g.visitors.math=x;function x(b){return`$$
|
|
118
|
-
`+b.value+`
|
|
119
|
-
$$`}}}),oU=me((t,e)=>{var r=iU(),s=aU();e.exports=n;function n(i){var o=i||{};s.call(this,o),r.call(this,o)}}),Ba=me((t,e)=>{e.exports=s;var r=Object.prototype.hasOwnProperty;function s(){for(var n={},i=0;i<arguments.length;i++){var o=arguments[i];for(var u in o)r.call(o,u)&&(n[u]=o[u])}return n}}),uU=me((t,e)=>{typeof Object.create=="function"?e.exports=function(r,s){s&&(r.super_=s,r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,s){if(s){r.super_=s;var n=function(){};n.prototype=s.prototype,r.prototype=new n,r.prototype.constructor=r}}}),lU=me((t,e)=>{"use strict";var r=Ba(),s=uU();e.exports=n;function n(i){var o,u,c;s(p,i),s(d,p),o=p.prototype;for(u in o)c=o[u],c&&typeof c=="object"&&(o[u]="concat"in c?c.concat():r(c));return p;function d(f){return i.apply(this,f)}function p(){return this instanceof p?i.apply(this,arguments):new d(arguments)}}}),cU=me((t,e)=>{"use strict";e.exports=r;function r(s,n,i){return o;function o(){var u=i||this,c=u[s];return u[s]=!n,d;function d(){u[s]=c}}}}),pU=me((t,e)=>{"use strict";e.exports=r;function r(s){for(var n=String(s),i=[],o=/\r?\n|\r/g;o.exec(n);)i.push(o.lastIndex);return i.push(n.length+1),{toPoint:u,toPosition:u,toOffset:c};function u(d){var p=-1;if(d>-1&&d<i[i.length-1]){for(;++p<i.length;)if(i[p]>d)return{line:p+1,column:d-(i[p-1]||0)+1,offset:d}}return{}}function c(d){var p=d&&d.line,f=d&&d.column,D;return!isNaN(p)&&!isNaN(f)&&p-1 in i&&(D=(i[p-2]||0)+f-1||0),D>-1&&D<i[i.length-1]?D:-1}}}),hU=me((t,e)=>{"use strict";e.exports=s;var r="\\";function s(n,i){return o;function o(u){for(var c=0,d=u.indexOf(r),p=n[i],f=[],D;d!==-1;)f.push(u.slice(c,d)),c=d+1,D=u.charAt(c),(!D||p.indexOf(D)===-1)&&f.push(r),d=u.indexOf(r,c+1);return f.push(u.slice(c)),f.join("")}}}),dU=me((t,e)=>{e.exports={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:"ÿ"}}),fU=me((t,e)=>{e.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),Na=me((t,e)=>{"use strict";e.exports=r;function r(s){var n=typeof s=="string"?s.charCodeAt(0):s;return n>=48&&n<=57}}),mU=me((t,e)=>{"use strict";e.exports=r;function r(s){var n=typeof s=="string"?s.charCodeAt(0):s;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}}),Fu=me((t,e)=>{"use strict";e.exports=r;function r(s){var n=typeof s=="string"?s.charCodeAt(0):s;return n>=97&&n<=122||n>=65&&n<=90}}),yU=me((t,e)=>{"use strict";var r=Fu(),s=Na();e.exports=n;function n(i){return r(i)||s(i)}}),DU=me((t,e)=>{e.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
120
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""}}),gU=me((t,e)=>{"use strict";var r=DU();e.exports=n;var s={}.hasOwnProperty;function n(i){return s.call(r,i)?r[i]:!1}}),Rc=me((t,e)=>{"use strict";var r=dU(),s=fU(),n=Na(),i=mU(),o=yU(),u=gU();e.exports=te;var c={}.hasOwnProperty,d=String.fromCharCode,p=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},D=9,m=10,g=12,x=32,b=38,A=59,C=60,v=61,P=35,T=88,F=120,k=65533,I="named",L="hexadecimal",B="decimal",O={};O[L]=16,O[B]=10;var R={};R[I]=o,R[B]=n,R[L]=i;var q=1,V=2,j=3,z=4,M=5,ae=6,ce=7,S={};S[q]="Named character references must be terminated by a semicolon",S[V]="Numeric character references must be terminated by a semicolon",S[j]="Named character references cannot be empty",S[z]="Numeric character references cannot be empty",S[M]="Named character references must be known",S[ae]="Numeric character references cannot be disallowed",S[ce]="Numeric character references cannot be outside the permissible Unicode range";function te(ye,ne){var Q={},J,G;ne||(ne={});for(G in f)J=ne[G],Q[G]=J??f[G];return(Q.position.indent||Q.position.start)&&(Q.indent=Q.position.indent||[],Q.position=Q.position.start),Z(ye,Q)}function Z(ye,ne){var Q=ne.additional,J=ne.nonTerminated,G=ne.text,ie=ne.reference,de=ne.warning,Pe=ne.textContext,ve=ne.referenceContext,We=ne.warningContext,nt=ne.position,lt=ne.indent||[],rt=ye.length,ke=0,fe=-1,we=nt.column||1,Vt=nt.line||1,_e="",Ct=[],tt,jt,re,le,Be,je,qe,dt,hr,sr,nr,wr,Dt,ft,Ht,Kn,mn,Sr,gt;for(typeof Q=="string"&&(Q=Q.charCodeAt(0)),Kn=st(),dt=de?Ru:p,ke--,rt++;++ke<rt;)if(Be===m&&(we=lt[fe]||1),Be=ye.charCodeAt(ke),Be===b){if(qe=ye.charCodeAt(ke+1),qe===D||qe===m||qe===g||qe===x||qe===b||qe===C||qe!==qe||Q&&qe===Q){_e+=d(Be),we++;continue}for(Dt=ke+1,wr=Dt,gt=Dt,qe===P?(gt=++wr,qe=ye.charCodeAt(gt),qe===T||qe===F?(ft=L,gt=++wr):ft=B):ft=I,tt="",nr="",le="",Ht=R[ft],gt--;++gt<rt&&(qe=ye.charCodeAt(gt),!!Ht(qe));)le+=d(qe),ft===I&&c.call(r,le)&&(tt=le,nr=r[le]);re=ye.charCodeAt(gt)===A,re&&(gt++,jt=ft===I?u(le):!1,jt&&(tt=le,nr=jt)),Sr=1+gt-Dt,!re&&!J||(le?ft===I?(re&&!nr?dt(M,1):(tt!==le&&(gt=wr+tt.length,Sr=1+gt-wr,re=!1),re||(hr=tt?q:j,ne.attribute?(qe=ye.charCodeAt(gt),qe===v?(dt(hr,Sr),nr=null):o(qe)?nr=null:dt(hr,Sr)):dt(hr,Sr))),je=nr):(re||dt(V,Sr),je=parseInt(le,O[ft]),N(je)?(dt(ce,Sr),je=d(k)):je in s?(dt(ae,Sr),je=s[je]):(sr="",se(je)&&dt(ae,Sr),je>65535&&(je-=65536,sr+=d(je>>>10|55296),je=56320|je&1023),je=sr+d(je))):ft!==I&&dt(z,Sr)),je?(qu(),Kn=st(),ke=gt-1,we+=gt-Dt+1,Ct.push(je),mn=st(),mn.offset++,ie&&ie.call(ve,je,{start:Kn,end:mn},ye.slice(Dt-1,gt)),Kn=mn):(le=ye.slice(Dt-1,gt),_e+=le,we+=le.length,ke=gt-1)}else Be===10&&(Vt++,fe++,we=0),Be===Be?(_e+=d(Be),we++):qu();return Ct.join("");function st(){return{line:Vt,column:we,offset:ke+(nt.offset||0)}}function Ru(Ra,Uu){var qa=st();qa.column+=Uu,qa.offset+=Uu,de.call(We,S[Ra],qa,Ra)}function qu(){_e&&(Ct.push(_e),G&&G.call(Pe,_e,{start:Kn,end:st()}),_e="")}}function N(ye){return ye>=55296&&ye<=57343||ye>1114111}function se(ye){return ye>=1&&ye<=8||ye===11||ye>=13&&ye<=31||ye>=127&&ye<=159||ye>=64976&&ye<=65007||(ye&65535)===65535||(ye&65535)===65534}}),xU=me((t,e)=>{"use strict";var r=Ba(),s=Rc();e.exports=n;function n(i){return u.raw=c,u;function o(p){for(var f=i.offset,D=p.line,m=[];++D&&D in f;)m.push((f[D]||0)+1);return{start:p,indent:m}}function u(p,f,D){s(p,{position:o(f),warning:d,text:D,reference:D,textContext:i,referenceContext:i})}function c(p,f,D){return s(p,r(D,{position:o(f),warning:d}))}function d(p,f,D){D!==3&&i.file.message(p,f)}}}),bU=me((t,e)=>{"use strict";e.exports=r;function r(o){return u;function u(c,d){var p=this,f=p.offset,D=[],m=p[o+"Methods"],g=p[o+"Tokenizers"],x=d.line,b=d.column,A,C,v,P,T,F;if(!c)return D;for(V.now=L,V.file=p.file,k("");c;){for(A=-1,C=m.length,T=!1;++A<C&&(P=m[A],v=g[P],!(v&&(!v.onlyAtStart||p.atStart)&&(!v.notInList||!p.inList)&&(!v.notInBlock||!p.inBlock)&&(!v.notInLink||!p.inLink)&&(F=c.length,v.apply(p,[V,c]),T=F!==c.length,T))););T||p.file.fail(new Error("Infinite loop"),V.now())}return p.eof=L(),D;function k(j){for(var z=-1,M=j.indexOf(`
|
|
121
|
-
`);M!==-1;)x++,z=M,M=j.indexOf(`
|
|
122
|
-
`,M+1);z===-1?b+=j.length:b=j.length-z,x in f&&(z!==-1?b+=f[x]:b<=f[x]&&(b=f[x]+1))}function I(){var j=[],z=x+1;return function(){for(var M=x+1;z<M;)j.push((f[z]||0)+1),z++;return j}}function L(){var j={line:x,column:b};return j.offset=p.toOffset(j),j}function B(j){this.start=j,this.end=L()}function O(j){c.slice(0,j.length)!==j&&p.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),L())}function R(){var j=L();return z;function z(M,ae){var ce=M.position,S=ce?ce.start:j,te=[],Z=ce&&ce.end.line,N=j.line;if(M.position=new B(S),ce&&ae&&ce.indent){if(te=ce.indent,Z<N){for(;++Z<N;)te.push((f[Z]||0)+1);te.push(j.column)}ae=te.concat(ae)}return M.position.indent=ae||[],M}}function q(j,z){var M=z?z.children:D,ae=M[M.length-1],ce;return ae&&j.type===ae.type&&(j.type==="text"||j.type==="blockquote")&&s(ae)&&s(j)&&(ce=j.type==="text"?n:i,j=ce.call(p,ae,j)),j!==ae&&M.push(j),p.atStart&&D.length!==0&&p.exitStart(),j}function V(j){var z=I(),M=R(),ae=L();return O(j),ce.reset=S,S.test=te,ce.test=te,c=c.slice(j.length),k(j),z=z(),ce;function ce(Z,N){return M(q(M(Z),N),z)}function S(){var Z=ce.apply(null,arguments);return x=ae.line,b=ae.column,c=j+c,Z}function te(){var Z=M({});return x=ae.line,b=ae.column,c=j+c,Z.position}}}}function s(o){var u,c;return o.type!=="text"||!o.position?!0:(u=o.position.start,c=o.position.end,u.line!==c.line||c.column-u.column===o.value.length)}function n(o,u){return o.value+=u.value,o}function i(o,u){return this.options.commonmark||this.options.gfm?u:(o.children=o.children.concat(u.children),o)}}),EU=me((t,e)=>{"use strict";e.exports=i;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],s=r.concat(["~","|"]),n=s.concat([`
|
|
123
|
-
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);i.default=r,i.gfm=s,i.commonmark=n;function i(o){var u=o||{};return u.commonmark?n:u.gfm?s:r}}),CU=me((t,e)=>{"use strict";e.exports=["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","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),pA=me((t,e)=>{"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:CU()}}),AU=me((t,e)=>{"use strict";var r=Ba(),s=EU(),n=pA();e.exports=i;function i(o){var u=this,c=u.options,d,p;if(o==null)o={};else if(typeof o=="object")o=r(o);else throw new Error("Invalid value `"+o+"` for setting `options`");for(d in n){if(p=o[d],p==null&&(p=c[d]),d!=="blocks"&&typeof p!="boolean"||d==="blocks"&&typeof p!="object")throw new Error("Invalid value `"+p+"` for setting `options."+d+"`");o[d]=p}return u.options=o,u.escape=s(o),u}}),vU=me((t,e)=>{"use strict";e.exports=r;function r(u){if(u==null)return o;if(typeof u=="string")return i(u);if(typeof u=="object")return"length"in u?n(u):s(u);if(typeof u=="function")return u;throw new Error("Expected function, string, or object as test")}function s(u){return c;function c(d){var p;for(p in u)if(d[p]!==u[p])return!1;return!0}}function n(u){for(var c=[],d=-1;++d<u.length;)c[d]=r(u[d]);return p;function p(){for(var f=-1;++f<c.length;)if(c[f].apply(this,arguments))return!0;return!1}}function i(u){return c;function c(d){return!!(d&&d.type===u)}}function o(){return!0}}),TU=me((t,e)=>{e.exports=r;function r(s){return s}}),FU=me((t,e)=>{"use strict";e.exports=u;var r=vU(),s=TU(),n=!0,i="skip",o=!1;u.CONTINUE=n,u.SKIP=i,u.EXIT=o;function u(d,p,f,D){var m,g;typeof p=="function"&&typeof f!="function"&&(D=f,f=p,p=null),g=r(p),m=D?-1:1,x(d,null,[])();function x(b,A,C){var v=typeof b=="object"&&b!==null?b:{},P;return typeof v.type=="string"&&(P=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0,T.displayName="node ("+s(v.type+(P?"<"+P+">":""))+")"),T;function T(){var F=C.concat(b),k=[],I,L;if((!p||g(b,A,C[C.length-1]||null))&&(k=c(f(b,C)),k[0]===o))return k;if(b.children&&k[0]!==i)for(L=(D?b.children.length:-1)+m;L>-1&&L<b.children.length;){if(I=x(b.children[L],L,F)(),I[0]===o)return I;L=typeof I[1]=="number"?I[1]:L+m}return k}}}function c(d){return d!==null&&typeof d=="object"&&"length"in d?d:typeof d=="number"?[n,d]:[d]}}),wU=me((t,e)=>{"use strict";e.exports=o;var r=FU(),s=r.CONTINUE,n=r.SKIP,i=r.EXIT;o.CONTINUE=s,o.SKIP=n,o.EXIT=i;function o(u,c,d,p){typeof c=="function"&&typeof d!="function"&&(p=d,d=c,c=null),r(u,c,f,p);function f(D,m){var g=m[m.length-1],x=g?g.children.indexOf(D):null;return d(D,x,g)}}}),SU=me((t,e)=>{"use strict";var r=wU();e.exports=s;function s(o,u){return r(o,u?n:i),o}function n(o){delete o.position}function i(o){o.position=void 0}}),kU=me((t,e)=>{"use strict";var r=Ba(),s=SU();e.exports=o;var n=`
|
|
124
|
-
`,i=/\r\n|\r/g;function o(){var u=this,c=String(u.file),d={line:1,column:1,offset:0},p=r(d),f;return c=c.replace(i,n),c.charCodeAt(0)===65279&&(c=c.slice(1),p.column++,p.offset++),f={type:"root",children:u.tokenizeBlock(c,p),position:{start:d,end:u.eof||r(d)}},u.options.position||s(f,!0),f}}),PU=me((t,e)=>{"use strict";var r=/^[ \t]*(\n|$)/;e.exports=s;function s(n,i,o){for(var u,c="",d=0,p=i.length;d<p&&(u=r.exec(i.slice(d)),u!=null);)d+=u[0].length,c+=u[0];if(c!==""){if(o)return!0;n(c)}}}),dm=me((t,e)=>{"use strict";var r="",s;e.exports=n;function n(i,o){if(typeof i!="string")throw new TypeError("expected a string");if(o===1)return i;if(o===2)return i+i;var u=i.length*o;if(s!==i||typeof s>"u")s=i,r="";else if(r.length>=u)return r.substr(0,u);for(;u>r.length&&o>1;)o&1&&(r+=i),o>>=1,i+=i;return r+=i,r=r.substr(0,u),r}}),hA=me((t,e)=>{"use strict";e.exports=r;function r(s){return String(s).replace(/\n+$/,"")}}),IU=me((t,e)=>{"use strict";var r=dm(),s=hA();e.exports=d;var n=`
|
|
125
|
-
`,i=" ",o=" ",u=4,c=r(o,u);function d(p,f,D){for(var m=-1,g=f.length,x="",b="",A="",C="",v,P,T;++m<g;)if(v=f.charAt(m),T)if(T=!1,x+=A,b+=C,A="",C="",v===n)A=v,C=v;else for(x+=v,b+=v;++m<g;){if(v=f.charAt(m),!v||v===n){C=v,A=v;break}x+=v,b+=v}else if(v===o&&f.charAt(m+1)===v&&f.charAt(m+2)===v&&f.charAt(m+3)===v)A+=c,m+=3,T=!0;else if(v===i)A+=v,T=!0;else{for(P="";v===i||v===o;)P+=v,v=f.charAt(++m);if(v!==n)break;A+=P+v,C+=v}if(b)return D?!0:p(x)({type:"code",lang:null,meta:null,value:s(b)})}}),BU=me((t,e)=>{"use strict";e.exports=d;var r=`
|
|
126
|
-
`,s=" ",n=" ",i="~",o="`",u=3,c=4;function d(p,f,D){var m=this,g=m.options.gfm,x=f.length+1,b=0,A="",C,v,P,T,F,k,I,L,B,O,R,q,V;if(g){for(;b<x&&(P=f.charAt(b),!(P!==n&&P!==s));)A+=P,b++;if(q=b,P=f.charAt(b),!(P!==i&&P!==o)){for(b++,v=P,C=1,A+=P;b<x&&(P=f.charAt(b),P===v);)A+=P,C++,b++;if(!(C<u)){for(;b<x&&(P=f.charAt(b),!(P!==n&&P!==s));)A+=P,b++;for(T="",I="";b<x&&(P=f.charAt(b),!(P===r||v===o&&P===v));)P===n||P===s?I+=P:(T+=I+P,I=""),b++;if(P=f.charAt(b),!(P&&P!==r)){if(D)return!0;V=p.now(),V.column+=A.length,V.offset+=A.length,A+=T,T=m.decode.raw(m.unescape(T),V),I&&(A+=I),I="",O="",R="",L="",B="";for(var j=!0;b<x;){if(P=f.charAt(b),L+=O,B+=R,O="",R="",P!==r){L+=P,R+=P,b++;continue}for(j?(A+=P,j=!1):(O+=P,R+=P),I="",b++;b<x&&(P=f.charAt(b),P===n);)I+=P,b++;if(O+=I,R+=I.slice(q),!(I.length>=c)){for(I="";b<x&&(P=f.charAt(b),P===v);)I+=P,b++;if(O+=I,R+=I,!(I.length<C)){for(I="";b<x&&(P=f.charAt(b),!(P!==n&&P!==s));)O+=P,R+=P,b++;if(!P||P===r)break}}}for(A+=L+O,b=-1,x=T.length;++b<x;)if(P=T.charAt(b),P===n||P===s)F||(F=T.slice(0,b));else if(F){k=T.slice(b);break}return p(A)({type:"code",lang:F||T||null,meta:k||null,value:B})}}}}}}),La=me((t,e)=>{t=e.exports=r;function r(s){return s.trim?s.trim():t.right(t.left(s))}t.left=function(s){return s.trimLeft?s.trimLeft():s.replace(/^\s\s*/,"")},t.right=function(s){if(s.trimRight)return s.trimRight();for(var n=/\s/,i=s.length;n.test(s.charAt(--i)););return s.slice(0,i+1)}}),fm=me((t,e)=>{"use strict";e.exports=r;function r(s,n,i,o){for(var u=s.length,c=-1,d,p;++c<u;)if(d=s[c],p=d[1]||{},!(p.pedantic!==void 0&&p.pedantic!==i.options.pedantic)&&!(p.commonmark!==void 0&&p.commonmark!==i.options.commonmark)&&n[d[0]].apply(i,o))return!0;return!1}}),NU=me((t,e)=>{"use strict";var r=La(),s=fm();e.exports=c;var n=`
|
|
127
|
-
`,i=" ",o=" ",u=">";function c(d,p,f){for(var D=this,m=D.offset,g=D.blockTokenizers,x=D.interruptBlockquote,b=d.now(),A=b.line,C=p.length,v=[],P=[],T=[],F,k=0,I,L,B,O,R,q,V,j;k<C&&(I=p.charAt(k),!(I!==o&&I!==i));)k++;if(p.charAt(k)===u){if(f)return!0;for(k=0;k<C;){for(B=p.indexOf(n,k),q=k,V=!1,B===-1&&(B=C);k<C&&(I=p.charAt(k),!(I!==o&&I!==i));)k++;if(p.charAt(k)===u?(k++,V=!0,p.charAt(k)===o&&k++):k=q,O=p.slice(k,B),!V&&!r(O)){k=q;break}if(!V&&(L=p.slice(k),s(x,g,D,[d,L,!0])))break;R=q===k?O:p.slice(q,B),T.push(k-q),v.push(R),P.push(O),k=B+1}for(k=-1,C=T.length,F=d(v.join(n));++k<C;)m[A]=(m[A]||0)+T[k],A++;return j=D.enterBlock(),P=D.tokenizeBlock(P.join(n),b),j(),F({type:"blockquote",children:P})}}}),LU=me((t,e)=>{"use strict";e.exports=u;var r=`
|
|
128
|
-
`,s=" ",n=" ",i="#",o=6;function u(c,d,p){for(var f=this,D=f.options.pedantic,m=d.length+1,g=-1,x=c.now(),b="",A="",C,v,P;++g<m;){if(C=d.charAt(g),C!==n&&C!==s){g--;break}b+=C}for(P=0;++g<=m;){if(C=d.charAt(g),C!==i){g--;break}b+=C,P++}if(!(P>o)&&!(!P||!D&&d.charAt(g+1)===i)){for(m=d.length+1,v="";++g<m;){if(C=d.charAt(g),C!==n&&C!==s){g--;break}v+=C}if(!(!D&&v.length===0&&C&&C!==r)){if(p)return!0;for(b+=v,v="",A="";++g<m&&(C=d.charAt(g),!(!C||C===r));){if(C!==n&&C!==s&&C!==i){A+=v+C,v="";continue}for(;C===n||C===s;)v+=C,C=d.charAt(++g);if(!D&&A&&!v&&C===i){A+=C;continue}for(;C===i;)v+=C,C=d.charAt(++g);for(;C===n||C===s;)v+=C,C=d.charAt(++g);g--}return x.column+=b.length,x.offset+=b.length,b+=A+v,c(b)({type:"heading",depth:P,children:f.tokenizeInline(A,x)})}}}}),$U=me((t,e)=>{"use strict";e.exports=d;var r=" ",s=`
|
|
129
|
-
`,n=" ",i="*",o="-",u="_",c=3;function d(p,f,D){for(var m=-1,g=f.length+1,x="",b,A,C,v;++m<g&&(b=f.charAt(m),!(b!==r&&b!==n));)x+=b;if(!(b!==i&&b!==o&&b!==u))for(A=b,x+=b,C=1,v="";++m<g;)if(b=f.charAt(m),b===A)C++,x+=v+A,v="";else if(b===n)v+=b;else return C>=c&&(!b||b===s)?(x+=v,D?!0:p(x)({type:"thematicBreak"})):void 0}}),dA=me((t,e)=>{"use strict";e.exports=o;var r=" ",s=" ",n=1,i=4;function o(u){for(var c=0,d=0,p=u.charAt(c),f={},D,m=0;p===r||p===s;){for(D=p===r?i:n,d+=D,D>1&&(d=Math.floor(d/D)*D);m<d;)f[++m]=c;p=u.charAt(++c)}return{indent:d,stops:f}}}),MU=me((t,e)=>{"use strict";var r=La(),s=dm(),n=dA();e.exports=c;var i=`
|
|
130
|
-
`,o=" ",u="!";function c(d,p){var f=d.split(i),D=f.length+1,m=1/0,g=[],x,b,A;for(f.unshift(s(o,p)+u);D--;)if(b=n(f[D]),g[D]=b.stops,r(f[D]).length!==0)if(b.indent)b.indent>0&&b.indent<m&&(m=b.indent);else{m=1/0;break}if(m!==1/0)for(D=f.length;D--;){for(A=g[D],x=m;x&&!(x in A);)x--;f[D]=f[D].slice(A[x]+1)}return f.shift(),f.join(i)}}),OU=me((t,e)=>{"use strict";var r=La(),s=dm(),n=Na(),i=dA(),o=MU(),u=fm();e.exports=I;var c="*",d="_",p="+",f="-",D=".",m=" ",g=`
|
|
131
|
-
`,x=" ",b=")",A="x",C=4,v=/\n\n(?!\s*$)/,P=/^\[([ X\tx])][ \t]/,T=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,F=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,k=/^( {1,4}|\t)?/gm;function I(R,q,V){for(var j=this,z=j.options.commonmark,M=j.options.pedantic,ae=j.blockTokenizers,ce=j.interruptList,S=0,te=q.length,Z=null,N,se,ye,ne,Q,J,G,ie,de,Pe,ve,We,nt,lt,rt,ke,fe,we,Vt,_e=!1,Ct,tt,jt,re;S<te&&(ne=q.charAt(S),!(ne!==x&&ne!==m));)S++;if(ne=q.charAt(S),ne===c||ne===p||ne===f)Q=ne,ye=!1;else{for(ye=!0,se="";S<te&&(ne=q.charAt(S),!!n(ne));)se+=ne,S++;if(ne=q.charAt(S),!se||!(ne===D||z&&ne===b)||V&&se!=="1")return;Z=parseInt(se,10),Q=ne}if(ne=q.charAt(++S),!(ne!==m&&ne!==x&&(M||ne!==g&&ne!==""))){if(V)return!0;for(S=0,lt=[],rt=[],ke=[];S<te;){for(J=q.indexOf(g,S),G=S,ie=!1,re=!1,J===-1&&(J=te),N=0;S<te;){if(ne=q.charAt(S),ne===x)N+=C-N%C;else if(ne===m)N++;else break;S++}if(fe&&N>=fe.indent&&(re=!0),ne=q.charAt(S),de=null,!re){if(ne===c||ne===p||ne===f)de=ne,S++,N++;else{for(se="";S<te&&(ne=q.charAt(S),!!n(ne));)se+=ne,S++;ne=q.charAt(S),S++,se&&(ne===D||z&&ne===b)&&(de=ne,N+=se.length+1)}if(de)if(ne=q.charAt(S),ne===x)N+=C-N%C,S++;else if(ne===m){for(jt=S+C;S<jt&&q.charAt(S)===m;)S++,N++;S===jt&&q.charAt(S)===m&&(S-=C-1,N-=C-1)}else ne!==g&&ne!==""&&(de=null)}if(de){if(!M&&Q!==de)break;ie=!0}else!z&&!re&&q.charAt(G)===m?re=!0:z&&fe&&(re=N>=fe.indent||N>C),ie=!1,S=G;if(ve=q.slice(G,J),Pe=G===S?ve:q.slice(S,J),(de===c||de===d||de===f)&&ae.thematicBreak.call(j,R,ve,!0))break;if(We=nt,nt=!ie&&!r(Pe).length,re&&fe)fe.value=fe.value.concat(ke,ve),rt=rt.concat(ke,ve),ke=[];else if(ie)ke.length!==0&&(_e=!0,fe.value.push(""),fe.trail=ke.concat()),fe={value:[ve],indent:N,trail:[]},lt.push(fe),rt=rt.concat(ke,ve),ke=[];else if(nt){if(We&&!z)break;ke.push(ve)}else{if(We||u(ce,ae,j,[R,ve,!0]))break;fe.value=fe.value.concat(ke,ve),rt=rt.concat(ke,ve),ke=[]}S=J+1}for(Ct=R(rt.join(g)).reset({type:"list",ordered:ye,start:Z,spread:_e,children:[]}),we=j.enterList(),Vt=j.enterBlock(),S=-1,te=lt.length;++S<te;)fe=lt[S].value.join(g),tt=R.now(),R(fe)(L(j,fe,tt),Ct),fe=lt[S].trail.join(g),S!==te-1&&(fe+=g),R(fe);return we(),Vt(),Ct}}function L(R,q,V){var j=R.offset,z=R.options.pedantic?B:O,M=null,ae,ce;return q=z.apply(null,arguments),R.options.gfm&&(ae=q.match(P),ae&&(ce=ae[0].length,M=ae[1].toLowerCase()===A,j[V.line]+=ce,q=q.slice(ce))),{type:"listItem",spread:v.test(q),checked:M,children:R.tokenizeBlock(q,V)}}function B(R,q,V){var j=R.offset,z=V.line;return q=q.replace(F,M),z=V.line,q.replace(k,M);function M(ae){return j[z]=(j[z]||0)+ae.length,z++,""}}function O(R,q,V){var j=R.offset,z=V.line,M,ae,ce,S,te,Z,N;for(q=q.replace(T,se),S=q.split(g),te=o(q,i(M).indent).split(g),te[0]=ce,j[z]=(j[z]||0)+ae.length,z++,Z=0,N=S.length;++Z<N;)j[z]=(j[z]||0)+S[Z].length-te[Z].length,z++;return te.join(g);function se(ye,ne,Q,J,G){return ae=ne+Q+J,ce=G,Number(Q)<10&&ae.length%2===1&&(Q=m+Q),M=ne+s(m,Q.length)+J,M+ce}}}),_U=me((t,e)=>{"use strict";e.exports=p;var r=`
|
|
132
|
-
`,s=" ",n=" ",i="=",o="-",u=3,c=1,d=2;function p(f,D,m){for(var g=this,x=f.now(),b=D.length,A=-1,C="",v,P,T,F,k;++A<b;){if(T=D.charAt(A),T!==n||A>=u){A--;break}C+=T}for(v="",P="";++A<b;){if(T=D.charAt(A),T===r){A--;break}T===n||T===s?P+=T:(v+=P+T,P="")}if(x.column+=C.length,x.offset+=C.length,C+=v+P,T=D.charAt(++A),F=D.charAt(++A),!(T!==r||F!==i&&F!==o)){for(C+=T,P=F,k=F===i?c:d;++A<b;){if(T=D.charAt(A),T!==F){if(T!==r)return;A--;break}P+=T}return m?!0:f(C+P)({type:"heading",depth:k,children:g.tokenizeInline(v,x)})}}}),fA=me(t=>{"use strict";var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",r="[^\"'=<>`\\u0000-\\u0020]+",s="'[^']*'",n='"[^"]*"',i="(?:"+r+"|"+s+"|"+n+")",o="(?:\\s+"+e+"(?:\\s*=\\s*"+i+")?)",u="<[A-Za-z][A-Za-z0-9\\-]*"+o+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",d="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",p="<[?].*?[?]>",f="<![A-Za-z]+\\s+[^>]*>",D="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";t.openCloseTag=new RegExp("^(?:"+u+"|"+c+")"),t.tag=new RegExp("^(?:"+u+"|"+c+"|"+d+"|"+p+"|"+f+"|"+D+")")}),jU=me((t,e)=>{"use strict";var r=fA().openCloseTag;e.exports=v;var s=" ",n=" ",i=`
|
|
133
|
-
`,o="<",u=/^<(script|pre|style)(?=(\s|>|$))/i,c=/<\/(script|pre|style)>/i,d=/^<!--/,p=/-->/,f=/^<\?/,D=/\?>/,m=/^<![A-Za-z]/,g=/>/,x=/^<!\[CDATA\[/,b=/]]>/,A=/^$/,C=new RegExp(r.source+"\\s*$");function v(P,T,F){for(var k=this,I=k.options.blocks.join("|"),L=new RegExp("^</?("+I+")(?=(\\s|/?>|$))","i"),B=T.length,O=0,R,q,V,j,z,M,ae,ce=[[u,c,!0],[d,p,!0],[f,D,!0],[m,g,!0],[x,b,!0],[L,A,!0],[C,A,!1]];O<B&&(j=T.charAt(O),!(j!==s&&j!==n));)O++;if(T.charAt(O)===o){for(R=T.indexOf(i,O+1),R=R===-1?B:R,q=T.slice(O,R),V=-1,z=ce.length;++V<z;)if(ce[V][0].test(q)){M=ce[V];break}if(M){if(F)return M[2];if(O=R,!M[1].test(q))for(;O<B;){if(R=T.indexOf(i,O+1),R=R===-1?B:R,q=T.slice(O+1,R),M[1].test(q)){q&&(O=R);break}O=R}return ae=T.slice(0,O),P(ae)({type:"html",value:ae})}}}}),hn=me((t,e)=>{"use strict";e.exports=n;var r=String.fromCharCode,s=/\s/;function n(i){return s.test(typeof i=="number"?r(i):i.charAt(0))}}),mm=me((t,e)=>{"use strict";e.exports=r;function r(s){return String(s).replace(/\s+/g," ")}}),mA=me((t,e)=>{"use strict";var r=mm();e.exports=s;function s(n){return r(n).toLowerCase()}}),RU=me((t,e)=>{"use strict";var r=hn(),s=mA();e.exports=A;var n='"',i="'",o="\\",u=`
|
|
134
|
-
`,c=" ",d=" ",p="[",f="]",D="(",m=")",g=":",x="<",b=">";function A(P,T,F){for(var k=this,I=k.options.commonmark,L=0,B=T.length,O="",R,q,V,j,z,M,ae,ce;L<B&&(j=T.charAt(L),!(j!==d&&j!==c));)O+=j,L++;if(j=T.charAt(L),j===p){for(L++,O+=j,V="";L<B&&(j=T.charAt(L),j!==f);)j===o&&(V+=j,L++,j=T.charAt(L)),V+=j,L++;if(!(!V||T.charAt(L)!==f||T.charAt(L+1)!==g)){for(M=V,O+=V+f+g,L=O.length,V="";L<B&&(j=T.charAt(L),!(j!==c&&j!==d&&j!==u));)O+=j,L++;if(j=T.charAt(L),V="",R=O,j===x){for(L++;L<B&&(j=T.charAt(L),!!C(j));)V+=j,L++;if(j=T.charAt(L),j===C.delimiter)O+=x+V+j,L++;else{if(I)return;L-=V.length+1,V=""}}if(!V){for(;L<B&&(j=T.charAt(L),!!v(j));)V+=j,L++;O+=V}if(V){for(ae=V,V="";L<B&&(j=T.charAt(L),!(j!==c&&j!==d&&j!==u));)V+=j,L++;if(j=T.charAt(L),z=null,j===n?z=n:j===i?z=i:j===D&&(z=m),!z)V="",L=O.length;else if(V){for(O+=V+j,L=O.length,V="";L<B&&(j=T.charAt(L),j!==z);){if(j===u){if(L++,j=T.charAt(L),j===u||j===z)return;V+=u}V+=j,L++}if(j=T.charAt(L),j!==z)return;q=O,O+=V+j,L++,ce=V,V=""}else return;for(;L<B&&(j=T.charAt(L),!(j!==c&&j!==d));)O+=j,L++;if(j=T.charAt(L),!j||j===u)return F?!0:(R=P(R).test().end,ae=k.decode.raw(k.unescape(ae),R,{nonTerminated:!1}),ce&&(q=P(q).test().end,ce=k.decode.raw(k.unescape(ce),q)),P(O)({type:"definition",identifier:s(M),label:M,title:ce||null,url:ae}))}}}}function C(P){return P!==b&&P!==p&&P!==f}C.delimiter=b;function v(P){return P!==p&&P!==f&&!r(P)}}),qU=me((t,e)=>{"use strict";var r=hn();e.exports=x;var s=" ",n=`
|
|
135
|
-
`,i=" ",o="-",u=":",c="\\",d="|",p=1,f=2,D="left",m="center",g="right";function x(b,A,C){var v=this,P,T,F,k,I,L,B,O,R,q,V,j,z,M,ae,ce,S,te,Z,N,se,ye;if(v.options.gfm){for(P=0,ce=0,L=A.length+1,B=[];P<L;){if(N=A.indexOf(n,P),se=A.indexOf(d,P+1),N===-1&&(N=A.length),se===-1||se>N){if(ce<f)return;break}B.push(A.slice(P,N)),ce++,P=N+1}for(k=B.join(n),T=B.splice(1,1)[0]||[],P=0,L=T.length,ce--,F=!1,V=[];P<L;){if(R=T.charAt(P),R===d){if(q=null,F===!1){if(ye===!1)return}else V.push(F),F=!1;ye=!1}else if(R===o)q=!0,F=F||null;else if(R===u)F===D?F=m:q&&F===null?F=g:F=D;else if(!r(R))return;P++}if(F!==!1&&V.push(F),!(V.length<p)){if(C)return!0;for(ae=-1,te=[],Z=b(k).reset({type:"table",align:V,children:te});++ae<ce;){for(S=B[ae],I={type:"tableRow",children:[]},ae&&b(n),b(S).reset(I,Z),L=S.length+1,P=0,O="",j="",z=!0;P<L;){if(R=S.charAt(P),R===s||R===i){j?O+=R:b(R),P++;continue}R===""||R===d?z?b(R):((j||R)&&!z&&(k=j,O.length>1&&(R?(k+=O.slice(0,-1),O=O.charAt(O.length-1)):(k+=O,O="")),M=b.now(),b(k)({type:"tableCell",children:v.tokenizeInline(j,M)},I)),b(O+R),O="",j=""):(O&&(j+=O,O=""),j+=R,R===c&&P!==L-2&&(j+=S.charAt(P+1),P++)),z=!1,P++}ae||b(n+T)}return Z}}}}),UU=me((t,e)=>{"use strict";var r=La(),s=hA(),n=fm();e.exports=d;var i=" ",o=`
|
|
136
|
-
`,u=" ",c=4;function d(p,f,D){for(var m=this,g=m.options,x=g.commonmark,b=m.blockTokenizers,A=m.interruptParagraph,C=f.indexOf(o),v=f.length,P,T,F,k,I;C<v;){if(C===-1){C=v;break}if(f.charAt(C+1)===o)break;if(x){for(k=0,P=C+1;P<v;){if(F=f.charAt(P),F===i){k=c;break}else if(F===u)k++;else break;P++}if(k>=c&&F!==o){C=f.indexOf(o,C+1);continue}}if(T=f.slice(C+1),n(A,b,m,[p,T,!0]))break;if(P=C,C=f.indexOf(o,C+1),C!==-1&&r(f.slice(P,C))===""){C=P;break}}return T=f.slice(0,C),D?!0:(I=p.now(),T=s(T),p(T)({type:"paragraph",children:m.tokenizeInline(T,I)}))}}),zU=me((t,e)=>{"use strict";e.exports=r;function r(s,n){return s.indexOf("\\",n)}}),VU=me((t,e)=>{"use strict";var r=zU();e.exports=i,i.locator=r;var s=`
|
|
137
|
-
`,n="\\";function i(o,u,c){var d=this,p,f;if(u.charAt(0)===n&&(p=u.charAt(1),d.escape.indexOf(p)!==-1))return c?!0:(p===s?f={type:"break"}:f={type:"text",value:p},o(n+p)(f))}}),yA=me((t,e)=>{"use strict";e.exports=r;function r(s,n){return s.indexOf("<",n)}}),HU=me((t,e)=>{"use strict";var r=hn(),s=Rc(),n=yA();e.exports=f,f.locator=n,f.notInLink=!0;var i="<",o=">",u="@",c="/",d="mailto:",p=d.length;function f(D,m,g){var x=this,b="",A=m.length,C=0,v="",P=!1,T="",F,k,I,L,B;if(m.charAt(0)===i){for(C++,b=i;C<A&&(F=m.charAt(C),!(r(F)||F===o||F===u||F===":"&&m.charAt(C+1)===c));)v+=F,C++;if(v){if(T+=v,v="",F=m.charAt(C),T+=F,C++,F===u)P=!0;else{if(F!==":"||m.charAt(C+1)!==c)return;T+=c,C++}for(;C<A&&(F=m.charAt(C),!(r(F)||F===o));)v+=F,C++;if(F=m.charAt(C),!(!v||F!==o))return g?!0:(T+=v,I=T,b+=T+F,k=D.now(),k.column++,k.offset++,P&&(T.slice(0,p).toLowerCase()===d?(I=I.slice(p),k.column+=p,k.offset+=p):T=d+T),L=x.inlineTokenizers,x.inlineTokenizers={text:L.text},B=x.enterLink(),I=x.tokenizeInline(I,k),x.inlineTokenizers=L,B(),D(b)({type:"link",title:null,url:s(T,{nonTerminated:!1}),children:I}))}}}}),WU=me((t,e)=>{"use strict";e.exports=r;function r(s,n){var i=String(s),o=0,u;if(typeof n!="string")throw new Error("Expected character");for(u=i.indexOf(n);u!==-1;)o++,u=i.indexOf(n,u+n.length);return o}}),JU=me((t,e)=>{"use strict";e.exports=s;var r=["www.","http://","https://"];function s(n,i){var o=-1,u,c,d;if(!this.options.gfm)return o;for(c=r.length,u=-1;++u<c;)d=n.indexOf(r[u],i),d!==-1&&(o===-1||d<o)&&(o=d);return o}}),GU=me((t,e)=>{"use strict";var r=WU(),s=Rc(),n=Na(),i=Fu(),o=hn(),u=JU();e.exports=k,k.locator=u,k.notInLink=!0;var c=33,d=38,p=41,f=42,D=44,m=45,g=46,x=58,b=59,A=63,C=60,v=95,P=126,T="(",F=")";function k(I,L,B){var O=this,R=O.options.gfm,q=O.inlineTokenizers,V=L.length,j=-1,z=!1,M,ae,ce,S,te,Z,N,se,ye,ne,Q,J,G,ie;if(R){if(L.slice(0,4)==="www.")z=!0,S=4;else if(L.slice(0,7).toLowerCase()==="http://")S=7;else if(L.slice(0,8).toLowerCase()==="https://")S=8;else return;for(j=S-1,ce=S,M=[];S<V;){if(N=L.charCodeAt(S),N===g){if(j===S-1)break;M.push(S),j=S,S++;continue}if(n(N)||i(N)||N===m||N===v){S++;continue}break}if(N===g&&(M.pop(),S--),M[0]!==void 0&&(ae=M.length<2?ce:M[M.length-2]+1,L.slice(ae,S).indexOf("_")===-1)){if(B)return!0;for(se=S,te=S;S<V&&(N=L.charCodeAt(S),!(o(N)||N===C));)S++,N===c||N===f||N===D||N===g||N===x||N===A||N===v||N===P||(se=S);if(S=se,L.charCodeAt(S-1)===p)for(Z=L.slice(te,S),ye=r(Z,T),ne=r(Z,F);ne>ye;)S=te+Z.lastIndexOf(F),Z=L.slice(te,S),ne--;if(L.charCodeAt(S-1)===b&&(S--,i(L.charCodeAt(S-1)))){for(se=S-2;i(L.charCodeAt(se));)se--;L.charCodeAt(se)===d&&(S=se)}return Q=L.slice(0,S),G=s(Q,{nonTerminated:!1}),z&&(G="http://"+G),ie=O.enterLink(),O.inlineTokenizers={text:q.text},J=O.tokenizeInline(Q,I.now()),O.inlineTokenizers=q,ie(),I(Q)({type:"link",title:null,url:G,children:J})}}}}),KU=me((t,e)=>{"use strict";var r=Na(),s=Fu(),n=43,i=45,o=46,u=95;e.exports=c;function c(p,f){var D=this,m,g;if(!this.options.gfm||(m=p.indexOf("@",f),m===-1))return-1;if(g=m,g===f||!d(p.charCodeAt(g-1)))return c.call(D,p,m+1);for(;g>f&&d(p.charCodeAt(g-1));)g--;return g}function d(p){return r(p)||s(p)||p===n||p===i||p===o||p===u}}),XU=me((t,e)=>{"use strict";var r=Rc(),s=Na(),n=Fu(),i=KU();e.exports=f,f.locator=i,f.notInLink=!0;var o=43,u=45,c=46,d=64,p=95;function f(D,m,g){var x=this,b=x.options.gfm,A=x.inlineTokenizers,C=0,v=m.length,P=-1,T,F,k,I;if(b){for(T=m.charCodeAt(C);s(T)||n(T)||T===o||T===u||T===c||T===p;)T=m.charCodeAt(++C);if(C!==0&&T===d){for(C++;C<v;){if(T=m.charCodeAt(C),s(T)||n(T)||T===u||T===c||T===p){C++,P===-1&&T===c&&(P=C);continue}break}if(!(P===-1||P===C||T===u||T===p))return T===c&&C--,F=m.slice(0,C),g?!0:(I=x.enterLink(),x.inlineTokenizers={text:A.text},k=x.tokenizeInline(F,D.now()),x.inlineTokenizers=A,I(),D(F)({type:"link",title:null,url:"mailto:"+r(F,{nonTerminated:!1}),children:k}))}}}}),YU=me((t,e)=>{"use strict";var r=Fu(),s=yA(),n=fA().tag;e.exports=f,f.locator=s;var i="<",o="?",u="!",c="/",d=/^<a /i,p=/^<\/a>/i;function f(D,m,g){var x=this,b=m.length,A,C;if(!(m.charAt(0)!==i||b<3)&&(A=m.charAt(1),!(!r(A)&&A!==o&&A!==u&&A!==c)&&(C=m.match(n),!!C)))return g?!0:(C=C[0],!x.inLink&&d.test(C)?x.inLink=!0:x.inLink&&p.test(C)&&(x.inLink=!1),D(C)({type:"html",value:C}))}}),DA=me((t,e)=>{"use strict";e.exports=r;function r(s,n){var i=s.indexOf("[",n),o=s.indexOf("![",n);return o===-1||i<o?i:o}}),QU=me((t,e)=>{"use strict";var r=hn(),s=DA();e.exports=b,b.locator=s;var n=`
|
|
138
|
-
`,i="!",o='"',u="'",c="(",d=")",p="<",f=">",D="[",m="\\",g="]",x="`";function b(A,C,v){var P=this,T="",F=0,k=C.charAt(0),I=P.options.pedantic,L=P.options.commonmark,B=P.options.gfm,O,R,q,V,j,z,M,ae,ce,S,te,Z,N,se,ye,ne,Q,J;if(k===i&&(ae=!0,T=k,k=C.charAt(++F)),k===D&&!(!ae&&P.inLink)){for(T+=k,se="",F++,te=C.length,ne=A.now(),N=0,ne.column+=F,ne.offset+=F;F<te;){if(k=C.charAt(F),z=k,k===x){for(R=1;C.charAt(F+1)===x;)z+=k,F++,R++;q?R>=q&&(q=0):q=R}else if(k===m)F++,z+=C.charAt(F);else if((!q||B)&&k===D)N++;else if((!q||B)&&k===g)if(N)N--;else{if(C.charAt(F+1)!==c)return;z+=c,O=!0,F++;break}se+=z,z="",F++}if(O){for(ce=se,T+=se+z,F++;F<te&&(k=C.charAt(F),!!r(k));)T+=k,F++;if(k=C.charAt(F),se="",V=T,k===p){for(F++,V+=p;F<te&&(k=C.charAt(F),k!==f);){if(L&&k===n)return;se+=k,F++}if(C.charAt(F)!==f)return;T+=p+se+f,ye=se,F++}else{for(k=null,z="";F<te&&(k=C.charAt(F),!(z&&(k===o||k===u||L&&k===c)));){if(r(k)){if(!I)break;z+=k}else{if(k===c)N++;else if(k===d){if(N===0)break;N--}se+=z,z="",k===m&&(se+=m,k=C.charAt(++F)),se+=k}F++}T+=se,ye=se,F=T.length}for(se="";F<te&&(k=C.charAt(F),!!r(k));)se+=k,F++;if(k=C.charAt(F),T+=se,se&&(k===o||k===u||L&&k===c))if(F++,T+=k,se="",S=k===c?d:k,j=T,L){for(;F<te&&(k=C.charAt(F),k!==S);)k===m&&(se+=m,k=C.charAt(++F)),F++,se+=k;if(k=C.charAt(F),k!==S)return;for(Z=se,T+=se+k,F++;F<te&&(k=C.charAt(F),!!r(k));)T+=k,F++}else for(z="";F<te;){if(k=C.charAt(F),k===S)M&&(se+=S+z,z=""),M=!0;else if(!M)se+=k;else if(k===d){T+=se+S+z,Z=se;break}else r(k)?z+=k:(se+=S+z+k,z="",M=!1);F++}if(C.charAt(F)===d)return v?!0:(T+=d,ye=P.decode.raw(P.unescape(ye),A(V).test().end,{nonTerminated:!1}),Z&&(j=A(j).test().end,Z=P.decode.raw(P.unescape(Z),j)),J={type:ae?"image":"link",title:Z||null,url:ye},ae?J.alt=P.decode.raw(P.unescape(ce),ne)||null:(Q=P.enterLink(),J.children=P.tokenizeInline(ce,ne),Q()),A(T)(J))}}}}),ZU=me((t,e)=>{"use strict";var r=hn(),s=DA(),n=mA();e.exports=g,g.locator=s;var i="link",o="image",u="shortcut",c="collapsed",d="full",p="!",f="[",D="\\",m="]";function g(x,b,A){var C=this,v=C.options.commonmark,P=b.charAt(0),T=0,F=b.length,k="",I="",L=i,B=u,O,R,q,V,j,z,M,ae;if(P===p&&(L=o,I=P,P=b.charAt(++T)),P===f){for(T++,I+=P,z="",ae=0;T<F;){if(P=b.charAt(T),P===f)M=!0,ae++;else if(P===m){if(!ae)break;ae--}P===D&&(z+=D,P=b.charAt(++T)),z+=P,T++}if(k=z,O=z,P=b.charAt(T),P===m){if(T++,k+=P,z="",!v)for(;T<F&&(P=b.charAt(T),!!r(P));)z+=P,T++;if(P=b.charAt(T),P===f){for(R="",z+=P,T++;T<F&&(P=b.charAt(T),!(P===f||P===m));)P===D&&(R+=D,P=b.charAt(++T)),R+=P,T++;P=b.charAt(T),P===m?(B=R?d:c,z+=R+P,T++):R="",k+=z,z=""}else{if(!O)return;R=O}if(!(B!==d&&M))return k=I+k,L===i&&C.inLink?null:A?!0:(q=x.now(),q.column+=I.length,q.offset+=I.length,R=B===d?R:O,V={type:L+"Reference",identifier:n(R),label:R,referenceType:B},L===i?(j=C.enterLink(),V.children=C.tokenizeInline(O,q),j()):V.alt=C.decode.raw(C.unescape(O),q)||null,x(k)(V))}}}}),ez=me((t,e)=>{"use strict";e.exports=r;function r(s,n){var i=s.indexOf("**",n),o=s.indexOf("__",n);return o===-1?i:i===-1||o<i?o:i}}),tz=me((t,e)=>{"use strict";var r=La(),s=hn(),n=ez();e.exports=c,c.locator=n;var i="\\",o="*",u="_";function c(d,p,f){var D=this,m=0,g=p.charAt(m),x,b,A,C,v,P,T;if(!(g!==o&&g!==u||p.charAt(++m)!==g)&&(b=D.options.pedantic,A=g,v=A+A,P=p.length,m++,C="",g="",!(b&&s(p.charAt(m)))))for(;m<P;){if(T=g,g=p.charAt(m),g===A&&p.charAt(m+1)===A&&(!b||!s(T))&&(g=p.charAt(m+2),g!==A))return r(C)?f?!0:(x=d.now(),x.column+=2,x.offset+=2,d(v+C+v)({type:"strong",children:D.tokenizeInline(C,x)})):void 0;!b&&g===i&&(C+=g,g=p.charAt(++m)),C+=g,m++}}}),rz=me((t,e)=>{"use strict";e.exports=n;var r=String.fromCharCode,s=/\w/;function n(i){return s.test(typeof i=="number"?r(i):i.charAt(0))}}),sz=me((t,e)=>{"use strict";e.exports=r;function r(s,n){var i=s.indexOf("*",n),o=s.indexOf("_",n);return o===-1?i:i===-1||o<i?o:i}}),nz=me((t,e)=>{"use strict";var r=La(),s=rz(),n=hn(),i=sz();e.exports=d,d.locator=i;var o="*",u="_",c="\\";function d(p,f,D){var m=this,g=0,x=f.charAt(g),b,A,C,v,P,T,F;if(!(x!==o&&x!==u)&&(A=m.options.pedantic,P=x,C=x,T=f.length,g++,v="",x="",!(A&&n(f.charAt(g)))))for(;g<T;){if(F=x,x=f.charAt(g),x===C&&(!A||!n(F))){if(x=f.charAt(++g),x!==C){if(!r(v)||F===C)return;if(!A&&C===u&&s(x)){v+=C;continue}return D?!0:(b=p.now(),b.column++,b.offset++,p(P+v+C)({type:"emphasis",children:m.tokenizeInline(v,b)}))}v+=C}!A&&x===c&&(v+=x,x=f.charAt(++g)),v+=x,g++}}}),iz=me((t,e)=>{"use strict";e.exports=r;function r(s,n){return s.indexOf("~~",n)}}),az=me((t,e)=>{"use strict";var r=hn(),s=iz();e.exports=o,o.locator=s;var n="~",i="~~";function o(u,c,d){var p=this,f="",D="",m="",g="",x,b,A;if(!(!p.options.gfm||c.charAt(0)!==n||c.charAt(1)!==n||r(c.charAt(2))))for(x=1,b=c.length,A=u.now(),A.column+=2,A.offset+=2;++x<b;){if(f=c.charAt(x),f===n&&D===n&&(!m||!r(m)))return d?!0:u(i+g+i)({type:"delete",children:p.tokenizeInline(g,A)});g+=D,m=D,D=f}}}),oz=me((t,e)=>{"use strict";e.exports=r;function r(s,n){return s.indexOf("`",n)}}),uz=me((t,e)=>{"use strict";var r=oz();e.exports=o,o.locator=r;var s=10,n=32,i=96;function o(u,c,d){for(var p=c.length,f=0,D,m,g,x,b,A;f<p&&c.charCodeAt(f)===i;)f++;if(!(f===0||f===p)){for(D=f,b=c.charCodeAt(f);f<p;){if(x=b,b=c.charCodeAt(f+1),x===i){if(m===void 0&&(m=f),g=f+1,b!==i&&g-m===D){A=!0;break}}else m!==void 0&&(m=void 0,g=void 0);f++}if(A){if(d)return!0;if(f=D,p=m,x=c.charCodeAt(f),b=c.charCodeAt(p-1),A=!1,p-f>2&&(x===n||x===s)&&(b===n||b===s)){for(f++,p--;f<p;){if(x=c.charCodeAt(f),x!==n&&x!==s){A=!0;break}f++}A===!0&&(D++,m--)}return u(c.slice(0,g))({type:"inlineCode",value:c.slice(D,m)})}}}}),lz=me((t,e)=>{"use strict";e.exports=r;function r(s,n){for(var i=s.indexOf(`
|
|
139
|
-
`,n);i>n&&s.charAt(i-1)===" ";)i--;return i}}),cz=me((t,e)=>{"use strict";var r=lz();e.exports=o,o.locator=r;var s=" ",n=`
|
|
140
|
-
`,i=2;function o(u,c,d){for(var p=c.length,f=-1,D="",m;++f<p;){if(m=c.charAt(f),m===n)return f<i?void 0:d?!0:(D+=m,u(D)({type:"break"}));if(m!==s)return;D+=m}}}),pz=me((t,e)=>{"use strict";e.exports=r;function r(s,n,i){var o=this,u,c,d,p,f,D,m,g,x,b;if(i)return!0;for(u=o.inlineMethods,p=u.length,c=o.inlineTokenizers,d=-1,x=n.length;++d<p;)g=u[d],!(g==="text"||!c[g])&&(m=c[g].locator,m||s.file.fail("Missing locator: `"+g+"`"),D=m.call(o,n,1),D!==-1&&D<x&&(x=D));f=n.slice(0,x),b=s.now(),o.decode(f,b,A);function A(C,v,P){s(P||C)({type:"text",value:C})}}}),hz=me((t,e)=>{"use strict";var r=Ba(),s=cU(),n=pU(),i=hU(),o=xU(),u=bU();e.exports=c;function c(f,D){this.file=D,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=n(D).toOffset,this.unescape=i(this,"escape"),this.decode=o(this)}var d=c.prototype;d.setOptions=AU(),d.parse=kU(),d.options=pA(),d.exitStart=s("atStart",!0),d.enterList=s("inList",!1),d.enterLink=s("inLink",!1),d.enterBlock=s("inBlock",!1),d.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],d.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],d.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],d.blockTokenizers={blankLine:PU(),indentedCode:IU(),fencedCode:BU(),blockquote:NU(),atxHeading:LU(),thematicBreak:$U(),list:OU(),setextHeading:_U(),html:jU(),definition:RU(),table:qU(),paragraph:UU()},d.inlineTokenizers={escape:VU(),autoLink:HU(),url:GU(),email:XU(),html:YU(),link:QU(),reference:ZU(),strong:tz(),emphasis:nz(),deletion:az(),code:uz(),break:cz(),text:pz()},d.blockMethods=p(d.blockTokenizers),d.inlineMethods=p(d.inlineTokenizers),d.tokenizeBlock=u("block"),d.tokenizeInline=u("inline"),d.tokenizeFactory=u;function p(f){var D=[],m;for(m in f)D.push(m);return D}}),dz=me((t,e)=>{"use strict";var r=lU(),s=Ba(),n=hz();e.exports=i,i.Parser=n;function i(o){var u=this.data("settings"),c=r(n);c.prototype.options=s(c.prototype.options,u,o),this.Parser=c}}),fz=me((t,e)=>{"use strict";e.exports=r;function r(s){if(s)throw s}}),gA=me((t,e)=>{e.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}}),mz=me((t,e)=>{"use strict";var r=Object.prototype.hasOwnProperty,s=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):s.call(p)==="[object Array]"},u=function(p){if(!p||s.call(p)!=="[object Object]")return!1;var f=r.call(p,"constructor"),D=p.constructor&&p.constructor.prototype&&r.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!f&&!D)return!1;var m;for(m in p);return typeof m>"u"||r.call(p,m)},c=function(p,f){n&&f.name==="__proto__"?n(p,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):p[f.name]=f.newValue},d=function(p,f){if(f==="__proto__")if(r.call(p,f)){if(i)return i(p,f).value}else return;return p[f]};e.exports=function p(){var f,D,m,g,x,b,A=arguments[0],C=1,v=arguments.length,P=!1;for(typeof A=="boolean"&&(P=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<v;++C)if(f=arguments[C],f!=null)for(D in f)m=d(A,D),g=d(f,D),A!==g&&(P&&g&&(u(g)||(x=o(g)))?(x?(x=!1,b=m&&o(m)?m:[]):b=m&&u(m)?m:{},c(A,{name:D,newValue:p(P,b,g)})):typeof g<"u"&&c(A,{name:D,newValue:g}));return A}}),yz=me((t,e)=>{"use strict";e.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let s=Object.getPrototypeOf(r);return s===null||s===Object.prototype}}),Dz=me((t,e)=>{"use strict";var r=[].slice;e.exports=s;function s(n,i){var o;return u;function u(){var p=r.call(arguments,0),f=n.length>p.length,D;f&&p.push(c);try{D=n.apply(null,p)}catch(m){if(f&&o)throw m;return c(m)}f||(D&&typeof D.then=="function"?D.then(d,c):D instanceof Error?c(D):d(D))}function c(){o||(o=!0,i.apply(null,arguments))}function d(p){c(null,p)}}}),gz=me((t,e)=>{"use strict";var r=Dz();e.exports=n,n.wrap=r;var s=[].slice;function n(){var i=[],o={};return o.run=u,o.use=c,o;function u(){var d=-1,p=s.call(arguments,0,-1),f=arguments[arguments.length-1];if(typeof f!="function")throw new Error("Expected function as last argument, not "+f);D.apply(null,[null].concat(p));function D(m){var g=i[++d],x=s.call(arguments,0),b=x.slice(1),A=p.length,C=-1;if(m){f(m);return}for(;++C<A;)(b[C]===null||b[C]===void 0)&&(b[C]=p[C]);p=b,g?r(g,D).apply(null,p):f.apply(null,[null].concat(p))}}function c(d){if(typeof d!="function")throw new Error("Expected `fn` to be a function, not "+d);return i.push(d),o}}}),xz=me((t,e)=>{"use strict";var r={}.hasOwnProperty;e.exports=s;function s(u){return!u||typeof u!="object"?"":r.call(u,"position")||r.call(u,"type")?i(u.position):r.call(u,"start")||r.call(u,"end")?i(u):r.call(u,"line")||r.call(u,"column")?n(u):""}function n(u){return(!u||typeof u!="object")&&(u={}),o(u.line)+":"+o(u.column)}function i(u){return(!u||typeof u!="object")&&(u={}),n(u.start)+"-"+n(u.end)}function o(u){return u&&typeof u=="number"?u:1}}),bz=me((t,e)=>{"use strict";var r=xz();e.exports=i;function s(){}s.prototype=Error.prototype,i.prototype=new s;var n=i.prototype;n.file="",n.name="",n.reason="",n.message="",n.stack="",n.fatal=null,n.column=null,n.line=null;function i(u,c,d){var p,f,D;typeof c=="string"&&(d=c,c=null),p=o(d),f=r(c)||"1:1",D={start:{line:null,column:null},end:{line:null,column:null}},c&&c.position&&(c=c.position),c&&(c.start?(D=c,c=c.start):D.start=c),u.stack&&(this.stack=u.stack,u=u.message),this.message=u,this.name=f,this.reason=u,this.line=c?c.line:null,this.column=c?c.column:null,this.location=D,this.source=p[0],this.ruleId=p[1]}function o(u){var c=[null,null],d;return typeof u=="string"&&(d=u.indexOf(":"),d===-1?c[1]=u:(c[0]=u.slice(0,d),c[1]=u.slice(d+1))),c}}),Ez=me(t=>{"use strict";t.basename=e,t.dirname=r,t.extname=s,t.join=n,t.sep="/";function e(c,d){var p=0,f=-1,D,m,g,x;if(d!==void 0&&typeof d!="string")throw new TypeError('"ext" argument must be a string');if(u(c),D=c.length,d===void 0||!d.length||d.length>c.length){for(;D--;)if(c.charCodeAt(D)===47){if(g){p=D+1;break}}else f<0&&(g=!0,f=D+1);return f<0?"":c.slice(p,f)}if(d===c)return"";for(m=-1,x=d.length-1;D--;)if(c.charCodeAt(D)===47){if(g){p=D+1;break}}else m<0&&(g=!0,m=D+1),x>-1&&(c.charCodeAt(D)===d.charCodeAt(x--)?x<0&&(f=D):(x=-1,f=m));return p===f?f=m:f<0&&(f=c.length),c.slice(p,f)}function r(c){var d,p,f;if(u(c),!c.length)return".";for(d=-1,f=c.length;--f;)if(c.charCodeAt(f)===47){if(p){d=f;break}}else p||(p=!0);return d<0?c.charCodeAt(0)===47?"/":".":d===1&&c.charCodeAt(0)===47?"//":c.slice(0,d)}function s(c){var d=-1,p=0,f=-1,D=0,m,g,x;for(u(c),x=c.length;x--;){if(g=c.charCodeAt(x),g===47){if(m){p=x+1;break}continue}f<0&&(m=!0,f=x+1),g===46?d<0?d=x:D!==1&&(D=1):d>-1&&(D=-1)}return d<0||f<0||D===0||D===1&&d===f-1&&d===p+1?"":c.slice(d,f)}function n(){for(var c=-1,d;++c<arguments.length;)u(arguments[c]),arguments[c]&&(d=d===void 0?arguments[c]:d+"/"+arguments[c]);return d===void 0?".":i(d)}function i(c){var d,p;return u(c),d=c.charCodeAt(0)===47,p=o(c,!d),!p.length&&!d&&(p="."),p.length&&c.charCodeAt(c.length-1)===47&&(p+="/"),d?"/"+p:p}function o(c,d){for(var p="",f=0,D=-1,m=0,g=-1,x,b;++g<=c.length;){if(g<c.length)x=c.charCodeAt(g);else{if(x===47)break;x=47}if(x===47){if(!(D===g-1||m===1))if(D!==g-1&&m===2){if(p.length<2||f!==2||p.charCodeAt(p.length-1)!==46||p.charCodeAt(p.length-2)!==46){if(p.length>2){if(b=p.lastIndexOf("/"),b!==p.length-1){b<0?(p="",f=0):(p=p.slice(0,b),f=p.length-1-p.lastIndexOf("/")),D=g,m=0;continue}}else if(p.length){p="",f=0,D=g,m=0;continue}}d&&(p=p.length?p+"/..":"..",f=2)}else p.length?p+="/"+c.slice(D+1,g):p=c.slice(D+1,g),f=g-D-1;D=g,m=0}else x===46&&m>-1?m++:m=-1}return p}function u(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}}),Cz=me(t=>{"use strict";t.cwd=e;function e(){return"/"}}),Az=me((t,e)=>{"use strict";var r=Ez(),s=Cz(),n=gA();e.exports=u;var i={}.hasOwnProperty,o=["history","path","basename","stem","extname","dirname"];u.prototype.toString=C,Object.defineProperty(u.prototype,"path",{get:c,set:d}),Object.defineProperty(u.prototype,"dirname",{get:p,set:f}),Object.defineProperty(u.prototype,"basename",{get:D,set:m}),Object.defineProperty(u.prototype,"extname",{get:g,set:x}),Object.defineProperty(u.prototype,"stem",{get:b,set:A});function u(F){var k,I;if(!F)F={};else if(typeof F=="string"||n(F))F={contents:F};else if("message"in F&&"messages"in F)return F;if(!(this instanceof u))return new u(F);for(this.data={},this.messages=[],this.history=[],this.cwd=s.cwd(),I=-1;++I<o.length;)k=o[I],i.call(F,k)&&(this[k]=F[k]);for(k in F)o.indexOf(k)<0&&(this[k]=F[k])}function c(){return this.history[this.history.length-1]}function d(F){P(F,"path"),this.path!==F&&this.history.push(F)}function p(){return typeof this.path=="string"?r.dirname(this.path):void 0}function f(F){T(this.path,"dirname"),this.path=r.join(F||"",this.basename)}function D(){return typeof this.path=="string"?r.basename(this.path):void 0}function m(F){P(F,"basename"),v(F,"basename"),this.path=r.join(this.dirname||"",F)}function g(){return typeof this.path=="string"?r.extname(this.path):void 0}function x(F){if(v(F,"extname"),T(this.path,"extname"),F){if(F.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(F.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(F||""))}function b(){return typeof this.path=="string"?r.basename(this.path,this.extname):void 0}function A(F){P(F,"stem"),v(F,"stem"),this.path=r.join(this.dirname||"",F+(this.extname||""))}function C(F){return(this.contents||"").toString(F)}function v(F,k){if(F&&F.indexOf(r.sep)>-1)throw new Error("`"+k+"` cannot be a path: did not expect `"+r.sep+"`")}function P(F,k){if(!F)throw new Error("`"+k+"` cannot be empty")}function T(F,k){if(!F)throw new Error("Setting `"+k+"` requires `path` to be set too")}}),vz=me((t,e)=>{"use strict";var r=bz(),s=Az();e.exports=s,s.prototype.message=n,s.prototype.info=o,s.prototype.fail=i;function n(u,c,d){var p=new r(u,c,d);return this.path&&(p.name=this.path+":"+p.name,p.file=this.path),p.fatal=!1,this.messages.push(p),p}function i(){var u=this.message.apply(this,arguments);throw u.fatal=!0,u}function o(){var u=this.message.apply(this,arguments);return u.fatal=null,u}}),Tz=me((t,e)=>{"use strict";e.exports=vz()}),Fz=me((t,e)=>{"use strict";var r=fz(),s=gA(),n=mz(),i=yz(),o=gz(),u=Tz();e.exports=g().freeze();var c=[].slice,d={}.hasOwnProperty,p=o().use(f).use(D).use(m);function f(F,k){k.tree=F.parse(k.file)}function D(F,k,I){F.run(k.tree,k.file,L);function L(B,O,R){B?I(B):(k.tree=O,k.file=R,I())}}function m(F,k){var I=F.stringify(k.tree,k.file);I==null||(typeof I=="string"||s(I)?("value"in k.file&&(k.file.value=I),k.file.contents=I):k.file.result=I)}function g(){var F=[],k=o(),I={},L=-1,B;return O.data=q,O.freeze=R,O.attachers=F,O.use=V,O.parse=z,O.stringify=ce,O.run=M,O.runSync=ae,O.process=S,O.processSync=te,O;function O(){for(var Z=g(),N=-1;++N<F.length;)Z.use.apply(null,F[N]);return Z.data(n(!0,{},I)),Z}function R(){var Z,N;if(B)return O;for(;++L<F.length;)Z=F[L],Z[1]!==!1&&(Z[1]===!0&&(Z[1]=void 0),N=Z[0].apply(O,Z.slice(1)),typeof N=="function"&&k.use(N));return B=!0,L=1/0,O}function q(Z,N){return typeof Z=="string"?arguments.length===2?(v("data",B),I[Z]=N,O):d.call(I,Z)&&I[Z]||null:Z?(v("data",B),I=Z,O):I}function V(Z){var N;if(v("use",B),Z!=null)if(typeof Z=="function")Q.apply(null,arguments);else if(typeof Z=="object")"length"in Z?ne(Z):se(Z);else throw new Error("Expected usable value, not `"+Z+"`");return N&&(I.settings=n(I.settings||{},N)),O;function se(J){ne(J.plugins),J.settings&&(N=n(N||{},J.settings))}function ye(J){if(typeof J=="function")Q(J);else if(typeof J=="object")"length"in J?Q.apply(null,J):se(J);else throw new Error("Expected usable value, not `"+J+"`")}function ne(J){var G=-1;if(J!=null)if(typeof J=="object"&&"length"in J)for(;++G<J.length;)ye(J[G]);else throw new Error("Expected a list of plugins, not `"+J+"`")}function Q(J,G){var ie=j(J);ie?(i(ie[1])&&i(G)&&(G=n(!0,ie[1],G)),ie[1]=G):F.push(c.call(arguments))}}function j(Z){for(var N=-1;++N<F.length;)if(F[N][0]===Z)return F[N]}function z(Z){var N=u(Z),se;return R(),se=O.Parser,A("parse",se),x(se,"parse")?new se(String(N),N).parse():se(String(N),N)}function M(Z,N,se){if(P(Z),R(),!se&&typeof N=="function"&&(se=N,N=null),!se)return new Promise(ye);ye(null,se);function ye(ne,Q){k.run(Z,u(N),J);function J(G,ie,de){ie=ie||Z,G?Q(G):ne?ne(ie):se(null,ie,de)}}}function ae(Z,N){var se,ye;return M(Z,N,ne),T("runSync","run",ye),se;function ne(Q,J){ye=!0,se=J,r(Q)}}function ce(Z,N){var se=u(N),ye;return R(),ye=O.Compiler,C("stringify",ye),P(Z),x(ye,"compile")?new ye(Z,se).compile():ye(Z,se)}function S(Z,N){if(R(),A("process",O.Parser),C("process",O.Compiler),!N)return new Promise(se);se(null,N);function se(ye,ne){var Q=u(Z);p.run(O,{file:Q},J);function J(G){G?ne(G):ye?ye(Q):N(null,Q)}}}function te(Z){var N,se;return R(),A("processSync",O.Parser),C("processSync",O.Compiler),N=u(Z),S(N,ye),T("processSync","process",se),N;function ye(ne){se=!0,r(ne)}}}function x(F,k){return typeof F=="function"&&F.prototype&&(b(F.prototype)||k in F.prototype)}function b(F){var k;for(k in F)return!0;return!1}function A(F,k){if(typeof k!="function")throw new Error("Cannot `"+F+"` without `Parser`")}function C(F,k){if(typeof k!="function")throw new Error("Cannot `"+F+"` without `Compiler`")}function v(F,k){if(k)throw new Error("Cannot invoke `"+F+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function P(F){if(!F||typeof F.type!="string")throw new Error("Expected node, got `"+F+"`")}function T(F,k,I){if(!I)throw new Error("`"+F+"` finished async. Use `"+k+"` instead")}}),xA={};jc(xA,{languages:()=>bA,options:()=>EA,parsers:()=>ym,printers:()=>Pm});var bA=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],AD={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]}},wz={proseWrap:AD.proseWrap,singleQuote:AD.singleQuote},EA=wz,ym={};jc(ym,{markdown:()=>YD,mdx:()=>aK,remark:()=>YD});var Ql=t=>t.position.start.offset,Zl=t=>t.position.end.offset;function Sz({slug:t,permalink:e,alias:r}){return{hName:"a",hProperties:{href:e??t},hChildren:[{type:"text",value:r??t}]}}function kz(t={}){let e=t.linkTemplate||Sz,r;function s(c){r={type:"wikiLink",value:null,data:{}},this.enter(r,c)}function n(c){return c[c.length-1]}function i(c){let d=this.sliceSerialize(c),p=n(this.stack);p.data.alias=d}function o(c){let d=this.sliceSerialize(c),p=n(this.stack);p.value=d}function u(c){this.exit(c);let d=r,p={slug:d.value,alias:d.data.alias,permalink:t.linkResolver?t.linkResolver(d.value):void 0};d.data={alias:p.alias,permalink:p.permalink,...e(p)}}return{enter:{wikiLink:s},exit:{wikiLinkTarget:o,wikiLinkAlias:i,wikiLink:u}}}var Pn={horizontalTab:-2,nul:0,eof:null,space:32};function vD(t){return t!==Pn.eof&&(t<Pn.nul||t===Pn.space)}function Yp(t){return t!==Pn.eof&&(t===null||t<Pn.horizontalTab)}function Pz(t={}){let e=t.aliasDivider||"|",r="[[",s="]]";return{text:{91:{tokenize:(n,i,o)=>{let u,c,d=0,p=0,f=0;return D;function D(v){return v!==r.charCodeAt(p)?o(v):(n.enter("wikiLink"),n.enter("wikiLinkMarker"),m(v))}function m(v){return p===r.length?(n.exit("wikiLinkMarker"),g(v)):v!==r.charCodeAt(p)?o(v):(n.consume(v),p++,m)}function g(v){return Yp(v)||v===Pn.eof?o(v):(n.enter("wikiLinkData"),n.enter("wikiLinkTarget"),x(v))}function x(v){return v===e.charCodeAt(d)?u?(n.exit("wikiLinkTarget"),n.enter("wikiLinkAliasMarker"),b(v)):o(v):v===s.charCodeAt(f)?u?(n.exit("wikiLinkTarget"),n.exit("wikiLinkData"),n.enter("wikiLinkMarker"),C(v)):o(v):Yp(v)||v===Pn.eof?o(v):(vD(v)||(u=!0),n.consume(v),x)}function b(v){return d===e.length?(n.exit("wikiLinkAliasMarker"),n.enter("wikiLinkAlias"),A(v)):v!==e.charCodeAt(d)?o(v):(n.consume(v),d++,b)}function A(v){return v===s.charCodeAt(f)?c?(n.exit("wikiLinkAlias"),n.exit("wikiLinkData"),n.enter("wikiLinkMarker"),C(v)):o(v):Yp(v)||v===Pn.eof?o(v):(vD(v)||(c=!0),n.consume(v),A)}function C(v){return f===s.length?(n.exit("wikiLinkMarker"),n.exit("wikiLink"),i(v)):v!==s.charCodeAt(f)?o(v):(n.consume(v),f++,C)}}}}}}var Iz={};function Bz(t,e){let r=Iz,s=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return CA(t,s,n)}function CA(t,e,r){if(Nz(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return TD(t.children,e,r)}return Array.isArray(t)?TD(t,e,r):""}function TD(t,e,r){let s=[],n=-1;for(;++n<t.length;)s[n]=CA(t[n],e,r);return s.join("")}function Nz(t){return!!(t&&typeof t=="object")}var FD={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
141
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Lz={}.hasOwnProperty;function Dm(t){return Lz.call(FD,t)?FD[t]:!1}function _r(t,e,r,s){let n=t.length,i=0,o;if(e<0?e=-e>n?0:n+e:e=e>n?n:e,r=r>0?r:0,s.length<1e4)o=Array.from(s),o.unshift(e,r),t.splice(...o);else for(r&&t.splice(e,r);i<s.length;)o=s.slice(i,i+1e4),o.unshift(e,0),t.splice(...o),i+=1e4,e+=1e4}function Jr(t,e){return t.length>0?(_r(t,t.length,0,e),t):e}var wD={}.hasOwnProperty;function AA(t){let e={},r=-1;for(;++r<t.length;)$z(e,t[r]);return e}function $z(t,e){let r;for(r in e){let s=(wD.call(t,r)?t[r]:void 0)||(t[r]={}),n=e[r],i;if(n)for(i in n){wD.call(s,i)||(s[i]=[]);let o=n[i];Mz(s[i],Array.isArray(o)?o:o?[o]:[])}}}function Mz(t,e){let r=-1,s=[];for(;++r<e.length;)(e[r].add==="after"?t:s).push(e[r]);_r(t,0,0,s)}function vA(t,e){let r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function cs(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Mt=Jn(/[A-Za-z]/),Yt=Jn(/[\dA-Za-z]/),Oz=Jn(/[#-'*+\--9=?A-Z^-~]/);function ec(t){return t!==null&&(t<32||t===127)}var Qh=Jn(/\d/),_z=Jn(/[\dA-Fa-f]/),jz=Jn(/[!-/:-@[-`{-~]/);function Fe(t){return t!==null&&t<-2}function it(t){return t!==null&&(t<0||t===32)}function He(t){return t===-2||t===-1||t===32}var qc=Jn(new RegExp("\\p{P}|\\p{S}","u")),xi=Jn(/\s/);function Jn(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ke(t,e,r,s){let n=s?s-1:Number.POSITIVE_INFINITY,i=0;return o;function o(c){return He(c)?(t.enter(r),u(c)):e(c)}function u(c){return He(c)&&i++<n?(t.consume(c),u):(t.exit(r),e(c))}}var Rz={tokenize:qz};function qz(t){let e=t.attempt(this.parser.constructs.contentInitial,s,n),r;return e;function s(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),Ke(t,e,"linePrefix")}function n(u){return t.enter("paragraph"),i(u)}function i(u){let c=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,o(u)}function o(u){if(u===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(u);return}return Fe(u)?(t.consume(u),t.exit("chunkText"),i):(t.consume(u),o)}}var Uz={tokenize:zz},SD={tokenize:Vz};function zz(t){let e=this,r=[],s=0,n,i,o;return u;function u(v){if(s<r.length){let P=r[s];return e.containerState=P[1],t.attempt(P[0].continuation,c,d)(v)}return d(v)}function c(v){if(s++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,n&&C();let P=e.events.length,T=P,F;for(;T--;)if(e.events[T][0]==="exit"&&e.events[T][1].type==="chunkFlow"){F=e.events[T][1].end;break}A(s);let k=P;for(;k<e.events.length;)e.events[k][1].end={...F},k++;return _r(e.events,T+1,0,e.events.slice(P)),e.events.length=k,d(v)}return u(v)}function d(v){if(s===r.length){if(!n)return D(v);if(n.currentConstruct&&n.currentConstruct.concrete)return g(v);e.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(SD,p,f)(v)}function p(v){return n&&C(),A(s),D(v)}function f(v){return e.parser.lazy[e.now().line]=s!==r.length,o=e.now().offset,g(v)}function D(v){return e.containerState={},t.attempt(SD,m,g)(v)}function m(v){return s++,r.push([e.currentConstruct,e.containerState]),D(v)}function g(v){if(v===null){n&&C(),A(0),t.consume(v);return}return n=n||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),x(v)}function x(v){if(v===null){b(t.exit("chunkFlow"),!0),A(0),t.consume(v);return}return Fe(v)?(t.consume(v),b(t.exit("chunkFlow")),s=0,e.interrupt=void 0,u):(t.consume(v),x)}function b(v,P){let T=e.sliceStream(v);if(P&&T.push(null),v.previous=i,i&&(i.next=v),i=v,n.defineSkip(v.start),n.write(T),e.parser.lazy[v.start.line]){let F=n.events.length;for(;F--;)if(n.events[F][1].start.offset<o&&(!n.events[F][1].end||n.events[F][1].end.offset>o))return;let k=e.events.length,I=k,L,B;for(;I--;)if(e.events[I][0]==="exit"&&e.events[I][1].type==="chunkFlow"){if(L){B=e.events[I][1].end;break}L=!0}for(A(s),F=k;F<e.events.length;)e.events[F][1].end={...B},F++;_r(e.events,I+1,0,e.events.slice(k)),e.events.length=F}}function A(v){let P=r.length;for(;P-- >v;){let T=r[P];e.containerState=T[1],T[0].exit.call(e,t)}r.length=v}function C(){n.write([null]),i=void 0,n=void 0,e.containerState._closeFlow=void 0}}function Vz(t,e,r){return Ke(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tc(t){if(t===null||it(t)||xi(t))return 1;if(qc(t))return 2}function Uc(t,e,r){let s=[],n=-1;for(;++n<t.length;){let i=t[n].resolveAll;i&&!s.includes(i)&&(e=i(e,r),s.push(i))}return e}var Zh={name:"attention",resolveAll:Hz,tokenize:Wz};function Hz(t,e){let r=-1,s,n,i,o,u,c,d,p;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(s=r;s--;)if(t[s][0]==="exit"&&t[s][1].type==="attentionSequence"&&t[s][1]._open&&e.sliceSerialize(t[s][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[s][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[s][1].end.offset-t[s][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;c=t[s][1].end.offset-t[s][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;let f={...t[s][1].end},D={...t[r][1].start};kD(f,-c),kD(D,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...t[s][1].end}},u={type:c>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:D},i={type:c>1?"strongText":"emphasisText",start:{...t[s][1].end},end:{...t[r][1].start}},n={type:c>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},t[s][1].end={...o.start},t[r][1].start={...u.end},d=[],t[s][1].end.offset-t[s][1].start.offset&&(d=Jr(d,[["enter",t[s][1],e],["exit",t[s][1],e]])),d=Jr(d,[["enter",n,e],["enter",o,e],["exit",o,e],["enter",i,e]]),d=Jr(d,Uc(e.parser.constructs.insideSpan.null,t.slice(s+1,r),e)),d=Jr(d,[["exit",i,e],["enter",u,e],["exit",u,e],["exit",n,e]]),t[r][1].end.offset-t[r][1].start.offset?(p=2,d=Jr(d,[["enter",t[r][1],e],["exit",t[r][1],e]])):p=0,_r(t,s-1,r-s+3,d),r=s+d.length-p-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function Wz(t,e){let r=this.parser.constructs.attentionMarkers.null,s=this.previous,n=tc(s),i;return o;function o(c){return i=c,t.enter("attentionSequence"),u(c)}function u(c){if(c===i)return t.consume(c),u;let d=t.exit("attentionSequence"),p=tc(c),f=!p||p===2&&n||r.includes(c),D=!n||n===2&&p||r.includes(s);return d._open=!!(i===42?f:f&&(n||!D)),d._close=!!(i===42?D:D&&(p||!f)),e(c)}}function kD(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var Jz={name:"autolink",tokenize:Gz};function Gz(t,e,r){let s=0;return n;function n(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),i}function i(m){return Mt(m)?(t.consume(m),o):m===64?r(m):d(m)}function o(m){return m===43||m===45||m===46||Yt(m)?(s=1,u(m)):d(m)}function u(m){return m===58?(t.consume(m),s=0,c):(m===43||m===45||m===46||Yt(m))&&s++<32?(t.consume(m),u):(s=0,d(m))}function c(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||ec(m)?r(m):(t.consume(m),c)}function d(m){return m===64?(t.consume(m),p):Oz(m)?(t.consume(m),d):r(m)}function p(m){return Yt(m)?f(m):r(m)}function f(m){return m===46?(t.consume(m),s=0,p):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):D(m)}function D(m){if((m===45||Yt(m))&&s++<63){let g=m===45?D:f;return t.consume(m),g}return r(m)}}var wu={partial:!0,tokenize:Kz};function Kz(t,e,r){return s;function s(i){return He(i)?Ke(t,n,"linePrefix")(i):n(i)}function n(i){return i===null||Fe(i)?e(i):r(i)}}var TA={continuation:{tokenize:Yz},exit:Qz,name:"blockQuote",tokenize:Xz};function Xz(t,e,r){let s=this;return n;function n(o){if(o===62){let u=s.containerState;return u.open||(t.enter("blockQuote",{_container:!0}),u.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),i}return r(o)}function i(o){return He(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function Yz(t,e,r){let s=this;return n;function n(o){return He(o)?Ke(t,i,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return t.attempt(TA,e,r)(o)}}function Qz(t){t.exit("blockQuote")}var FA={name:"characterEscape",tokenize:Zz};function Zz(t,e,r){return s;function s(i){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(i),t.exit("escapeMarker"),n}function n(i){return jz(i)?(t.enter("characterEscapeValue"),t.consume(i),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(i)}}var wA={name:"characterReference",tokenize:eV};function eV(t,e,r){let s=this,n=0,i,o;return u;function u(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),c}function c(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),d):(t.enter("characterReferenceValue"),i=31,o=Yt,p(f))}function d(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,o=_z,p):(t.enter("characterReferenceValue"),i=7,o=Qh,p(f))}function p(f){if(f===59&&n){let D=t.exit("characterReferenceValue");return o===Yt&&!Dm(s.sliceSerialize(D))?r(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(f)&&n++<i?(t.consume(f),p):r(f)}}var PD={partial:!0,tokenize:rV},ID={concrete:!0,name:"codeFenced",tokenize:tV};function tV(t,e,r){let s=this,n={partial:!0,tokenize:T},i=0,o=0,u;return c;function c(F){return d(F)}function d(F){let k=s.events[s.events.length-1];return i=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,u=F,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),p(F)}function p(F){return F===u?(o++,t.consume(F),p):o<3?r(F):(t.exit("codeFencedFenceSequence"),He(F)?Ke(t,f,"whitespace")(F):f(F))}function f(F){return F===null||Fe(F)?(t.exit("codeFencedFence"),s.interrupt?e(F):t.check(PD,x,P)(F)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),D(F))}function D(F){return F===null||Fe(F)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(F)):He(F)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ke(t,m,"whitespace")(F)):F===96&&F===u?r(F):(t.consume(F),D)}function m(F){return F===null||Fe(F)?f(F):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(F))}function g(F){return F===null||Fe(F)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(F)):F===96&&F===u?r(F):(t.consume(F),g)}function x(F){return t.attempt(n,P,b)(F)}function b(F){return t.enter("lineEnding"),t.consume(F),t.exit("lineEnding"),A}function A(F){return i>0&&He(F)?Ke(t,C,"linePrefix",i+1)(F):C(F)}function C(F){return F===null||Fe(F)?t.check(PD,x,P)(F):(t.enter("codeFlowValue"),v(F))}function v(F){return F===null||Fe(F)?(t.exit("codeFlowValue"),C(F)):(t.consume(F),v)}function P(F){return t.exit("codeFenced"),e(F)}function T(F,k,I){let L=0;return B;function B(j){return F.enter("lineEnding"),F.consume(j),F.exit("lineEnding"),O}function O(j){return F.enter("codeFencedFence"),He(j)?Ke(F,R,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):R(j)}function R(j){return j===u?(F.enter("codeFencedFenceSequence"),q(j)):I(j)}function q(j){return j===u?(L++,F.consume(j),q):L>=o?(F.exit("codeFencedFenceSequence"),He(j)?Ke(F,V,"whitespace")(j):V(j)):I(j)}function V(j){return j===null||Fe(j)?(F.exit("codeFencedFence"),k(j)):I(j)}}}function rV(t,e,r){let s=this;return n;function n(o){return o===null?r(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i)}function i(o){return s.parser.lazy[s.now().line]?r(o):e(o)}}var Qp={name:"codeIndented",tokenize:nV},sV={partial:!0,tokenize:iV};function nV(t,e,r){let s=this;return n;function n(d){return t.enter("codeIndented"),Ke(t,i,"linePrefix",5)(d)}function i(d){let p=s.events[s.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(d):r(d)}function o(d){return d===null?c(d):Fe(d)?t.attempt(sV,o,c)(d):(t.enter("codeFlowValue"),u(d))}function u(d){return d===null||Fe(d)?(t.exit("codeFlowValue"),o(d)):(t.consume(d),u)}function c(d){return t.exit("codeIndented"),e(d)}}function iV(t,e,r){let s=this;return n;function n(o){return s.parser.lazy[s.now().line]?r(o):Fe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),n):Ke(t,i,"linePrefix",5)(o)}function i(o){let u=s.events[s.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?e(o):Fe(o)?n(o):r(o)}}var aV={name:"codeText",previous:uV,resolve:oV,tokenize:lV};function oV(t){let e=t.length-4,r=3,s,n;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(s=r;++s<e;)if(t[s][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(s=r-1,e++;++s<=e;)n===void 0?s!==e&&t[s][1].type!=="lineEnding"&&(n=s):(s===e||t[s][1].type==="lineEnding")&&(t[n][1].type="codeTextData",s!==n+2&&(t[n][1].end=t[s-1][1].end,t.splice(n+2,s-n-2),e-=s-n-2,s=n+2),n=void 0);return t}function uV(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lV(t,e,r){let s=0,n,i;return o;function o(f){return t.enter("codeText"),t.enter("codeTextSequence"),u(f)}function u(f){return f===96?(t.consume(f),s++,u):(t.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),c):f===96?(i=t.enter("codeTextSequence"),n=0,p(f)):Fe(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),c):(t.enter("codeTextData"),d(f))}function d(f){return f===null||f===32||f===96||Fe(f)?(t.exit("codeTextData"),c(f)):(t.consume(f),d)}function p(f){return f===96?(t.consume(f),n++,p):n===s?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(i.type="codeTextData",d(f))}}var cV=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){let s=r??Number.POSITIVE_INFINITY;return s<this.left.length?this.left.slice(e,s):e>this.left.length?this.right.slice(this.right.length-s+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-s+this.left.length).reverse())}splice(e,r,s){let n=r||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return s&&ao(this.left,s),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ao(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ao(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let r=this.left.splice(e,Number.POSITIVE_INFINITY);ao(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ao(this.left,r.reverse())}}};function ao(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}function SA(t){let e={},r=-1,s,n,i,o,u,c,d,p=new cV(t);for(;++r<p.length;){for(;r in e;)r=e[r];if(s=p.get(r),r&&s[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(c=s[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(s[0]==="enter")s[1].contentType&&(Object.assign(e,pV(p,r)),r=e[r],d=!0);else if(s[1]._container){for(i=r,n=void 0;i--;)if(o=p.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(n&&(p.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;n&&(s[1].end={...p.get(n)[1].start},u=p.slice(n,r),u.unshift(s),p.splice(n,r-n+1,u))}}return _r(t,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function pV(t,e){let r=t.get(e)[1],s=t.get(e)[2],n=e-1,i=[],o=r._tokenizer;o||(o=s.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let u=o.events,c=[],d={},p,f,D=-1,m=r,g=0,x=0,b=[x];for(;m;){for(;t.get(++n)[1]!==m;);i.push(n),m._tokenizer||(p=s.sliceStream(m),m.next||p.push(null),f&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=r;++D<u.length;)u[D][0]==="exit"&&u[D-1][0]==="enter"&&u[D][1].type===u[D-1][1].type&&u[D][1].start.line!==u[D][1].end.line&&(x=D+1,b.push(x),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):b.pop(),D=b.length;D--;){let A=u.slice(b[D],b[D+1]),C=i.pop();c.push([C,C+A.length-1]),t.splice(C,2,A)}for(c.reverse(),D=-1;++D<c.length;)d[g+c[D][0]]=g+c[D][1],g+=c[D][1]-c[D][0]-1;return d}var hV={resolve:fV,tokenize:mV},dV={partial:!0,tokenize:yV};function fV(t){return SA(t),t}function mV(t,e){let r;return s;function s(u){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),n(u)}function n(u){return u===null?i(u):Fe(u)?t.check(dV,o,i)(u):(t.consume(u),n)}function i(u){return t.exit("chunkContent"),t.exit("content"),e(u)}function o(u){return t.consume(u),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function yV(t,e,r){let s=this;return n;function n(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Ke(t,i,"linePrefix")}function i(o){if(o===null||Fe(o))return r(o);let u=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?e(o):t.interrupt(s.parser.constructs.flow,r,e)(o)}}function kA(t,e,r,s,n,i,o,u,c){let d=c||Number.POSITIVE_INFINITY,p=0;return f;function f(A){return A===60?(t.enter(s),t.enter(n),t.enter(i),t.consume(A),t.exit(i),D):A===null||A===32||A===41||ec(A)?r(A):(t.enter(s),t.enter(o),t.enter(u),t.enter("chunkString",{contentType:"string"}),x(A))}function D(A){return A===62?(t.enter(i),t.consume(A),t.exit(i),t.exit(n),t.exit(s),e):(t.enter(u),t.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===62?(t.exit("chunkString"),t.exit(u),D(A)):A===null||A===60||Fe(A)?r(A):(t.consume(A),A===92?g:m)}function g(A){return A===60||A===62||A===92?(t.consume(A),m):m(A)}function x(A){return!p&&(A===null||A===41||it(A))?(t.exit("chunkString"),t.exit(u),t.exit(o),t.exit(s),e(A)):p<d&&A===40?(t.consume(A),p++,x):A===41?(t.consume(A),p--,x):A===null||A===32||A===40||ec(A)?r(A):(t.consume(A),A===92?b:x)}function b(A){return A===40||A===41||A===92?(t.consume(A),x):x(A)}}function PA(t,e,r,s,n,i){let o=this,u=0,c;return d;function d(m){return t.enter(s),t.enter(n),t.consume(m),t.exit(n),t.enter(i),p}function p(m){return u>999||m===null||m===91||m===93&&!c||m===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?r(m):m===93?(t.exit(i),t.enter(n),t.consume(m),t.exit(n),t.exit(s),e):Fe(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),p):(t.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||Fe(m)||u++>999?(t.exit("chunkString"),p(m)):(t.consume(m),c||(c=!He(m)),m===92?D:f)}function D(m){return m===91||m===92||m===93?(t.consume(m),u++,f):f(m)}}function IA(t,e,r,s,n,i){let o;return u;function u(D){return D===34||D===39||D===40?(t.enter(s),t.enter(n),t.consume(D),t.exit(n),o=D===40?41:D,c):r(D)}function c(D){return D===o?(t.enter(n),t.consume(D),t.exit(n),t.exit(s),e):(t.enter(i),d(D))}function d(D){return D===o?(t.exit(i),c(o)):D===null?r(D):Fe(D)?(t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),Ke(t,d,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p(D))}function p(D){return D===o||D===null||Fe(D)?(t.exit("chunkString"),d(D)):(t.consume(D),D===92?f:p)}function f(D){return D===o||D===92?(t.consume(D),p):p(D)}}function jo(t,e){let r;return s;function s(n){return Fe(n)?(t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),r=!0,s):He(n)?Ke(t,s,r?"linePrefix":"lineSuffix")(n):e(n)}}var DV={name:"definition",tokenize:xV},gV={partial:!0,tokenize:bV};function xV(t,e,r){let s=this,n;return i;function i(m){return t.enter("definition"),o(m)}function o(m){return PA.call(s,t,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function u(m){return n=cs(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),c):r(m)}function c(m){return it(m)?jo(t,d)(m):d(m)}function d(m){return kA(t,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return t.attempt(gV,f,f)(m)}function f(m){return He(m)?Ke(t,D,"whitespace")(m):D(m)}function D(m){return m===null||Fe(m)?(t.exit("definition"),s.parser.defined.push(n),e(m)):r(m)}}function bV(t,e,r){return s;function s(u){return it(u)?jo(t,n)(u):r(u)}function n(u){return IA(t,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return He(u)?Ke(t,o,"whitespace")(u):o(u)}function o(u){return u===null||Fe(u)?e(u):r(u)}}var EV={name:"hardBreakEscape",tokenize:CV};function CV(t,e,r){return s;function s(i){return t.enter("hardBreakEscape"),t.consume(i),n}function n(i){return Fe(i)?(t.exit("hardBreakEscape"),e(i)):r(i)}}var AV={name:"headingAtx",resolve:vV,tokenize:TV};function vV(t,e){let r=t.length-2,s=3,n,i;return t[s][1].type==="whitespace"&&(s+=2),r-2>s&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(s===r-1||r-4>s&&t[r-2][1].type==="whitespace")&&(r-=s+1===r?2:4),r>s&&(n={type:"atxHeadingText",start:t[s][1].start,end:t[r][1].end},i={type:"chunkText",start:t[s][1].start,end:t[r][1].end,contentType:"text"},_r(t,s,r-s+1,[["enter",n,e],["enter",i,e],["exit",i,e],["exit",n,e]])),t}function TV(t,e,r){let s=0;return n;function n(p){return t.enter("atxHeading"),i(p)}function i(p){return t.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&s++<6?(t.consume(p),o):p===null||it(p)?(t.exit("atxHeadingSequence"),u(p)):r(p)}function u(p){return p===35?(t.enter("atxHeadingSequence"),c(p)):p===null||Fe(p)?(t.exit("atxHeading"),e(p)):He(p)?Ke(t,u,"whitespace")(p):(t.enter("atxHeadingText"),d(p))}function c(p){return p===35?(t.consume(p),c):(t.exit("atxHeadingSequence"),u(p))}function d(p){return p===null||p===35||it(p)?(t.exit("atxHeadingText"),u(p)):(t.consume(p),d)}}var FV=["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"],BD=["pre","script","style","textarea"],wV={concrete:!0,name:"htmlFlow",resolveTo:PV,tokenize:IV},SV={partial:!0,tokenize:NV},kV={partial:!0,tokenize:BV};function PV(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function IV(t,e,r){let s=this,n,i,o,u,c;return d;function d(N){return p(N)}function p(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),f}function f(N){return N===33?(t.consume(N),D):N===47?(t.consume(N),i=!0,x):N===63?(t.consume(N),n=3,s.interrupt?e:S):Mt(N)?(t.consume(N),o=String.fromCharCode(N),b):r(N)}function D(N){return N===45?(t.consume(N),n=2,m):N===91?(t.consume(N),n=5,u=0,g):Mt(N)?(t.consume(N),n=4,s.interrupt?e:S):r(N)}function m(N){return N===45?(t.consume(N),s.interrupt?e:S):r(N)}function g(N){let se="CDATA[";return N===se.charCodeAt(u++)?(t.consume(N),u===se.length?s.interrupt?e:R:g):r(N)}function x(N){return Mt(N)?(t.consume(N),o=String.fromCharCode(N),b):r(N)}function b(N){if(N===null||N===47||N===62||it(N)){let se=N===47,ye=o.toLowerCase();return!se&&!i&&BD.includes(ye)?(n=1,s.interrupt?e(N):R(N)):FV.includes(o.toLowerCase())?(n=6,se?(t.consume(N),A):s.interrupt?e(N):R(N)):(n=7,s.interrupt&&!s.parser.lazy[s.now().line]?r(N):i?C(N):v(N))}return N===45||Yt(N)?(t.consume(N),o+=String.fromCharCode(N),b):r(N)}function A(N){return N===62?(t.consume(N),s.interrupt?e:R):r(N)}function C(N){return He(N)?(t.consume(N),C):B(N)}function v(N){return N===47?(t.consume(N),B):N===58||N===95||Mt(N)?(t.consume(N),P):He(N)?(t.consume(N),v):B(N)}function P(N){return N===45||N===46||N===58||N===95||Yt(N)?(t.consume(N),P):T(N)}function T(N){return N===61?(t.consume(N),F):He(N)?(t.consume(N),T):v(N)}function F(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(t.consume(N),c=N,k):He(N)?(t.consume(N),F):I(N)}function k(N){return N===c?(t.consume(N),c=null,L):N===null||Fe(N)?r(N):(t.consume(N),k)}function I(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||it(N)?T(N):(t.consume(N),I)}function L(N){return N===47||N===62||He(N)?v(N):r(N)}function B(N){return N===62?(t.consume(N),O):r(N)}function O(N){return N===null||Fe(N)?R(N):He(N)?(t.consume(N),O):r(N)}function R(N){return N===45&&n===2?(t.consume(N),z):N===60&&n===1?(t.consume(N),M):N===62&&n===4?(t.consume(N),te):N===63&&n===3?(t.consume(N),S):N===93&&n===5?(t.consume(N),ce):Fe(N)&&(n===6||n===7)?(t.exit("htmlFlowData"),t.check(SV,Z,q)(N)):N===null||Fe(N)?(t.exit("htmlFlowData"),q(N)):(t.consume(N),R)}function q(N){return t.check(kV,V,Z)(N)}function V(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),j}function j(N){return N===null||Fe(N)?q(N):(t.enter("htmlFlowData"),R(N))}function z(N){return N===45?(t.consume(N),S):R(N)}function M(N){return N===47?(t.consume(N),o="",ae):R(N)}function ae(N){if(N===62){let se=o.toLowerCase();return BD.includes(se)?(t.consume(N),te):R(N)}return Mt(N)&&o.length<8?(t.consume(N),o+=String.fromCharCode(N),ae):R(N)}function ce(N){return N===93?(t.consume(N),S):R(N)}function S(N){return N===62?(t.consume(N),te):N===45&&n===2?(t.consume(N),S):R(N)}function te(N){return N===null||Fe(N)?(t.exit("htmlFlowData"),Z(N)):(t.consume(N),te)}function Z(N){return t.exit("htmlFlow"),e(N)}}function BV(t,e,r){let s=this;return n;function n(o){return Fe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):r(o)}function i(o){return s.parser.lazy[s.now().line]?r(o):e(o)}}function NV(t,e,r){return s;function s(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),t.attempt(wu,e,r)}}var LV={name:"htmlText",tokenize:$V};function $V(t,e,r){let s=this,n,i,o;return u;function u(S){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(S),c}function c(S){return S===33?(t.consume(S),d):S===47?(t.consume(S),T):S===63?(t.consume(S),v):Mt(S)?(t.consume(S),I):r(S)}function d(S){return S===45?(t.consume(S),p):S===91?(t.consume(S),i=0,g):Mt(S)?(t.consume(S),C):r(S)}function p(S){return S===45?(t.consume(S),m):r(S)}function f(S){return S===null?r(S):S===45?(t.consume(S),D):Fe(S)?(o=f,M(S)):(t.consume(S),f)}function D(S){return S===45?(t.consume(S),m):f(S)}function m(S){return S===62?z(S):S===45?D(S):f(S)}function g(S){let te="CDATA[";return S===te.charCodeAt(i++)?(t.consume(S),i===te.length?x:g):r(S)}function x(S){return S===null?r(S):S===93?(t.consume(S),b):Fe(S)?(o=x,M(S)):(t.consume(S),x)}function b(S){return S===93?(t.consume(S),A):x(S)}function A(S){return S===62?z(S):S===93?(t.consume(S),A):x(S)}function C(S){return S===null||S===62?z(S):Fe(S)?(o=C,M(S)):(t.consume(S),C)}function v(S){return S===null?r(S):S===63?(t.consume(S),P):Fe(S)?(o=v,M(S)):(t.consume(S),v)}function P(S){return S===62?z(S):v(S)}function T(S){return Mt(S)?(t.consume(S),F):r(S)}function F(S){return S===45||Yt(S)?(t.consume(S),F):k(S)}function k(S){return Fe(S)?(o=k,M(S)):He(S)?(t.consume(S),k):z(S)}function I(S){return S===45||Yt(S)?(t.consume(S),I):S===47||S===62||it(S)?L(S):r(S)}function L(S){return S===47?(t.consume(S),z):S===58||S===95||Mt(S)?(t.consume(S),B):Fe(S)?(o=L,M(S)):He(S)?(t.consume(S),L):z(S)}function B(S){return S===45||S===46||S===58||S===95||Yt(S)?(t.consume(S),B):O(S)}function O(S){return S===61?(t.consume(S),R):Fe(S)?(o=O,M(S)):He(S)?(t.consume(S),O):L(S)}function R(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(t.consume(S),n=S,q):Fe(S)?(o=R,M(S)):He(S)?(t.consume(S),R):(t.consume(S),V)}function q(S){return S===n?(t.consume(S),n=void 0,j):S===null?r(S):Fe(S)?(o=q,M(S)):(t.consume(S),q)}function V(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||it(S)?L(S):(t.consume(S),V)}function j(S){return S===47||S===62||it(S)?L(S):r(S)}function z(S){return S===62?(t.consume(S),t.exit("htmlTextData"),t.exit("htmlText"),e):r(S)}function M(S){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),ae}function ae(S){return He(S)?Ke(t,ce,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ce(S)}function ce(S){return t.enter("htmlTextData"),o(S)}}var gm={name:"labelEnd",resolveAll:jV,resolveTo:RV,tokenize:qV},MV={tokenize:UV},OV={tokenize:zV},_V={tokenize:VV};function jV(t){let e=-1,r=[];for(;++e<t.length;){let s=t[e][1];if(r.push(t[e]),s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd"){let n=s.type==="labelImage"?4:2;s.type="data",e+=n}}return t.length!==r.length&&_r(t,0,t.length,r),t}function RV(t,e){let r=t.length,s=0,n,i,o,u;for(;r--;)if(n=t[r][1],i){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;t[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(t[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(i=r,n.type!=="labelLink")){s=2;break}}else n.type==="labelEnd"&&(o=r);let c={type:t[i][1].type==="labelLink"?"link":"image",start:{...t[i][1].start},end:{...t[t.length-1][1].end}},d={type:"label",start:{...t[i][1].start},end:{...t[o][1].end}},p={type:"labelText",start:{...t[i+s+2][1].end},end:{...t[o-2][1].start}};return u=[["enter",c,e],["enter",d,e]],u=Jr(u,t.slice(i+1,i+s+3)),u=Jr(u,[["enter",p,e]]),u=Jr(u,Uc(e.parser.constructs.insideSpan.null,t.slice(i+s+4,o-3),e)),u=Jr(u,[["exit",p,e],t[o-2],t[o-1],["exit",d,e]]),u=Jr(u,t.slice(o+1)),u=Jr(u,[["exit",c,e]]),_r(t,i,t.length,u),t}function qV(t,e,r){let s=this,n=s.events.length,i,o;for(;n--;)if((s.events[n][1].type==="labelImage"||s.events[n][1].type==="labelLink")&&!s.events[n][1]._balanced){i=s.events[n][1];break}return u;function u(D){return i?i._inactive?f(D):(o=s.parser.defined.includes(cs(s.sliceSerialize({start:i.end,end:s.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(D),t.exit("labelMarker"),t.exit("labelEnd"),c):r(D)}function c(D){return D===40?t.attempt(MV,p,o?p:f)(D):D===91?t.attempt(OV,p,o?d:f)(D):o?p(D):f(D)}function d(D){return t.attempt(_V,p,f)(D)}function p(D){return e(D)}function f(D){return i._balanced=!0,r(D)}}function UV(t,e,r){return s;function s(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),n}function n(f){return it(f)?jo(t,i)(f):i(f)}function i(f){return f===41?p(f):kA(t,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return it(f)?jo(t,c)(f):p(f)}function u(f){return r(f)}function c(f){return f===34||f===39||f===40?IA(t,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function d(f){return it(f)?jo(t,p)(f):p(f)}function p(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):r(f)}}function zV(t,e,r){let s=this;return n;function n(u){return PA.call(s,t,i,o,"reference","referenceMarker","referenceString")(u)}function i(u){return s.parser.defined.includes(cs(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?e(u):r(u)}function o(u){return r(u)}}function VV(t,e,r){return s;function s(i){return t.enter("reference"),t.enter("referenceMarker"),t.consume(i),t.exit("referenceMarker"),n}function n(i){return i===93?(t.enter("referenceMarker"),t.consume(i),t.exit("referenceMarker"),t.exit("reference"),e):r(i)}}var HV={name:"labelStartImage",resolveAll:gm.resolveAll,tokenize:WV};function WV(t,e,r){let s=this;return n;function n(u){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(u),t.exit("labelImageMarker"),i}function i(u){return u===91?(t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelImage"),o):r(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in s.parser.constructs?r(u):e(u)}}var JV={name:"labelStartLink",resolveAll:gm.resolveAll,tokenize:GV};function GV(t,e,r){let s=this;return n;function n(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in s.parser.constructs?r(o):e(o)}}var Zp={name:"lineEnding",tokenize:KV};function KV(t,e){return r;function r(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Ke(t,e,"linePrefix")}}var Ml={name:"thematicBreak",tokenize:XV};function XV(t,e,r){let s=0,n;return i;function i(d){return t.enter("thematicBreak"),o(d)}function o(d){return n=d,u(d)}function u(d){return d===n?(t.enter("thematicBreakSequence"),c(d)):s>=3&&(d===null||Fe(d))?(t.exit("thematicBreak"),e(d)):r(d)}function c(d){return d===n?(t.consume(d),s++,c):(t.exit("thematicBreakSequence"),He(d)?Ke(t,u,"whitespace")(d):u(d))}}var dr={continuation:{tokenize:eH},exit:rH,name:"list",tokenize:ZV},YV={partial:!0,tokenize:sH},QV={partial:!0,tokenize:tH};function ZV(t,e,r){let s=this,n=s.events[s.events.length-1],i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return u;function u(m){let g=s.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!s.containerState.marker||m===s.containerState.marker:Qh(m)){if(s.containerState.type||(s.containerState.type=g,t.enter(g,{_container:!0})),g==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(Ml,r,d)(m):d(m);if(!s.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(m)}return r(m)}function c(m){return Qh(m)&&++o<10?(t.consume(m),c):(!s.interrupt||o<2)&&(s.containerState.marker?m===s.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),d(m)):r(m)}function d(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||m,t.check(wu,s.interrupt?r:p,t.attempt(YV,D,f))}function p(m){return s.containerState.initialBlankLine=!0,i++,D(m)}function f(m){return He(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),D):r(m)}function D(m){return s.containerState.size=i+s.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}function eH(t,e,r){let s=this;return s.containerState._closeFlow=void 0,t.check(wu,n,i);function n(u){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,Ke(t,e,"listItemIndent",s.containerState.size+1)(u)}function i(u){return s.containerState.furtherBlankLines||!He(u)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,o(u)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,t.attempt(QV,e,o)(u))}function o(u){return s.containerState._closeFlow=!0,s.interrupt=void 0,Ke(t,t.attempt(dr,e,r),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function tH(t,e,r){let s=this;return Ke(t,n,"listItemIndent",s.containerState.size+1);function n(i){let o=s.events[s.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===s.containerState.size?e(i):r(i)}}function rH(t){t.exit(this.containerState.type)}function sH(t,e,r){let s=this;return Ke(t,n,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(i){let o=s.events[s.events.length-1];return!He(i)&&o&&o[1].type==="listItemPrefixWhitespace"?e(i):r(i)}}var ND={name:"setextUnderline",resolveTo:nH,tokenize:iH};function nH(t,e){let r=t.length,s,n,i;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){s=r;break}t[r][1].type==="paragraph"&&(n=r)}else t[r][1].type==="content"&&t.splice(r,1),!i&&t[r][1].type==="definition"&&(i=r);let o={type:"setextHeading",start:{...t[s][1].start},end:{...t[t.length-1][1].end}};return t[n][1].type="setextHeadingText",i?(t.splice(n,0,["enter",o,e]),t.splice(i+1,0,["exit",t[s][1],e]),t[s][1].end={...t[i][1].end}):t[s][1]=o,t.push(["exit",o,e]),t}function iH(t,e,r){let s=this,n;return i;function i(d){let p=s.events.length,f;for(;p--;)if(s.events[p][1].type!=="lineEnding"&&s.events[p][1].type!=="linePrefix"&&s.events[p][1].type!=="content"){f=s.events[p][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||f)?(t.enter("setextHeadingLine"),n=d,o(d)):r(d)}function o(d){return t.enter("setextHeadingLineSequence"),u(d)}function u(d){return d===n?(t.consume(d),u):(t.exit("setextHeadingLineSequence"),He(d)?Ke(t,c,"lineSuffix")(d):c(d))}function c(d){return d===null||Fe(d)?(t.exit("setextHeadingLine"),e(d)):r(d)}}var aH={tokenize:oH};function oH(t){let e=this,r=t.attempt(wu,s,t.attempt(this.parser.constructs.flowInitial,n,Ke(t,t.attempt(this.parser.constructs.flow,n,t.attempt(hV,n)),"linePrefix")));return r;function s(i){if(i===null){t.consume(i);return}return t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function n(i){if(i===null){t.consume(i);return}return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e.currentConstruct=void 0,r}}var uH={resolveAll:NA()},lH=BA("string"),cH=BA("text");function BA(t){return{resolveAll:NA(t==="text"?pH:void 0),tokenize:e};function e(r){let s=this,n=this.parser.constructs[t],i=r.attempt(n,o,u);return o;function o(p){return d(p)?i(p):u(p)}function u(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),c}function c(p){return d(p)?(r.exit("data"),i(p)):(r.consume(p),c)}function d(p){if(p===null)return!0;let f=n[p],D=-1;if(f)for(;++D<f.length;){let m=f[D];if(!m.previous||m.previous.call(s,s.previous))return!0}return!1}}}function NA(t){return e;function e(r,s){let n=-1,i;for(;++n<=r.length;)i===void 0?r[n]&&r[n][1].type==="data"&&(i=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==i+2&&(r[i][1].end=r[n-1][1].end,r.splice(i+2,n-i-2),n=i+2),i=void 0);return t?t(r,s):r}}function pH(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){let s=t[r-1][1],n=e.sliceStream(s),i=n.length,o=-1,u=0,c;for(;i--;){let d=n[i];if(typeof d=="string"){for(o=d.length;d.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(d===-2)c=!0,u++;else if(d!==-1){i++;break}}if(e._contentTypeTextTrailing&&r===t.length&&(u=0),u){let d={type:r===t.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:s.start._bufferIndex+o,_index:s.start._index+i,line:s.end.line,column:s.end.column-u,offset:s.end.offset-u},end:{...s.end}};s.end={...d.start},s.start.offset===s.end.offset?Object.assign(s,d):(t.splice(r,0,["enter",d,e],["exit",d,e]),r+=2)}r++}return t}var LA={};jc(LA,{attentionMarkers:()=>xH,contentInitial:()=>dH,disable:()=>bH,document:()=>hH,flow:()=>mH,flowInitial:()=>fH,insideSpan:()=>gH,string:()=>yH,text:()=>DH});var hH={42:dr,43:dr,45:dr,48:dr,49:dr,50:dr,51:dr,52:dr,53:dr,54:dr,55:dr,56:dr,57:dr,62:TA},dH={91:DV},fH={[-2]:Qp,[-1]:Qp,32:Qp},mH={35:AV,42:Ml,45:[ND,Ml],60:wV,61:ND,95:Ml,96:ID,126:ID},yH={38:wA,92:FA},DH={[-5]:Zp,[-4]:Zp,[-3]:Zp,33:HV,38:wA,42:Zh,60:[Jz,LV],91:JV,92:[EV,FA],93:gm,95:Zh,96:aV},gH={null:[Zh,uH]},xH={null:[42,95]},bH={null:[]};function EH(t,e,r){let s={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},n={},i=[],o=[],u=[],c={attempt:k(T),check:k(F),consume:C,enter:v,exit:P,interrupt:k(F,{interrupt:!0})},d={code:null,containerState:{},defineSkip:x,events:[],now:g,parser:t,previous:null,sliceSerialize:D,sliceStream:m,write:f},p=e.tokenize.call(d,c);return e.resolveAll&&i.push(e),d;function f(O){return o=Jr(o,O),b(),o[o.length-1]!==null?[]:(I(e,0),d.events=Uc(i,d.events,d),d.events)}function D(O,R){return AH(m(O),R)}function m(O){return CH(o,O)}function g(){let{_bufferIndex:O,_index:R,line:q,column:V,offset:j}=s;return{_bufferIndex:O,_index:R,line:q,column:V,offset:j}}function x(O){n[O.line]=O.column,B()}function b(){let O;for(;s._index<o.length;){let R=o[s._index];if(typeof R=="string")for(O=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===O&&s._bufferIndex<R.length;)A(R.charCodeAt(s._bufferIndex));else A(R)}}function A(O){p=p(O)}function C(O){Fe(O)?(s.line++,s.column=1,s.offset+=O===-3?2:1,B()):O!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===o[s._index].length&&(s._bufferIndex=-1,s._index++)),d.previous=O}function v(O,R){let q=R||{};return q.type=O,q.start=g(),d.events.push(["enter",q,d]),u.push(q),q}function P(O){let R=u.pop();return R.end=g(),d.events.push(["exit",R,d]),R}function T(O,R){I(O,R.from)}function F(O,R){R.restore()}function k(O,R){return q;function q(V,j,z){let M,ae,ce,S;return Array.isArray(V)?Z(V):"tokenize"in V?Z([V]):te(V);function te(ne){return Q;function Q(J){let G=J!==null&&ne[J],ie=J!==null&&ne.null,de=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return Z(de)(J)}}function Z(ne){return M=ne,ae=0,ne.length===0?z:N(ne[ae])}function N(ne){return Q;function Q(J){return S=L(),ce=ne,ne.partial||(d.currentConstruct=ne),ne.name&&d.parser.constructs.disable.null.includes(ne.name)?ye():ne.tokenize.call(R?Object.assign(Object.create(d),R):d,c,se,ye)(J)}}function se(ne){return O(ce,S),j}function ye(ne){return S.restore(),++ae<M.length?N(M[ae]):z}}}function I(O,R){O.resolveAll&&!i.includes(O)&&i.push(O),O.resolve&&_r(d.events,R,d.events.length-R,O.resolve(d.events.slice(R),d)),O.resolveTo&&(d.events=O.resolveTo(d.events,d))}function L(){let O=g(),R=d.previous,q=d.currentConstruct,V=d.events.length,j=Array.from(u);return{from:V,restore:z};function z(){s=O,d.previous=R,d.currentConstruct=q,d.events.length=V,u=j,B()}}function B(){s.line in n&&s.column<2&&(s.column=n[s.line],s.offset+=n[s.line]-1)}}function CH(t,e){let r=e.start._index,s=e.start._bufferIndex,n=e.end._index,i=e.end._bufferIndex,o;if(r===n)o=[t[r].slice(s,i)];else{if(o=t.slice(r,n),s>-1){let u=o[0];typeof u=="string"?o[0]=u.slice(s):o.shift()}i>0&&o.push(t[n].slice(0,i))}return o}function AH(t,e){let r=-1,s=[],n;for(;++r<t.length;){let i=t[r],o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
142
|
-
`;break}case-3:{o=`\r
|
|
143
|
-
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&n)continue;o=" ";break}default:o=String.fromCharCode(i)}n=i===-2,s.push(o)}return s.join("")}function vH(t){let e={constructs:AA([LA,...(t||{}).extensions||[]]),content:r(Rz),defined:[],document:r(Uz),flow:r(aH),lazy:{},string:r(lH),text:r(cH)};return e;function r(s){return n;function n(i){return EH(e,s,i)}}}function TH(t){for(;!SA(t););return t}var LD=/[\0\t\n\r]/g;function FH(){let t=1,e="",r=!0,s;return n;function n(i,o,u){let c=[],d,p,f,D,m;for(i=e+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,e="",r&&(i.charCodeAt(0)===65279&&f++,r=void 0);f<i.length;){if(LD.lastIndex=f,d=LD.exec(i),D=d&&d.index!==void 0?d.index:i.length,m=i.charCodeAt(D),!d){e=i.slice(f);break}if(m===10&&f===D&&s)c.push(-3),s=void 0;else switch(s&&(c.push(-5),s=void 0),f<D&&(c.push(i.slice(f,D)),t+=D-f),m){case 0:{c.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,c.push(-2);t++<p;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:s=!0,t=1}f=D+1}return u&&(s&&c.push(-5),e&&c.push(e),c.push(null)),c}}var wH=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function SH(t){return t.replace(wH,kH)}function kH(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){let s=r.charCodeAt(1),n=s===120||s===88;return vA(r.slice(n?2:1),n?16:10)}return Dm(r)||t}function Ol(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?$D(t.position):"start"in t||"end"in t?$D(t):"line"in t||"column"in t?ed(t):""}function ed(t){return MD(t&&t.line)+":"+MD(t&&t.column)}function $D(t){return ed(t&&t.start)+"-"+ed(t&&t.end)}function MD(t){return t&&typeof t=="number"?t:1}var $A={}.hasOwnProperty;function PH(t,e,r){return e&&typeof e=="object"&&(r=e,e=void 0),IH(r)(TH(vH(r).document().write(FH()(t,e,!0))))}function IH(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(fe),autolinkProtocol:L,autolinkEmail:L,atxHeading:i(nt),blockQuote:i(ie),characterEscape:L,characterReference:L,codeFenced:i(de),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(de,o),codeText:i(Pe,o),codeTextData:L,data:L,codeFlowValue:L,definition:i(ve),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(We),hardBreakEscape:i(lt),hardBreakTrailing:i(lt),htmlFlow:i(rt,o),htmlFlowData:L,htmlText:i(rt,o),htmlTextData:L,image:i(ke),label:o,link:i(fe),listItem:i(Vt),listItemValue:D,listOrdered:i(we,f),listUnordered:i(we),paragraph:i(_e),reference:N,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(nt),strong:i(Ct),thematicBreak:i(jt)},exit:{atxHeading:c(),atxHeadingSequence:T,autolink:c(),autolinkEmail:G,autolinkProtocol:J,blockQuote:c(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:ne,characterReference:Q,codeFenced:c(b),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:B,codeIndented:c(A),codeText:c(j),codeTextData:B,data:B,definition:c(),definitionDestinationString:P,definitionLabelString:C,definitionTitleString:v,emphasis:c(),hardBreakEscape:c(R),hardBreakTrailing:c(R),htmlFlow:c(q),htmlFlowData:B,htmlText:c(V),htmlTextData:B,image:c(M),label:ce,labelText:ae,lineEnding:O,link:c(z),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:se,resourceDestinationString:S,resourceTitleString:te,resource:Z,setextHeading:c(I),setextHeadingLineSequence:k,setextHeadingText:F,strong:c(),thematicBreak:c()}};MA(e,(t||{}).mdastExtensions||[]);let r={};return s;function s(re){let le={type:"root",children:[]},Be={stack:[le],tokenStack:[],config:e,enter:u,exit:d,buffer:o,resume:p,data:r},je=[],qe=-1;for(;++qe<re.length;)if(re[qe][1].type==="listOrdered"||re[qe][1].type==="listUnordered")if(re[qe][0]==="enter")je.push(qe);else{let dt=je.pop();qe=n(re,dt,qe)}for(qe=-1;++qe<re.length;){let dt=e[re[qe][0]];$A.call(dt,re[qe][1].type)&&dt[re[qe][1].type].call(Object.assign({sliceSerialize:re[qe][2].sliceSerialize},Be),re[qe][1])}if(Be.tokenStack.length>0){let dt=Be.tokenStack[Be.tokenStack.length-1];(dt[1]||OD).call(Be,void 0,dt[0])}for(le.position={start:vn(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:vn(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<e.transforms.length;)le=e.transforms[qe](le)||le;return le}function n(re,le,Be){let je=le-1,qe=-1,dt=!1,hr,sr,nr,wr;for(;++je<=Be;){let Dt=re[je];switch(Dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Dt[0]==="enter"?qe++:qe--,wr=void 0;break}case"lineEndingBlank":{Dt[0]==="enter"&&(hr&&!wr&&!qe&&!nr&&(nr=je),wr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wr=void 0}if(!qe&&Dt[0]==="enter"&&Dt[1].type==="listItemPrefix"||qe===-1&&Dt[0]==="exit"&&(Dt[1].type==="listUnordered"||Dt[1].type==="listOrdered")){if(hr){let ft=je;for(sr=void 0;ft--;){let Ht=re[ft];if(Ht[1].type==="lineEnding"||Ht[1].type==="lineEndingBlank"){if(Ht[0]==="exit")continue;sr&&(re[sr][1].type="lineEndingBlank",dt=!0),Ht[1].type="lineEnding",sr=ft}else if(!(Ht[1].type==="linePrefix"||Ht[1].type==="blockQuotePrefix"||Ht[1].type==="blockQuotePrefixWhitespace"||Ht[1].type==="blockQuoteMarker"||Ht[1].type==="listItemIndent"))break}nr&&(!sr||nr<sr)&&(hr._spread=!0),hr.end=Object.assign({},sr?re[sr][1].start:Dt[1].end),re.splice(sr||je,0,["exit",hr,Dt[2]]),je++,Be++}if(Dt[1].type==="listItemPrefix"){let ft={type:"listItem",_spread:!1,start:Object.assign({},Dt[1].start),end:void 0};hr=ft,re.splice(je,0,["enter",ft,Dt[2]]),je++,Be++,nr=void 0,wr=!0}}}return re[le][1]._spread=dt,Be}function i(re,le){return Be;function Be(je){u.call(this,re(je),je),le&&le.call(this,je)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(re,le,Be){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([le,Be||void 0]),re.position={start:vn(le.start),end:void 0}}function c(re){return le;function le(Be){re&&re.call(this,Be),d.call(this,Be)}}function d(re,le){let Be=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==re.type&&(le?le.call(this,re,je[0]):(je[1]||OD).call(this,re,je[0]));else throw new Error("Cannot close `"+re.type+"` ("+Ol({start:re.start,end:re.end})+"): it’s not open");Be.position.end=vn(re.end)}function p(){return Bz(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function D(re){if(this.data.expectingFirstListItemValue){let le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function m(){let re=this.resume(),le=this.stack[this.stack.length-1];le.lang=re}function g(){let re=this.resume(),le=this.stack[this.stack.length-1];le.meta=re}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){let re=this.resume(),le=this.stack[this.stack.length-1];le.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){let re=this.resume(),le=this.stack[this.stack.length-1];le.value=re.replace(/(\r?\n|\r)$/g,"")}function C(re){let le=this.resume(),Be=this.stack[this.stack.length-1];Be.label=le,Be.identifier=cs(this.sliceSerialize(re)).toLowerCase()}function v(){let re=this.resume(),le=this.stack[this.stack.length-1];le.title=re}function P(){let re=this.resume(),le=this.stack[this.stack.length-1];le.url=re}function T(re){let le=this.stack[this.stack.length-1];if(!le.depth){let Be=this.sliceSerialize(re).length;le.depth=Be}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function k(re){let le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function L(re){let le=this.stack[this.stack.length-1].children,Be=le[le.length-1];(!Be||Be.type!=="text")&&(Be=tt(),Be.position={start:vn(re.start),end:void 0},le.push(Be)),this.stack.push(Be)}function B(re){let le=this.stack.pop();le.value+=this.sliceSerialize(re),le.position.end=vn(re.end)}function O(re){let le=this.stack[this.stack.length-1];if(this.data.atHardBreak){let Be=le.children[le.children.length-1];Be.position.end=vn(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(le.type)&&(L.call(this,re),B.call(this,re))}function R(){this.data.atHardBreak=!0}function q(){let re=this.resume(),le=this.stack[this.stack.length-1];le.value=re}function V(){let re=this.resume(),le=this.stack[this.stack.length-1];le.value=re}function j(){let re=this.resume(),le=this.stack[this.stack.length-1];le.value=re}function z(){let re=this.stack[this.stack.length-1];if(this.data.inReference){let le=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=le,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function M(){let re=this.stack[this.stack.length-1];if(this.data.inReference){let le=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=le,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function ae(re){let le=this.sliceSerialize(re),Be=this.stack[this.stack.length-2];Be.label=SH(le),Be.identifier=cs(le).toLowerCase()}function ce(){let re=this.stack[this.stack.length-1],le=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){let je=re.children;Be.children=je}else Be.alt=le}function S(){let re=this.resume(),le=this.stack[this.stack.length-1];le.url=re}function te(){let re=this.resume(),le=this.stack[this.stack.length-1];le.title=re}function Z(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function se(re){let le=this.resume(),Be=this.stack[this.stack.length-1];Be.label=le,Be.identifier=cs(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function ye(re){this.data.characterReferenceType=re.type}function ne(re){let le=this.sliceSerialize(re),Be=this.data.characterReferenceType,je;Be?(je=vA(le,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=Dm(le);let qe=this.stack[this.stack.length-1];qe.value+=je}function Q(re){let le=this.stack.pop();le.position.end=vn(re.end)}function J(re){B.call(this,re);let le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(re)}function G(re){B.call(this,re);let le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(re)}function ie(){return{type:"blockquote",children:[]}}function de(){return{type:"code",lang:null,meta:null,value:""}}function Pe(){return{type:"inlineCode",value:""}}function ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function We(){return{type:"emphasis",children:[]}}function nt(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function rt(){return{type:"html",value:""}}function ke(){return{type:"image",title:null,url:"",alt:null}}function fe(){return{type:"link",title:null,url:"",children:[]}}function we(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function Vt(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function _e(){return{type:"paragraph",children:[]}}function Ct(){return{type:"strong",children:[]}}function tt(){return{type:"text",value:""}}function jt(){return{type:"thematicBreak"}}}function vn(t){return{line:t.line,column:t.column,offset:t.offset}}function MA(t,e){let r=-1;for(;++r<e.length;){let s=e[r];Array.isArray(s)?MA(t,s):BH(t,s)}}function BH(t,e){let r;for(r in e)if($A.call(e,r))switch(r){case"canContainEols":{let s=e[r];s&&t[r].push(...s);break}case"transforms":{let s=e[r];s&&t[r].push(...s);break}case"enter":case"exit":{let s=e[r];s&&Object.assign(t[r],s);break}}}function OD(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Ol({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Ol({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Ol({start:e.start,end:e.end})+") is still open")}function NH(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:i},exit:{mathFlow:n,mathFlowFence:s,mathFlowFenceMeta:r,mathFlowValue:u,mathText:o,mathTextData:u}};function t(c){let d={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[d]}},c)}function e(){this.buffer()}function r(){let c=this.resume(),d=this.stack[this.stack.length-1];d.type,d.meta=c}function s(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(c){let d=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];p.type,this.exit(c),p.value=d;let f=p.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:d}),this.data.mathFlowInside=void 0}function i(c){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},c),this.buffer()}function o(c){let d=this.resume(),p=this.stack[this.stack.length-1];p.type,this.exit(c),p.value=d,p.data.hChildren.push({type:"text",value:d})}function u(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}var LH={tokenize:RH,partial:!0},OA={tokenize:qH,partial:!0},_A={tokenize:UH,partial:!0},jA={tokenize:zH,partial:!0},$H={tokenize:VH,partial:!0},RA={name:"wwwAutolink",tokenize:_H,previous:UA},qA={name:"protocolAutolink",tokenize:jH,previous:zA},dn={name:"emailAutolink",tokenize:OH,previous:VA},$s={};function MH(){return{text:$s}}var ei=48;for(;ei<123;)$s[ei]=dn,ei++,ei===58?ei=65:ei===91&&(ei=97);$s[43]=dn;$s[45]=dn;$s[46]=dn;$s[95]=dn;$s[72]=[dn,qA];$s[104]=[dn,qA];$s[87]=[dn,RA];$s[119]=[dn,RA];function OH(t,e,r){let s=this,n,i;return o;function o(f){return!td(f)||!VA.call(s,s.previous)||xm(s.events)?r(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(f))}function u(f){return td(f)?(t.consume(f),u):f===64?(t.consume(f),c):r(f)}function c(f){return f===46?t.check($H,p,d)(f):f===45||f===95||Yt(f)?(i=!0,t.consume(f),c):p(f)}function d(f){return t.consume(f),n=!0,c}function p(f){return i&&n&&Mt(s.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):r(f)}}function _H(t,e,r){let s=this;return n;function n(o){return o!==87&&o!==119||!UA.call(s,s.previous)||xm(s.events)?r(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(LH,t.attempt(OA,t.attempt(_A,i),r),r)(o))}function i(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function jH(t,e,r){let s=this,n="",i=!1;return o;function o(f){return(f===72||f===104)&&zA.call(s,s.previous)&&!xm(s.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),n+=String.fromCodePoint(f),t.consume(f),u):r(f)}function u(f){if(Mt(f)&&n.length<5)return n+=String.fromCodePoint(f),t.consume(f),u;if(f===58){let D=n.toLowerCase();if(D==="http"||D==="https")return t.consume(f),c}return r(f)}function c(f){return f===47?(t.consume(f),i?d:(i=!0,c)):r(f)}function d(f){return f===null||ec(f)||it(f)||xi(f)||qc(f)?r(f):t.attempt(OA,t.attempt(_A,p),r)(f)}function p(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}function RH(t,e,r){let s=0;return n;function n(o){return(o===87||o===119)&&s<3?(s++,t.consume(o),n):o===46&&s===3?(t.consume(o),i):r(o)}function i(o){return o===null?r(o):e(o)}}function qH(t,e,r){let s,n,i;return o;function o(d){return d===46||d===95?t.check(jA,c,u)(d):d===null||it(d)||xi(d)||d!==45&&qc(d)?c(d):(i=!0,t.consume(d),o)}function u(d){return d===95?s=!0:(n=s,s=void 0),t.consume(d),o}function c(d){return n||s||!i?r(d):e(d)}}function UH(t,e){let r=0,s=0;return n;function n(o){return o===40?(r++,t.consume(o),n):o===41&&s<r?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(jA,e,i)(o):o===null||it(o)||xi(o)?e(o):(t.consume(o),n)}function i(o){return o===41&&s++,t.consume(o),n}}function zH(t,e,r){return s;function s(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(t.consume(u),s):u===38?(t.consume(u),i):u===93?(t.consume(u),n):u===60||u===null||it(u)||xi(u)?e(u):r(u)}function n(u){return u===null||u===40||u===91||it(u)||xi(u)?e(u):s(u)}function i(u){return Mt(u)?o(u):r(u)}function o(u){return u===59?(t.consume(u),s):Mt(u)?(t.consume(u),o):r(u)}}function VH(t,e,r){return s;function s(i){return t.consume(i),n}function n(i){return Yt(i)?r(i):e(i)}}function UA(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||it(t)}function zA(t){return!Mt(t)}function VA(t){return!(t===47||td(t))}function td(t){return t===43||t===45||t===46||t===95||Yt(t)}function xm(t){let e=t.length,r=!1;for(;e--;){let s=t[e][1];if((s.type==="labelLink"||s.type==="labelImage")&&!s._balanced){r=!0;break}if(s._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}var HH={tokenize:ZH,partial:!0};function WH(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:XH,continuation:{tokenize:YH},exit:QH}},text:{91:{name:"gfmFootnoteCall",tokenize:KH},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:JH,resolveTo:GH}}}}function JH(t,e,r){let s=this,n=s.events.length,i=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),o;for(;n--;){let c=s.events[n][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!o||!o._balanced)return r(c);let d=cs(s.sliceSerialize({start:o.end,end:s.now()}));return d.codePointAt(0)!==94||!i.includes(d.slice(1))?r(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),e(c))}}function GH(t,e){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";let s={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},n={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};n.end.column++,n.end.offset++,n.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[t[r+1],t[r+2],["enter",s,e],t[r+3],t[r+4],["enter",n,e],["exit",n,e],["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e],t[t.length-2],t[t.length-1],["exit",s,e]];return t.splice(r,t.length-r+1,...u),t}function KH(t,e,r){let s=this,n=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),i=0,o;return u;function u(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?r(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",d)}function d(f){if(i>999||f===93&&!o||f===null||f===91||it(f))return r(f);if(f===93){t.exit("chunkString");let D=t.exit("gfmFootnoteCallString");return n.includes(cs(s.sliceSerialize(D)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(f)}return it(f)||(o=!0),i++,t.consume(f),f===92?p:d}function p(f){return f===91||f===92||f===93?(t.consume(f),i++,d):d(f)}}function XH(t,e,r){let s=this,n=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),i,o=0,u;return c;function c(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",p):r(g)}function p(g){if(o>999||g===93&&!u||g===null||g===91||it(g))return r(g);if(g===93){t.exit("chunkString");let x=t.exit("gfmFootnoteDefinitionLabelString");return i=cs(s.sliceSerialize(x)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),D}return it(g)||(u=!0),o++,t.consume(g),g===92?f:p}function f(g){return g===91||g===92||g===93?(t.consume(g),o++,p):p(g)}function D(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),n.includes(i)||n.push(i),Ke(t,m,"gfmFootnoteDefinitionWhitespace")):r(g)}function m(g){return e(g)}}function YH(t,e,r){return t.check(wu,e,t.attempt(HH,e,r))}function QH(t){t.exit("gfmFootnoteDefinition")}function ZH(t,e,r){let s=this;return Ke(t,n,"gfmFootnoteDefinitionIndent",5);function n(i){let o=s.events[s.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(i):r(i)}}function eW(t){let e={}.singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:s};return e==null&&(e=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(i,o){let u=-1;for(;++u<i.length;)if(i[u][0]==="enter"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._close){let c=u;for(;c--;)if(i[c][0]==="exit"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._open&&i[u][1].end.offset-i[u][1].start.offset===i[c][1].end.offset-i[c][1].start.offset){i[u][1].type="strikethroughSequence",i[c][1].type="strikethroughSequence";let d={type:"strikethrough",start:Object.assign({},i[c][1].start),end:Object.assign({},i[u][1].end)},p={type:"strikethroughText",start:Object.assign({},i[c][1].end),end:Object.assign({},i[u][1].start)},f=[["enter",d,o],["enter",i[c][1],o],["exit",i[c][1],o],["enter",p,o]],D=o.parser.constructs.insideSpan.null;D&&_r(f,f.length,0,Uc(D,i.slice(c+1,u),o)),_r(f,f.length,0,[["exit",p,o],["enter",i[u][1],o],["exit",i[u][1],o],["exit",d,o]]),_r(i,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<i.length;)i[u][1].type==="strikethroughSequenceTemporary"&&(i[u][1].type="data");return i}function n(i,o,u){let c=this.previous,d=this.events,p=0;return f;function f(m){return c===126&&d[d.length-1][1].type!=="characterEscape"?u(m):(i.enter("strikethroughSequenceTemporary"),D(m))}function D(m){let g=tc(c);if(m===126)return p>1?u(m):(i.consume(m),p++,D);if(p<2&&!e)return u(m);let x=i.exit("strikethroughSequenceTemporary"),b=tc(m);return x._open=!b||b===2&&!!g,x._close=!g||g===2&&!!b,o(m)}}}var tW=class{constructor(){this.map=[]}add(t,e,r){rW(this,t,e,r)}consume(t){if(this.map.sort(function(n,i){return n[0]-i[0]}),this.map.length===0)return;let e=this.map.length,r=[];for(;e>0;)e-=1,r.push(t.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),t.length=this.map[e][0];r.push(t.slice()),t.length=0;let s=r.pop();for(;s;){for(let n of s)t.push(n);s=r.pop()}this.map.length=0}};function rW(t,e,r,s){let n=0;if(!(r===0&&s.length===0)){for(;n<t.map.length;){if(t.map[n][0]===e){t.map[n][1]+=r,t.map[n][2].push(...s);return}n+=1}t.map.push([e,r,s])}}function sW(t,e){let r=!1,s=[];for(;e<t.length;){let n=t[e];if(r){if(n[0]==="enter")n[1].type==="tableContent"&&s.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(n[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){let i=s.length-1;s[i]=s[i]==="left"?"center":"right"}}else if(n[1].type==="tableDelimiterRow")break}else n[0]==="enter"&&n[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return s}function nW(){return{flow:{null:{name:"table",tokenize:iW,resolveAll:aW}}}}function iW(t,e,r){let s=this,n=0,i=0,o;return u;function u(B){let O=s.events.length-1;for(;O>-1;){let V=s.events[O][1].type;if(V==="lineEnding"||V==="linePrefix")O--;else break}let R=O>-1?s.events[O][1].type:null,q=R==="tableHead"||R==="tableRow"?F:c;return q===F&&s.parser.lazy[s.now().line]?r(B):q(B)}function c(B){return t.enter("tableHead"),t.enter("tableRow"),d(B)}function d(B){return B===124||(o=!0,i+=1),p(B)}function p(B){return B===null?r(B):Fe(B)?i>1?(i=0,s.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),m):r(B):He(B)?Ke(t,p,"whitespace")(B):(i+=1,o&&(o=!1,n+=1),B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),o=!0,p):(t.enter("data"),f(B)))}function f(B){return B===null||B===124||it(B)?(t.exit("data"),p(B)):(t.consume(B),B===92?D:f)}function D(B){return B===92||B===124?(t.consume(B),f):f(B)}function m(B){return s.interrupt=!1,s.parser.lazy[s.now().line]?r(B):(t.enter("tableDelimiterRow"),o=!1,He(B)?Ke(t,g,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):g(B))}function g(B){return B===45||B===58?b(B):B===124?(o=!0,t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),x):T(B)}function x(B){return He(B)?Ke(t,b,"whitespace")(B):b(B)}function b(B){return B===58?(i+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),A):B===45?(i+=1,A(B)):B===null||Fe(B)?P(B):T(B)}function A(B){return B===45?(t.enter("tableDelimiterFiller"),C(B)):T(B)}function C(B){return B===45?(t.consume(B),C):B===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),v):(t.exit("tableDelimiterFiller"),v(B))}function v(B){return He(B)?Ke(t,P,"whitespace")(B):P(B)}function P(B){return B===124?g(B):B===null||Fe(B)?!o||n!==i?T(B):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(B)):T(B)}function T(B){return r(B)}function F(B){return t.enter("tableRow"),k(B)}function k(B){return B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),k):B===null||Fe(B)?(t.exit("tableRow"),e(B)):He(B)?Ke(t,k,"whitespace")(B):(t.enter("data"),I(B))}function I(B){return B===null||B===124||it(B)?(t.exit("data"),k(B)):(t.consume(B),B===92?L:I)}function L(B){return B===92||B===124?(t.consume(B),I):I(B)}}function aW(t,e){let r=-1,s=!0,n=0,i=[0,0,0,0],o=[0,0,0,0],u=!1,c=0,d,p,f,D=new tW;for(;++r<t.length;){let m=t[r],g=m[1];m[0]==="enter"?g.type==="tableHead"?(u=!1,c!==0&&(_D(D,e,c,d,p),p=void 0,c=0),d={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},D.add(r,0,[["enter",d,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=!0,f=void 0,i=[0,0,0,0],o=[0,r+1,0,0],u&&(u=!1,p={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},D.add(r,0,[["enter",p,e]])),n=g.type==="tableDelimiterRow"?2:p?3:1):n&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(s=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],f=fl(D,e,i,n,void 0,f),i=[0,0,0,0]),o[2]=r)):g.type==="tableCellDivider"&&(s?s=!1:(i[1]!==0&&(o[0]=o[1],f=fl(D,e,i,n,void 0,f)),i=o,o=[i[1],r,0,0])):g.type==="tableHead"?(u=!0,c=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=r,i[1]!==0?(o[0]=o[1],f=fl(D,e,i,n,r,f)):o[1]!==0&&(f=fl(D,e,o,n,r,f)),n=0):n&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=r)}for(c!==0&&_D(D,e,c,d,p),D.consume(e.events),r=-1;++r<e.events.length;){let m=e.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=sW(e.events,r))}return t}function fl(t,e,r,s,n,i){let o=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",u="tableContent";r[0]!==0&&(i.end=Object.assign({},Ki(e.events,r[0])),t.add(r[0],0,[["exit",i,e]]));let c=Ki(e.events,r[1]);if(i={type:o,start:Object.assign({},c),end:Object.assign({},c)},t.add(r[1],0,[["enter",i,e]]),r[2]!==0){let d=Ki(e.events,r[2]),p=Ki(e.events,r[3]),f={type:u,start:Object.assign({},d),end:Object.assign({},p)};if(t.add(r[2],0,[["enter",f,e]]),s!==2){let D=e.events[r[2]],m=e.events[r[3]];if(D[1].end=Object.assign({},m[1].end),D[1].type="chunkText",D[1].contentType="text",r[3]>r[2]+1){let g=r[2]+1,x=r[3]-r[2]-1;t.add(g,x,[])}}t.add(r[3]+1,0,[["exit",f,e]])}return n!==void 0&&(i.end=Object.assign({},Ki(e.events,n)),t.add(n,0,[["exit",i,e]]),i=void 0),i}function _D(t,e,r,s,n){let i=[],o=Ki(e.events,r);n&&(n.end=Object.assign({},o),i.push(["exit",n,e])),s.end=Object.assign({},o),i.push(["exit",s,e]),t.add(r+1,0,i)}function Ki(t,e){let r=t[e],s=r[0]==="enter"?"start":"end";return r[1][s]}var oW={name:"tasklistCheck",tokenize:lW};function uW(){return{text:{91:oW}}}function lW(t,e,r){let s=this;return n;function n(c){return s.previous!==null||!s._gfmTasklistFirstContentOfListItem?r(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),i)}function i(c){return it(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),o):r(c)}function o(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):r(c)}function u(c){return Fe(c)?e(c):He(c)?t.check({tokenize:cW},e,r)(c):r(c)}}function cW(t,e,r){return Ke(t,s,"whitespace");function s(n){return n===null?r(n):e(n)}}function pW(t){return AA([MH(),WH(),eW(),nW(),uW()])}var hW={tokenize:dW,concrete:!0,name:"mathFlow"},jD={tokenize:fW,partial:!0};function dW(t,e,r){let s=this,n=s.events[s.events.length-1],i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return u;function u(C){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),c(C)}function c(C){return C===36?(t.consume(C),o++,c):o<2?r(C):(t.exit("mathFlowFenceSequence"),Ke(t,d,"whitespace")(C))}function d(C){return C===null||Fe(C)?f(C):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||Fe(C)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),f(C)):C===36?r(C):(t.consume(C),p)}function f(C){return t.exit("mathFlowFence"),s.interrupt?e(C):t.attempt(jD,D,b)(C)}function D(C){return t.attempt({tokenize:A,partial:!0},b,m)(C)}function m(C){return(i?Ke(t,g,"linePrefix",i+1):g)(C)}function g(C){return C===null?b(C):Fe(C)?t.attempt(jD,D,b)(C):(t.enter("mathFlowValue"),x(C))}function x(C){return C===null||Fe(C)?(t.exit("mathFlowValue"),g(C)):(t.consume(C),x)}function b(C){return t.exit("mathFlow"),e(C)}function A(C,v,P){let T=0;return Ke(C,F,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function F(L){return C.enter("mathFlowFence"),C.enter("mathFlowFenceSequence"),k(L)}function k(L){return L===36?(T++,C.consume(L),k):T<o?P(L):(C.exit("mathFlowFenceSequence"),Ke(C,I,"whitespace")(L))}function I(L){return L===null||Fe(L)?(C.exit("mathFlowFence"),v(L)):P(L)}}}function fW(t,e,r){let s=this;return n;function n(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i)}function i(o){return s.parser.lazy[s.now().line]?r(o):e(o)}}function mW(t){let e={}.singleDollarTextMath;return e==null&&(e=!0),{tokenize:r,resolve:yW,previous:DW,name:"mathText"};function r(s,n,i){let o=0,u,c;return d;function d(g){return s.enter("mathText"),s.enter("mathTextSequence"),p(g)}function p(g){return g===36?(s.consume(g),o++,p):o<2&&!e?i(g):(s.exit("mathTextSequence"),f(g))}function f(g){return g===null?i(g):g===36?(c=s.enter("mathTextSequence"),u=0,m(g)):g===32?(s.enter("space"),s.consume(g),s.exit("space"),f):Fe(g)?(s.enter("lineEnding"),s.consume(g),s.exit("lineEnding"),f):(s.enter("mathTextData"),D(g))}function D(g){return g===null||g===32||g===36||Fe(g)?(s.exit("mathTextData"),f(g)):(s.consume(g),D)}function m(g){return g===36?(s.consume(g),u++,m):u===o?(s.exit("mathTextSequence"),s.exit("mathText"),n(g)):(c.type="mathTextData",D(g))}}}function yW(t){let e=t.length-4,r=3,s,n;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(s=r;++s<e;)if(t[s][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(s=r-1,e++;++s<=e;)n===void 0?s!==e&&t[s][1].type!=="lineEnding"&&(n=s):(s===e||t[s][1].type==="lineEnding")&&(t[n][1].type="mathTextData",s!==n+2&&(t[n][1].end=t[s-1][1].end,t.splice(n+2,s-n-2),e-=s-n-2,s=n+2),n=void 0);return t}function DW(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function gW(t){return{flow:{36:hW},text:{36:mW()}}}var bm=(t,e)=>(r,s,...n)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,n);function xW(t){return this[t<0?this.length+t:t]}var bW=bm("at",function(){if(Array.isArray(this)||typeof this=="string")return xW}),br=bW,EW=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},CW=bm("replaceAll",function(){if(typeof this=="string")return EW}),Ut=CW,AW=()=>{},vW=AW;function TW(t){return Ut(0,t,/[^\n]/g," ")}var FW=TW,HA=Symbol.for("PRETTIER_IS_FRONT_MATTER"),oo=3;function wW(t){let e=t.slice(0,oo);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
144
|
-
`,oo);if(r===-1)return;let s=t.slice(oo,r).trim(),n=t.indexOf(`
|
|
145
|
-
${e}`,r),i=s;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
|
|
146
|
-
...`,r)),n===-1)return;let o=n+1+oo,u=t.charAt(o+1);if(!/\s?/.test(u))return;let c=t.slice(0,o),d;return{language:i,explicitLanguage:s||null,value:t.slice(r+1,n),startDelimiter:e,endDelimiter:c.slice(-oo),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return d??(d=c.split(`
|
|
147
|
-
`)),d.length},get column(){return d??(d=c.split(`
|
|
148
|
-
`)),br(0,d,-1).length}},[HA]:!0}}function SW(t){let e=wW(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return FW(r)+t.slice(r.length)}}:{content:t}}var Su=SW;function RD(t,e){let r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let s=0,n=r.indexOf(e);for(;n!==-1;)s++,n=r.indexOf(e,n+e.length);return s}function ku(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Em=(function(t){if(t==null)return BW;if(typeof t=="function")return zc(t);if(typeof t=="object")return Array.isArray(t)?kW(t):PW(t);if(typeof t=="string")return IW(t);throw new Error("Expected function, string, or object as test")});function kW(t){let e=[],r=-1;for(;++r<t.length;)e[r]=Em(t[r]);return zc(s);function s(...n){let i=-1;for(;++i<e.length;)if(e[i].apply(this,n))return!0;return!1}}function PW(t){let e=t;return zc(r);function r(s){let n=s,i;for(i in t)if(n[i]!==e[i])return!1;return!0}}function IW(t){return zc(e);function e(r){return r&&r.type===t}}function zc(t){return e;function e(r,s,n){return!!(NW(r)&&t.call(this,r,typeof s=="number"?s:void 0,n||void 0))}}function BW(){return!0}function NW(t){return t!==null&&typeof t=="object"&&"type"in t}var WA=[],LW=!0,qD=!1,$W="skip";function MW(t,e,r,s){let n;n=e;let i=Em(n),o=1;u(t,void 0,[])();function u(c,d,p){let f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){let m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(D,"name",{value:"node ("+(c.type+(m?"<"+m+">":""))+")"})}return D;function D(){let m=WA,g,x,b;if(i(c,d,p[p.length-1]||void 0)&&(m=OW(r(c,p)),m[0]===qD))return m;if("children"in c&&c.children){let A=c;if(A.children&&m[0]!==$W)for(x=-1+o,b=p.concat(A);x>-1&&x<A.children.length;){let C=A.children[x];if(g=u(C,x,b)(),g[0]===qD)return g;x=typeof g[1]=="number"?g[1]:x+o}}return m}}}function OW(t){return Array.isArray(t)?t:typeof t=="number"?[LW,t]:t==null?WA:[t]}function _W(t,e,r){let s=Em((r||{}).ignore||[]),n=jW(e),i=-1;for(;++i<n.length;)MW(t,"text",o);function o(c,d){let p=-1,f;for(;++p<d.length;){let D=d[p],m=f?f.children:void 0;if(s(D,m?m.indexOf(D):void 0,f))return;f=D}if(f)return u(c,d)}function u(c,d){let p=d[d.length-1],f=n[i][0],D=n[i][1],m=0,g=p.children.indexOf(c),x=!1,b=[];f.lastIndex=0;let A=f.exec(c.value);for(;A;){let C=A.index,v={index:A.index,input:A.input,stack:[...d,c]},P=D(...A,v);if(typeof P=="string"&&(P=P.length>0?{type:"text",value:P}:void 0),P===!1?f.lastIndex=C+1:(m!==C&&b.push({type:"text",value:c.value.slice(m,C)}),Array.isArray(P)?b.push(...P):P&&b.push(P),m=C+A[0].length,x=!0),!f.global)break;A=f.exec(c.value)}return x?(m<c.value.length&&b.push({type:"text",value:c.value.slice(m)}),p.children.splice(g,1,...b)):b=[c],g+b.length}}function jW(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!t[0]||Array.isArray(t[0])?t:[t],s=-1;for(;++s<r.length;){let n=r[s];e.push([RW(n[0]),qW(n[1])])}return e}function RW(t){return typeof t=="string"?new RegExp(ku(t),"g"):t}function qW(t){return typeof t=="function"?t:function(){return t}}function UW(){return{transforms:[GW],enter:{literalAutolink:zW,literalAutolinkEmail:eh,literalAutolinkHttp:eh,literalAutolinkWww:eh},exit:{literalAutolink:JW,literalAutolinkEmail:WW,literalAutolinkHttp:VW,literalAutolinkWww:HW}}}function zW(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function eh(t){this.config.enter.autolinkProtocol.call(this,t)}function VW(t){this.config.exit.autolinkProtocol.call(this,t)}function HW(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function WW(t){this.config.exit.autolinkEmail.call(this,t)}function JW(t){this.exit(t)}function GW(t){_W(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KW],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),XW]],{ignore:["link","linkReference"]})}function KW(t,e,r,s,n){let i="";if(!JA(n)||(/^w/i.test(e)&&(r=e+r,e="",i="http://"),!YW(r)))return!1;let o=QW(r+s);if(!o[0])return!1;let u={type:"link",title:null,url:i+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function XW(t,e,r,s){return!JA(s,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}function YW(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function QW(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let r=e[0],s=r.indexOf(")"),n=RD(t,"("),i=RD(t,")");for(;s!==-1&&n>i;)t+=r.slice(0,s+1),r=r.slice(s+1),s=r.indexOf(")"),i++;return[t,r]}function JA(t,e){let r=t.input.charCodeAt(t.index-1);return(t.index===0||xi(r)||qc(r))&&(!e||r!==47)}function ZW(){this.buffer()}function eJ(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function tJ(){this.buffer()}function rJ(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function sJ(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=cs(this.sliceSerialize(t)).toLowerCase(),r.label=e}function nJ(t){this.exit(t)}function iJ(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=cs(this.sliceSerialize(t)).toLowerCase(),r.label=e}function aJ(t){this.exit(t)}function oJ(){return{enter:{gfmFootnoteCallString:ZW,gfmFootnoteCall:eJ,gfmFootnoteDefinitionLabelString:tJ,gfmFootnoteDefinition:rJ},exit:{gfmFootnoteCallString:sJ,gfmFootnoteCall:nJ,gfmFootnoteDefinitionLabelString:iJ,gfmFootnoteDefinition:aJ}}}function uJ(){return{canContainEols:["delete"],enter:{strikethrough:lJ},exit:{strikethrough:cJ}}}function lJ(t){this.enter({type:"delete",children:[]},t)}function cJ(t){this.exit(t)}function pJ(){return{enter:{table:hJ,tableData:UD,tableHeader:UD,tableRow:fJ},exit:{codeText:mJ,table:dJ,tableData:th,tableHeader:th,tableRow:th}}}function hJ(t){let e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function dJ(t){this.exit(t),this.data.inTable=void 0}function fJ(t){this.enter({type:"tableRow",children:[]},t)}function th(t){this.exit(t)}function UD(t){this.enter({type:"tableCell",children:[]},t)}function mJ(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,yJ));let r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function yJ(t,e){return e==="|"?e:t}function DJ(){return{exit:{taskListCheckValueChecked:zD,taskListCheckValueUnchecked:zD,paragraph:gJ}}}function zD(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function gJ(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let s=r.children[0];if(s&&s.type==="text"){let n=e.children,i=-1,o;for(;++i<n.length;){let u=n[i];if(u.type==="paragraph"){o=u;break}}o===r&&(s.value=s.value.slice(1),s.value.length===0?r.children.shift():r.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,r.position.start=Object.assign({},s.position.start)))}}this.exit(t)}function xJ(){return[UW(),oJ(),uJ(),pJ(),DJ()]}function bJ(){let t=xJ(),e=t.find(r=>r.enter.literalAutolink);return e.transforms=[],t}var Se={eof:null,exclamationMark:33,quotationMark:34,percentSign:37,apostrophe:39,dash:45,dot:46,slash:47,colon:58,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,leftSquareBracket:91,rightSquareBracket:93,underscore:95,graveAccent:96,leftCurlyBrace:123,rightCurlyBrace:125},EJ={cdataOpeningString:"CDATA["},yr={data:"data",lineEnding:"lineEnding",htmlText:"htmlText",htmlTextData:"htmlTextData"},CJ={name:"htmlText",tokenize:AJ,add:"before"};function AJ(t,e,r){let s=this,n,i,o;return u;function u(S){return ml(S===Se.lessThan,"expected `<`"),t.enter(yr.htmlText),t.enter(yr.htmlTextData),t.consume(S),c}function c(S){return S===Se.exclamationMark?(t.consume(S),d):S===Se.slash?(t.consume(S),T):S===Se.questionMark?(t.consume(S),v):Mt(S)?(t.consume(S),I):r(S)}function d(S){return S===Se.dash?(t.consume(S),p):S===Se.leftSquareBracket?(t.consume(S),i=0,g):Mt(S)?(t.consume(S),C):r(S)}function p(S){return S===Se.dash?(t.consume(S),m):r(S)}function f(S){return S===Se.eof?r(S):S===Se.dash?(t.consume(S),D):Fe(S)?(o=f,M(S)):(t.consume(S),f)}function D(S){return S===Se.dash?(t.consume(S),m):f(S)}function m(S){return S===Se.greaterThan?z(S):S===Se.dash?D(S):f(S)}function g(S){let te=EJ.cdataOpeningString;return S===te.charCodeAt(i++)?(t.consume(S),i===te.length?x:g):r(S)}function x(S){return S===Se.eof?r(S):S===Se.rightSquareBracket?(t.consume(S),b):Fe(S)?(o=x,M(S)):(t.consume(S),x)}function b(S){return S===Se.rightSquareBracket?(t.consume(S),A):x(S)}function A(S){return S===Se.greaterThan?z(S):S===Se.rightSquareBracket?(t.consume(S),A):x(S)}function C(S){return S===Se.eof||S===Se.greaterThan?z(S):Fe(S)?(o=C,M(S)):(t.consume(S),C)}function v(S){return S===Se.eof?r(S):S===Se.questionMark?(t.consume(S),P):Fe(S)?(o=v,M(S)):(t.consume(S),v)}function P(S){return S===Se.greaterThan?z(S):v(S)}function T(S){return Mt(S)?(t.consume(S),F):r(S)}function F(S){return S===Se.dash||Yt(S)?(t.consume(S),F):k(S)}function k(S){return Fe(S)?(o=k,M(S)):He(S)?(t.consume(S),k):z(S)}function I(S){return S===Se.dash||Yt(S)?(t.consume(S),I):S===Se.slash||S===Se.greaterThan||it(S)?L(S):r(S)}function L(S){return S===Se.slash?(t.consume(S),z):S===Se.colon||S===Se.underscore||Mt(S)?(t.consume(S),B):Fe(S)?(o=L,M(S)):He(S)?(t.consume(S),L):z(S)}function B(S){return S===Se.dash||S===Se.dot||S===Se.colon||S===Se.underscore||Yt(S)?(t.consume(S),B):O(S)}function O(S){return S===Se.equalsTo?(t.consume(S),R):Fe(S)?(o=O,M(S)):He(S)?(t.consume(S),O):L(S)}function R(S){return S===Se.eof||S===Se.lessThan||S===Se.equalsTo||S===Se.greaterThan||S===Se.graveAccent?r(S):S===Se.quotationMark||S===Se.apostrophe?(t.consume(S),n=S,q):Fe(S)?(o=R,M(S)):He(S)?(t.consume(S),R):(t.consume(S),V)}function q(S){return S===n?(t.consume(S),n=void 0,j):S===Se.eof?r(S):Fe(S)?(o=q,M(S)):(t.consume(S),q)}function V(S){return S===Se.eof||S===Se.quotationMark||S===Se.apostrophe||S===Se.lessThan||S===Se.equalsTo||S===Se.graveAccent?r(S):S===Se.slash||S===Se.greaterThan||it(S)?L(S):(t.consume(S),V)}function j(S){return S===Se.slash||S===Se.greaterThan||it(S)?L(S):r(S)}function z(S){return S===Se.greaterThan?(t.consume(S),t.exit(yr.htmlTextData),t.exit(yr.htmlText),e):r(S)}function M(S){return ml(o,"expected return state"),ml(Fe(S),"expected eol"),t.exit(yr.htmlTextData),t.enter(yr.lineEnding),t.consume(S),t.exit(yr.lineEnding),ae}function ae(S){return ml(s.parser.constructs.disable.null,"expected `disable.null` to be populated"),ce(S)}function ce(S){return t.enter(yr.htmlTextData),o(S)}}function vJ(){return{text:{[Se.lessThan]:CJ}}}function ml(...t){}var vo="liquidNode";function TJ(){return{canContainEols:[vo],enter:{[vo]:t},exit:{[vo]:e}};function t(r){this.enter({type:vo},r),this.buffer()}function e(r){this.resume();let s=br(0,this.stack,-1);s.value=this.sliceSerialize(r),this.exit(r)}}function FJ(){return{text:{[Se.leftCurlyBrace]:{name:"liquid",tokenize:t}}};function t(e,r,s){let n;return i;function i(c){return e.enter("liquidNode"),e.enter(yr.data),e.consume(c),function(d){switch(d){case Se.percentSign:case Se.leftCurlyBrace:return n=d===Se.percentSign?Se.percentSign:Se.rightCurlyBrace,e.consume(d),o;default:return s(d)}}}function o(c){switch(c){case n:return e.consume(c),u;case Se.eof:return s(c);default:return Fe(c)?(e.exit(yr.data),e.enter(yr.lineEnding),e.consume(c),e.exit(yr.lineEnding),e.enter(yr.data),o):(e.consume(c),o)}}function u(c){return c===Se.rightCurlyBrace?(e.consume(c),e.exit(yr.data),e.exit(vo),r):o}}}var VD;function wJ(){return VD??(VD={extensions:[pW(),gW(),Pz({aliasDivider:{charCodeAt:()=>Number.NaN}}),FJ(),vJ()],mdastExtensions:[bJ(),NH(),kz(),TJ()]})}function SJ(t){let{frontMatter:e,content:r}=Su(t),s=PH(r,wJ());if(e){let[n,i]=[e.start,e.end].map(({line:o,column:u,index:c})=>({line:o,column:u+1,offset:c}));s.children.unshift({...e,type:"frontMatter",position:{start:n,end:i}})}return s}var kJ=Ia(nU()),PJ=Ia(oU()),IJ=Ia(dz()),BJ=Ia(Fz()),NJ=/^import\s/,LJ=/^export\s/,$J="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",MJ=/<!---->|<!---?[^>-](?:-?[^-])*-->/,OJ=/^\{\s*\/\*(.*)\*\/\s*\}/,_J=t=>NJ.test(t),GA=t=>LJ.test(t),KA=t=>_J(t)||GA(t),Cm=(t,e)=>{let r=e.indexOf(`
|
|
149
|
-
|
|
150
|
-
`),s=r===-1?e:e.slice(0,r);if(KA(s))return t(s)({type:GA(s)?"export":"import",value:s})};Cm.notInBlock=!0;Cm.locator=t=>KA(t)?-1:1;var XA=(t,e)=>{let r=OJ.exec(e);if(r)return t(r[0])({type:"esComment",value:r[1].trim()})};XA.locator=(t,e)=>t.indexOf("{",e);var jJ=function(){let{Parser:t}=this,{blockTokenizers:e,blockMethods:r,inlineTokenizers:s,inlineMethods:n}=t.prototype;e.esSyntax=Cm,s.esComment=XA,r.splice(r.indexOf("paragraph"),0,"esSyntax"),n.splice(n.indexOf("text"),0,"esComment")},Bi="string",Mn="array",Vc="cursor",$a="indent",Ma="align",Pu="trim",On="group",Ni="fill",In="if-break",Iu="indent-if-break",Bu="line-suffix",Nu="line-suffix-boundary",fn="line",Lu="label",Oa="break-parent",YA=new Set([Vc,$a,Ma,Pu,On,Ni,In,Iu,Bu,Nu,fn,Lu,Oa]);function RJ(t,e,r){if(!t.has(e)){let s=r(e);t.set(e,s)}return t.get(e)}function qJ(t){if(typeof t=="string")return Bi;if(Array.isArray(t))return Mn;if(!t)return;let{type:e}=t;if(YA.has(e))return e}var Gn=qJ,UJ=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function zJ(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
151
|
-
Expected it to be 'string' or 'object'.`;if(Gn(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=UJ([...YA].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
152
|
-
Expected it to be ${s}.`}var VJ=class extends Error{name="InvalidDocError";constructor(t){super(zJ(t)),this.doc=t}},rc=VJ,HD={};function HJ(t,e,r,s){let n=[t];for(;n.length>0;){let i=n.pop();if(i===HD){r(n.pop());continue}r&&n.push(i,HD);let o=Gn(i);if(!o)throw new rc(i);if(e?.(i)!==!1)switch(o){case Mn:case Ni:{let u=o===Mn?i:i.parts;for(let c=u.length,d=c-1;d>=0;--d)n.push(u[d]);break}case In:n.push(i.flatContents,i.breakContents);break;case On:if(s&&i.expandedStates)for(let u=i.expandedStates.length,c=u-1;c>=0;--c)n.push(i.expandedStates[c]);else n.push(i.contents);break;case Ma:case $a:case Iu:case Lu:case Bu:n.push(i.contents);break;case Bi:case Vc:case Pu:case Nu:case fn:case Oa:break;default:throw new rc(i)}}}var WJ=HJ;function JJ(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(i){return RJ(r,i,n)}function n(i){switch(Gn(i)){case Mn:return e(i.map(s));case Ni:return e({...i,parts:i.parts.map(s)});case In:return e({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case On:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(s),u=o[0]):u=s(u),e({...i,contents:u,expandedStates:o})}case Ma:case $a:case Iu:case Lu:case Bu:return e({...i,contents:s(i.contents)});case Bi:case Vc:case Pu:case Nu:case fn:case Oa:return e(i);default:throw new rc(i)}}}function WD(t){if(t.length>0){let e=br(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function GJ(t){let e=new Set,r=[];function s(i){if(i.type===Oa&&WD(r),i.type===On){if(r.push(i),e.has(i))return!1;e.add(i)}}function n(i){i.type===On&&r.pop().break&&WD(r)}WJ(t,s,n,!0)}function si(t,e=nd){return JJ(t,r=>typeof r=="string"?QA(e,r.split(`
|
|
153
|
-
`)):r)}var KJ=vW;function rd(t){return{type:$a,contents:t}}function ks(t,e){return{type:Ma,contents:e,n:t}}function sd(t){return ks({type:"root"},t)}var sc={type:Oa};function Am(t){return{type:Ni,parts:t}}function _l(t,e={}){return KJ(e.expandedStates),{type:On,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function XJ(t,e="",r={}){return{type:In,breakContents:t,flatContents:e,groupId:r.groupId}}function QA(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var ZA={type:fn},ev={type:fn,soft:!0},vm={type:fn,hard:!0},Rt=[vm,sc],YJ={type:fn,hard:!0,literal:!0},nd=[YJ,sc],QJ="cr",ZJ="crlf",eG="\r",tG=`\r
|
|
154
|
-
`,rG=`
|
|
155
|
-
`,sG=rG;function nG(t){return t===QJ?eG:t===ZJ?tG:sG}var iG=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,aG=12288,oG=65510,uG=[12288,12288,65281,65376,65504,65510],lG=4352,cG=262141,tv=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],rv=(t,e)=>{let r=0,s=Math.floor(t.length/2)-1;for(;r<=s;){let n=Math.floor((r+s)/2),i=n*2;if(e<t[i])s=n-1;else if(e>t[i+1])r=n+1;else return!0}return!1},JD=19968,[pG,hG]=dG(tv);function dG(t){let e=t[0],r=t[1];for(let s=0;s<t.length;s+=2){let n=t[s],i=t[s+1];if(JD>=n&&JD<=i)return[n,i];i-n>r-e&&(e=n,r=i)}return[e,r]}var fG=t=>t<aG||t>oG?!1:rv(uG,t),mG=t=>t>=pG&&t<=hG?!0:t<lG||t>cG?!1:rv(tv,t),yG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,DG=t=>yG.test(t),gG=/[^\x20-\x7F]/;function xG(t){if(!t)return 0;if(!gG.test(t))return t.length;let e=0;t=t.replace(iG(),r=>(e+=DG(r)?1:2,""));for(let r of t){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(e+=fG(s)||mG(s)?2:1)}return e}var Tm=xG,bG={type:0},EG={type:1},sv={value:"",length:0,queue:[],get root(){return sv}};function nv(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],n="",i=0,o=0,u=0;for(let g of s)switch(g.type){case 0:p(),r.useTabs?c(1):d(r.tabWidth);break;case 3:{let{string:x}=g;p(),n+=x,i+=x.length;break}case 2:{let{width:x}=g;o+=1,u+=x;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return D(),{...t,value:n,length:i,queue:s};function c(g){n+=" ".repeat(g),i+=r.tabWidth*g}function d(g){n+=" ".repeat(g),i+=g}function p(){r.useTabs?f():D()}function f(){o>0&&c(o),m()}function D(){u>0&&d(u),m()}function m(){o=0,u=0}}function CG(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let s;return typeof e=="number"?e<0?s=EG:s={type:2,width:e}:s={type:3,string:e},nv(t,s,r)}function AG(t,e){return nv(t,bG,e)}function vG(t){let e=0;for(let r=t.length-1;r>=0;r--){let s=t[r];if(s===" "||s===" ")e++;else break}return e}function iv(t){let e=vG(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var TG=class{#e=[];#t="";#s=0;#n=[];#r=[];#i(){let t=this.#t;t!==""&&(this.#e.push(t),this.#s+=t.length,this.#t="");for(let e of this.#r)this.#n.push(Math.min(e,this.#s));this.#r.length=0}markPosition(){if(this.#n.length+this.#r.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#r.push(this.#s+this.#t.length)}write(t){this.#t+=t}trim(){let{text:t,count:e}=iv(this.#t);return this.#t=t,this.#i(),e}finish(){return this.#i(),{text:this.#e.join(""),positions:this.#n}}},FG=TG,Wr=Symbol("MODE_BREAK"),bs=Symbol("MODE_FLAT"),id=Symbol("DOC_FILL_PRINTED_LENGTH");function yl(t,e,r,s,n,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=e.length,u=!1,c=[t],d="";for(;r>=0;){if(c.length===0){if(o===0)return!0;c.push(e[--o]);continue}let{mode:p,doc:f}=c.pop(),D=Gn(f);switch(D){case Bi:f&&(u&&(d+=" ",r-=1,u=!1),d+=f,r-=Tm(f));break;case Mn:case Ni:{let m=D===Mn?f:f.parts,g=f[id]??0;for(let x=m.length-1;x>=g;x--)c.push({mode:p,doc:m[x]});break}case $a:case Ma:case Iu:case Lu:c.push({mode:p,doc:f.contents});break;case Pu:{let{text:m,count:g}=iv(d);d=m,r+=g;break}case On:{if(i&&f.break)return!1;let m=f.break?Wr:p,g=f.expandedStates&&m===Wr?br(0,f.expandedStates,-1):f.contents;c.push({mode:m,doc:g});break}case In:{let m=(f.groupId?n[f.groupId]||bs:p)===Wr?f.breakContents:f.flatContents;m&&c.push({mode:p,doc:m});break}case fn:if(p===Wr||f.hard)return!0;f.soft||(u=!0);break;case Bu:s=!0;break;case Nu:if(s)return!1;break}}return!1}function wG(t,e){let r=Object.create(null),s=e.printWidth,n=nG(e.endOfLine),i=0,o=[{indent:sv,mode:Wr,doc:t}],u=!1,c=[],d=new FG;for(GJ(t);o.length>0;){let{indent:g,mode:x,doc:b}=o.pop();switch(Gn(b)){case Bi:{let A=n!==`
|
|
156
|
-
`?Ut(0,b,`
|
|
157
|
-
`,n):b;A&&(d.write(A),o.length>0&&(i+=Tm(A)));break}case Mn:for(let A=b.length-1;A>=0;A--)o.push({indent:g,mode:x,doc:b[A]});break;case Vc:d.markPosition();break;case $a:o.push({indent:AG(g,e),mode:x,doc:b.contents});break;case Ma:o.push({indent:CG(g,b.n,e),mode:x,doc:b.contents});break;case Pu:i-=d.trim();break;case On:{let A=(function(){if(x===bs&&!u)return{indent:g,mode:b.break?Wr:bs,doc:b.contents};u=!1;let C=s-i,v=c.length>0,P={indent:g,mode:bs,doc:b.contents};if(!b.break&&yl(P,o,C,v,r))return P;if(!b.expandedStates)return{indent:g,mode:Wr,doc:b.contents};if(!b.break)for(let T=1;T<b.expandedStates.length-1;T++){let F={indent:g,mode:bs,doc:b.expandedStates[T]};if(yl(F,o,C,v,r))return F}return{indent:g,mode:Wr,doc:br(0,b.expandedStates,-1)}})();o.push(A),b.id&&(r[b.id]=A.mode);break}case Ni:{let A=s-i,C=b[id]??0,{parts:v}=b,P=v.length-C;if(P===0)break;let T=v[C+0],F=v[C+1],k={indent:g,mode:bs,doc:T},I={indent:g,mode:Wr,doc:T},L=yl(k,[],A,c.length>0,r,!0);if(P===1){L?o.push(k):o.push(I);break}let B={indent:g,mode:bs,doc:F},O={indent:g,mode:Wr,doc:F};if(P===2){L?o.push(B,k):o.push(O,I);break}let R=v[C+2],q={indent:g,mode:x,doc:{...b,[id]:C+2}},V=yl({indent:g,mode:bs,doc:[T,F,R]},[],A,c.length>0,r,!0);o.push(q),V?o.push(B,k):L?o.push(O,k):o.push(O,I);break}case In:case Iu:{let A=b.groupId?r[b.groupId]:x;if(A===Wr){let C=b.type===In?b.breakContents:b.negate?b.contents:rd(b.contents);C&&o.push({indent:g,mode:x,doc:C})}if(A===bs){let C=b.type===In?b.flatContents:b.negate?rd(b.contents):b.contents;C&&o.push({indent:g,mode:x,doc:C})}break}case Bu:c.push({indent:g,mode:x,doc:b.contents});break;case Nu:c.length>0&&o.push({indent:g,mode:x,doc:vm});break;case fn:switch(x){case bs:if(!b.hard){b.soft||(d.write(" "),i+=1);break}u=!0;case Wr:if(c.length>0){o.push({indent:g,mode:x,doc:b},...c.reverse()),c.length=0;break}b.literal?(d.write(n),i=0,g.root&&(g.root.value&&d.write(g.root.value),i=g.root.length)):(d.trim(),d.write(n+g.value),i=g.length);break}break;case Lu:o.push({indent:g,mode:x,doc:b.contents});break;case Oa:break;default:throw new rc(b)}o.length===0&&c.length>0&&(o.push(...c.reverse()),c.length=0)}let{text:p,positions:f}=d.finish();if(f.length!==2)return{formatted:p};let[D,m]=f;return{formatted:p,cursorNodeStart:D,cursorNodeText:p.slice(D,m)}}var SG=Array.prototype.toReversed??function(){return[...this].reverse()},kG=bm("toReversed",function(){if(Array.isArray(this))return SG}),PG=kG;function IG(){let t=globalThis,e=t.process?.platform;if(typeof e=="string")return e.startsWith("win");let r=t.Deno?.build?.os;return typeof r=="string"?r==="windows":t.navigator?.platform?.startsWith("Win")??!1}var BG=IG();function av(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function NG(t){return t=av(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function LG(t){t=av(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function $G(t){return BG?LG(t):NG(t)}var MG=t=>String(t).split(/[/\\]/).pop(),OG=t=>String(t).startsWith("file:");function GD(t,e){if(!e)return;let r=MG(e).toLowerCase();return t.find(({filenames:s})=>s?.some(n=>n.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(n=>r.endsWith(n)))}function _G(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var jG=void 0;function KD(t,e){if(e){if(OG(e))try{e=$G(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function RG(t,e){let r=PG(0,t.plugins).flatMap(s=>s.languages??[]);return(_G(r,e.language)??GD(r,e.physicalFile)??GD(r,e.file)??KD(r,e.physicalFile)??KD(r,e.file)??jG?.(r,e.physicalFile))?.parsers[0]}var XD=RG;function qG(t){return!!t?.[HA]}var UG=qG,zG=function(){let t=this.Parser.prototype;t.blockMethods=["frontMatter",...t.blockMethods],t.blockTokenizers.frontMatter=e;function e(r,s){let{frontMatter:n}=Su(s);if(n)return r(n.raw)({...n,type:"frontMatter"})}e.onlyAtStart=!0},VG=zG,HG=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,li=new RegExp("(?:[\\u{21}-\\u{2f}\\u{3a}-\\u{40}\\u{5b}-\\u{60}\\u{7b}-\\u{7e}\\u{3000}\\u{ff5e}]|\\p{General_Category=Connector_Punctuation}|\\p{General_Category=Dash_Punctuation}|\\p{General_Category=Close_Punctuation}|\\p{General_Category=Final_Punctuation}|\\p{General_Category=Initial_Punctuation}|\\p{General_Category=Other_Punctuation}|\\p{General_Category=Open_Punctuation})","u"),ov=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),uv=new Set([...ov,"tableCell","paragraph","heading"]),su="non-cjk",Ws="cj-letter",ma="k-letter",nc="cjk-punctuation",WG=new RegExp("\\p{Script_Extensions=Hangul}","u");function Fm(t){let e=[],r=t.split(/([\t\n ]+)/);for(let[n,i]of r.entries()){if(n%2===1){e.push({type:"whitespace",value:/\n/.test(i)?`
|
|
158
|
-
`:" "});continue}if((n===0||n===r.length-1)&&i==="")continue;let o=i.split(new RegExp(`(${HG.source})`,"u"));for(let[u,c]of o.entries())if(!((u===0||u===o.length-1)&&c==="")){if(u%2===0){c!==""&&s({type:"word",value:c,kind:su,isCJ:!1,hasLeadingPunctuation:li.test(c[0]),hasTrailingPunctuation:li.test(br(0,c,-1))});continue}if(li.test(c)){s({type:"word",value:c,kind:nc,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(WG.test(c)){s({type:"word",value:c,kind:ma,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}s({type:"word",value:c,kind:Ws,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return e;function s(n){let i=br(0,e,-1);i?.type==="word"&&!o(su,nc)&&[i.value,n.value].every(u=>!/\u3000/.test(u))&&e.push({type:"whitespace",value:""}),e.push(n);function o(u,c){return i.kind===u&&n.kind===c||i.kind===c&&n.kind===u}}}function ci(t,e){let r=e.originalText.slice(t.position.start.offset,t.position.end.offset);if(e.parser!=="mdx"){let i=t.children[0];i&&(r=e.originalText.slice(t.position.start.offset,i.position.start.offset))}let{numberText:s,leadingSpaces:n}=r.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/).groups;return{number:Number(s),leadingSpaces:n}}function lv(t,e){return!t.ordered||t.children.length<2||ci(t.children[1],e).number!==1?!1:ci(t.children[0],e).number!==0?!0:t.children.length>2&&ci(t.children[2],e).number===1}function cv(t,e){let{value:r}=t;return t.position.end.offset===e.length&&r.endsWith(`
|
|
159
|
-
`)&&e.endsWith(`
|
|
160
|
-
`)?r.slice(0,-1):r}function ds(t,e){return(function r(s,n,i){let o={...e(s,n,i)};return o.children&&(o.children=o.children.map((u,c)=>r(u,c,[o,...i]))),o})(t,null,[])}function pv(t){if(t?.type!=="link"||t.children.length!==1)return!1;let[e]=t.children;return Ql(t)===Ql(e)&&Zl(t)===Zl(e)}function wm(t){let e;if(t.type==="html")e=t.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;t.type==="esComment"?r=t:t.type==="paragraph"&&t.children.length===1&&t.children[0].type==="esComment"&&(r=t.children[0]),r&&(e=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return e?e[1]||"next":!1}function Sm(t,e){return r(t,e,s=>s.ordered===t.ordered);function r(s,n,i){let o=-1;for(let u of n.children)if(u.type===s.type&&i(u)?o++:o=-1,u===s)return o}}function JG(t){return t.index>0&&wm(t.previous)==="next"}function km(t){let{start:e,end:r}=t.position;return e.line!==r.line}var ic=t=>t?.type==="whitespace"&&t.value===`
|
|
161
|
-
`;function GG(){return t=>ds(t,(e,r,[s])=>e.type!=="html"||MJ.test(e.value)||uv.has(s.type)?e:{...e,type:"jsx"})}var KG=GG,XG=function(){let t=this.Parser.prototype,e=t.inlineMethods;e.splice(e.indexOf("text"),0,"liquid"),t.inlineTokenizers.liquid=r;function r(s,n){let i=n.match(/^(\{%.*?%\}|\{\{.*?\}\})/s);if(i)return s(i[0])({type:"liquidNode",value:i[0]})}r.locator=function(s,n){return s.indexOf("{",n)}},YG=XG,QG=function(){let t="wikiLink",e=/^\[\[(?<linkContents>.+?)\]\]/s,r=this.Parser.prototype,s=r.inlineMethods;s.splice(s.indexOf("link"),0,t),r.inlineTokenizers.wikiLink=n;function n(i,o){let u=e.exec(o);if(u){let c=u.groups.linkContents.trim();return i(u[0])({type:t,value:c})}}n.locator=function(i,o){return i.indexOf("[",o)}},ZG=QG;function eK(t){let e=(0,BJ.default)().use(IJ.default,{commonmark:!0,blocks:[$J]}).use(kJ.default).use(VG).use(PJ.default).use(jJ).use(YG).use(KG).use(ZG);return e.run(e.parse(t))}var tK="format",rK=/<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/m,sK=/<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/m,hv=t=>Su(t).content.trimStart().match(sK)?.index===0,nK=t=>Su(t).content.trimStart().match(rK)?.index===0,iK=t=>{let{frontMatter:e}=Su(t),r=`<!-- @${tK} -->`;return e?`${e.raw}
|
|
162
|
-
|
|
163
|
-
${r}
|
|
164
|
-
|
|
165
|
-
${t.slice(e.end.index)}`:`${r}
|
|
166
|
-
|
|
167
|
-
${t}`};function dv(t){return{astFormat:"mdast",hasPragma:hv,hasIgnorePragma:nK,locStart:Ql,locEnd:Zl,parse:t}}var YD=dv(SJ),aK=dv(eK),Pm={};jc(Pm,{mdast:()=>AX});function oK(t,e){let r=t.matchAll(new RegExp(`(?:${ku(e)})+`,"g"));return r.reduce||(r=[...r]),r.reduce((s,[n])=>Math.max(s,n.length),0)/e.length}var fv=oK;function uK(t,e){let{node:r}=t;switch(r.type){case"code":{let{lang:s}=r;if(!s)return;let n;return s==="angular-ts"?n=XD(e,{language:"typescript"}):s==="angular-html"?n="angular":n=XD(e,{language:s}),n?async i=>{let o={parser:n};s==="ts"||s==="typescript"?o.filepath="dummy.ts":s==="tsx"&&(o.filepath="dummy.tsx");let u=await i(e.parser==="mdx"?cv(r,e.originalText):r.value,o),c=e.__inJsTemplate?"~":"`",d=c.repeat(Math.max(3,fv(r.value,c)+1));return sd([d,r.lang,r.meta?" "+r.meta:"",Rt,si(u),Rt,d])}:void 0}case"import":case"export":return s=>s(r.value,{__onHtmlBindingRoot:n=>lK(n,r.type),parser:"babel"});case"jsx":return s=>s(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function lK(t,e){let{program:{body:r}}=t;if(r.some(s=>!(s.type==="ImportDeclaration"||s.type==="ExportDefaultDeclaration"||s.type==="ExportNamedDeclaration")))throw new Error(`Unexpected '${e}' in MDX.`)}var cK=uK,QD=Ia(mm()),pK=new Set(["position","raw"]);function mv(t,e,r){if((t.type==="code"||t.type==="yaml"||t.type==="import"||t.type==="export"||t.type==="jsx")&&delete e.value,t.type==="list"&&delete e.isAligned,(t.type==="list"||t.type==="listItem")&&delete e.spread,t.type==="text")return null;if(t.type==="inlineCode"&&(e.value=Ut(0,t.value,`
|
|
168
|
-
`," ")),(t.type==="definition"||t.type==="linkReference"||t.type==="imageReference")&&(e.label=(0,QD.default)(t.label)),t.type==="imageReference"&&t.referenceType==="collapsed"&&(e.alt=(0,QD.default)(t.alt)),(t.type==="link"||t.type==="image")&&t.url&&t.url.includes("("))for(let s of"<>")e.url=Ut(0,t.url,s,encodeURIComponent(s));if((t.type==="definition"||t.type==="link"||t.type==="image")&&t.title&&(e.title=Ut(0,t.title,/\\(?=["')])/g,"")),r?.type==="root"&&r.children.length>0&&(r.children[0]===t||UG(r.children[0])&&r.children[1]===t)&&t.type==="html"&&hv(t.value))return null}mv.ignoredProperties=pK;function hK(t,e){let r=e.originalText.slice(t.node.position.start.offset,t.node.position.end.offset);return e.parser==="mdx"?r:t.node.type==="list"&&t.findAncestor(s=>s.type==="blockquote")&&e.proseWrap!=="always"?r.replace(/\n>\s*$/,""):r}var dK=Ia(mm());function fK(t,e){let r=t.match(new RegExp(`(${ku(e)})+`,"g"));if(r===null)return 1;let s=new Map,n=0;for(let i of r){let o=i.length/e.length;s.set(o,!0),o>n&&(n=o)}for(let i=1;i<n;i++)if(!s.get(i))return i;return n+1}var mK=fK,yv=Object.freeze({character:"'",codePoint:39}),Dv=Object.freeze({character:'"',codePoint:34}),yK=Object.freeze({preferred:yv,alternate:Dv}),DK=Object.freeze({preferred:Dv,alternate:yv});function gK(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?yK:DK,{length:n}=t,i=0,o=0;for(let u=0;u<n;u++){let c=t.charCodeAt(u);c===r.codePoint?i++:c===s.codePoint&&o++}return(i>o?s:r).character}var xK=class extends Error{name="UnexpectedNodeError";constructor(e,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(e[s])}.`),this.node=e}},bK=xK;function Gt(t,e,r,s={}){let{processor:n=r}=s,i=[];return t.each(()=>{let o=n(t);o!==!1&&(i.length>0&&EK(t)&&(i.push(Rt),AK(t,e)&&i.push(Rt)),i.push(o))},"children"),i}function EK({node:t,parent:e}){let r=ov.has(t.type),s=t.type==="html"&&uv.has(e.type);return!r&&!s}var CK=new Set(["listItem","definition"]);function AK(t,e){let{node:r,previous:s,parent:n}=t;if(e.parser==="mdx"){if(ZD(s,e)||r.type==="list"&&n.type==="listItem"&&(s.type==="code"||s.type==="paragraph")&&s.position.end.line+1<r.position.start.line)return!0}else{if(km(r)&&r.position.start.line<s.position.end.line)return!1;if(vK(t)||r.type==="list"&&n.type==="listItem"&&(s.type==="code"||s.type==="paragraph")&&s.position.end.line+1<r.position.start.line)return!0}let i=s.type===r.type&&CK.has(r.type),o;e.parser==="mdx"?o=n.type==="listItem"&&(r.type==="list"||!ZD(n,e)):o=n.type==="listItem"&&(r.type==="list"||!t.callParent(gv));let u=wm(s)==="next",c=r.type==="html"&&s.type==="html"&&s.position.end.line+1===r.position.start.line,d=e.parser!=="mdx"&&r.type==="html"&&s.type==="paragraph"&&s.position.end.line+1===r.position.start.line,p=r.type==="html"&&n.type==="listItem"&&s.type==="paragraph"&&s.position.end.line+1===r.position.start.line;return!(i||o||u||c||d||p)}function ZD(t,e){return t.type==="listItem"&&(t.spread||e.originalText.charAt(t.position.end.offset-1)===`
|
|
169
|
-
`)}function gv({node:t,parent:e,next:r}){return t.type==="listItem"&&(t.spread||e.type==="list"&&r?.type==="listItem"&&t.position.end.line+1<r.position.start.line)}function vK(t){return t.index===0?!1:gv({node:t.previous,parent:t.parent,next:t.node})}function TK(t,e,r){return["#".repeat(t.node.depth)+" ",Gt(t,e,r)]}function FK(t,e,r){let{originalText:s}=e,{node:n}=t,i=n.position.end.offset,o=s.lastIndexOf(`
|
|
170
|
-
`,i-1)+1,u=s.slice(o,i),c=Math.max(u.indexOf("="),u.indexOf("-")),d=u.slice(c);return[Gt(t,e,r),Rt,d]}function wK(t,e,r){return e.parser!=="mdx"&&km(t.node)?FK(t,e,r):TK(t,e,r)}var SK=999999999;function kK(t,e,r){let{node:s}=t,n=Sm(s,t.parent),i=lv(s,e),o=PK(t);return Gt(t,e,r,{processor(){let u=d(),{node:c}=t;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[u,eg(t,e,r,u)];return[u,ks(" ".repeat(u.length),eg(t,e,r,u))];function d(){let p=s.ordered?(t.isFirst?s.start:i?1:Math.min(s.start+t.index,SK))+(n%2===0?". ":") "):n%2===0?"- ":"* ",f=s.isAligned&&s.ordered?xv(p,e):p;if(f.length>=o)return f;f=f.trimEnd();let D=Math.min(o-f.length,4);D>0&&(f+=" ".repeat(D));let m=Math.min(o-f.length,3);return m>0&&(f=" ".repeat(m)+f),f}}})}function eg(t,e,r,s){let{node:n}=t,i=n.checked===null?"":n.checked?"[x] ":"[ ] ";return[i,Gt(t,e,r,{processor({node:o,isFirst:u}){if(u&&o.type!=="list"||o.type==="code"&&o.isIndented)return ks(" ".repeat(i.length),r());let c=" ".repeat(bv(e.tabWidth-s.length,0,3));return[c,ks(c,r())]}})]}function PK(t){let{node:e,next:r}=t;return e.checked===null||!(r?.type==="code"&&r.isIndented)?0:4+[.../^[ \t]*/.exec(r.value)?.[0]??""].reduce((s,n)=>s+(n===" "?4:1),0)+1}function IK(t,e,r){let{node:s}=t,n=Sm(s,t.parent),i=lv(s,e);return Gt(t,e,r,{processor(){let o=c(),{node:u}=t;if(u.children.length===2&&u.children[1].type==="html"&&u.children[0].position.start.column!==u.children[1].position.start.column)return[o,tg(t,e,r,o)];return[o,ks(" ".repeat(o.length),tg(t,e,r,o))];function c(){let d=s.ordered?(t.isFirst?s.start:i?1:s.start+t.index)+(n%2===0?". ":") "):n%2===0?"- ":"* ";return(s.isAligned||s.hasIndentedCodeblock)&&s.ordered?xv(d,e):d}}})}function tg(t,e,r,s){let{node:n}=t,i=n.checked===null?"":n.checked?"[x] ":"[ ] ";return[i,Gt(t,e,r,{processor({node:o,isFirst:u}){if(u&&o.type!=="list")return ks(" ".repeat(i.length),r());let c=" ".repeat(bv(e.tabWidth-s.length,0,3));return[c,ks(c,r())]}})]}function xv(t,e){let r=s();return t+" ".repeat(r>=4?0:r);function s(){let n=t.length%e.tabWidth;return n===0?0:e.tabWidth-n}}function bv(t,e,r){return Math.max(e,Math.min(t,r))}function BK(t,e,r){let s=t.map(r,"children");return NK(s)}function NK(t){let e=[""];return(function r(s){for(let n of s){let i=Gn(n);if(i===Mn){r(n);continue}let o=n,u=[];i===Ni&&([o,...u]=n.parts),e.push([e.pop(),o],...u)}})(t),Am(e)}function LK(t,e){let r=[""];return t.each(()=>{let{node:s}=t,n=e();switch(s.type){case"whitespace":if(Gn(n)!==Bi){r.push(n,"");break}default:r.push([r.pop(),n])}},"children"),Am(r)}function $K(t,e,r){let{node:s}=t,n=[],i=t.map(()=>t.map(({index:f})=>{let D=wG(r(),e).formatted,m=Tm(D);return n[f]=Math.max(n[f]??3,m),{text:D,width:m}},"children"),"children"),o=c(!1);if(e.proseWrap!=="never")return[sc,o];let u=c(!0);return[sc,_l(XJ(u,o))];function c(f){return QA(vm,[p(i[0],f),d(f),...i.slice(1).map(D=>p(D,f))].map(D=>`| ${D.join(" | ")} |`))}function d(f){return n.map((D,m)=>{if(e.parser!=="mdx"&&m>=i[0].length)return null;let g=s.align[m],x=g==="center"||g==="left"?":":"-",b=g==="center"||g==="right"?":":"-",A=f?"-":"-".repeat(D-2);return`${x}${A}${b}`}).filter(D=>D!==null)}function p(f,D){return f.map(({text:m,width:g},x)=>{if(D)return m;let b=n[x]-g,A=s.align[x],C=0;A==="right"?C=b:A==="center"&&(C=Math.floor(b/2));let v=b-C;return`${" ".repeat(C)}${m}${" ".repeat(v)}`})}}var MK=new Set(["tableCell","link","wikiLink"]),rg=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function OK({parent:t}){if(t.usesCJSpaces===void 0){let e={" ":0,"":0},{children:r}=t;for(let s=1;s<r.length-1;++s){let n=r[s];if(n.type==="whitespace"&&(n.value===" "||n.value==="")){let i=r[s-1].kind,o=r[s+1].kind;(i===Ws&&o===su||i===su&&o===Ws)&&++e[n.value]}}t.usesCJSpaces=e[" "]>e[""]}return t.usesCJSpaces}function _K(t,e){if(e)return!0;let{previous:r,next:s}=t;if(!r||!s)return!0;let n=r.kind,i=s.kind;return sg(n)&&sg(i)||n===ma&&i===Ws||i===ma&&n===Ws?!0:n===nc||i===nc||n===Ws&&i===Ws?!1:rg.has(s.value[0])||rg.has(br(0,r.value,-1))?!0:r.hasTrailingPunctuation||s.hasLeadingPunctuation?!1:OK(t)}function sg(t){return t===su||t===ma}function jK(t,e,r,s,n){if(r!=="always"||t.hasAncestor(u=>MK.has(u.type)||u.type==="heading"&&(n.parser==="mdx"||!km(u))))return!1;if(s)return e!=="";let{previous:i,next:o}=t;return!i||!o?!0:e===""?!1:i.kind===ma&&o.kind===Ws||o.kind===ma&&i.kind===Ws?!0:!(i.isCJ||o.isCJ)}function ng(t,e,r,s,n){if(r==="preserve"&&e===`
|
|
171
|
-
`)return Rt;let i=e===" "||e===`
|
|
172
|
-
`&&_K(t,s);return jK(t,e,r,s,n)?i?ZA:ev:i?" ":""}var RK=/^(?:=+|-+)$/;function qK(t,e){let{node:r}=t,s=t.findAncestor(i=>i.type==="emphasis"||i.type==="strong"),n=r.value;return s?(t.isFirst&&(n.startsWith("*")||n.startsWith("_"))&&t.callParent(()=>t.isFirst)&&t.grandparent===s&&(n=`\\${n}`),n=Ut(0,n,/(\\+|^|.)(\*+|_+)($|.)/g,(i,o,u,c)=>[...o].every(d=>d==="\\")&&o.length%2===1?i:UK(br(0,o,-1)||br(1,t.previous?.value,-1),u,c[0]||t.next?.value[0])?`${o}\\${u}${c}`:i),n):e.proseWrap==="preserve"&&t.parent.type==="sentence"&&RK.test(n)&&ic(t.previous)&&(t.isLast||ic(t.next))?`\\${n}`:n}function UK(t,e,r){if(!t||!r)return null;let s=/[\p{Space_Separator}\t\n\f\r]/u.test(r),n=/[\p{Space_Separator}\t\n\f\r]/u.test(t),i=li.test(r),o=li.test(t),u=!s&&(!i||i&&(n||o)),c=!n&&(!o||o&&(s||i));return e[0]==="*"?u||c:u?!c||o:c?!u||i:!1}function zK(t){let{node:e}=t,r=Ut(0,Ut(0,e.value,"*","\\*"),new RegExp([`(^|${li.source})(_+)`,`(_+)(${li.source}|$)`].join("|"),"gu"),(i,o,u,c,d)=>Ut(0,u?`${o}${u}`:`${c}${d}`,"_","\\_")),s=(i,o,u)=>i.type==="sentence"&&u===0,n=(i,o,u)=>pv(i.children[u-1]);return r!==e.value&&(t.match(void 0,s,n)||t.match(void 0,s,(i,o,u)=>i.type==="emphasis"&&u===0,n))&&(r=r.replace(/^(\\?[*_])+/,i=>Ut(0,i,"\\",""))),r}function ig(t){let{previous:e,next:r}=t;return e?.type==="sentence"&&br(0,e.children,-1)?.type==="word"&&!br(0,e.children,-1).hasTrailingPunctuation&&!/[\p{Space_Separator}\t\n\f\r]$/u.test(br(0,e.children,-1).value)||r?.type==="sentence"&&r.children[0]?.type==="word"&&!r.children[0].hasLeadingPunctuation&&!/^[\p{Space_Separator}\t\n\f\r]/u.test(r.children[0].value)}function VK(t){let{siblings:e,index:r}=t;if(!e||typeof r!="number")return!1;let s=e[r+2];return s?.type==="whitespace"&&s.value===""}function HK(t){if(!ic(t.node)||t.next?.value!=="-")return!1;let e=t.siblings[t.index+2];return!e||ic(e)}function WK(t,e,r){let{node:s}=t;if(GK(t)){let n=[""],i=Fm(e.originalText.slice(s.position.start.offset,s.position.end.offset));for(let o of i){if(o.type==="word"){n.push([n.pop(),o.value]);continue}let u=ng(t,o.value,e.proseWrap,!0,e);if(Gn(u)===Bi){n.push([n.pop(),u]);continue}n.push(u,"")}return Am(n)}switch(s.type){case"root":return s.children.length===0?"":[JK(t,e,r),Rt];case"paragraph":return BK(t,e,r);case"sentence":return LK(t,r);case"word":return e.parser!=="mdx"?qK(t,e):zK(t);case"whitespace":{let{next:n}=t,i=n&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(n.value)&&!VK(t)&&!(e.proseWrap==="preserve"&&HK(t))?"never":e.proseWrap;return ng(t,s.value,i,!1,e)}case"emphasis":{let n;if(pv(s.children[0]))n=e.originalText[s.position.start.offset];else{let i=ig(t),o=t.callParent(({node:u})=>u.type==="strong"&&ig(t));n=i||o||t.hasAncestor(u=>u.type==="emphasis")?"*":"_"}return[n,Gt(t,e,r),n]}case"strong":return["**",Gt(t,e,r),"**"];case"delete":return["~~",Gt(t,e,r),"~~"];case"inlineCode":{let n=e.proseWrap==="preserve"?s.value:Ut(0,s.value,`
|
|
173
|
-
`," ");e.parser!=="mdx"&&t.hasAncestor(c=>c.type==="tableCell")&&(n=Ut(0,n,"|","\\|"));let i=mK(n,"`"),o="`".repeat(i),u=n.startsWith("`")||n.endsWith("`")||/^[\n ]/.test(n)&&/[\n ]$/.test(n)&&/[^\n ]/.test(n)?" ":"";return[o,u,n,u,o]}case"wikiLink":{let n;return e.proseWrap==="preserve"?n=s.value:n=Ut(0,s.value,/[\t\n]+/g," "),["[[",n,"]]"]}case"link":switch(e.originalText[s.position.start.offset]){case"<":{let n="mailto:";return["<",s.url.startsWith(n)&&e.originalText.slice(s.position.start.offset+1,s.position.start.offset+1+n.length)!==n?s.url.slice(n.length):s.url,">"]}case"[":return["[",Gt(t,e,r),"](",e.parser!=="mdx"&&s.url===""?"<>":rh(s.url,")"),jl(s.title,e),")"];default:return e.originalText.slice(s.position.start.offset,s.position.end.offset)}case"image":return[""),jl(s.title,e),")"];case"blockquote":return["> ",ks("> ",Gt(t,e,r))];case"heading":return wK(t,e,r);case"code":{if(s.isIndented){let o=" ".repeat(4);return ks(o,[o,si(s.value,Rt)])}let n=e.__inJsTemplate?"~":"`",i=n.repeat(Math.max(3,fv(s.value,n)+1));return[i,s.lang||"",s.meta?" "+s.meta:"",Rt,si(e.parser==="mdx"?cv(s,e.originalText):s.value,Rt),Rt,i]}case"html":{let{parent:n,isLast:i}=t,o=n.type==="root"&&i?s.value.trimEnd():s.value,u=/^<!--.*-->$/s.test(o);return si(o,u?Rt:sd(nd))}case"list":return e.parser==="mdx"?IK(t,e,r):kK(t,e,r);case"thematicBreak":{let{ancestors:n}=t,i=n.findIndex(o=>o.type==="list");return i===-1?"---":Sm(n[i],n[i+1])%2===0?"***":"---"}case"linkReference":return["[",Gt(t,e,r),"]",s.referenceType==="full"?Dl(s):s.referenceType==="collapsed"?"[]":""];case"imageReference":{let n=ug(s,e);return s.referenceType==="full"?["![",n,"]",Dl(s)]:[...e.parser==="mdx"?["![",n,"]"]:["!",Dl(s)],s.referenceType==="collapsed"?"[]":""]}case"definition":{let n=e.proseWrap==="always"?ZA:" ";return _l([Dl(s),":",rd([n,e.parser!=="mdx"&&s.url===""?"<>":rh(s.url),s.title===null?"":[n,jl(s.title,e,!1)]])])}case"footnote":return["[^",Gt(t,e,r),"]"];case"footnoteReference":return og(s);case"footnoteDefinition":{let n=s.children.length===1&&s.children[0].type==="paragraph"&&(e.proseWrap==="never"||e.proseWrap==="preserve"&&s.children[0].position.start.line===s.children[0].position.end.line);return[og(s),": ",n?Gt(t,e,r):_l([ks(" ".repeat(4),Gt(t,e,r,{processor:({isFirst:i})=>i?_l([ev,r()]):r()}))])]}case"table":return $K(t,e,r);case"tableCell":return Gt(t,e,r);case"break":return/\s/.test(e.originalText[s.position.start.offset])?[" ",sd(nd)]:["\\",Rt];case"liquidNode":return si(s.value,Rt);case"import":case"export":case"jsx":return s.value.trimEnd();case"esComment":return["{/* ",s.value," */}"];case"math":return["$$",s.meta?" "+s.meta:"",Rt,s.value?[si(s.value,Rt),Rt]:"","$$"];case"inlineMath":return e.originalText.slice(Ql(s),Zl(s));case"text":return si(s.value,Rt);default:throw new bK(s,"Markdown")}}function JK(t,e,r){let s=[],n=null,{children:i}=t.node;for(let[o,u]of i.entries())switch(wm(u)){case"start":n===null&&(n={index:o,offset:u.position.end.offset});break;case"end":n!==null&&(s.push({start:n,end:{index:o,offset:u.position.start.offset}}),n=null);break}return Gt(t,e,r,{processor({index:o}){if(s.length>0){let u=s[0];if(o===u.start.index)return[ag(i[u.start.index]),e.originalText.slice(u.start.offset,u.end.offset),ag(i[u.end.index])];if(u.start.index<o&&o<u.end.index)return!1;if(o===u.end.index)return s.shift(),!1}return r()}})}function ag(t){if(t.type==="html")return t.value;if(t.type==="paragraph"&&Array.isArray(t.children)&&t.children.length===1&&t.children[0].type==="esComment")return["{/* ",t.children[0].value," */}"]}function GK(t){let e=t.findAncestor(r=>r.type==="linkReference"||r.type==="imageReference");return e&&(e.type!=="linkReference"||e.referenceType!=="full")}var KK=(t,e)=>{for(let r of e)t=Ut(0,t,r,encodeURIComponent(r));return t};function rh(t,e=[]){let r=[" ",...Array.isArray(e)?e:[e]];return new RegExp(r.map(s=>ku(s)).join("|")).test(t)?`<${KK(t,"<>")}>`:t}function jl(t,e,r=!0){if(!t)return"";if(r)return" "+jl(t,e,!1);if(e.parser==="mdx"&&(t=Ut(0,t,/\\(?=["')])/g,"")),t.includes('"')&&t.includes("'")&&!t.includes(")"))return`(${t})`;let s=gK(t,e.singleQuote);return t=Ut(0,t,"\\","\\\\"),t=Ut(0,t,s,`\\${s}`),`${s}${t}${s}`}function Dl(t,e){let r=(0,dK.default)(t.label);return e?.parser==="mdx"?`[${r}]`:`[${Ut(0,r,/[\\[\]]/g,s=>`\\${s}`)}]`}function og(t){return`[^${t.label}]`}function ug(t,e){return e.parser!=="mdx"&&t.originalAltText?t.originalAltText:t.alt||""}var XK=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,s=0;for(let n=0;n<e.length&&r.has(e.charAt(n));n++)s++;return s}getTrailingWhitespaceCount(e){let r=this.#e,s=0;for(let n=e.length-1;n>=0&&r.has(e.charAt(n));n--)s++;return s}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(br(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let s=`[${ku([...this.#e].join(""))}]+`,n=new RegExp(r?`(${s})`:s);return e.split(n)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>r.has(s))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>!r.has(s))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,s=>r.has(s))}#t(e){let r=Number.POSITIVE_INFINITY;for(let s of e.split(`
|
|
174
|
-
`)){if(s.length===0)continue;let n=this.getLeadingWhitespaceCount(s);if(n===0)return 0;s.length!==n&&n<r&&(r=n)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
|
|
175
|
-
`).map(s=>s.slice(r)).join(`
|
|
176
|
-
`)}},YK=XK,QK=[" ",`
|
|
177
|
-
`,"\f","\r"," "],ZK=new YK(QK),ac=ZK,eX=/^\\?.$/su,tX=/^\n *>[ >]*$/;function rX(t,e){return e.parser==="mdx"?t=sX(t,e):t=nX(t,e),t=aX(t),e.parser==="mdx"?t=pX(t,e):t=cX(t,e),e.parser!=="mdx"&&(t=hX(t,e)),e.parser==="mdx"?t=fX(t,e):t=dX(t,e),e.parser==="mdx"?t=oX(t):t=uX(t),t}function sX(t,e){return ds(t,r=>{if(r.type!=="text")return r;let{value:s}=r;if(s==="*"||s==="_"||!eX.test(s)||r.position.end.offset-r.position.start.offset===s.length)return r;let n=e.originalText.slice(r.position.start.offset,r.position.end.offset);return tX.test(n)?r:{...r,value:n}})}function nX(t,e){return ds(t,r=>(r.type==="text"&&(r.raw=e.originalText.slice(r.position.start.offset,r.position.end.offset)),r))}function iX(t,e,r){return ds(t,s=>{if(!s.children)return s;let n=[],i,o;for(let u of s.children)i&&e(i,u)?(u=r(i,u),n.splice(-1,1,u),o||(o=!0)):n.push(u),i=u;return o?{...s,children:n}:s})}function aX(t){return iX(t,(e,r)=>e.type==="text"&&r.type==="text",(e,r)=>({type:"text",value:e.value+r.value,position:{start:e.position.start,end:r.position.end}}))}function oX(t){return ds(t,(e,r,[s])=>{if(e.type!=="text")return e;let{value:n}=e;return s.type==="paragraph"&&(r===0&&(n=ac.trimStart(n)),r===s.children.length-1&&(n=ac.trimEnd(n))),{type:"sentence",position:e.position,children:Fm(n)}})}function uX(t){let e=new Set,r=new Set;return s(t,(i,o)=>{if(i.type==="wikiLink"){n(o);return}if(i.type==="text"){if(i.raw.includes("[["))for(let u of o)u.type==="paragraph"&&e.add(u);i.raw.includes("]]")&&n(o)}}),ds(t,(i,o,u)=>{if(i.type!=="text")return i;let c=i.raw,d=u.findIndex(f=>f?.type==="paragraph"),p=d===-1?void 0:u[d];if(p){u.slice(d+1).some(D=>D?.type==="blockquote")&&(c=lX(c,i));let f=u[0];f?.type==="paragraph"&&(o===0&&(c=ac.trimStart(c)),o===f.children.length-1&&(c=ac.trimEnd(c)))}return p&&r.has(p.position)?{type:"text",position:i.position,value:c}:{type:"sentence",position:i.position,children:Fm(c)}});function s(i,o){return(function u(c,d){if(o(c,d),c.children)for(let p of c.children)u(p,[c,...d])})(i,[])}function n(i){for(let o of i)o.type==="paragraph"&&e.has(o)&&r.add(o.position)}}function lX(t,e){let r=/^([ \t]*>[ \t]*)*/,s=t.split(`
|
|
178
|
-
`),n=e.value.split(`
|
|
179
|
-
`);return s.map((i,o)=>{let u=(n[o]??"").match(r)[0]??"";return i.replace(r,u)}).join(`
|
|
180
|
-
`)}function cX(t,e){return ds(t,r=>{if(r.type!=="code")return r;let s=/^\n?(?: {4,}|\t)/.test(e.originalText.slice(r.position.start.offset,r.position.end.offset));return r.isIndented=s,r})}function pX(t,e){return ds(t,(r,s,n)=>{if(r.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(e.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=i,i)for(let o=0;o<n.length;o++){let u=n[o];if(u.hasIndentedCodeblock)break;u.type==="list"&&(u.hasIndentedCodeblock=!0)}}return r})}function hX(t,e){let{originalText:r}=e;return ds(t,s=>{if(s.type==="image"||s.type==="imageReference")return s.originalAltText=lg(r,s.position.start.offset,s.position.end.offset),s;if(s.type!=="link"||!s.url)return s;let n=lg(r,s.position.start.offset,s.position.end.offset);return n&&/[[\]]/.test(n)&&(s.originalLabelText=n),s})}function lg(t,e,r){let s=t.indexOf("[",e);if(s===-1||s>=r)return null;let n=1,i=s+1;for(;i<r;){let o=t[i];if(o==="\\"){i+=2;continue}if(o==="[")n++;else if(o==="]"&&(n--,n===0))return t.slice(s+1,i);i++}return null}function dX(t,e){return ds(t,(n,i,o)=>{if(n.type==="list"&&n.children.length>0){for(let c=0;c<o.length;c++){let d=o[c];if(d.type==="list"&&!d.isAligned)return n.isAligned=!1,n}let u=o[0]?.children[i+1];if(u?.type==="code"&&u.isIndented)return n.isAligned=!1,n;n.isAligned=s(n)}return n});function r(n){return n.children.length===0?-1:n.children[0].position.start.column-1}function s(n){if(!n.ordered)return!0;let[i,o]=n.children;if(ci(i,e).leadingSpaces.length>1)return!0;let u=r(i);if(u===-1)return!1;if(n.children.length===1)return u%e.tabWidth===0;let c=r(o);return u!==c?!1:u%e.tabWidth===0?!0:ci(o,e).leadingSpaces.length>1}}function fX(t,e){return ds(t,(n,i,o)=>{if(n.type==="list"&&n.children.length>0){for(let u=0;u<o.length;u++){let c=o[u];if(c.type==="list"&&!c.isAligned)return n.isAligned=!1,n}n.isAligned=s(n)}return n});function r(n){return n.children.length===0?-1:n.children[0].position.start.column-1}function s(n){if(!n.ordered)return!0;let[i,o]=n.children;if(ci(i,e).leadingSpaces.length>1)return!0;let u=r(i);if(u===-1)return!1;if(n.children.length===1)return u%e.tabWidth===0;let c=r(o);return u!==c?!1:u%e.tabWidth===0?!0:ci(o,e).leadingSpaces.length>1}}var mX=rX,uo=null;function Ro(t){if(uo!==null&&typeof uo.property){let e=uo;return uo=Ro.prototype=null,e}return uo=Ro.prototype=t??Object.create(null),new Ro}var yX=10;for(let t=0;t<=yX;t++)Ro();function DX(t){return Ro(t)}function gX(t,e="type"){DX(t);function r(s){let n=s[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var xX=gX,Jt=[["children"]],bX={root:Jt[0],paragraph:Jt[0],sentence:Jt[0],word:[],whitespace:[],emphasis:Jt[0],strong:Jt[0],delete:Jt[0],inlineCode:[],wikiLink:[],link:Jt[0],image:[],blockquote:Jt[0],heading:Jt[0],code:[],html:[],list:Jt[0],thematicBreak:[],linkReference:Jt[0],imageReference:[],definition:[],footnote:Jt[0],footnoteReference:[],footnoteDefinition:Jt[0],table:Jt[0],tableCell:Jt[0],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:Jt[0],listItem:Jt[0],text:[]},EX=xX(bX),CX=EX,AX={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:mX,print:WK,embed:cK,massageAstNode:mv,hasPrettierIgnore:JG,insertPragma:iK,getVisitorKeys:CX,printPrettierIgnored:hK};const vX=Object.freeze(Object.defineProperty({__proto__:null,default:xA,languages:bA,options:EA,parsers:ym,printers:Pm},Symbol.toStringTag,{value:"Module"}));var TX=Object.create,Im=Object.defineProperty,FX=Object.getOwnPropertyDescriptor,wX=Object.getOwnPropertyNames,SX=Object.getPrototypeOf,kX=Object.prototype.hasOwnProperty,ge=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ev=(t,e)=>{for(var r in e)Im(t,r,{get:e[r],enumerable:!0})},PX=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of wX(e))!kX.call(t,n)&&n!==r&&Im(t,n,{get:()=>e[n],enumerable:!(s=FX(e,n))||s.enumerable});return t},_a=(t,e,r)=>(r=t!=null?TX(SX(t)):{},PX(Im(r,"default",{value:t,enumerable:!0}),t)),IX=ge((t,e)=>{var r=String,s=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};e.exports=s(),e.exports.createColors=s}),Cv=ge(()=>{}),Bm=ge((t,e)=>{"use strict";var r=IX(),s=Cv(),n=class Av extends Error{constructor(o,u,c,d,p,f){super(o),this.name="CssSyntaxError",this.reason=o,p&&(this.file=p),d&&(this.source=d),f&&(this.plugin=f),typeof u<"u"&&typeof c<"u"&&(typeof u=="number"?(this.line=u,this.column=c):(this.line=u.line,this.column=u.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Av)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(o){if(!this.source)return"";let u=this.source;o==null&&(o=r.isColorSupported);let c=x=>x,d=x=>x,p=x=>x;if(o){let{bold:x,gray:b,red:A}=r.createColors(!0);d=C=>x(A(C)),c=C=>b(C),s&&(p=C=>s(C))}let f=u.split(/\r?\n/),D=Math.max(this.line-3,0),m=Math.min(this.line+2,f.length),g=String(m).length;return f.slice(D,m).map((x,b)=>{let A=D+1+b,C=" "+(" "+A).slice(-g)+" | ";if(A===this.line){if(x.length>160){let P=20,T=Math.max(0,this.column-P),F=Math.max(this.column+P,this.endColumn+P),k=x.slice(T,F),I=c(C.replace(/\d/g," "))+x.slice(0,Math.min(this.column-1,P-1)).replace(/[^\t]/g," ");return d(">")+c(C)+p(k)+`
|
|
181
|
-
`+I+d("^")}let v=c(C.replace(/\d/g," "))+x.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+c(C)+p(x)+`
|
|
182
|
-
`+v+d("^")}return" "+c(C)+p(x)}).join(`
|
|
183
|
-
`)}toString(){let o=this.showSourceCode();return o&&(o=`
|
|
184
|
-
|
|
185
|
-
`+o+`
|
|
186
|
-
`),this.name+": "+this.message+o}};e.exports=n,n.default=n}),Nm=ge((t,e)=>{"use strict";var r=/(<)(\/?style\b)/gi,s=/(<)(!--)/g;function n(c){return typeof c!="string"||!c.includes("<")?c:c.replace(r,"\\3c $2").replace(s,"\\3c $2")}var i={after:`
|
|
187
|
-
`,beforeClose:`
|
|
188
|
-
`,beforeComment:`
|
|
189
|
-
`,beforeDecl:`
|
|
190
|
-
`,beforeOpen:" ",beforeRule:`
|
|
191
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function o(c){return c[0].toUpperCase()+c.slice(1)}var u=class{constructor(c){this.builder=c}atrule(c,d){let p=c.raws,f="@"+c.name,D=c.params?this.rawValue(c,"params"):"";if(typeof p.afterName<"u"?f+=p.afterName:D&&(f+=" "),c.nodes)this.block(c,f+D);else{let m=(p.between||"")+(d?";":"");this.builder(n(f+D+m),c)}}beforeAfter(c,d){let p;c.type==="decl"?p=this.raw(c,null,"beforeDecl"):c.type==="comment"?p=this.raw(c,null,"beforeComment"):d==="before"?p=this.raw(c,null,"beforeRule"):p=this.raw(c,null,"beforeClose");let f=c.parent,D=0;for(;f&&f.type!=="root";)D+=1,f=f.parent;if(p.includes(`
|
|
192
|
-
`)){let m=this.raw(c,null,"indent");if(m.length)for(let g=0;g<D;g++)p+=m}return p}block(c,d){let p=this.raw(c,"between","beforeOpen");this.builder(n(d+p)+"{",c,"start");let f;c.nodes&&c.nodes.length?(this.body(c),f=this.raw(c,"after")):f=this.raw(c,"after","emptyBody"),f&&this.builder(n(f)),this.builder("}",c,"end")}body(c){let d=c.nodes,p=d.length-1;for(;p>0&&d[p].type==="comment";)p-=1;let f=this.raw(c,"semicolon"),D=c.type==="document";for(let m=0;m<d.length;m++){let g=d[m],x=this.raw(g,"before");x&&this.builder(D?x:n(x)),this.stringify(g,p!==m||f)}}comment(c){let d=this.raw(c,"left","commentLeft"),p=this.raw(c,"right","commentRight");this.builder(n("/*"+d+c.text+p+"*/"),c)}decl(c,d){let p=c.raws,f=this.raw(c,"between","colon"),D=c.prop+f+this.rawValue(c,"value");c.important&&(D+=p.important||" !important"),d&&(D+=";"),this.builder(n(D),c)}document(c){this.body(c)}raw(c,d,p){let f;if(p||(p=d),d&&(f=c.raws[d],typeof f<"u"))return f;let D=c.parent;if(p==="before"&&(!D||D.type==="root"&&D.first===c||D&&D.type==="document"))return"";if(!D)return i[p];let m=c.root(),g=m.rawCache||(m.rawCache={});if(typeof g[p]<"u")return g[p];if(p==="before"||p==="after")return this.beforeAfter(c,p);{let x="raw"+o(p);this[x]?f=this[x](m,c):m.walk(b=>{if(f=b.raws[d],typeof f<"u")return!1})}return typeof f>"u"&&(f=i[p]),g[p]=f,f}rawBeforeClose(c){let d;return c.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return d=p.raws.after,d.includes(`
|
|
193
|
-
`)&&(d=d.replace(/[^\n]+$/,"")),!1}),d&&(d=d.replace(/\S/g,"")),d}rawBeforeComment(c,d){let p;return c.walkComments(f=>{if(typeof f.raws.before<"u")return p=f.raws.before,p.includes(`
|
|
194
|
-
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(d,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(c,d){let p;return c.walkDecls(f=>{if(typeof f.raws.before<"u")return p=f.raws.before,p.includes(`
|
|
195
|
-
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(d,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(c){let d;return c.walk(p=>{if(p.type!=="decl"&&(d=p.raws.between,typeof d<"u"))return!1}),d}rawBeforeRule(c){let d;return c.walk(p=>{if(p.nodes&&(p.parent!==c||c.first!==p)&&typeof p.raws.before<"u")return d=p.raws.before,d.includes(`
|
|
196
|
-
`)&&(d=d.replace(/[^\n]+$/,"")),!1}),d&&(d=d.replace(/\S/g,"")),d}rawColon(c){let d;return c.walkDecls(p=>{if(typeof p.raws.between<"u")return d=p.raws.between.replace(/[^\s:]/g,""),!1}),d}rawEmptyBody(c){let d;return c.walk(p=>{if(p.nodes&&p.nodes.length===0&&(d=p.raws.after,typeof d<"u"))return!1}),d}rawIndent(c){if(c.raws.indent)return c.raws.indent;let d;return c.walk(p=>{let f=p.parent;if(f&&f!==c&&f.parent&&f.parent===c&&typeof p.raws.before<"u"){let D=p.raws.before.split(`
|
|
197
|
-
`);return d=D[D.length-1],d=d.replace(/\S/g,""),!1}}),d}rawSemicolon(c){let d;return c.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(d=p.raws.semicolon,typeof d<"u"))return!1}),d}rawValue(c,d){let p=c[d],f=c.raws[d];return f&&f.value===p?f.raw:p}root(c){if(this.body(c),c.raws.after){let d=c.raws.after,p=c.parent&&c.parent.type==="document";this.builder(p?d:n(d))}}rule(c){this.block(c,this.rawValue(c,"selector")),c.raws.ownSemicolon&&this.builder(n(c.raws.ownSemicolon),c,"end")}stringify(c,d){if(!this[c.type])throw new Error("Unknown AST node type "+c.type+". Maybe you need to change PostCSS stringifier.");this[c.type](c,d)}};e.exports=u,u.default=u}),Hc=ge((t,e)=>{"use strict";var r=Nm();function s(n,i){new r(i).stringify(n)}e.exports=s,s.default=s}),Lm=ge((t,e)=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")}),Wc=ge((t,e)=>{"use strict";var r=Bm(),s=Nm(),n=Hc(),{isClean:i,my:o}=Lm();function u(p,f){let D=new p.constructor;for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m)||m==="proxyCache")continue;let g=p[m],x=typeof g;m==="parent"&&x==="object"?f&&(D[m]=f):m==="source"?D[m]=g:Array.isArray(g)?D[m]=g.map(b=>u(b,D)):(x==="object"&&g!==null&&(g=u(g)),D[m]=g)}return D}function c(p,f){if(f&&typeof f.offset<"u")return f.offset;let D=1,m=1,g=0;for(let x=0;x<p.length;x++){if(m===f.line&&D===f.column){g=x;break}p[x]===`
|
|
198
|
-
`?(D=1,m+=1):D+=1}return g}var d=class{get proxyOf(){return this}constructor(p={}){this.raws={},this[i]=!1,this[o]=!0;for(let f in p)if(f==="nodes"){this.nodes=[];for(let D of p[f])typeof D.clone=="function"&&D.parent?this.append(D.clone()):this.append(D)}else this[f]=p[f]}addToError(p){if(p.postcssNode=this,p.stack&&this.source&&/\n\s{4}at /.test(p.stack)){let f=this.source;p.stack=p.stack.replace(/\n\s{4}at /,`$&${f.input.from}:${f.start.line}:${f.start.column}$&`)}return p}after(p){return this.parent.insertAfter(this,p),this}assign(p={}){for(let f in p)this[f]=p[f];return this}before(p){return this.parent.insertBefore(this,p),this}cleanRaws(p){delete this.raws.before,delete this.raws.after,p||delete this.raws.between}clone(p={}){let f=u(this);for(let D in p)f[D]=p[D];return f}cloneAfter(p={}){let f=this.clone(p);return this.parent.insertAfter(this,f),f}cloneBefore(p={}){let f=this.clone(p);return this.parent.insertBefore(this,f),f}error(p,f={}){if(this.source){let{end:D,start:m}=this.rangeBy(f);return this.source.input.error(p,{column:m.column,line:m.line},{column:D.column,line:D.line},f)}return new r(p)}getProxyProcessor(){return{get(p,f){return f==="proxyOf"?p:f==="root"?()=>p.root().toProxy():p[f]},set(p,f,D){return p[f]===D||(p[f]=D,(f==="prop"||f==="value"||f==="name"||f==="params"||f==="important"||f==="text")&&p.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let p=this;for(;p=p.parent;)p[i]=!1}}next(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p+1]}positionBy(p={}){let f="document"in this.source.input?this.source.input.document:this.source.input.css,D={column:this.source.start.column,line:this.source.start.line,offset:c(f,this.source.start)};if(p.index)D=this.positionInside(p.index);else if(p.word){let m=f.slice(c(f,this.source.start),c(f,this.source.end)).indexOf(p.word);m!==-1&&(D=this.positionInside(m))}return D}positionInside(p){let f=this.source.start.column,D=this.source.start.line,m="document"in this.source.input?this.source.input.document:this.source.input.css,g=c(m,this.source.start),x=g+p;for(let b=g;b<x;b++)m[b]===`
|
|
199
|
-
`?(f=1,D+=1):f+=1;return{column:f,line:D,offset:x}}prev(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p-1]}rangeBy(p={}){let f="document"in this.source.input?this.source.input.document:this.source.input.css,D={column:this.source.start.column,line:this.source.start.line,offset:c(f,this.source.start)},m=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:c(f,this.source.end)+1}:{column:D.column+1,line:D.line,offset:D.offset+1};if(p.word){let g=f.slice(c(f,this.source.start),c(f,this.source.end)).indexOf(p.word);g!==-1&&(D=this.positionInside(g),m=this.positionInside(g+p.word.length))}else p.start?D={column:p.start.column,line:p.start.line,offset:c(f,p.start)}:typeof p.index=="number"&&(D=this.positionInside(p.index)),p.end?m={column:p.end.column,line:p.end.line,offset:c(f,p.end)}:typeof p.endIndex=="number"?m=this.positionInside(p.endIndex):typeof p.index=="number"&&(m=this.positionInside(p.index+1));return(m.line<D.line||m.line===D.line&&m.column<=D.column)&&(m={column:D.column+1,line:D.line,offset:D.offset+1}),{end:m,start:D}}raw(p,f){return new s().raw(this,p,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...p){if(this.parent){let f=this,D=!1;for(let m of p)m===this?D=!0:D?(this.parent.insertAfter(f,m),f=m):this.parent.insertBefore(f,m);D||this.remove()}return this}root(){let p=this;for(;p.parent&&p.parent.type!=="document";)p=p.parent;return p}toJSON(p,f){let D={},m=f==null;f=f||new Map;let g=0;for(let x in this){if(!Object.prototype.hasOwnProperty.call(this,x)||x==="parent"||x==="proxyCache")continue;let b=this[x];if(Array.isArray(b))D[x]=b.map(A=>typeof A=="object"&&A.toJSON?A.toJSON(null,f):A);else if(typeof b=="object"&&b.toJSON)D[x]=b.toJSON(null,f);else if(x==="source"){if(b==null)continue;let A=f.get(b.input);A==null&&(A=g,f.set(b.input,g),g++),D[x]={end:b.end,inputId:A,start:b.start}}else D[x]=b}return m&&(D.inputs=[...f.keys()].map(x=>x.toJSON())),D}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(p=n){p.stringify&&(p=p.stringify);let f="";return p(this,D=>{f+=D}),f}warn(p,f,D={}){let m={node:this};for(let g in D)m[g]=D[g];return p.warn(f,m)}};e.exports=d,d.default=d}),$u=ge((t,e)=>{"use strict";var r=Wc(),s=class extends r{constructor(n){super(n),this.type="comment"}};e.exports=s,s.default=s}),Jc=ge((t,e)=>{"use strict";var r=Wc(),s=class extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}};e.exports=s,s.default=s}),Li=ge((t,e)=>{"use strict";var r=$u(),s=Jc(),n=Wc(),{isClean:i,my:o}=Lm(),u,c,d,p;function f(g){return g.map(x=>(x.nodes&&(x.nodes=f(x.nodes)),delete x.source,x))}function D(g){if(g[i]=!1,g.proxyOf.nodes)for(let x of g.proxyOf.nodes)D(x)}var m=class vv extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...x){for(let b of x){let A=this.normalize(b,this.last);for(let C of A)this.proxyOf.nodes.push(C)}return this.markDirty(),this}cleanRaws(x){if(super.cleanRaws(x),this.nodes)for(let b of this.nodes)b.cleanRaws(x)}each(x){if(!this.proxyOf.nodes)return;let b=this.getIterator(),A,C;for(;this.indexes[b]<this.proxyOf.nodes.length&&(A=this.indexes[b],C=x(this.proxyOf.nodes[A],A),C!==!1);)this.indexes[b]+=1;return delete this.indexes[b],C}every(x){return this.nodes.every(x)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let x=this.lastEach;return this.indexes[x]=0,x}getProxyProcessor(){return{get(x,b){return b==="proxyOf"?x:x[b]?b==="each"||typeof b=="string"&&b.startsWith("walk")?(...A)=>x[b](...A.map(C=>typeof C=="function"?(v,P)=>C(v.toProxy(),P):C)):b==="every"||b==="some"?A=>x[b]((C,...v)=>A(C.toProxy(),...v)):b==="root"?()=>x.root().toProxy():b==="nodes"?x.nodes.map(A=>A.toProxy()):b==="first"||b==="last"?x[b].toProxy():x[b]:x[b]},set(x,b,A){return x[b]===A||(x[b]=A,(b==="name"||b==="params"||b==="selector")&&x.markDirty()),!0}}}index(x){return typeof x=="number"?x:(x.proxyOf&&(x=x.proxyOf),this.proxyOf.nodes.indexOf(x))}insertAfter(x,b){let A=this.index(x),C=this.normalize(b,this.proxyOf.nodes[A]).reverse();A=this.index(x);for(let P of C)this.proxyOf.nodes.splice(A+1,0,P);let v;for(let P in this.indexes)v=this.indexes[P],A<v&&(this.indexes[P]=v+C.length);return this.markDirty(),this}insertBefore(x,b){let A=this.index(x),C=A===0?"prepend":!1,v=this.normalize(b,this.proxyOf.nodes[A],C).reverse();A=this.index(x);for(let T of v)this.proxyOf.nodes.splice(A,0,T);let P;for(let T in this.indexes)P=this.indexes[T],A<=P&&(this.indexes[T]=P+v.length);return this.markDirty(),this}normalize(x,b){if(typeof x=="string")x=f(c(x).nodes);else if(typeof x>"u")x=[];else if(Array.isArray(x)){x=x.slice(0);for(let A of x)A.parent&&A.parent.removeChild(A,"ignore")}else if(x.type==="root"&&this.type!=="document"){x=x.nodes.slice(0);for(let A of x)A.parent&&A.parent.removeChild(A,"ignore")}else if(x.type)x=[x];else if(x.prop){if(typeof x.value>"u")throw new Error("Value field is missed in node creation");typeof x.value!="string"&&(x.value=String(x.value)),x=[new s(x)]}else if(x.selector||x.selectors)x=[new p(x)];else if(x.name)x=[new u(x)];else if(x.text)x=[new r(x)];else throw new Error("Unknown node type in node creation");return x.map(A=>(A[o]||vv.rebuild(A),A=A.proxyOf,A.parent&&A.parent.removeChild(A),A[i]&&D(A),A.raws||(A.raws={}),typeof A.raws.before>"u"&&b&&typeof b.raws.before<"u"&&(A.raws.before=b.raws.before.replace(/\S/g,"")),A.parent=this.proxyOf,A))}prepend(...x){x=x.reverse();for(let b of x){let A=this.normalize(b,this.first,"prepend").reverse();for(let C of A)this.proxyOf.nodes.unshift(C);for(let C in this.indexes)this.indexes[C]=this.indexes[C]+A.length}return this.markDirty(),this}push(x){return x.parent=this,this.proxyOf.nodes.push(x),this}removeAll(){for(let x of this.proxyOf.nodes)x.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(x){x=this.index(x),this.proxyOf.nodes[x].parent=void 0,this.proxyOf.nodes.splice(x,1);let b;for(let A in this.indexes)b=this.indexes[A],b>=x&&(this.indexes[A]=b-1);return this.markDirty(),this}replaceValues(x,b,A){return A||(A=b,b={}),this.walkDecls(C=>{b.props&&!b.props.includes(C.prop)||b.fast&&!C.value.includes(b.fast)||(C.value=C.value.replace(x,A))}),this.markDirty(),this}some(x){return this.nodes.some(x)}walk(x){return this.each((b,A)=>{let C;try{C=x(b,A)}catch(v){throw b.addToError(v)}return C!==!1&&b.walk&&(C=b.walk(x)),C})}walkAtRules(x,b){return b?x instanceof RegExp?this.walk((A,C)=>{if(A.type==="atrule"&&x.test(A.name))return b(A,C)}):this.walk((A,C)=>{if(A.type==="atrule"&&A.name===x)return b(A,C)}):(b=x,this.walk((A,C)=>{if(A.type==="atrule")return b(A,C)}))}walkComments(x){return this.walk((b,A)=>{if(b.type==="comment")return x(b,A)})}walkDecls(x,b){return b?x instanceof RegExp?this.walk((A,C)=>{if(A.type==="decl"&&x.test(A.prop))return b(A,C)}):this.walk((A,C)=>{if(A.type==="decl"&&A.prop===x)return b(A,C)}):(b=x,this.walk((A,C)=>{if(A.type==="decl")return b(A,C)}))}walkRules(x,b){return b?x instanceof RegExp?this.walk((A,C)=>{if(A.type==="rule"&&x.test(A.selector))return b(A,C)}):this.walk((A,C)=>{if(A.type==="rule"&&A.selector===x)return b(A,C)}):(b=x,this.walk((A,C)=>{if(A.type==="rule")return b(A,C)}))}};m.registerParse=g=>{c=g},m.registerRule=g=>{p=g},m.registerAtRule=g=>{u=g},m.registerRoot=g=>{d=g},e.exports=m,m.default=m,m.rebuild=g=>{g.type==="atrule"?Object.setPrototypeOf(g,u.prototype):g.type==="rule"?Object.setPrototypeOf(g,p.prototype):g.type==="decl"?Object.setPrototypeOf(g,s.prototype):g.type==="comment"?Object.setPrototypeOf(g,r.prototype):g.type==="root"&&Object.setPrototypeOf(g,d.prototype),g[o]=!0,g.nodes&&g.nodes.forEach(x=>{m.rebuild(x)})}}),BX=ge((t,e)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",s=(i,o=21)=>(u=o)=>{let c="",d=u|0;for(;d--;)c+=i[Math.random()*i.length|0];return c},n=(i=21)=>{let o="",u=i|0;for(;u--;)o+=r[Math.random()*64|0];return o};e.exports={nanoid:n,customAlphabet:s}}),NX=ge(()=>{}),Tv=ge((t,e)=>{e.exports=class{}}),Mu=ge((t,e)=>{"use strict";var{nanoid:r}=BX(),{isAbsolute:s,resolve:n}={},{SourceMapConsumer:i,SourceMapGenerator:o}=NX(),{fileURLToPath:u,pathToFileURL:c}={},d=Bm(),p=Tv(),f=Cv(),D=Symbol("lineToIndexCache"),m=!!(i&&o),g=!!(n&&s);function x(A){if(A[D])return A[D];let C=A.css.split(`
|
|
200
|
-
`),v=new Array(C.length),P=0;for(let T=0,F=C.length;T<F;T++)v[T]=P,P+=C[T].length+1;return A[D]=v,v}var b=class{get from(){return this.file||this.id}constructor(A,C={}){if(A===null||typeof A>"u"||typeof A=="object"&&!A.toString)throw new Error(`PostCSS received ${A} instead of CSS string`);if(this.css=A.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,C.document&&(this.document=C.document.toString()),C.from&&(!g||/^\w+:\/\//.test(C.from)||s(C.from)?this.file=C.from:this.file=n(C.from)),g&&m){let v=new p(this.css,C);if(v.text){this.map=v;let P=v.consumer().file;!this.file&&P&&(this.file=this.mapResolve(P))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(A,C,v,P={}){let T,F,k,I,L;if(C&&typeof C=="object"){let O=C,R=v;if(typeof O.offset=="number"){I=O.offset;let q=this.fromOffset(I);C=q.line,v=q.col}else C=O.line,v=O.column,I=this.fromLineAndColumn(C,v);if(typeof R.offset=="number"){k=R.offset;let q=this.fromOffset(k);F=q.line,T=q.col}else F=R.line,T=R.column,k=this.fromLineAndColumn(R.line,R.column)}else if(v)I=this.fromLineAndColumn(C,v);else{I=C;let O=this.fromOffset(I);C=O.line,v=O.col}let B=this.origin(C,v,F,T);return B?L=new d(A,B.endLine===void 0?B.line:{column:B.column,line:B.line},B.endLine===void 0?B.column:{column:B.endColumn,line:B.endLine},B.source,B.file,P.plugin):L=new d(A,F===void 0?C:{column:v,line:C},F===void 0?v:{column:T,line:F},this.css,this.file,P.plugin),L.input={column:v,endColumn:T,endLine:F,endOffset:k,line:C,offset:I,source:this.css},this.file&&(c&&(L.input.url=c(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(A,C){return x(this)[A-1]+C-1}fromOffset(A){let C=x(this),v=C[C.length-1],P=0;if(A>=v)P=C.length-1;else{let T=C.length-2,F;for(;P<T;)if(F=P+(T-P>>1),A<C[F])T=F-1;else if(A>=C[F+1])P=F+1;else{P=F;break}}return{col:A-C[P]+1,line:P+1}}mapResolve(A){return/^\w+:\/\//.test(A)?A:n(this.map.consumer().sourceRoot||this.map.root||".",A)}origin(A,C,v,P){if(!this.map)return!1;let T=this.map.consumer(),F=T.originalPositionFor({column:C-1,line:A});if(!F.source)return!1;let k;typeof v=="number"&&(k=T.originalPositionFor({column:P-1,line:v}));let I;s(F.source)?I=c(F.source):I=new URL(F.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let L={column:F.column+1,endColumn:k&&k.column+1,endLine:k&&k.line,line:F.line,url:I.toString()};if(I.protocol==="file:")if(u)L.file=u(I);else throw new Error("file: protocol is not available in this PostCSS build");let B=T.sourceContentFor(F.source);return B&&(L.source=B),L}toJSON(){let A={};for(let C of["hasBOM","css","file","id"])this[C]!=null&&(A[C]=this[C]);return this.map&&(A.map={...this.map},A.map.consumerCache&&(A.map.consumerCache=void 0)),A}};e.exports=b,b.default=b,f&&f.registerInput&&f.registerInput(b)}),$m=ge((t,e)=>{"use strict";var r=Li(),s=class extends r{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}};e.exports=s,s.default=s,r.registerAtRule(s)}),Ou=ge((t,e)=>{"use strict";var r=Li(),s,n,i=class extends r{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,u,c){let d=super.normalize(o);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of d)p.raws.before=u.raws.before}return d}removeChild(o,u){let c=this.index(o);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(o)}toResult(o={}){return new s(new n,this,o).stringify()}};i.registerLazyResult=o=>{s=o},i.registerProcessor=o=>{n=o},e.exports=i,i.default=i,r.registerRoot(i)}),Fv=ge((t,e)=>{"use strict";var r={comma(s){return r.split(s,[","],!0)},space(s){let n=[" ",`
|
|
201
|
-
`," "];return r.split(s,n)},split(s,n,i){let o=[],u="",c=!1,d=0,p=!1,f="",D=!1;for(let m of s)D?D=!1:m==="\\"?D=!0:p?m===f&&(p=!1):m==='"'||m==="'"?(p=!0,f=m):m==="("?d+=1:m===")"?d>0&&(d-=1):d===0&&n.includes(m)&&(c=!0),c?(u!==""&&o.push(u.trim()),u="",c=!1):u+=m;return(i||u!=="")&&o.push(u.trim()),o}};e.exports=r,r.default=r}),Mm=ge((t,e)=>{"use strict";var r=Li(),s=Fv(),n=class extends r{get selectors(){return s.comma(this.selector)}set selectors(i){let o=this.selector?this.selector.match(/,\s*/):null,u=o?o[0]:","+this.raw("between","beforeOpen");this.selector=i.join(u)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}};e.exports=n,n.default=n,r.registerRule(n)}),Om=ge((t,e)=>{"use strict";var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i;e.exports=function(o,u={}){let c=o.css.valueOf(),d=u.ignoreErrors,p,f,D,m,g,x,b,A,C,v,P=c.length,T=0,F=[],k=[],I=-1;function L(){return T}function B(V){throw o.error("Unclosed "+V,T)}function O(){return k.length===0&&T>=P}function R(V){if(k.length)return k.pop();if(T>=P)return;let j=V?V.ignoreUnclosed:!1;switch(p=c.charCodeAt(T),p){case 10:case 32:case 9:case 13:case 12:{m=T;do m+=1,p=c.charCodeAt(m);while(p===32||p===10||p===9||p===13||p===12);x=["space",c.slice(T,m)],T=m-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(p);x=[z,z,T];break}case 40:{if(v=F.length?F.pop()[1]:"",C=c.charCodeAt(T+1),v==="url"&&C!==39&&C!==34&&C!==32&&C!==10&&C!==9&&C!==12&&C!==13){m=T;do{if(b=!1,m=c.indexOf(")",m+1),m===-1)if(d||j){m=T;break}else B("bracket");for(A=m;c.charCodeAt(A-1)===92;)A-=1,b=!b}while(b);x=["brackets",c.slice(T,m+1),T,m],T=m}else T<=I?x=["(","(",T]:(m=c.indexOf(")",T+1),f=c.slice(T,m+1),m===-1||n.test(f)?(I=m===-1?P:m,x=["(","(",T]):(x=["brackets",f,T,m],T=m));break}case 39:case 34:{g=p===39?"'":'"',m=T;do{if(b=!1,m=c.indexOf(g,m+1),m===-1)if(d||j){m=T+1;break}else B("string");for(A=m;c.charCodeAt(A-1)===92;)A-=1,b=!b}while(b);x=["string",c.slice(T,m+1),T,m],T=m;break}case 64:{r.lastIndex=T+1,r.test(c),r.lastIndex===0?m=c.length-1:m=r.lastIndex-2,x=["at-word",c.slice(T,m+1),T,m],T=m;break}case 92:{for(m=T,D=!0;c.charCodeAt(m+1)===92;)m+=1,D=!D;if(p=c.charCodeAt(m+1),D&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(m+=1,i.test(c.charAt(m)))){for(;i.test(c.charAt(m+1));)m+=1;c.charCodeAt(m+1)===32&&(m+=1)}x=["word",c.slice(T,m+1),T,m],T=m;break}default:{p===47&&c.charCodeAt(T+1)===42?(m=c.indexOf("*/",T+2)+1,m===0&&(d||j?m=c.length:B("comment")),x=["comment",c.slice(T,m+1),T,m],T=m):(s.lastIndex=T+1,s.test(c),s.lastIndex===0?m=c.length-1:m=s.lastIndex-2,x=["word",c.slice(T,m+1),T,m],F.push(x),T=m);break}}return T++,x}function q(V){k.push(V)}return{back:q,endOfFile:O,nextToken:R,position:L}}}),_m=ge((t,e)=>{"use strict";var r=$m(),s=$u(),n=Jc(),i=Ou(),o=Mm(),u=Om(),c={empty:!0,space:!0};function d(D){for(let m=D.length-1;m>=0;m--){let g=D[m],x=g[3]||g[2];if(x)return x}}function p(D,m,g){let x="";for(let b=m;b<g;b++)x+=D[b][1];return x}var f=class{constructor(D){this.input=D,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:D,start:{column:1,line:1,offset:0}}}atrule(D){let m=new r;m.name=D[1].slice(1),m.name===""&&this.unnamedAtrule(m,D),this.init(m,D[2]);let g,x,b,A=!1,C=!1,v=[],P=[];for(;!this.tokenizer.endOfFile();){if(D=this.tokenizer.nextToken(),g=D[0],g==="("||g==="["?P.push(g==="("?")":"]"):g==="{"&&P.length>0?P.push("}"):g===P[P.length-1]&&P.pop(),P.length===0)if(g===";"){m.source.end=this.getPosition(D[2]),m.source.end.offset++,this.semicolon=!0;break}else if(g==="{"){C=!0;break}else if(g==="}"){if(v.length>0){for(b=v.length-1,x=v[b];x&&x[0]==="space";)x=v[--b];x&&(m.source.end=this.getPosition(x[3]||x[2]),m.source.end.offset++)}this.end(D);break}else v.push(D);else v.push(D);if(this.tokenizer.endOfFile()){A=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(m.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(m,"params",v),A&&(D=v[v.length-1],m.source.end=this.getPosition(D[3]||D[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),C&&(m.nodes=[],this.current=m)}checkMissedSemicolon(D){let m=this.colon(D);if(m===!1)return;let g=0,x;for(let b=m-1;b>=0&&(x=D[b],!(x[0]!=="space"&&(g+=1,g===2)));b--);throw this.input.error("Missed semicolon",x[0]==="word"?x[3]+1:x[2])}colon(D){let m=0,g,x,b;for(let[A,C]of D.entries()){if(x=C,b=x[0],b==="("&&(m+=1),b===")"&&(m-=1),m===0&&b===":")if(!g)this.doubleColon(x);else{if(g[0]==="word"&&g[1]==="progid")continue;return A}g=x}return!1}comment(D){let m=new s;this.init(m,D[2]),m.source.end=this.getPosition(D[3]||D[2]),m.source.end.offset++;let g=D[1].slice(2,-2);if(!g.trim())m.text="",m.raws.left=g,m.raws.right="";else{let x=g.match(/^(\s*)([^]*\S)(\s*)$/);m.text=x[2],m.raws.left=x[1],m.raws.right=x[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(D,m){let g=new n;this.init(g,D[0][2]);let x=D[D.length-1];x[0]===";"&&(this.semicolon=!0,D.pop()),g.source.end=this.getPosition(x[3]||x[2]||d(D)),g.source.end.offset++;let b=0;for(;D[b][0]!=="word";)b===D.length-1&&this.unknownWord([D[b]]),b++;g.raws.before+=p(D,0,b),g.source.start=this.getPosition(D[b][2]);let A=b;for(;b<D.length;){let F=D[b][0];if(F===":"||F==="space"||F==="comment")break;b++}g.prop=p(D,A,b);let C=b,v;for(;b<D.length&&(v=D[b],b++,v[0]!==":");)v[0]==="word"&&/\w/.test(v[1])&&this.unknownWord([v]);g.raws.between=p(D,C,b),(g.prop[0]==="_"||g.prop[0]==="*")&&(g.raws.before+=g.prop[0],g.prop=g.prop.slice(1));let P=b;for(;b<D.length;){let F=D[b][0];if(F!=="space"&&F!=="comment")break;b++}let T=D.slice(P,b);D=D.slice(b),this.precheckMissedSemicolon(D);for(let F=D.length-1;F>=0;F--){if(v=D[F],v[1].toLowerCase()==="!important"){g.important=!0;let k=this.stringFrom(D,F);k=this.spacesFromEnd(D)+k,k!==" !important"&&(g.raws.important=k);break}else if(v[1].toLowerCase()==="important"){let k=D.slice(0),I="";for(let L=F;L>0;L--){let B=k[L][0];if(I.trim().startsWith("!")&&B!=="space")break;I=k.pop()[1]+I}I.trim().startsWith("!")&&(g.important=!0,g.raws.important=I,D=k)}if(v[0]!=="space"&&v[0]!=="comment")break}D.some(F=>F[0]!=="space"&&F[0]!=="comment")&&(g.raws.between+=T.map(F=>F[1]).join(""),T=[]),this.raw(g,"value",T.concat(D),m),g.value.includes(":")&&!m&&this.checkMissedSemicolon(D)}doubleColon(D){throw this.input.error("Double colon",{offset:D[2]},{offset:D[2]+D[1].length})}emptyRule(D){let m=new o;this.init(m,D[2]),m.selector="",m.raws.between="",this.current=m}end(D){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(D[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(D)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(D){if(this.spaces+=D[1],this.current.nodes){let m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="",m.source.end=this.getPosition(D[2]),m.source.end.offset+=m.raws.ownSemicolon.length)}}getPosition(D){let m=this.input.fromOffset(D);return{column:m.col,line:m.line,offset:D}}init(D,m){this.current.push(D),D.source={input:this.input,start:this.getPosition(m)},D.raws.before=this.spaces,this.spaces="",D.type!=="comment"&&(this.semicolon=!1)}other(D){let m=!1,g=null,x=!1,b=null,A=[],C=D[1].startsWith("--"),v=[],P=D;for(;P;){if(g=P[0],v.push(P),g==="("||g==="[")b||(b=P),A.push(g==="("?")":"]");else if(C&&x&&g==="{")b||(b=P),A.push("}");else if(A.length===0)if(g===";")if(x){this.decl(v,C);return}else break;else if(g==="{"){this.rule(v);return}else if(g==="}"){this.tokenizer.back(v.pop()),m=!0;break}else g===":"&&(x=!0);else g===A[A.length-1]&&(A.pop(),A.length===0&&(b=null));P=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),A.length>0&&this.unclosedBracket(b),m&&x){if(!C)for(;v.length&&(P=v[v.length-1][0],!(P!=="space"&&P!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,C)}else this.unknownWord(v)}parse(){let D;for(;!this.tokenizer.endOfFile();)switch(D=this.tokenizer.nextToken(),D[0]){case"space":this.spaces+=D[1];break;case";":this.freeSemicolon(D);break;case"}":this.end(D);break;case"comment":this.comment(D);break;case"at-word":this.atrule(D);break;case"{":this.emptyRule(D);break;default:this.other(D);break}this.endFile()}precheckMissedSemicolon(){}raw(D,m,g,x){let b,A,C=g.length,v="",P=!0,T,F;for(let k=0;k<C;k+=1)b=g[k],A=b[0],A==="space"&&k===C-1&&!x?P=!1:A==="comment"?(F=g[k-1]?g[k-1][0]:"empty",T=g[k+1]?g[k+1][0]:"empty",!c[F]&&!c[T]?v.slice(-1)===","?P=!1:v+=b[1]:P=!1):v+=b[1];if(!P){let k=g.reduce((I,L)=>I+L[1],"");D.raws[m]={raw:k,value:v}}D[m]=v}rule(D){D.pop();let m=new o;this.init(m,D[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(D),this.raw(m,"selector",D),this.current=m}spacesAndCommentsFromEnd(D){let m,g="";for(;D.length&&(m=D[D.length-1][0],!(m!=="space"&&m!=="comment"));)g=D.pop()[1]+g;return g}spacesAndCommentsFromStart(D){let m,g="";for(;D.length&&(m=D[0][0],!(m!=="space"&&m!=="comment"));)g+=D.shift()[1];return g}spacesFromEnd(D){let m,g="";for(;D.length&&(m=D[D.length-1][0],m==="space");)g=D.pop()[1]+g;return g}stringFrom(D,m){let g="";for(let x=m;x<D.length;x++)g+=D[x][1];return D.splice(m,D.length-m),g}unclosedBlock(){let D=this.current.source.start;throw this.input.error("Unclosed block",D.line,D.column)}unclosedBracket(D){throw this.input.error("Unclosed bracket",{offset:D[2]},{offset:D[2]+1})}unexpectedClose(D){throw this.input.error("Unexpected }",{offset:D[2]},{offset:D[2]+1})}unknownWord(D){throw this.input.error("Unknown word "+D[0][1],{offset:D[0][2]},{offset:D[0][2]+D[0][1].length})}unnamedAtrule(D,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}};e.exports=f}),Gc=ge((t,e)=>{"use strict";var r=Li(),s=Mu(),n=_m();function i(o,u){let c=new s(o,u),d=new n(c);try{d.parse()}catch(p){throw p}return d.root}e.exports=i,i.default=i,r.registerParse(i)}),LX=ge((t,e)=>{var r=Om(),s=Mu();e.exports={isInlineComment(n){if(n[0]==="word"&&n[1].slice(0,2)==="//"){let i=n,o=[],u,c;for(;n;){if(/\r?\n/.test(n[1])){if(/['"].*\r?\n/.test(n[1])){o.push(n[1].substring(0,n[1].indexOf(`
|
|
202
|
-
`))),c=n[1].substring(n[1].indexOf(`
|
|
203
|
-
`));let p=this.input.css.valueOf().substring(this.tokenizer.position());c+=p,u=n[3]+p.length-c.length}else this.tokenizer.back(n);break}o.push(n[1]),u=n[2],n=this.tokenizer.nextToken({ignoreUnclosed:!0})}let d=["comment",o.join(""),i[2],u];return this.inlineComment(d),c&&(this.input=new s(c),this.tokenizer=r(this.input)),!0}else if(n[1]==="/"){let i=this.tokenizer.nextToken({ignoreUnclosed:!0});if(i[0]==="comment"&&/^\/\*/.test(i[1]))return i[0]="word",i[1]=i[1].slice(1),n[1]="//",this.tokenizer.back(i),e.exports.isInlineComment.bind(this)(n)}return!1}}}),$X=ge((t,e)=>{e.exports={interpolation(r){let s=[r,this.tokenizer.nextToken()],n=["word","}"];if(s[0][1].length>1||s[1][0]!=="{")return this.tokenizer.back(s[1]),!1;for(r=this.tokenizer.nextToken();r&&n.includes(r[0]);)s.push(r),r=this.tokenizer.nextToken();let i=s.map(d=>d[1]),[o]=s,u=s.pop(),c=["word",i.join(""),o[2],u[2]];return this.tokenizer.back(r),this.tokenizer.back(c),!0}}}),MX=ge((t,e)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,s=/\.[0-9]/,n=i=>{let[,o]=i,[u]=o;return(u==="."||u==="#")&&r.test(o)===!1&&s.test(o)===!1};e.exports={isMixinToken:n}}),OX=ge((t,e)=>{var r=Om(),s=/^url\((.+)\)/;e.exports=n=>{let{name:i,params:o=""}=n;if(i==="import"&&o.length){n.import=!0;let u=r({css:o});for(n.filename=o.replace(s,"$1");!u.endOfFile();){let[c,d]=u.nextToken();if(c==="word"&&d==="url")return;if(c==="brackets"){n.options=d,n.filename=o.replace(d,"").trim();break}}}}}),_X=ge((t,e)=>{var r=/:$/,s=/^:(\s+)?/;e.exports=n=>{let{name:i,params:o=""}=n;if(n.name.slice(-1)===":"){if(r.test(i)){let[u]=i.match(r);n.name=i.replace(u,""),n.raws.afterName=u+(n.raws.afterName||""),n.variable=!0,n.value=n.params}if(s.test(o)){let[u]=o.match(s);n.value=o.replace(u,""),n.raws.afterName=(n.raws.afterName||"")+u,n.variable=!0}}}}),jX=ge((t,e)=>{var r=$u(),s=_m(),{isInlineComment:n}=LX(),{interpolation:i}=$X(),{isMixinToken:o}=MX(),u=OX(),c=_X(),d=/(!\s*important)$/i;e.exports=class extends s{constructor(...p){super(...p),this.lastNode=null}atrule(p){i.bind(this)(p)||(super.atrule(p),u(this.lastNode),c(this.lastNode))}decl(...p){super.decl(...p),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(p){p[0][1]=` ${p[0][1]}`;let f=p.findIndex(x=>x[0]==="("),D=p.reverse().find(x=>x[0]===")"),m=p.reverse().indexOf(D),g=p.splice(f,m).map(x=>x[1]).join("");for(let x of p.reverse())this.tokenizer.back(x);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=g}init(p,f,D){super.init(p,f,D),this.lastNode=p}inlineComment(p){let f=new r,D=p[1].slice(2);if(this.init(f,p[2]),f.source.end=this.getPosition(p[3]||p[2]),f.inline=!0,f.raws.begin="//",/^\s*$/.test(D))f.text="",f.raws.left=D,f.raws.right="";else{let m=D.match(/^(\s*)([^]*[^\s])(\s*)$/);[,f.raws.left,f.text,f.raws.right]=m}}mixin(p){let[f]=p,D=f[1].slice(0,1),m=p.findIndex(C=>C[0]==="brackets"),g=p.findIndex(C=>C[0]==="("),x="";if((m<0||m>3)&&g>0){let C=p.reduce((O,R,q)=>R[0]===")"?q:O),v=p.slice(g,C+g).map(O=>O[1]).join(""),[P]=p.slice(g),T=[P[2],P[3]],[F]=p.slice(C,C+1),k=[F[2],F[3]],I=["brackets",v].concat(T,k),L=p.slice(0,g),B=p.slice(C+1);p=L,p.push(I),p=p.concat(B)}let b=[];for(let C of p)if((C[1]==="!"||b.length)&&b.push(C),C[1]==="important")break;if(b.length){let[C]=b,v=p.indexOf(C),P=b[b.length-1],T=[C[2],C[3]],F=[P[4],P[5]],k=["word",b.map(I=>I[1]).join("")].concat(T,F);p.splice(v,b.length,k)}let A=p.findIndex(C=>d.test(C[1]));A>0&&([,x]=p[A],p.splice(A,1));for(let C of p.reverse())this.tokenizer.back(C);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=D,x&&(this.lastNode.important=!0,this.lastNode.raws.important=x)}other(p){n.bind(this)(p)||super.other(p)}rule(p){let f=p[p.length-1],D=p[p.length-2];if(D[0]==="at-word"&&f[0]==="{"&&(this.tokenizer.back(f),i.bind(this)(D))){let m=this.tokenizer.nextToken();p=p.slice(0,p.length-2).concat([m]);for(let g of p.reverse())this.tokenizer.back(g);return}super.rule(p),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(p){let[f]=p;if(p[0][1]==="each"&&p[1][0]==="("){this.each(p);return}if(o(f)){this.mixin(p);return}super.unknownWord(p)}}}),RX=ge((t,e)=>{var r=Nm();e.exports=class extends r{atrule(s,n){if(!s.mixin&&!s.variable&&!s.function){super.atrule(s,n);return}let i=`${s.function?"":s.raws.identifier||"@"}${s.name}`,o=s.params?this.rawValue(s,"params"):"",u=s.raws.important||"";if(s.variable&&(o=s.value),typeof s.raws.afterName<"u"?i+=s.raws.afterName:o&&(i+=" "),s.nodes)this.block(s,i+o+u);else{let c=(s.raws.between||"")+u+(n?";":"");this.builder(i+o+c,s)}}comment(s){if(s.inline){let n=this.raw(s,"left","commentLeft"),i=this.raw(s,"right","commentRight");this.builder(`//${n}${s.text}${i}`,s)}else super.comment(s)}}}),qX=ge((t,e)=>{var r=Mu(),s=jX(),n=RX();e.exports={parse(i,o){let u=new r(i,o),c=new s(u);return c.parse(),c.root.walk(d=>{let p=u.css.lastIndexOf(d.source.input.css);if(p===0)return;if(p+d.source.input.css.length!==u.css.length)throw new Error("Invalid state detected in postcss-less");let f=p+d.source.start.offset,D=u.fromOffset(p+d.source.start.offset);if(d.source.start={offset:f,line:D.line,column:D.col},d.source.end){let m=p+d.source.end.offset,g=u.fromOffset(p+d.source.end.offset);d.source.end={offset:m,line:g.line,column:g.col}}}),c.root},stringify(i,o){new n(o).stringify(i)},nodeToString(i){let o="";return e.exports.stringify(i,u=>{o+=u}),o}}}),jm=ge((t,e)=>{"use strict";var r=Li(),s,n,i=class extends r{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new s(new n,this,o).stringify()}};i.registerLazyResult=o=>{s=o},i.registerProcessor=o=>{n=o},e.exports=i,i.default=i}),UX=ge((t,e)=>{"use strict";var r=$m(),s=$u(),n=Jc(),i=Mu(),o=Tv(),u=Ou(),c=Mm();function d(p,f){if(Array.isArray(p))return p.map(b=>d(b));let{inputs:D,...m}=p;if(D){f=[];for(let b of D){let A={...b,__proto__:i.prototype};A.map&&(A.map={...A.map,__proto__:o.prototype}),f.push(A)}}let g;if(m.nodes&&(g=p.nodes.map(b=>d(b,f)),delete m.nodes),m.source){let{inputId:b,...A}=m.source;m.source=A,b!=null&&(m.source.input=f[b])}let x;if(m.type==="root")x=new u(m);else if(m.type==="decl")x=new n(m);else if(m.type==="rule")x=new c(m);else if(m.type==="comment")x=new s(m);else if(m.type==="atrule")x=new r(m);else throw new Error("Unknown node type: "+p.type);if(g){x.nodes=g;for(let b of g)b.parent=x}return x}e.exports=d,d.default=d}),wv=ge((t,e)=>{e.exports=class{generate(){}}}),Sv=ge((t,e)=>{"use strict";var r=class{constructor(s,n={}){if(this.type="warning",this.text=s,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=r,r.default=r}),Rm=ge((t,e)=>{"use strict";var r=Sv(),s=class{get content(){return this.css}constructor(n,i,o){this.processor=n,this.messages=[],this.root=i,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let o=new r(n,i);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}};e.exports=s,s.default=s}),kv=ge((t,e)=>{"use strict";var r={};e.exports=function(s){r[s]||(r[s]=!0,typeof console<"u"&&console.warn&&console.warn(s))}}),Pv=ge((t,e)=>{"use strict";var r=Li(),s=jm(),n=wv(),i=Gc(),o=Rm(),u=Ou(),c=Hc(),{isClean:d,my:p}=Lm(),f=kv(),D={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},m={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},g={Once:!0,postcssPlugin:!0,prepare:!0},x=0;function b(F){return typeof F=="object"&&typeof F.then=="function"}function A(F){let k=!1,I=D[F.type];return F.type==="decl"?k=F.prop.toLowerCase():F.type==="atrule"&&(k=F.name.toLowerCase()),k&&F.append?[I,I+"-"+k,x,I+"Exit",I+"Exit-"+k]:k?[I,I+"-"+k,I+"Exit",I+"Exit-"+k]:F.append?[I,x,I+"Exit"]:[I,I+"Exit"]}function C(F){let k;return F.type==="document"?k=["Document",x,"DocumentExit"]:F.type==="root"?k=["Root",x,"RootExit"]:k=A(F),{eventIndex:0,events:k,iterator:0,node:F,visitorIndex:0,visitors:[]}}function v(F){return F[d]=!1,F.nodes&&F.nodes.forEach(k=>v(k)),F}var P={},T=class Iv{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(k,I,L){this.stringified=!1,this.processed=!1;let B;if(typeof I=="object"&&I!==null&&(I.type==="root"||I.type==="document"))B=v(I);else if(I instanceof Iv||I instanceof o)B=v(I.root),I.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=I.map);else{let O=i;L.syntax&&(O=L.syntax.parse),L.parser&&(O=L.parser),O.parse&&(O=O.parse);try{B=O(I,L)}catch(R){this.processed=!0,this.error=R}B&&!B[p]&&r.rebuild(B)}this.result=new o(k,B,L),this.helpers={...P,postcss:P,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(k){return this.async().catch(k)}finally(k){return this.async().then(k,k)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(k,I){let L=this.result.lastPlugin;try{I&&I.addToError(k),this.error=k,k.name==="CssSyntaxError"&&!k.plugin?(k.plugin=L.postcssPlugin,k.setMessage()):L.postcssVersion}catch(B){console&&console.error&&console.error(B)}return k}prepareVisitors(){this.listeners={};let k=(I,L,B)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([I,B])};for(let I of this.plugins)if(typeof I=="object")for(let L in I){if(!m[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${I.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!g[L])if(typeof I[L]=="object")for(let B in I[L])B==="*"?k(I,L,I[L][B]):k(I,L+"-"+B.toLowerCase(),I[L][B]);else typeof I[L]=="function"&&k(I,L,I[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let k=0;k<this.plugins.length;k++){let I=this.plugins[k],L=this.runOnRoot(I);if(b(L))try{await L}catch(B){throw this.handleError(B)}}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[d];){k[d]=!0;let I=[C(k)];for(;I.length>0;){let L=this.visitTick(I);if(b(L))try{await L}catch(B){let O=I[I.length-1].node;throw this.handleError(B,O)}}}if(this.listeners.OnceExit)for(let[I,L]of this.listeners.OnceExit){this.result.lastPlugin=I;try{if(k.type==="document"){let B=k.nodes.map(O=>L(O,this.helpers));await Promise.all(B)}else await L(k,this.helpers)}catch(B){throw this.handleError(B)}}}return this.processed=!0,this.stringify()}runOnRoot(k){this.result.lastPlugin=k;try{if(typeof k=="object"&&k.Once){if(this.result.root.type==="document"){let I=this.result.root.nodes.map(L=>k.Once(L,this.helpers));return b(I[0])?Promise.all(I):I}return k.Once(this.result.root,this.helpers)}else if(typeof k=="function")return k(this.result.root,this.result)}catch(I){throw this.handleError(I)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let k=this.result.opts,I=c;k.syntax&&(I=k.syntax.stringify),k.stringifier&&(I=k.stringifier),I.stringify&&(I=I.stringify);let L=this.result.root.source;if(k.map===void 0&&!(L&&L.input&&L.input.map)){let O="";return I(this.result.root,R=>{O+=R}),this.result.css=O,this.result}let B=new n(I,this.result.root,this.result.opts).generate();return this.result.css=B[0],this.result.map=B[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let k of this.plugins){let I=this.runOnRoot(k);if(b(I))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[d];)k[d]=!0,this.walkSync(k);if(this.listeners.OnceExit)if(k.type==="document")for(let I of k.nodes)this.visitSync(this.listeners.OnceExit,I);else this.visitSync(this.listeners.OnceExit,k)}return this.result}then(k,I){return this.async().then(k,I)}toString(){return this.css}visitSync(k,I){for(let[L,B]of k){this.result.lastPlugin=L;let O;try{O=B(I,this.helpers)}catch(R){throw this.handleError(R,I.proxyOf)}if(I.type!=="root"&&I.type!=="document"&&!I.parent)return!0;if(b(O))throw this.getAsyncError()}}visitTick(k){let I=k[k.length-1],{node:L,visitors:B}=I;if(L.type!=="root"&&L.type!=="document"&&!L.parent){k.pop();return}if(B.length>0&&I.visitorIndex<B.length){let[R,q]=B[I.visitorIndex];I.visitorIndex+=1,I.visitorIndex===B.length&&(I.visitors=[],I.visitorIndex=0),this.result.lastPlugin=R;try{return q(L.toProxy(),this.helpers)}catch(V){throw this.handleError(V,L)}}if(I.iterator!==0){let R=I.iterator,q;for(;q=L.nodes[L.indexes[R]];)if(L.indexes[R]+=1,!q[d]){q[d]=!0,k.push(C(q));return}I.iterator=0,delete L.indexes[R]}let O=I.events;for(;I.eventIndex<O.length;){let R=O[I.eventIndex];if(I.eventIndex+=1,R===x){L.nodes&&L.nodes.length&&(L[d]=!0,I.iterator=L.getIterator());return}else if(this.listeners[R]){I.visitors=this.listeners[R];return}}k.pop()}walkSync(k){k[d]=!0;let I=A(k);for(let L of I)if(L===x)k.nodes&&k.each(B=>{B[d]||this.walkSync(B)});else{let B=this.listeners[L];if(B&&this.visitSync(B,k.toProxy()))return}}warnings(){return this.sync().warnings()}};T.registerPostcss=F=>{P=F},e.exports=T,T.default=T,u.registerLazyResult(T),s.registerLazyResult(T)}),zX=ge((t,e)=>{"use strict";var r=wv(),s=Gc(),n=Rm(),i=Hc(),o=kv(),u=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,d=s;try{c=d(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(c,d,p){d=d.toString(),this.stringified=!1,this._processor=c,this._css=d,this._opts=p,this._map=void 0;let f=i;this.result=new n(this._processor,void 0,this._opts),this.result.css=d;let D=this;Object.defineProperty(this.result,"root",{get(){return D.root}});let m=new r(f,void 0,this._opts,d);if(m.isMap()){let[g,x]=m.generate();g&&(this.result.css=g),x&&(this.result.map=x)}else m.clearAnnotation(),this.result.css=m.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,d){return this.async().then(c,d)}toString(){return this._css}warnings(){return[]}};e.exports=u,u.default=u}),VX=ge((t,e)=>{"use strict";var r=jm(),s=Pv(),n=zX(),i=Ou(),o=class{constructor(u=[]){this.version="8.5.16",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let d of u)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))c=c.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)c.push(d);else if(typeof d=="function")c.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new n(this,u,c):new s(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}};e.exports=o,o.default=o,i.registerProcessor(o),r.registerProcessor(o)}),qm=ge((t,e)=>{"use strict";var r=$m(),s=$u(),n=Li(),i=Bm(),o=Jc(),u=jm(),c=UX(),d=Mu(),p=Pv(),f=Fv(),D=Wc(),m=Gc(),g=VX(),x=Rm(),b=Ou(),A=Mm(),C=Hc(),v=Sv();function P(...T){return T.length===1&&Array.isArray(T[0])&&(T=T[0]),new g(T)}P.plugin=function(T,F){let k=!1;function I(...B){console&&console.warn&&!k&&(k=!0,console.warn(T+`: postcss.plugin was deprecated. Migration guide:
|
|
204
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let O=F(...B);return O.postcssPlugin=T,O.postcssVersion=new g().version,O}let L;return Object.defineProperty(I,"postcss",{get(){return L||(L=I()),L}}),I.process=function(B,O,R){return P([I(R)]).process(B,O)},I},P.stringify=C,P.parse=m,P.fromJSON=c,P.list=f,P.comment=T=>new s(T),P.atRule=T=>new r(T),P.decl=T=>new o(T),P.rule=T=>new A(T),P.root=T=>new b(T),P.document=T=>new u(T),P.CssSyntaxError=i,P.Declaration=o,P.Container=n,P.Processor=g,P.Document=u,P.Comment=s,P.Warning=v,P.AtRule=r,P.Result=x,P.Input=d,P.Rule=A,P.Root=b,P.Node=D,p.registerPostcss(P),e.exports=P,P.default=P}),HX=ge((t,e)=>{var{Container:r}=qm(),s=class extends r{constructor(n){super(n),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};e.exports=s}),WX=ge((t,e)=>{"use strict";var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i,o=/[\n\f\r]/g;e.exports=function(u,c={}){let d=u.css.valueOf(),p=c.ignoreErrors,f,D,m,g,x,b,A,C,v,P=d.length,T=0,F=[],k=[],I;function L(){return T}function B(j){throw u.error("Unclosed "+j,T)}function O(){return k.length===0&&T>=P}function R(){let j=1,z=!1,M=!1;for(;j>0;)D+=1,d.length<=D&&B("interpolation"),f=d.charCodeAt(D),C=d.charCodeAt(D+1),z?!M&&f===z?(z=!1,M=!1):f===92?M=!M:M&&(M=!1):f===39||f===34?z=f:f===125?j-=1:f===35&&C===123&&(j+=1)}function q(j){if(k.length)return k.pop();if(T>=P)return;let z=j?j.ignoreUnclosed:!1;switch(f=d.charCodeAt(T),f){case 10:case 32:case 9:case 13:case 12:{D=T;do D+=1,f=d.charCodeAt(D);while(f===32||f===10||f===9||f===13||f===12);v=["space",d.slice(T,D)],T=D-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let M=String.fromCharCode(f);v=[M,M,T];break}case 44:{v=["word",",",T,T+1];break}case 40:{if(A=F.length?F.pop()[1]:"",C=d.charCodeAt(T+1),A==="url"&&C!==39&&C!==34){for(I=1,b=!1,D=T+1;D<=d.length-1;){if(C=d.charCodeAt(D),C===92)b=!b;else if(C===40)I+=1;else if(C===41&&(I-=1,I===0))break;D+=1}g=d.slice(T,D+1),v=["brackets",g,T,D],T=D}else D=d.indexOf(")",T+1),g=d.slice(T,D+1),D===-1||n.test(g)?v=["(","(",T]:(v=["brackets",g,T,D],T=D);break}case 39:case 34:{for(m=f,D=T,b=!1;D<P&&(D++,D===P&&B("string"),f=d.charCodeAt(D),C=d.charCodeAt(D+1),!(!b&&f===m));)f===92?b=!b:b?b=!1:f===35&&C===123&&R();v=["string",d.slice(T,D+1),T,D],T=D;break}case 64:{r.lastIndex=T+1,r.test(d),r.lastIndex===0?D=d.length-1:D=r.lastIndex-2,v=["at-word",d.slice(T,D+1),T,D],T=D;break}case 92:{for(D=T,x=!0;d.charCodeAt(D+1)===92;)D+=1,x=!x;if(f=d.charCodeAt(D+1),x&&f!==47&&f!==32&&f!==10&&f!==9&&f!==13&&f!==12&&(D+=1,i.test(d.charAt(D)))){for(;i.test(d.charAt(D+1));)D+=1;d.charCodeAt(D+1)===32&&(D+=1)}v=["word",d.slice(T,D+1),T,D],T=D;break}default:C=d.charCodeAt(T+1),f===35&&C===123?(D=T,R(),g=d.slice(T,D+1),v=["word",g,T,D],T=D):f===47&&C===42?(D=d.indexOf("*/",T+2)+1,D===0&&(p||z?D=d.length:B("comment")),v=["comment",d.slice(T,D+1),T,D],T=D):f===47&&C===47?(o.lastIndex=T+1,o.test(d),o.lastIndex===0?D=d.length-1:D=o.lastIndex-2,g=d.slice(T,D+1),v=["comment",g,T,D,"inline"],T=D):(s.lastIndex=T+1,s.test(d),s.lastIndex===0?D=d.length-1:D=s.lastIndex-2,v=["word",d.slice(T,D+1),T,D],F.push(v),T=D);break}return T++,v}function V(j){k.push(j)}return{back:V,endOfFile:O,nextToken:q,position:L}}}),JX=ge((t,e)=>{var{Comment:r}=qm(),s=_m(),n=HX(),i=WX(),o=class extends s{atrule(u){let c=u[1],d=u;for(;!this.tokenizer.endOfFile();){let p=this.tokenizer.nextToken();if(p[0]==="word"&&p[2]===d[3]+1)c+=p[1],d=p;else{this.tokenizer.back(p);break}}super.atrule(["at-word",c,u[2],d[3]])}comment(u){if(u[4]==="inline"){let c=new r;this.init(c,u[2]),c.raws.inline=!0;let d=this.input.fromOffset(u[3]);c.source.end={column:d.col,line:d.line,offset:u[3]+1};let p=u[1].slice(2);if(/^\s*$/.test(p))c.text="",c.raws.left=p,c.raws.right="";else{let f=p.match(/^(\s*)([^]*\S)(\s*)$/),D=f[2].replace(/(\*\/|\/\*)/g,"*//*");c.text=D,c.raws.left=f[1],c.raws.right=f[3],c.raws.text=f[2]}}else super.comment(u)}createTokenizer(){this.tokenizer=i(this.input)}raw(u,c,d,p){if(super.raw(u,c,d,p),u.raws[c]){let f=u.raws[c].raw;u.raws[c].raw=d.reduce((D,m)=>{if(m[0]==="comment"&&m[4]==="inline"){let g=m[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return D+"/*"+g+"*/"}else return D+m[1]},""),f!==u.raws[c].raw&&(u.raws[c].scss=f)}}rule(u){let c=!1,d=0,p="";for(let f of u)if(c)f[0]!=="comment"&&f[0]!=="{"&&(p+=f[1]);else{if(f[0]==="space"&&f[1].includes(`
|
|
205
|
-
`))break;f[0]==="("?d+=1:f[0]===")"?d-=1:d===0&&f[0]===":"&&(c=!0)}if(!c||p.trim()===""||/^[#:A-Za-z-]/.test(p))super.rule(u);else{u.pop();let f=new n;this.init(f,u[0][2]);let D;for(let g=u.length-1;g>=0;g--)if(u[g][0]!=="space"){D=u[g];break}if(D[3]){let g=this.input.fromOffset(D[3]);f.source.end={column:g.col,line:g.line,offset:D[3]+1}}else{let g=this.input.fromOffset(D[2]);f.source.end={column:g.col,line:g.line,offset:D[2]+1}}for(;u[0][0]!=="word";)f.raws.before+=u.shift()[1];if(u[0][2]){let g=this.input.fromOffset(u[0][2]);f.source.start={column:g.col,line:g.line,offset:u[0][2]}}for(f.prop="";u.length;){let g=u[0][0];if(g===":"||g==="space"||g==="comment")break;f.prop+=u.shift()[1]}f.raws.between="";let m;for(;u.length;)if(m=u.shift(),m[0]===":"){f.raws.between+=m[1];break}else f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1)),f.raws.between+=this.spacesAndCommentsFromStart(u),this.precheckMissedSemicolon(u);for(let g=u.length-1;g>0;g--){if(m=u[g],m[1]==="!important"){f.important=!0;let x=this.stringFrom(u,g);x=this.spacesFromEnd(u)+x,x!==" !important"&&(f.raws.important=x);break}else if(m[1]==="important"){let x=u.slice(0),b="";for(let A=g;A>0;A--){let C=x[A][0];if(b.trim().indexOf("!")===0&&C!=="space")break;b=x.pop()[1]+b}b.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=b,u=x)}if(m[0]!=="space"&&m[0]!=="comment")break}this.raw(f,"value",u),f.value.includes(":")&&this.checkMissedSemicolon(u),this.current=f}}};e.exports=o}),GX=ge((t,e)=>{var{Input:r}=qm(),s=JX();e.exports=function(n,i){let o=new r(n,i),u=new s(o);return u.parse(),u.root}}),Bv=ge(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function e(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}t.default=e}),Nv=ge(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Bv(),r=s(e);function s(i){return i&&i.__esModule?i:{default:i}}function n(i){var o=this;this.constructor(i),this.nodes=i.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(u){u.parent=o})}n.prototype=Object.create(r.default.prototype),n.constructor=r.default,n.prototype.walk=function(i,o){for(var u=typeof i=="string"||i instanceof RegExp,c=u?o:i,d=typeof i=="string"?new RegExp(i):i,p=0;p<this.nodes.length;p++){var f=this.nodes[p],D=u?d.test(f.type):!0;if(D&&c&&c(f,p,this.nodes)===!1||f.nodes&&f.walk(i,o)===!1)return!1}return!0},n.prototype.each=function(){for(var i=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],o=0;o<this.nodes.length;o++){var u=this.nodes[o];if(i(u,o,this.nodes)===!1)return!1}return!0},t.default=n}),KX=ge(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseMediaFeature=o,t.parseMediaQuery=u,t.parseMediaList=c;var e=Bv(),r=i(e),s=Nv(),n=i(s);function i(d){return d&&d.__esModule?d:{default:d}}function o(d){var p=arguments.length<=1||arguments[1]===void 0?0:arguments[1],f=[{mode:"normal",character:null}],D=[],m=0,g="",x=null,b=null,A=p,C=d;d[0]==="("&&d[d.length-1]===")"&&(C=d.substring(1,d.length-1),A++);for(var v=0;v<C.length;v++){var P=C[v];if((P==="'"||P==='"')&&(f[m].isCalculationEnabled===!0?(f.push({mode:"string",isCalculationEnabled:!1,character:P}),m++):f[m].mode==="string"&&f[m].character===P&&C[v-1]!=="\\"&&(f.pop(),m--)),P==="{"?(f.push({mode:"interpolation",isCalculationEnabled:!0}),m++):P==="}"&&(f.pop(),m--),f[m].mode==="normal"&&P===":"){var T=C.substring(v+1);b={type:"value",before:/^(\s*)/.exec(T)[1],after:/(\s*)$/.exec(T)[1],value:T.trim()},b.sourceIndex=b.before.length+v+1+A,x={type:"colon",sourceIndex:v+A,after:b.before,value:":"};break}g+=P}return g={type:"media-feature",before:/^(\s*)/.exec(g)[1],after:/(\s*)$/.exec(g)[1],value:g.trim()},g.sourceIndex=g.before.length+A,D.push(g),x!==null&&(x.before=g.after,D.push(x)),b!==null&&D.push(b),D}function u(d){var p=arguments.length<=1||arguments[1]===void 0?0:arguments[1],f=[],D=0,m=!1,g=void 0;function x(){return{before:"",after:"",value:""}}g=x();for(var b=0;b<d.length;b++){var A=d[b];m?(g.value+=A,(A==="{"||A==="(")&&D++,(A===")"||A==="}")&&D--):A.search(/\s/)!==-1?g.before+=A:(A==="("&&(g.type="media-feature-expression",D++),g.value=A,g.sourceIndex=p+b,m=!0),m&&D===0&&(A===")"||b===d.length-1||d[b+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(g.value)!==-1&&(g.type="keyword"),g.type==="media-feature-expression"&&(g.nodes=o(g.value,g.sourceIndex)),f.push(Array.isArray(g.nodes)?new n.default(g):new r.default(g)),g=x(),m=!1)}for(var C=0;C<f.length;C++)if(g=f[C],C>0&&(f[C-1].after=g.before),g.type===void 0){if(C>0){if(f[C-1].type==="media-feature-expression"){g.type="keyword";continue}if(f[C-1].value==="not"||f[C-1].value==="only"){g.type="media-type";continue}if(f[C-1].value==="and"){g.type="media-feature-expression";continue}f[C-1].type==="media-type"&&(f[C+1]?g.type=f[C+1].type==="media-feature-expression"?"keyword":"media-feature-expression":g.type="media-feature-expression")}if(C===0){if(!f[C+1]){g.type="media-type";continue}if(f[C+1]&&(f[C+1].type==="media-feature-expression"||f[C+1].type==="keyword")){g.type="media-type";continue}if(f[C+2]){if(f[C+2].type==="media-feature-expression"){g.type="media-type",f[C+1].type="keyword";continue}if(f[C+2].type==="keyword"){g.type="keyword",f[C+1].type="media-type";continue}}if(f[C+3]&&f[C+3].type==="media-feature-expression"){g.type="keyword",f[C+1].type="media-type",f[C+2].type="keyword";continue}}}return f}function c(d){var p=[],f=0,D=0,m=/^(\s*)url\s*\(/.exec(d);if(m!==null){for(var g=m[0].length,x=1;x>0;){var b=d[g];b==="("&&x++,b===")"&&x--,g++}p.unshift(new r.default({type:"url",value:d.substring(0,g).trim(),sourceIndex:m[1].length,before:m[1],after:/^(\s*)/.exec(d.substring(g))[1]})),f=g}for(var A=f;A<d.length;A++){var C=d[A];if(C==="("&&D++,C===")"&&D--,D===0&&C===","){var v=d.substring(f,A),P=/^(\s*)/.exec(v)[1];p.push(new n.default({type:"media-query",value:v.trim(),sourceIndex:f+P.length,nodes:u(v,f),before:P,after:/(\s*)$/.exec(v)[1]})),f=A+1}}var T=d.substring(f),F=/^(\s*)/.exec(T)[1];return p.push(new n.default({type:"media-query",value:T.trim(),sourceIndex:f+F.length,nodes:u(T,f),before:F,after:/(\s*)$/.exec(T)[1]})),p}}),XX=ge(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var e=Nv(),r=n(e),s=KX();function n(o){return o&&o.__esModule?o:{default:o}}function i(o){return new r.default({nodes:(0,s.parseMediaList)(o),type:"media-query-list",value:o.trim()})}}),Lv=ge((t,e)=>{e.exports=function(r,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(r)?r.map(function(i){return i}):r;return n(r,1);function n(i,o){return i.reduce(function(u,c){return Array.isArray(c)&&o<s?u.concat(n(c,o+1)):u.concat(c)},[])}}}),$v=ge((t,e)=>{e.exports=function(r,s){for(var n=-1,i=[];(n=r.indexOf(s,n+1))!==-1;)i.push(n);return i}}),Mv=ge((t,e)=>{"use strict";function r(i,o){for(var u=1,c=i.length,d=i[0],p=i[0],f=1;f<c;++f)if(p=d,d=i[f],o(d,p)){if(f===u){u++;continue}i[u++]=d}return i.length=u,i}function s(i){for(var o=1,u=i.length,c=i[0],d=i[0],p=1;p<u;++p,d=c)if(d=c,c=i[p],c!==d){if(p===o){o++;continue}i[o++]=c}return i.length=o,i}function n(i,o,u){return i.length===0?i:o?(u||i.sort(o),r(i,o)):(u||i.sort(),s(i))}e.exports=n}),ja=ge((t,e)=>{"use strict";t.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function s(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}var n=function o(u,c){if((typeof u>"u"?"undefined":r(u))!=="object")return u;var d=new u.constructor;for(var p in u)if(u.hasOwnProperty(p)){var f=u[p],D=typeof f>"u"?"undefined":r(f);p==="parent"&&D==="object"?c&&(d[p]=c):f instanceof Array?d[p]=f.map(function(m){return o(m,d)}):d[p]=o(f,d)}return d},i=(function(){function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s(this,o);for(var c in u)this[c]=u[c];var d=u.spaces;d=d===void 0?{}:d;var p=d.before,f=p===void 0?"":p,D=d.after,m=D===void 0?"":D;this.spaces={before:f,after:m}}return o.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},o.prototype.replaceWith=function(){if(this.parent){for(var u in arguments)this.parent.insertBefore(this,arguments[u]);this.remove()}return this},o.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},o.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},o.prototype.clone=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n(this);for(var d in u)c[d]=u[d];return c},o.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},o})();t.default=i,e.exports=t.default}),Fr=ge(t=>{"use strict";t.__esModule=!0;var e=t.TAG="tag",r=t.STRING="string",s=t.SELECTOR="selector",n=t.ROOT="root",i=t.PSEUDO="pseudo",o=t.NESTING="nesting",u=t.ID="id",c=t.COMMENT="comment",d=t.COMBINATOR="combinator",p=t.CLASS="class",f=t.ATTRIBUTE="attribute",D=t.UNIVERSAL="universal"}),Um=ge((t,e)=>{"use strict";t.__esModule=!0;var r=(function(){function m(g,x){for(var b=0;b<x.length;b++){var A=x[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(g,A.key,A)}}return function(g,x,b){return x&&m(g.prototype,x),b&&m(g,b),g}})(),s=ja(),n=c(s),i=Fr(),o=u(i);function u(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(g[x]=m[x]);return g.default=m,g}function c(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function p(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var D=(function(m){f(g,m);function g(x){d(this,g);var b=p(this,m.call(this,x));return b.nodes||(b.nodes=[]),b}return g.prototype.append=function(x){return x.parent=this,this.nodes.push(x),this},g.prototype.prepend=function(x){return x.parent=this,this.nodes.unshift(x),this},g.prototype.at=function(x){return this.nodes[x]},g.prototype.index=function(x){return typeof x=="number"?x:this.nodes.indexOf(x)},g.prototype.removeChild=function(x){x=this.index(x),this.at(x).parent=void 0,this.nodes.splice(x,1);var b=void 0;for(var A in this.indexes)b=this.indexes[A],b>=x&&(this.indexes[A]=b-1);return this},g.prototype.removeAll=function(){for(var A=this.nodes,x=Array.isArray(A),b=0,A=x?A:A[Symbol.iterator]();;){var C;if(x){if(b>=A.length)break;C=A[b++]}else{if(b=A.next(),b.done)break;C=b.value}var v=C;v.parent=void 0}return this.nodes=[],this},g.prototype.empty=function(){return this.removeAll()},g.prototype.insertAfter=function(x,b){var A=this.index(x);this.nodes.splice(A+1,0,b);var C=void 0;for(var v in this.indexes)C=this.indexes[v],A<=C&&(this.indexes[v]=C+this.nodes.length);return this},g.prototype.insertBefore=function(x,b){var A=this.index(x);this.nodes.splice(A,0,b);var C=void 0;for(var v in this.indexes)C=this.indexes[v],A<=C&&(this.indexes[v]=C+this.nodes.length);return this},g.prototype.each=function(x){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var b=this.lastEach;if(this.indexes[b]=0,!!this.length){for(var A=void 0,C=void 0;this.indexes[b]<this.length&&(A=this.indexes[b],C=x(this.at(A),A),C!==!1);)this.indexes[b]+=1;if(delete this.indexes[b],C===!1)return!1}},g.prototype.walk=function(x){return this.each(function(b,A){var C=x(b,A);if(C!==!1&&b.length&&(C=b.walk(x)),C===!1)return!1})},g.prototype.walkAttributes=function(x){var b=this;return this.walk(function(A){if(A.type===o.ATTRIBUTE)return x.call(b,A)})},g.prototype.walkClasses=function(x){var b=this;return this.walk(function(A){if(A.type===o.CLASS)return x.call(b,A)})},g.prototype.walkCombinators=function(x){var b=this;return this.walk(function(A){if(A.type===o.COMBINATOR)return x.call(b,A)})},g.prototype.walkComments=function(x){var b=this;return this.walk(function(A){if(A.type===o.COMMENT)return x.call(b,A)})},g.prototype.walkIds=function(x){var b=this;return this.walk(function(A){if(A.type===o.ID)return x.call(b,A)})},g.prototype.walkNesting=function(x){var b=this;return this.walk(function(A){if(A.type===o.NESTING)return x.call(b,A)})},g.prototype.walkPseudos=function(x){var b=this;return this.walk(function(A){if(A.type===o.PSEUDO)return x.call(b,A)})},g.prototype.walkTags=function(x){var b=this;return this.walk(function(A){if(A.type===o.TAG)return x.call(b,A)})},g.prototype.walkUniversals=function(x){var b=this;return this.walk(function(A){if(A.type===o.UNIVERSAL)return x.call(b,A)})},g.prototype.split=function(x){var b=this,A=[];return this.reduce(function(C,v,P){var T=x.call(b,v);return A.push(v),T?(C.push(A),A=[]):P===b.length-1&&C.push(A),C},[])},g.prototype.map=function(x){return this.nodes.map(x)},g.prototype.reduce=function(x,b){return this.nodes.reduce(x,b)},g.prototype.every=function(x){return this.nodes.every(x)},g.prototype.some=function(x){return this.nodes.some(x)},g.prototype.filter=function(x){return this.nodes.filter(x)},g.prototype.sort=function(x){return this.nodes.sort(x)},g.prototype.toString=function(){return this.map(String).join("")},r(g,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),g})(n.default);t.default=D,e.exports=t.default}),YX=ge((t,e)=>{"use strict";t.__esModule=!0;var r=Um(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.ROOT,m}return f.prototype.toString=function(){var D=this.reduce(function(m,g){var x=String(g);return x?m+x+",":""},"").slice(0,-1);return this.trailingComma?D+",":D},f})(s.default);t.default=d,e.exports=t.default}),QX=ge((t,e)=>{"use strict";t.__esModule=!0;var r=Um(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.SELECTOR,m}return f})(s.default);t.default=d,e.exports=t.default}),_u=ge((t,e)=>{"use strict";t.__esModule=!0;var r=(function(){function p(f,D){for(var m=0;m<D.length;m++){var g=D[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,D,m){return D&&p(f.prototype,D),m&&p(f,m),f}})(),s=ja(),n=i(s);function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(){return o(this,f),u(this,p.apply(this,arguments))}return f.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},r(f,[{key:"ns",get:function(){var D=this.namespace;return D?(typeof D=="string"?D:"")+"|":""}}]),f})(n.default);t.default=d,e.exports=t.default}),ZX=ge((t,e)=>{"use strict";t.__esModule=!0;var r=_u(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.CLASS,m}return f.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},f})(s.default);t.default=d,e.exports=t.default}),eY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=ja(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.COMMENT,m}return f})(s.default);t.default=d,e.exports=t.default}),tY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=_u(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.ID,m}return f.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},f})(s.default);t.default=d,e.exports=t.default}),rY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=_u(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.TAG,m}return f})(s.default);t.default=d,e.exports=t.default}),sY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=ja(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.STRING,m}return f})(s.default);t.default=d,e.exports=t.default}),nY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=Um(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.PSEUDO,m}return f.prototype.toString=function(){var D=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),D,this.spaces.after].join("")},f})(s.default);t.default=d,e.exports=t.default}),iY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=_u(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.ATTRIBUTE,m.raws={},m}return f.prototype.toString=function(){var D=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&D.push(this.operator),this.value&&D.push(this.value),this.raws.insensitive?D.push(this.raws.insensitive):this.insensitive&&D.push(" i"),D.push("]"),D.concat(this.spaces.after).join("")},f})(s.default);t.default=d,e.exports=t.default}),aY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=_u(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.UNIVERSAL,m.value="*",m}return f})(s.default);t.default=d,e.exports=t.default}),oY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=ja(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.COMBINATOR,m}return f})(s.default);t.default=d,e.exports=t.default}),uY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=ja(),s=i(r),n=Fr();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function u(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function c(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var d=(function(p){c(f,p);function f(D){o(this,f);var m=u(this,p.call(this,D));return m.type=n.NESTING,m.value="&",m}return f})(s.default);t.default=d,e.exports=t.default}),lY=ge((t,e)=>{"use strict";t.__esModule=!0,t.default=r;function r(s){return s.sort(function(n,i){return n-i})}e.exports=t.default}),cY=ge((t,e)=>{"use strict";t.__esModule=!0,t.default=O;var r=39,s=34,n=92,i=47,o=10,u=32,c=12,d=9,p=13,f=43,D=62,m=126,g=124,x=44,b=40,A=41,C=91,v=93,P=59,T=42,F=58,k=38,I=64,L=/[ \n\t\r\{\(\)'"\\;/]/g,B=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function O(R){for(var q=[],V=R.css.valueOf(),j=void 0,z=void 0,M=void 0,ae=void 0,ce=void 0,S=void 0,te=void 0,Z=void 0,N=void 0,se=void 0,ye=void 0,ne=V.length,Q=-1,J=1,G=0,ie=function(de,Pe){if(R.safe)V+=Pe,z=V.length-1;else throw R.error("Unclosed "+de,J,G-Q,G)};G<ne;){switch(j=V.charCodeAt(G),j===o&&(Q=G,J+=1),j){case o:case u:case d:case p:case c:z=G;do z+=1,j=V.charCodeAt(z),j===o&&(Q=z,J+=1);while(j===u||j===o||j===d||j===p||j===c);q.push(["space",V.slice(G,z),J,G-Q,G]),G=z-1;break;case f:case D:case m:case g:z=G;do z+=1,j=V.charCodeAt(z);while(j===f||j===D||j===m||j===g);q.push(["combinator",V.slice(G,z),J,G-Q,G]),G=z-1;break;case T:q.push(["*","*",J,G-Q,G]);break;case k:q.push(["&","&",J,G-Q,G]);break;case x:q.push([",",",",J,G-Q,G]);break;case C:q.push(["[","[",J,G-Q,G]);break;case v:q.push(["]","]",J,G-Q,G]);break;case F:q.push([":",":",J,G-Q,G]);break;case P:q.push([";",";",J,G-Q,G]);break;case b:q.push(["(","(",J,G-Q,G]);break;case A:q.push([")",")",J,G-Q,G]);break;case r:case s:M=j===r?"'":'"',z=G;do for(se=!1,z=V.indexOf(M,z+1),z===-1&&ie("quote",M),ye=z;V.charCodeAt(ye-1)===n;)ye-=1,se=!se;while(se);q.push(["string",V.slice(G,z+1),J,G-Q,J,z-Q,G]),G=z;break;case I:L.lastIndex=G+1,L.test(V),L.lastIndex===0?z=V.length-1:z=L.lastIndex-2,q.push(["at-word",V.slice(G,z+1),J,G-Q,J,z-Q,G]),G=z;break;case n:for(z=G,te=!0;V.charCodeAt(z+1)===n;)z+=1,te=!te;j=V.charCodeAt(z+1),te&&j!==i&&j!==u&&j!==o&&j!==d&&j!==p&&j!==c&&(z+=1),q.push(["word",V.slice(G,z+1),J,G-Q,J,z-Q,G]),G=z;break;default:j===i&&V.charCodeAt(G+1)===T?(z=V.indexOf("*/",G+2)+1,z===0&&ie("comment","*/"),S=V.slice(G,z+1),ae=S.split(`
|
|
206
|
-
`),ce=ae.length-1,ce>0?(Z=J+ce,N=z-ae[ce].length):(Z=J,N=Q),q.push(["comment",S,J,G-Q,Z,z-N,G]),Q=N,J=Z,G=z):(B.lastIndex=G+1,B.test(V),B.lastIndex===0?z=V.length-1:z=B.lastIndex-2,q.push(["word",V.slice(G,z+1),J,G-Q,J,z-Q,G]),G=z);break}G++}return q}e.exports=t.default}),pY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=(function(){function Q(J,G){for(var ie=0;ie<G.length;ie++){var de=G[ie];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(J,de.key,de)}}return function(J,G,ie){return G&&Q(J.prototype,G),ie&&Q(J,ie),J}})(),s=Lv(),n=se(s),i=$v(),o=se(i),u=Mv(),c=se(u),d=YX(),p=se(d),f=QX(),D=se(f),m=ZX(),g=se(m),x=eY(),b=se(x),A=tY(),C=se(A),v=rY(),P=se(v),T=sY(),F=se(T),k=nY(),I=se(k),L=iY(),B=se(L),O=aY(),R=se(O),q=oY(),V=se(q),j=uY(),z=se(j),M=lY(),ae=se(M),ce=cY(),S=se(ce),te=Fr(),Z=N(te);function N(Q){if(Q&&Q.__esModule)return Q;var J={};if(Q!=null)for(var G in Q)Object.prototype.hasOwnProperty.call(Q,G)&&(J[G]=Q[G]);return J.default=Q,J}function se(Q){return Q&&Q.__esModule?Q:{default:Q}}function ye(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}var ne=(function(){function Q(J){ye(this,Q),this.input=J,this.lossy=J.options.lossless===!1,this.position=0,this.root=new p.default;var G=new D.default;return this.root.append(G),this.current=G,this.lossy?this.tokens=(0,S.default)({safe:J.safe,css:J.css.trim()}):this.tokens=(0,S.default)(J),this.loop()}return Q.prototype.attribute=function(){var J="",G=void 0,ie=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)J+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~J.indexOf("]")&&this.error("Expected a closing square bracket.");var de=J.split(/((?:[*~^$|]?=))([^]*)/),Pe=de[0].split(/(\|)/g),ve={operator:de[1],value:de[2],source:{start:{line:ie[2],column:ie[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:ie[4]};if(Pe.length>1?(Pe[0]===""&&(Pe[0]=!0),ve.attribute=this.parseValue(Pe[2]),ve.namespace=this.parseNamespace(Pe[0])):ve.attribute=this.parseValue(de[0]),G=new B.default(ve),de[2]){var We=de[2].split(/(\s+i\s*?)$/),nt=We[0].trim();G.value=this.lossy?nt:We[0],We[1]&&(G.insensitive=!0,this.lossy||(G.raws.insensitive=We[1])),G.quoted=nt[0]==="'"||nt[0]==='"',G.raws.unquoted=G.quoted?nt.slice(1,-1):nt}this.newNode(G),this.position++},Q.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var J=new V.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(J.spaces.before=this.parseSpace(this.currToken[1]),J.source.start.line=this.nextToken[2],J.source.start.column=this.nextToken[3],J.source.end.column=this.nextToken[3],J.source.end.line=this.nextToken[2],J.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?J.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?J.value=this.currToken[1]:this.currToken[0]==="space"&&(J.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(J)},Q.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var J=new D.default;this.current.parent.append(J),this.current=J,this.position++},Q.prototype.comment=function(){var J=new b.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(J),this.position++},Q.prototype.error=function(J){throw new this.input.error(J)},Q.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},Q.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},Q.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},Q.prototype.namespace=function(){var J=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(J);if(this.nextToken[0]==="*")return this.position++,this.universal(J)},Q.prototype.nesting=function(){this.newNode(new z.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},Q.prototype.parentheses=function(){var J=this.current.last;if(J&&J.type===Z.PSEUDO){var G=new D.default,ie=this.current;J.append(G),this.current=G;var de=1;for(this.position++;this.position<this.tokens.length&&de;)this.currToken[0]==="("&&de++,this.currToken[0]===")"&&de--,de?this.parse():(G.parent.source.end.line=this.currToken[2],G.parent.source.end.column=this.currToken[3],this.position++);de&&this.error("Expected closing parenthesis."),this.current=ie}else{var Pe=1;for(this.position++,J.value+="(";this.position<this.tokens.length&&Pe;)this.currToken[0]==="("&&Pe++,this.currToken[0]===")"&&Pe--,J.value+=this.parseParenthesisToken(this.currToken),this.position++;Pe&&this.error("Expected closing parenthesis.")}},Q.prototype.pseudo=function(){for(var J=this,G="",ie=this.currToken;this.currToken&&this.currToken[0]===":";)G+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var de=void 0;this.splitWord(!1,function(Pe,ve){G+=Pe,de=new I.default({value:G,source:{start:{line:ie[2],column:ie[3]},end:{line:J.currToken[4],column:J.currToken[5]}},sourceIndex:ie[4]}),J.newNode(de),ve>1&&J.nextToken&&J.nextToken[0]==="("&&J.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},Q.prototype.space=function(){var J=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(J[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(J[1]),this.position++):this.combinator()},Q.prototype.string=function(){var J=this.currToken;this.newNode(new F.default({value:this.currToken[1],source:{start:{line:J[2],column:J[3]},end:{line:J[4],column:J[5]}},sourceIndex:J[6]})),this.position++},Q.prototype.universal=function(J){var G=this.nextToken;if(G&&G[1]==="|")return this.position++,this.namespace();this.newNode(new R.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),J),this.position++},Q.prototype.splitWord=function(J,G){for(var ie=this,de=this.nextToken,Pe=this.currToken[1];de&&de[0]==="word";){this.position++;var ve=this.currToken[1];if(Pe+=ve,ve.lastIndexOf("\\")===ve.length-1){var We=this.nextToken;We&&We[0]==="space"&&(Pe+=this.parseSpace(We[1]," "),this.position++)}de=this.nextToken}var nt=(0,o.default)(Pe,"."),lt=(0,o.default)(Pe,"#"),rt=(0,o.default)(Pe,"#{");rt.length&&(lt=lt.filter(function(fe){return!~rt.indexOf(fe)}));var ke=(0,ae.default)((0,c.default)((0,n.default)([[0],nt,lt])));ke.forEach(function(fe,we){var Vt=ke[we+1]||Pe.length,_e=Pe.slice(fe,Vt);if(we===0&&G)return G.call(ie,_e,ke.length);var Ct=void 0;~nt.indexOf(fe)?Ct=new g.default({value:_e.slice(1),source:{start:{line:ie.currToken[2],column:ie.currToken[3]+fe},end:{line:ie.currToken[4],column:ie.currToken[3]+(Vt-1)}},sourceIndex:ie.currToken[6]+ke[we]}):~lt.indexOf(fe)?Ct=new C.default({value:_e.slice(1),source:{start:{line:ie.currToken[2],column:ie.currToken[3]+fe},end:{line:ie.currToken[4],column:ie.currToken[3]+(Vt-1)}},sourceIndex:ie.currToken[6]+ke[we]}):Ct=new P.default({value:_e,source:{start:{line:ie.currToken[2],column:ie.currToken[3]+fe},end:{line:ie.currToken[4],column:ie.currToken[3]+(Vt-1)}},sourceIndex:ie.currToken[6]+ke[we]}),ie.newNode(Ct,J)}),this.position++},Q.prototype.word=function(J){var G=this.nextToken;return G&&G[1]==="|"?(this.position++,this.namespace()):this.splitWord(J)},Q.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},Q.prototype.parse=function(J){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":J&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},Q.prototype.parseNamespace=function(J){if(this.lossy&&typeof J=="string"){var G=J.trim();return G.length?G:!0}return J},Q.prototype.parseSpace=function(J,G){return this.lossy?G||"":J},Q.prototype.parseValue=function(J){return this.lossy&&J&&typeof J=="string"?J.trim():J},Q.prototype.parseParenthesisToken=function(J){return this.lossy?J[0]==="space"?this.parseSpace(J[1]," "):this.parseValue(J[1]):J[1]},Q.prototype.newNode=function(J,G){return G&&(J.namespace=this.parseNamespace(G)),this.spaces&&(J.spaces.before=this.spaces,this.spaces=""),this.current.append(J)},r(Q,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Q})();t.default=ne,e.exports=t.default}),hY=ge((t,e)=>{"use strict";t.__esModule=!0;var r=(function(){function c(d,p){for(var f=0;f<p.length;f++){var D=p[f];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(d,D.key,D)}}return function(d,p,f){return p&&c(d.prototype,p),f&&c(d,f),d}})(),s=pY(),n=i(s);function i(c){return c&&c.__esModule?c:{default:c}}function o(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var u=(function(){function c(d){return o(this,c),this.func=d||function(){},this}return c.prototype.process=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=new n.default({css:d,error:function(D){throw new Error(D)},options:p});return this.res=f,this.func(f),this},r(c,[{key:"result",get:function(){return String(this.res)}}]),c})();t.default=u,e.exports=t.default}),Ms=ge((t,e)=>{"use strict";var r=function(s,n){let i=new s.constructor;for(let o in s){if(!s.hasOwnProperty(o))continue;let u=s[o],c=typeof u;o==="parent"&&c==="object"?n&&(i[o]=n):o==="source"?i[o]=u:u instanceof Array?i[o]=u.map(d=>r(d,i)):o!=="before"&&o!=="after"&&o!=="between"&&o!=="semicolon"&&(c==="object"&&u!==null&&(u=r(u)),i[o]=u)}return i};e.exports=class{constructor(s){s=s||{},this.raws={before:"",after:""};for(let n in s)this[n]=s[n]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(s){s=s||{};let n=r(this);for(let i in s)n[i]=s[i];return n}cloneBefore(s){s=s||{};let n=this.clone(s);return this.parent.insertBefore(this,n),n}cloneAfter(s){s=s||{};let n=this.clone(s);return this.parent.insertAfter(this,n),n}replaceWith(){let s=Array.prototype.slice.call(arguments);if(this.parent){for(let n of s)this.parent.insertBefore(this,n);this.remove()}return this}moveTo(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.append(this),this}moveBefore(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertBefore(s,this),this}moveAfter(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertAfter(s,this),this}next(){let s=this.parent.index(this);return this.parent.nodes[s+1]}prev(){let s=this.parent.index(this);return this.parent.nodes[s-1]}toJSON(){let s={};for(let n in this){if(!this.hasOwnProperty(n)||n==="parent")continue;let i=this[n];i instanceof Array?s[n]=i.map(o=>typeof o=="object"&&o.toJSON?o.toJSON():o):typeof i=="object"&&i.toJSON?s[n]=i.toJSON():s[n]=i}return s}root(){let s=this;for(;s.parent;)s=s.parent;return s}cleanRaws(s){delete this.raws.before,delete this.raws.after,s||delete this.raws.between}positionInside(s){let n=this.toString(),i=this.source.start.column,o=this.source.start.line;for(let u=0;u<s;u++)n[u]===`
|
|
207
|
-
`?(i=1,o+=1):i+=1;return{line:o,column:i}}positionBy(s){let n=this.source.start;if(Object(s).index)n=this.positionInside(s.index);else if(Object(s).word){let i=this.toString().indexOf(s.word);i!==-1&&(n=this.positionInside(i))}return n}}}),Ur=ge((t,e)=>{"use strict";var r=Ms(),s=class extends r{constructor(n){super(n),this.nodes||(this.nodes=[])}push(n){return n.parent=this,this.nodes.push(n),this}each(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach,o,u;if(this.indexes[i]=0,!!this.nodes){for(;this.indexes[i]<this.nodes.length&&(o=this.indexes[i],u=n(this.nodes[o],o),u!==!1);)this.indexes[i]+=1;return delete this.indexes[i],u}}walk(n){return this.each((i,o)=>{let u=n(i,o);return u!==!1&&i.walk&&(u=i.walk(n)),u})}walkType(n,i){if(!n||!i)throw new Error("Parameters {type} and {callback} are required.");let o=typeof n=="function";return this.walk((u,c)=>{if(o&&u instanceof n||!o&&u.type===n)return i.call(this,u,c)})}append(n){return n.parent=this,this.nodes.push(n),this}prepend(n){return n.parent=this,this.nodes.unshift(n),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let i of this.nodes)i.cleanRaws(n)}insertAfter(n,i){let o=this.index(n),u;this.nodes.splice(o+1,0,i);for(let c in this.indexes)u=this.indexes[c],o<=u&&(this.indexes[c]=u+this.nodes.length);return this}insertBefore(n,i){let o=this.index(n),u;this.nodes.splice(o,0,i);for(let c in this.indexes)u=this.indexes[c],o<=u&&(this.indexes[c]=u+this.nodes.length);return this}removeChild(n){n=this.index(n),this.nodes[n].parent=void 0,this.nodes.splice(n,1);let i;for(let o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this}removeAll(){for(let n of this.nodes)n.parent=void 0;return this.nodes=[],this}every(n){return this.nodes.every(n)}some(n){return this.nodes.some(n)}index(n){return typeof n=="number"?n:this.nodes.indexOf(n)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let n=this.nodes.map(String).join("");return this.value&&(n=this.value+n),this.raws.before&&(n=this.raws.before+n),this.raws.after&&(n+=this.raws.after),n}};s.registerWalker=n=>{let i="walk"+n.name;i.lastIndexOf("s")!==i.length-1&&(i+="s"),!s.prototype[i]&&(s.prototype[i]=function(o){return this.walkType(n,o)})},e.exports=s}),dY=ge((t,e)=>{"use strict";var r=Ur();e.exports=class extends r{constructor(s){super(s),this.type="root"}}}),fY=ge((t,e)=>{"use strict";var r=Ur();e.exports=class extends r{constructor(s){super(s),this.type="value",this.unbalanced=0}}}),mY=ge((t,e)=>{"use strict";var r=Ur(),s=class extends r{constructor(n){super(n),this.type="atword"}toString(){let n=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(s),e.exports=s}),yY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="colon"}};r.registerWalker(n),e.exports=n}),DY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="comma"}};r.registerWalker(n),e.exports=n}),gY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="comment",this.inline=Object(i).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(n),e.exports=n}),xY=ge((t,e)=>{"use strict";var r=Ur(),s=class extends r{constructor(n){super(n),this.type="func",this.unbalanced=-1}};r.registerWalker(s),e.exports=s}),bY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="number",this.unit=Object(i).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(n),e.exports=n}),EY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="operator"}};r.registerWalker(n),e.exports=n}),CY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="paren",this.parenType=""}};r.registerWalker(n),e.exports=n}),AY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="string"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,i,this.value+"",i,this.raws.after].join("")}};r.registerWalker(n),e.exports=n}),vY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="word"}};r.registerWalker(n),e.exports=n}),TY=ge((t,e)=>{"use strict";var r=Ur(),s=Ms(),n=class extends s{constructor(i){super(i),this.type="unicode-range"}};r.registerWalker(n),e.exports=n}),FY=ge((t,e)=>{"use strict";var r=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};e.exports=r}),wY=ge((t,e)=>{"use strict";var r=/[ \n\t\r\{\(\)'"\\;,/]/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,i=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,u=FY();e.exports=function(c,d){d=d||{};let p=[],f=c.valueOf(),D=f.length,m=-1,g=1,x=0,b=0,A=null,C,v,P,T,F,k,I,L,B,O,R,q;function V(z){let M=`Unclosed ${z} at line: ${g}, column: ${x-m}, token: ${x}`;throw new u(M)}function j(){let z=`Syntax error at line: ${g}, column: ${x-m}, token: ${x}`;throw new u(z)}for(;x<D;){switch(C=f.charCodeAt(x),C===10&&(m=x,g+=1),C){case 10:case 32:case 9:case 13:case 12:v=x;do v+=1,C=f.charCodeAt(v),C===10&&(m=v,g+=1);while(C===32||C===10||C===9||C===13||C===12);p.push(["space",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;break;case 58:v=x+1,p.push(["colon",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;break;case 44:v=x+1,p.push(["comma",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;break;case 123:p.push(["{","{",g,x-m,g,v-m,x]);break;case 125:p.push(["}","}",g,x-m,g,v-m,x]);break;case 40:b++,A=!A&&b===1&&p.length>0&&p[p.length-1][0]==="word"&&p[p.length-1][1]==="url",p.push(["(","(",g,x-m,g,v-m,x]);break;case 41:b--,A=A&&b>0,p.push([")",")",g,x-m,g,v-m,x]);break;case 39:case 34:P=C===39?"'":'"',v=x;do for(O=!1,v=f.indexOf(P,v+1),v===-1&&V("quote",P),R=v;f.charCodeAt(R-1)===92;)R-=1,O=!O;while(O);p.push(["string",f.slice(x,v+1),g,x-m,g,v-m,x]),x=v;break;case 64:r.lastIndex=x+1,r.test(f),r.lastIndex===0?v=f.length-1:v=r.lastIndex-2,p.push(["atword",f.slice(x,v+1),g,x-m,g,v-m,x]),x=v;break;case 92:v=x,C=f.charCodeAt(v+1),I&&C!==47&&C!==32&&C!==10&&C!==9&&C!==13&&C!==12&&(v+=1),p.push(["word",f.slice(x,v+1),g,x-m,g,v-m,x]),x=v;break;case 43:case 45:case 42:v=x+1,q=f.slice(x+1,v+1);let z=f.slice(x-1,x);if(C===45&&q.charCodeAt(0)===45){v++,p.push(["word",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;break}p.push(["operator",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;break;default:if(C===47&&(f.charCodeAt(x+1)===42||d.loose&&!A&&f.charCodeAt(x+1)===47)){if(f.charCodeAt(x+1)===42)v=f.indexOf("*/",x+2)+1,v===0&&V("comment","*/");else{let M=f.indexOf(`
|
|
208
|
-
`,x+2);v=M!==-1?M-1:D}k=f.slice(x,v+1),T=k.split(`
|
|
209
|
-
`),F=T.length-1,F>0?(L=g+F,B=v-T[F].length):(L=g,B=m),p.push(["comment",k,g,x-m,L,v-B,x]),m=B,g=L,x=v}else if(C===35&&!i.test(f.slice(x+1,x+2)))v=x+1,p.push(["#",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;else if((C===117||C===85)&&f.charCodeAt(x+1)===43){v=x+2;do v+=1,C=f.charCodeAt(v);while(v<D&&o.test(f.slice(v,v+1)));p.push(["unicoderange",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1}else if(C===47)v=x+1,p.push(["operator",f.slice(x,v),g,x-m,g,v-m,x]),x=v-1;else{let M=s;if(C>=48&&C<=57&&(M=n),M.lastIndex=x+1,M.test(f),M.lastIndex===0?v=f.length-1:v=M.lastIndex-2,M===n||C===46){let ae=f.charCodeAt(v),ce=f.charCodeAt(v+1),S=f.charCodeAt(v+2);(ae===101||ae===69)&&(ce===45||ce===43)&&S>=48&&S<=57&&(n.lastIndex=v+2,n.test(f),n.lastIndex===0?v=f.length-1:v=n.lastIndex-2)}p.push(["word",f.slice(x,v+1),g,x-m,g,v-m,x]),x=v}break}x++}return p}}),SY=ge((t,e)=>{"use strict";var r=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};e.exports=r}),kY=ge((t,e)=>{"use strict";var r=dY(),s=fY(),n=mY(),i=yY(),o=DY(),u=gY(),c=xY(),d=bY(),p=EY(),f=CY(),D=AY(),m=vY(),g=TY(),x=wY(),b=Lv(),A=$v(),C=Mv(),v=SY();function P(T){return T.sort((F,k)=>F-k)}e.exports=class{constructor(T,F){let k={loose:!1};this.cache=[],this.input=T,this.options=Object.assign({},k,F),this.position=0,this.unbalanced=0,this.root=new r;let I=new s;this.root.append(I),this.current=I,this.tokens=x(T,this.options)}parse(){return this.loop()}colon(){let T=this.currToken;this.newNode(new i({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++}comma(){let T=this.currToken;this.newNode(new o({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++}comment(){let T=!1,F=this.currToken[1].replace(/\/\*|\*\//g,""),k;this.options.loose&&F.startsWith("//")&&(F=F.substring(2),T=!0),k=new u({value:F,inline:T,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(k),this.position++}error(T,F){throw new v(T+` at line: ${F[2]}, column ${F[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let T=this.currToken[1],F;if(T==="+"||T==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return F=new p({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(F)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let T=1,F=this.position+1,k=this.currToken,I;for(;F<this.tokens.length&&T;){let L=this.tokens[F];L[0]==="("&&T++,L[0]===")"&&T--,F++}if(T&&this.error("Expected closing parenthesis",k),I=this.current.last,I&&I.type==="func"&&I.unbalanced<0&&(I.unbalanced=0,this.current=I),this.current.unbalanced++,this.newNode(new f({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let L=this.nextToken,B=this.currToken[1],O={line:this.currToken[2],column:this.currToken[3]};for(;L&&L[0]!==")"&&this.current.unbalanced;)this.position++,B+=this.currToken[1],L=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new m({value:B,source:{start:O,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let T=this.currToken;this.newNode(new f({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",T),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let T=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=T[1],this.position++):(this.spaces=T[1],this.position++)}unicodeRange(){let T=this.currToken;this.newNode(new g({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++}splitWord(){let T=this.nextToken,F=this.currToken[1],k=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,I=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,L,B;if(!I.test(F))for(;T&&T[0]==="word";){this.position++;let O=this.currToken[1];F+=O,T=this.nextToken}L=A(F,"@"),B=P(C(b([[0],L]))),B.forEach((O,R)=>{let q=B[R+1]||F.length,V=F.slice(O,q),j;if(~L.indexOf(O))j=new n({value:V.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+O},end:{line:this.currToken[4],column:this.currToken[3]+(q-1)}},sourceIndex:this.currToken[6]+B[R]});else if(k.test(this.currToken[1])){let z=V.replace(k,"");j=new d({value:V.replace(z,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+O},end:{line:this.currToken[4],column:this.currToken[3]+(q-1)}},sourceIndex:this.currToken[6]+B[R],unit:z})}else j=new(T&&T[0]==="("?c:m)({value:V,source:{start:{line:this.currToken[2],column:this.currToken[3]+O},end:{line:this.currToken[4],column:this.currToken[3]+(q-1)}},sourceIndex:this.currToken[6]+B[R]}),j.type==="word"?(j.isHex=/^#(.+)/.test(V),j.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(V)):this.cache.push(this.current);this.newNode(j)}),this.position++}string(){let T=this.currToken,F=this.currToken[1],k=/^(\"|\')/,I=k.test(F),L="",B;I&&(L=F.match(k)[0],F=F.slice(1,F.length-1)),B=new D({value:F,source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6],quoted:I}),B.raws.quote=L,this.newNode(B),this.position++}word(){return this.splitWord()}newNode(T){return this.spaces&&(T.raws.before+=this.spaces,this.spaces=""),this.current.append(T)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),Ov={};Ev(Ov,{languages:()=>TT,options:()=>FT,parsers:()=>Xm,printers:()=>LT});var _v=(t,e)=>(r,s,...n)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,n),PY=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},IY=_v("replaceAll",function(){if(typeof this=="string")return PY}),kt=IY;function BY(t){return this[t<0?this.length+t:t]}var NY=_v("at",function(){if(Array.isArray(this)||typeof this=="string")return BY}),bi=NY,LY=()=>{},jv=LY,Rv="string",qv="array",Uv="cursor",Kc="indent",zm="align",zv="trim",Xc="group",Yc="fill",Qc="if-break",Vv="indent-if-break",Vm="line-suffix",Hm="line-suffix-boundary",$i="line",Hv="label",Wm="break-parent",Wv=new Set([Uv,Kc,zm,zv,Xc,Yc,Qc,Vv,Vm,Hm,$i,Hv,Wm]);function $Y(t,e,r){if(!t.has(e)){let s=r(e);t.set(e,s)}return t.get(e)}function MY(t){if(typeof t=="string")return Rv;if(Array.isArray(t))return qv;if(!t)return;let{type:e}=t;if(Wv.has(e))return e}var qo=MY,OY=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function _Y(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
210
|
-
Expected it to be 'string' or 'object'.`;if(qo(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=OY([...Wv].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
211
|
-
Expected it to be ${s}.`}var jY=class extends Error{name="InvalidDocError";constructor(t){super(_Y(t)),this.doc=t}},RY=jY;function Jv(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(i){return $Y(r,i,n)}function n(i){switch(qo(i)){case qv:return e(i.map(s));case Yc:return e({...i,parts:i.parts.map(s)});case Qc:return e({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Xc:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(s),u=o[0]):u=s(u),e({...i,contents:u,expandedStates:o})}case zm:case Kc:case Vv:case Hv:case Vm:return e({...i,contents:s(i.contents)});case Rv:case Uv:case zv:case Hm:case $i:case Wm:return e(i);default:throw new RY(i)}}}function qY(t){return t.type===$i&&!t.hard?t.soft?"":" ":t.type===Qc?t.flatContents:t}function UY(t){return Jv(t,qY)}function zY(t,e=JY){return Jv(t,r=>typeof r=="string"?Js(e,r.split(`
|
|
212
|
-
`)):r)}var VY=jv;function fr(t){return{type:Kc,contents:t}}function HY(t,e){return{type:zm,contents:e,n:t}}function nu(t){return HY(-1,t)}var Zc={type:Wm};function Rl(t){return{type:Yc,parts:t}}function Ir(t,e={}){return VY(e.expandedStates),{type:Xc,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Gv(t,e="",r={}){return{type:Qc,breakContents:t,flatContents:e,groupId:r.groupId}}function Js(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var tr={type:$i},mr={type:$i,soft:!0},WY={type:$i,hard:!0},Lt=[WY,Zc],Kv={type:$i,hard:!0,literal:!0},JY=[Kv,Zc];function Xv(t){return{type:Vm,contents:t}}var Yv={type:Hm};function GY(t){return Array.isArray(t)&&t.length>0}var ep=GY,Qv=Object.freeze({character:"'",codePoint:39}),Zv=Object.freeze({character:'"',codePoint:34}),KY=Object.freeze({preferred:Qv,alternate:Zv}),XY=Object.freeze({preferred:Zv,alternate:Qv});function YY(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?KY:XY,{length:n}=t,i=0,o=0;for(let u=0;u<n;u++){let c=t.charCodeAt(u);c===r.codePoint?i++:c===s.codePoint&&o++}return(i>o?s:r).character}var QY=/\\(["'\\])|(["'])/g;function ZY(t,e){let r=e==='"'?"'":'"',s=kt(0,t,QY,(n,i,o)=>i?i===r?r:n:o===e?"\\"+o:o);return e+s+e}var eQ=ZY;function tQ(t,e){let r=t.slice(1,-1),s;return e.parser==="json"||e.parser==="jsonc"||e.parser==="json-stringify"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?s='"':e.__isInHtmlAttribute?s="'":s=YY(r,e.singleQuote),t.charAt(0)===s?t:eQ(r,s)}var eT=tQ,rQ=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},sQ=rQ;function tT(){}tT.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var nQ=tT,lo=null;function Uo(t){if(lo!==null&&typeof lo.property){let e=lo;return lo=Uo.prototype=null,e}return lo=Uo.prototype=t??Object.create(null),new Uo}var iQ=10;for(let t=0;t<=iQ;t++)Uo();function aQ(t){return Uo(t)}function oQ(t,e="type"){aQ(t);function r(s){let n=s[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var uQ=oQ,ms=[["nodes"],["group"]],lQ={"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":ms[0],"media-query":ms[0],"media-type":[],"media-feature-expression":ms[0],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":ms[0],"selector-selector":ms[0],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":ms[0],"selector-universal":[],"selector-pseudo":ms[0],"selector-nesting":[],"selector-unknown":[],"value-value":ms[1],"value-root":ms[1],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":ms[1],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},cQ=uQ(lQ),pQ=cQ;function hQ(t,e){let r=0;for(let s=0;s<t.line-1;++s)r=e.indexOf(`
|
|
213
|
-
`,r)+1;return r+t.column}var rT=hQ;function Jm(t){return(e,r,s)=>{if(r===!1)return!1;let n=!!s?.backwards,{length:i}=e,o=r;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var sT=Jm(" "),dQ=Jm(",; "),nT=Jm(/[^\n\r]/);function iT(t,e){let{value:r}=t;return r==="-"||r==="--"||r.charAt(0)!=="-"?e:e-(r.charAt(1)==="-"?2:1)}function aT(t,e){if(typeof t.source?.start?.offset=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.type==="value-word"?iT(t,t.sourceIndex):t.sourceIndex;if(t.source?.start)return rT(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function oT(t,e){if(t.type==="css-comment"&&t.inline)return nT(e,t.source.startOffset);if(t.type==="value-paren"&&typeof t.sourceIndex=="number")return t.sourceIndex+(t.value===")"?t.value.length:0);if(typeof t.source?.end?.offset=="number")return t.source.end.offset;if(t.source){if(t.source.end){let r=rT(t.source.end,e);return t.type==="value-word"?iT(t,r):r}if(ep(t.nodes))return oT(bi(0,t.nodes,-1),e);if(t.type==="css-atrule"&&typeof t.name=="string")return aT(t,e)+1+t.name.length+t.raws.afterName.length+t.raws.params.length}return typeof t.sourceIndex=="number"&&typeof t.value=="string"?t.sourceIndex+t.value.length:null}function fQ(t,e){ad(t,e,0,!1)}function ad(t,e,r,s){if(s&&typeof t.type=="string")t.source??(t.source={}),t.source.startOffset=r,t.source.endOffset=r+e.length;else if(!(typeof t.source?.startOffset=="number"&&typeof t.source?.endOffset=="number")&&(t.source||typeof t.sourceIndex=="number")){t.source??(t.source={});let n=r+e.length;t.source.startOffset=Math.min(aT(t,e)+r,n);let i=oT(t,e);t.source.endOffset=typeof i=="number"?Math.min(i+r,n):i}for(let n in t){let i=t[n];if(n==="source"||!i||typeof i!="object")continue;let o=Array.isArray(i)?i:[i];for(let u of o){if(!u||typeof u!="object")continue;let c=mQ(t,u,r);c?ad(u,c.text,c.rootOffset,!0):ad(u,e,r,!1),cT(u,t)}}gQ(t),xQ(t)}function mQ(t,e,r){if(e.type==="value-root"||e.type==="value-unknown")return{rootOffset:uT(t),text:e.text||e.value||""};if(e.type==="media-query-list"||t.params===e)return{rootOffset:lT(t),text:t.raws?.params||e.value||""};if(e.type?.startsWith("selector-")){let s=yQ(t,e);if(typeof s=="string")return{rootOffset:DQ(t,e,s,r),text:s}}}function uT(t){let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/)[0].length),t.type!=="css-atrule"&&typeof t.raws?.between=="string"&&(e+=t.raws.between.length),e}function lT(t){let e=t.source.startOffset;return t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/)[0].length),e}function yQ(t,e){if(typeof e.raws?.selector=="string")return e.raws.selector;if(t.selector===e){if(t.mixin)return t.raws.identifier+t.name+t.raws.afterName+t.raws.params;if(typeof t.raws?.selector=="string")return t.raws.selector;if(t.customSelector&&typeof t.raws?.params=="string")return t.raws.params.slice(t.customSelector.length).trim();if(typeof t.raws?.params=="string")return t.raws.params;if(t.type==="css-decl"&&typeof t.raws?.value=="string"){let{value:r}=t.raws;return t.extend&&r.startsWith("extend(")?r.slice(7,-1):r}}}function DQ(t,e,r,s){return typeof e.sourceIndex=="number"&&typeof e.raws?.selector=="string"?s+e.sourceIndex:t.mixin?t.source.startOffset:typeof t.raws?.selector=="string"?t.source.startOffset+sh(t.raws.selector,r):typeof t.raws?.params=="string"?lT(t)+sh(t.raws.params,r):t.type==="css-decl"&&typeof t.raws?.value=="string"?uT(t)+sh(t.raws.value,r):s}function sh(t,e){let r=t.indexOf(e);return r===-1?0:r}function gQ(t){var e,r;if(typeof t.type!="string")return;let s=typeof t.source?.startOffset=="number"&&typeof t.source?.endOffset=="number",n=t.source?.start&&t.source.end;if(s&&n)return;let i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,u,c;for(let d in t){if(d==="source"||d==="raws"||d==="spaces")continue;let p=t[d],f=Array.isArray(p)?p:[p];for(let D of f)!D||typeof D!="object"||typeof D.source?.startOffset!="number"||typeof D.source?.endOffset!="number"||(D.source.startOffset<i&&(i=D.source.startOffset,u=D.source.start),D.source.endOffset>o&&(o=D.source.endOffset,c=D.source.end))}i!==Number.POSITIVE_INFINITY&&(t.source??(t.source={}),s||(t.source.startOffset=i,t.source.endOffset=o),(e=t.source).start??(e.start=u),(r=t.source).end??(r.end=c))}function cT(t,e){typeof t.type!="string"||t.source||typeof e.source?.startOffset!="number"||typeof e.source?.endOffset!="number"||!bQ(t)||(t.source={startOffset:e.source.startOffset,endOffset:e.source.startOffset,start:e.source.start,end:e.source.start})}function xQ(t){if(!(typeof t.source?.startOffset!="number"||typeof t.source?.endOffset!="number"))for(let e in t){if(e==="source"||e==="raws"||e==="spaces")continue;let r=t[e],s=Array.isArray(r)?r:[r];for(let n of s)n&&typeof n=="object"&&cT(n,t)}}function bQ(t){return Array.isArray(t.nodes)&&t.nodes.length===0||Array.isArray(t.groups)&&t.groups.length===0}function EQ(t){let e="initial",r="initial",s,n=!1,i=[];for(let o=0;o<t.length;o++){let u=t[o];switch(e){case"initial":if(u==="'"){e="single-quotes";continue}if(u==='"'){e="double-quotes";continue}if((u==="u"||u==="U")&&t.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(u==="/"){let c=t[o+1];c==="*"?(e="comment-block",o++):c==="/"&&(e="comment-inline",s=o,o++);continue}continue;case"single-quotes":if(u==="'"&&t[o-1]!=="\\"&&(e=r,r="initial"),u===`
|
|
214
|
-
`||u==="\r")return t;continue;case"double-quotes":if(u==='"'&&t[o-1]!=="\\"&&(e=r,r="initial"),u===`
|
|
215
|
-
`||u==="\r")return t;continue;case"url":if(u===")")e="initial";else if(u===`
|
|
216
|
-
`||u==="\r")return t;if(u==="'"){e="single-quotes",r="url";continue}if(u==='"'){e="double-quotes",r="url";continue}continue;case"comment-block":u==="/"&&t[o-1]==="*"&&(e="initial");continue;case"comment-inline":u==='"'||u==="'"||u==="*"?n=!0:(u===`
|
|
217
|
-
`||u==="\r")&&(n&&i.push([s,o]),e="initial",n=!1);continue}}for(let[o,u]of i)t=t.slice(0,o)+kt(0,t.slice(o,u),/["'*]/g," ")+t.slice(u);return t}var gr=t=>t.source.startOffset,xr=t=>t.source.endOffset,pT=Symbol.for("PRETTIER_IS_FRONT_MATTER");function CQ(t){return!!t?.[pT]}var od=CQ;function AQ(t){return kt(0,t,/[^\n]/g," ")}var hT=AQ,co=3;function vQ(t){let e=t.slice(0,co);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
218
|
-
`,co);if(r===-1)return;let s=t.slice(co,r).trim(),n=t.indexOf(`
|
|
219
|
-
${e}`,r),i=s;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
|
|
220
|
-
...`,r)),n===-1)return;let o=n+1+co,u=t.charAt(o+1);if(!/\s?/.test(u))return;let c=t.slice(0,o),d;return{language:i,explicitLanguage:s||null,value:t.slice(r+1,n),startDelimiter:e,endDelimiter:c.slice(-co),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return d??(d=c.split(`
|
|
221
|
-
`)),d.length},get column(){return d??(d=c.split(`
|
|
222
|
-
`)),bi(0,d,-1).length}},[pT]:!0}}function TQ(t){let e=vQ(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return hT(r)+t.slice(r.length)}}:{content:t}}var tp=TQ,FQ=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function dT(t,e,r){if(t.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===t||od(r.nodes[0])&&r.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/.test(t.text))||r.type==="css-root"&&bi(0,r.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&(delete e.params,t.extend&&SQ(t.selector)&&delete e.extend),(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=wQ(t.value)),t.type==="selector-combinator"&&(e.value=kt(0,e.value,/\s+/g," ")),t.type==="media-feature"&&(e.value=kt(0,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=kt(0,e.value,/;$/g,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value)){let{value:s}=e;/\s[a-z]$/i.test(s)&&(e.__prettier_attribute_selector_flag=bi(0,s,-1),s=s.slice(0,-1)),s=s.trim(),s=s.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/,"$<value>"),e.value=s,delete e.quoted}if((t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=kt(0,e.value,/([\d+.e-]+)([a-z]*)/gi,(s,n,i)=>{let o=Number(n);return Number.isNaN(o)?s:o+i.toLowerCase()})),t.type==="selector-tag"){let s=e.value.toLowerCase();["from","to"].includes(s)&&(e.value=s)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let s=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");s!==-1&&(e.groups[s].unit="",e.groups.splice(s+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(s=>s.type==="value-atword"&&(s.value.endsWith("[")||s.value.endsWith("]"))||s.type==="value-word"&&(s.value.startsWith("]")||s.value.startsWith("["))))return{type:"value-atword",value:t.groups.map(s=>s.value).join("")};if(t.type==="value-func"&&t.value==="if"&&t.group.type==="value-paren_group"&&t.group.groups.length===1&&t.group.groups[0].type==="value-comma_group"){let s=t.group.groups[0].groups,n=e.group.groups[0].groups;for(let i=s.length-1;i>=0;i--){let o=s[i];if(o.type==="value-word"&&typeof o.value=="string"&&o.value.endsWith(";")){if(o.value===";"){s[i-1]?.type==="value-number"&&n.splice(i-1,2,{type:"#node-placeholder"});continue}n[i]={type:"#node-placeholder"}}}}}dT.ignoredProperties=FQ;function wQ(t){return kt(0,kt(0,t,"'",'"'),/\\([^\da-f])/gi,"$1")}function SQ(t){return t?.nodes?.some(e=>e.nodes?.some(r=>r.type==="selector-pseudo"&&r.value===":extend"))}var kQ=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),fT=kQ,PQ=/\*\/$/,IQ=/^\/\*\*?/,mT=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,BQ=/(^|\s+)\/\/([^\n\r]*)/g,cg=/^(\r?\n)+/,NQ=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,pg=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,LQ=/(\r?\n|^) *\* ?/g,yT=[];function $Q(t){let e=t.match(mT);return e?e[0].trimStart():""}function MQ(t){let e=t.match(mT)?.[0];return e==null?t:t.slice(e.length)}function OQ(t){t=kt(0,t.replace(IQ,"").replace(PQ,""),LQ,"$1");let e="";for(;e!==t;)e=t,t=kt(0,t,NQ,`
|
|
223
|
-
$1 $2
|
|
224
|
-
`);t=t.replace(cg,"").trimEnd();let r=Object.create(null),s=kt(0,t,pg,"").replace(cg,"").trimEnd(),n;for(;n=pg.exec(t);){let i=kt(0,n[2],BQ,"");if(typeof r[n[1]]=="string"||Array.isArray(r[n[1]])){let o=r[n[1]];r[n[1]]=[...yT,...Array.isArray(o)?o:[o],i]}else r[n[1]]=i}return{comments:s,pragmas:r}}function _Q({comments:t="",pragmas:e={}}){let r=Object.keys(e),s=r.flatMap(i=>hg(i,e[i])).map(i=>` * ${i}
|
|
225
|
-
`).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let i=e[r[0]];return`/** ${hg(r[0],i)[0]} */`}}let n=t.split(`
|
|
226
|
-
`).map(i=>` * ${i}`).join(`
|
|
227
|
-
`)+`
|
|
228
|
-
`;return`/**
|
|
229
|
-
`+(t?n:"")+(t&&r.length>0?` *
|
|
230
|
-
`:"")+s+" */"}function hg(t,e){return[...yT,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var jQ=["noformat","noprettier"],RQ=["format","prettier"],qQ="format";function UQ(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
231
|
-
`);return e===-1?t:t.slice(0,e)}var zQ=UQ;function Gm(t){let e=zQ(t);e&&(t=t.slice(e.length+1));let r=$Q(t),{pragmas:s,comments:n}=OQ(r);return{shebang:e,text:t,pragmas:s,comments:n}}function VQ(t){let{pragmas:e}=Gm(t);return RQ.some(r=>fT(e,r))}function HQ(t){let{pragmas:e}=Gm(t);return jQ.some(r=>fT(e,r))}function WQ(t){let{shebang:e,text:r,pragmas:s,comments:n}=Gm(t),i=MQ(r),o=_Q({pragmas:{[qQ]:"",...s},comments:n.trimStart()});return(e?`${e}
|
|
232
|
-
`:"")+o+(i.startsWith(`
|
|
233
|
-
`)?`
|
|
234
|
-
`:`
|
|
235
|
-
|
|
236
|
-
`)+i}var JQ=t=>VQ(tp(t).content),GQ=t=>HQ(tp(t).content),KQ=t=>{let{frontMatter:e,content:r}=tp(t);return(e?e.raw+`
|
|
237
|
-
|
|
238
|
-
`:"")+WQ(r)},XQ=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function YQ(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var QQ=new Set(["initial","inherit","unset","revert"]);function ZQ(t){return QQ.has(t.toLowerCase())}function eZ(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function po(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function To(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function tZ(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return!1;let r=e.raws?.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))})}function zo(t,e){let r=Array.isArray(e)?e:[e],s=t.findAncestor(n=>n.type==="css-atrule");return s&&r.includes(s.name.toLowerCase())}function rZ(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(r=>r.type==="css-atrule")?.name==="import"}function sZ(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function nZ(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function iZ(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/.test(e)||e.value&&/^@.+:.*$/.test(e.value):!1}function aZ(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function oZ(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function uZ(t){return t.type==="value-word"&&t.value==="in"}function ud(t){return t.type==="value-operator"&&t.value==="*"}function Xi(t){return t?.type==="value-operator"&&t.value==="/"}function Vs(t){return t.type==="value-operator"&&t.value==="+"}function Yi(t){return t.type==="value-operator"&&t.value==="-"}function lZ(t){return t.type==="value-operator"&&t.value==="%"}function ql(t){return ud(t)||Xi(t)||Vs(t)||Yi(t)||lZ(t)}function cZ(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function pZ(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function ld(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function dg(t){return t.raws?.params&&/^\(\s*\)$/.test(t.raws.params)}function nh(t){return t.name.startsWith("prettier-placeholder")}function hZ(t){return t.prop.startsWith("@prettier-placeholder")}function dZ(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function fZ(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function mZ(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Us(t){return t?.raws?.before===""}function Km(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function ih(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Km(t.groups[0])}function DT(t,e){if(e.parser!=="scss")return!1;let{node:r}=t;if(r.groups.length===0||r.type==="value-paren_group"&&r.open&&r.close&&r.groups.length===1&&r.groups[0].type!=="value-comma_group")return!1;let s=t.parent;if(s&&s.type==="value-func"&&s.value==="if")return!1;let n=t.grandparent;return!ih(r)&&!(n&&ih(n))?!1:t.findAncestor(i=>i.type==="css-decl")?.prop?.startsWith("$")?!0:ih(n)?!s.groups.some(i=>ql(i)):n.type==="value-func"}function gl(t){return t.type==="value-comment"&&t.inline}function ah(t){return t.type==="value-word"&&t.value==="#"}function fg(t){return t.type==="value-word"&&t.value==="{"}function oh(t){return t.type==="value-word"&&t.value==="}"}function xl(t){return["value-word","value-atword"].includes(t.type)}function cd(t){return t?.type==="value-colon"}function yZ(t,e){if(!Km(e))return!1;let{groups:r}=e,s=r.indexOf(t);return s===-1?!1:cd(r[s+1])}function DZ(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function gZ(t){return t.type!=="value-func"?!1:XQ.has(t.value.toLowerCase())}function ho(t){return/\/\//.test(t.split(/[\n\r]/).pop())}function ta(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function xZ(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(r=>r.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let r=e.groups.indexOf(t)-1,s=e.groups[r];if(s?.type==="value-word"&&s.value==="with")return!0}return!1}function bl(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function bZ(t,e,r){let{node:s}=t,n=t.parent,i=t.grandparent,o=YQ(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),c=t.findAncestor(b=>b.type==="css-atrule"),d=c&&ld(c,e),p=s.groups.some(b=>gl(b)),f=t.map(r,"groups"),D=[""],m=To(t,"url"),g=!1,x=!1;for(let b=0;b<s.groups.length;++b){let A=s.groups[b-1],C=s.groups[b],v=s.groups[b+1];if(gl(C)&&!v){D.push([D.pop(),Xv([" ",f[b]])]);continue}if(D.push([D.pop(),f[b]]),m){(v&&Vs(v)||Vs(C))&&D.push([D.pop()," "]);continue}if(zo(t,"forward")&&C.type==="value-word"&&C.value&&A!==void 0&&A.type==="value-word"&&A.value==="as"&&v.type==="value-operator"&&v.value==="*"||zo(t,"utility")&&C.type==="value-word"&&v&&v.type==="value-operator"&&v.value==="*"||!v||e.parser==="scss"&&v.type==="value-word"&&v.value===";"&&t.match(void 0,(B,O)=>O==="groups"&&B.type==="value-paren_group",(B,O)=>O==="group"&&B.type==="value-func"&&B.value==="if")||C.type==="value-word"&&ta(v)&&xr(C)===gr(v))continue;if(C.type==="value-string"&&C.quoted){let B=C.value.lastIndexOf("#{"),O=C.value.lastIndexOf("}");B!==-1&&O!==-1?g=B>O:B!==-1?g=!0:O!==-1&&(g=!1)}if(g||cd(C)||cd(v)||C.type==="value-atword"&&(C.value===""||C.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||C.value==="~")continue;if(e.parser==="less"){if(v?.type==="value-word"&&v.value==="[")continue;if(C.type==="value-word"&&C.value.endsWith("[")&&(v?.type==="value-atword"||v?.type==="value-word")){jv(s.groups.some((B,O)=>O>b&&(B.value?.startsWith("]")||B.value?.endsWith("]"))));continue}}if(C.type!=="value-string"&&C.value&&C.value.includes("\\")&&v&&v.type!=="value-comment"||A?.value&&A.value.indexOf("\\")===A.value.length-1&&C.type==="value-operator"&&C.value==="/"||C.value==="\\"||dZ(C,v)||ah(C)||fg(C)||oh(v)||fg(v)&&Us(v)||oh(C)&&Us(v)||C.value==="--"&&ah(v))continue;let P=ql(C),T=ql(v);if((P&&ah(v)||T&&oh(C))&&Us(v)||Vs(v)&&To(t,"type")&&Us(v)||!A&&Xi(C)||To(t,"calc")&&(Vs(C)||Vs(v)||Yi(C)||Yi(v))&&Us(v))continue;if(e.parser==="scss"&&P&&C.value==="-"&&v.type==="value-func"&&xr(C)!==gr(v)){D.push([D.pop()," "]);continue}let F=s.groups[b+2],k=(Vs(C)||Yi(C))&&b===0&&(v.type==="value-number"||v.isHex)&&i&&gZ(i)&&!Us(v),I=F?.type==="value-func"||F&&xl(F)||C.type==="value-func"||xl(C),L=v.type==="value-func"||xl(v)||A?.type==="value-func"||A&&xl(A);if(!(!(ud(v)||ud(C))&&!To(t,"calc")&&!k&&(Xi(v)&&!I||Xi(C)&&!L||Vs(v)&&!I||Vs(C)&&!L||Yi(v)||Yi(C))&&(Us(v)||P&&(!A||A&&ql(A))))&&!((e.parser==="scss"||e.parser==="less")&&P&&C.value==="-"&&bl(v)&&xr(C)===gr(v.open)&&v.open.value==="(")){if(gl(C)){if(n.type==="value-paren_group"){D.push(nu(Lt),"");continue}D.push(Lt,"");continue}if(d&&(cZ(v)||pZ(v)||oZ(v)||uZ(C)||aZ(C))){D.push([D.pop()," "]);continue}if(c&&c.name.toLowerCase()==="namespace"){D.push([D.pop()," "]);continue}if(u){C.source&&v.source&&C.source.start.line!==v.source.start.line?(D.push(Lt,""),x=!0):D.push([D.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(Xi(v)&&Us(v)&&mg(C)||Xi(C)&&Us(C)&&mg(A)))){if(T){D.push([D.pop()," "]);continue}if(v?.value!=="..."&&!(ta(C)&&ta(v)&&xr(C)===gr(v))){if(ta(C)&&bl(v)&&xr(C)===gr(v.open)){D.push(mr,"");continue}if(C.value==="with"&&bl(v)){D=[[Rl(D)," "]];continue}if(!(C.value?.endsWith("#")&&v.value==="{"&&bl(v.group))&&!(gl(v)&&!F)){if(!c&&C.type==="value-comment"&&!C.inline&&s.groups.slice(0,b).every(B=>B.type==="value-comment")){D.push(nu(tr),"");continue}D.push(tr,"")}}}}}return p&&D.push([D.pop(),Zc]),x&&D.unshift("",Lt),d?Ir(fr(D)):rZ(t)?Ir(Rl(D)):Ir(fr(Rl(D)))}function mg(t){if(t?.type==="value-number")return!0;if(t?.type!=="value-func")return!1;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var EZ=bZ;function CZ(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var AZ=CZ,pd=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function gT(t){let e=t.toLowerCase();return pd.has(e)?pd.get(e):t}var xT=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,vZ=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/gi,TZ=/[a-z]+/gi,FZ=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/gi,wZ=new RegExp(xT.source+`|(${FZ.source})?(${vZ.source})(${TZ.source})?`,"gi");function ys(t,e){return kt(0,t,xT,r=>eT(r,e))}function SZ(t,e){let r=e.singleQuote?"'":'"',s="",n=t.match(/^(?<value>.+?)\s+(?<flag>[a-z])$/i);return n&&({value:t,flag:s}=n.groups),(t.includes('"')||t.includes("'")?t:r+t+r)+(s?` ${s}`:"")}function Vi(t){return kt(0,t,wZ,(e,r,s,n,i)=>!s&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||pd.has(i))?bT(n)+(i?gT(i):""):e)}function bT(t){return AZ(t).replace(/\.0(?=$|e)/,"")}function kZ(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var yg=t=>t===`
|
|
239
|
-
`||t==="\r"||t==="\u2028"||t==="\u2029";function PZ(t,e,r){if(e===!1)return!1;let s=!!r?.backwards,n=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&n===`
|
|
240
|
-
`)return e-2;if(yg(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
|
|
241
|
-
`)return e+2;if(yg(n))return e+1}return e}var ET=PZ;function IZ(t,e,r={}){let s=sT(t,r.backwards?e-1:e,r),n=ET(t,s,r);return s!==n}var CT=IZ;function BZ(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var NZ=BZ;function LZ(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?nT(t,e):e}var $Z=LZ;function MZ(t,e){let r=null,s=e;for(;s!==r;)r=s,s=dQ(t,s),s=NZ(t,s),s=sT(t,s);return s=$Z(t,s),s=ET(t,s),s!==!1&&CT(t,s)}var AT=MZ;function OZ({node:t,parent:e},r){return!!(t.source&&r.originalText.slice(gr(t),gr(e.close)).trimEnd().endsWith(","))}function _Z(t,e){return nZ(t.grandparent)&&OZ(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(r=>r.type==="value-comment"))&&kZ(e)&&t.callParent(()=>DT(t,e))?Gv(","):""}function jZ(t,e,r){let{node:s,parent:n}=t,i=t.map(({node:m})=>typeof m=="string"?m:r(),"groups");if(n&&sZ(n)&&(s.groups.length===1||s.groups.length>0&&s.groups[0].type==="value-comma_group"&&s.groups[0].groups.length>0&&s.groups[0].groups[0].type==="value-word"&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?r("open"):"",Js(",",i),s.close?r("close"):""];if(!s.open){let m=vT(t),g=qZ(Js(",",i),2),x=Js(m?Lt:tr,g);return fr(m?[Lt,x]:Ir([RZ(t)?mr:"",Rl(x)]))}let o=t.map(({node:m,isLast:g,index:x})=>{let b=i[x];Km(m)&&m.type==="value-comma_group"&&m.groups&&m.groups[0].type!=="value-paren_group"&&m.groups[2]?.type==="value-paren_group"&&qo(b)===Xc&&qo(b.contents)===Kc&&qo(b.contents.contents)===Yc&&(b=Ir(nu(b)));let A=[b,g?_Z(t,e):","];if(!g&&m.type==="value-comma_group"&&ep(m.groups)){let C=bi(0,m.groups,-1);!C.source&&C.close&&(C=C.close),C.source&&AT(e.originalText,xr(C))&&A.push(Lt)}return A},"groups"),u=yZ(s,n),c=xZ(s,n),d=DT(t,e),p=c||d&&!u,f=c||u,D=Ir([s.open?r("open"):"",fr([mr,Js(tr,o)]),mr,Yv,s.close?r("close"):""],{shouldBreak:p});return f?nu(D):D}function vT(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(r=>r.type==="value-comma_group"),(e,r)=>r==="group"&&e.type==="value-value",(e,r)=>r==="group"&&e.type==="value-root",(e,r)=>r==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function RZ(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,r)=>r==="group"&&e.type==="value-value",(e,r)=>r==="group"&&e.type==="value-root",(e,r)=>r==="value"&&e.type==="css-decl")}function qZ(t,e){let r=[];for(let s=0;s<t.length;s+=e)r.push(t.slice(s,s+e));return r}function UZ(t,e,r){let s=[];return t.each(()=>{let{node:n,previous:i}=t;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?s.push(e.originalText.slice(gr(n),xr(n))):s.push(r()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!CT(e.originalText,gr(o),{backwards:!0})&&!od(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?s.push(" "):(s.push(e.__isHTMLStyleAttribute?tr:Lt),AT(e.originalText,xr(n))&&!od(n)&&s.push(Lt))},"nodes"),s}var fo=UZ;function zZ(t,e,r){let{node:s}=t;switch(s.type){case"css-root":{let n=fo(t,e,r),i=s.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[s.frontMatter?[r("frontMatter"),Lt,s.nodes.length>0?Lt:""]:"",n,i?` ${i}`:"",s.nodes.length>0?Lt:""]}case"css-comment":{let n=s.inline||s.raws.inline,i=e.originalText.slice(gr(s),xr(s));return n?i.trimEnd():i}case"css-rule":return[r("selector"),s.important?" !important":"",s.nodes?[s.selector?.type==="selector-unknown"&&ho(s.selector.value)?tr:s.selector?" ":"","{",s.nodes.length>0?fr([Lt,fo(t,e,r)]):"",Lt,"}",iZ(s)?";":""]:";"];case"css-decl":{let n=t.parent,{between:i}=s.raws,o=i.trim(),u=o===":",c=i.endsWith(" ")&&u,d=typeof s.value=="string"&&/^ *$/.test(s.value),p=typeof s.value=="string"?s.value:r("value");return p=fZ(s)?UY(p):p,!u&&ho(o)&&!t.call(()=>vT(t),"value","group","group")&&(p=fr([Lt,nu(p)])),[kt(0,s.raws.before,/[\s;]/g,""),n.type==="css-atrule"&&n.variable||tZ(t)?s.prop:po(s.prop),o.startsWith("//")?" ":"",o,s.extend||d||!c&&s.isNested&&(ta(s.value.group.group)||ta(s.value.group.group.groups?.[0]))?"":" ",e.parser==="less"&&s.extend&&s.selector?s.selector.nodes.length>1?Ir(["extend(",fr([mr,r("selector")]),mr,")"]):["extend(",r("selector"),")"]:"",p,s.raws.important?s.raws.important.replace(/\s*!\s*important/i," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/i," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/i," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",s.nodes.length>0?fr([mr,fo(t,e,r)]):"",mr,"}"]:hZ(s)&&!n.raws.semicolon&&e.originalText[xr(s)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Gv(";"):";"]}case"css-atrule":{let n=t.parent,i=nh(s)&&!n.raws.semicolon&&e.originalText[xr(s)-1]!==";";if(e.parser==="less"){if(s.mixin)return[r("selector"),s.important?" !important":"",i?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:r("params"),i?"":";"];if(s.variable)return["@",s.name,": ",s.value?[r("value"),Yv]:"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",s.nodes.length>0?fr([mr,fo(t,e,r)]):"",mr,"}"]:"",i?"":";"]}let o=s.name==="import"&&s.params?.type==="value-unknown"&&s.params.value.endsWith(";");return["@",dg(s)||s.name.endsWith(":")||nh(s)?s.name:po(s.name),s.params?[dg(s)?"":nh(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(s.raws.afterName)?[Lt,Lt]:/^\s*\n/.test(s.raws.afterName)?Lt:" ":" ",typeof s.params=="string"?s.params:r("params")]:"",s.selector?fr([" ",r("selector")]):"",s.value?Ir([" ",r("value"),ld(s,e)?mZ(s)?" ":tr:""]):s.name==="else"?" ":"",s.nodes?[ld(s,e)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&ho(s.selector.value)||!s.selector&&typeof s.params=="string"&&ho(s.params)?tr:" ","{",s.nodes.length>0?fr([mr,fo(t,e,r)]):"",mr,"}"]:i||o?"":";"]}case"media-query-list":{let n=[];return t.each(({node:i})=>{i.type==="media-query"&&i.value===""||n.push(r())},"nodes"),Ir(fr(Js(tr,n)))}case"media-query":return[Js(" ",t.map(r,"nodes")),t.isLast?"":","];case"media-type":return Vi(ys(s.value,e));case"media-feature-expression":return s.nodes?["(",...t.map(r,"nodes"),")"]:s.value;case"media-feature":return po(ys(kt(0,s.value,/ +/g," "),e));case"media-colon":return[s.value," "];case"media-value":return Vi(ys(s.value,e));case"media-keyword":return ys(s.value,e);case"media-url":return ys(kt(0,kt(0,s.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),e);case"media-unknown":return s.value;case"selector-root":return Ir([zo(t,"custom-selector")?[t.findAncestor(n=>n.type==="css-atrule").customSelector,tr]:"",Js([",",zo(t,["extend","custom-selector","nest"])?tr:Lt],t.map(r,"nodes"))]);case"selector-selector":{let n=s.nodes.length>2;return Ir((n?fr:i=>i)(t.map(r,"nodes")))}case"selector-comment":return s.value;case"selector-string":return ys(s.value,e);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?s.value:Vi(eZ(t,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",Vi(ys(s.value,e))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?zY(SZ(ys(s.value.trim(),e),e),Kv):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let o=t.parent;return[o.type==="selector-selector"&&o.nodes[0]===s?"":tr,s.value,t.isLast?"":" "]}let n=s.value.trimStart().startsWith("(")?tr:"",i=Vi(ys(s.value.trim(),e))||tr;return[n,i]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[po(s.value),ep(s.nodes)?Ir(["(",fr([mr,Js([",",tr],t.map(r,"nodes"))]),mr,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{if(t.findAncestor(o=>o.type==="css-rule")?.isScssNestedProperty)return Vi(ys(po(s.value),e));let n=t.parent;if(n.raws?.selector){let o=gr(n),u=o+n.raws.selector.length;return e.originalText.slice(o,u).trim()}let i=t.grandparent;if(n.type==="value-paren_group"&&i?.type==="value-func"&&i.value==="selector"){let o=xr(n.open)+1,u=gr(n.close),c=e.originalText.slice(o,u).trim();return ho(c)?[Zc,c]:c}return s.value}case"value-value":case"value-root":return r("group");case"value-comment":{let n=e.originalText.slice(gr(s),xr(s));return s.inline?Xv(n.trimEnd()):n}case"value-comma_group":return EZ(t,e,r);case"value-paren_group":return jZ(t,e,r);case"value-func":return[s.value,zo(t,"supports")&&DZ(s)?" ":"",r("group")];case"value-paren":return s.value;case"value-number":return[bT(s.value),gT(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||ZQ(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:n}=t;return Ir([s.value,typeof n?.value=="string"&&n.value.endsWith("\\")||To(t,"url")?"":tr])}case"value-string":return eT(s.raws.quote+s.value+s.raws.quote,e);case"value-atword":return["@",s.value];case"value-unicode-range":return s.value;case"value-unknown":return s.value;default:throw new sQ(s,"PostCSS")}}var VZ={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:zZ,embed:nQ,insertPragma:KQ,massageAstNode:dT,getVisitorKeys:pQ},HZ=VZ,TT=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],WZ={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},JZ={singleQuote:WZ.singleQuote},FT=JZ,Xm={};Ev(Xm,{css:()=>Tee,less:()=>Fee,scss:()=>wee});var GZ=_a(Gc()),KZ=_a(qX()),XZ=_a(GX());function YZ(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var QZ=YZ;function ZZ(t){return t!==null&&typeof t=="object"}var rp=ZZ,eee=_a(XX());function ju(t,e,r){if(rp(t)){delete t.parent;for(let s in t)ju(t[s],e,r),s==="type"&&typeof t[s]=="string"&&!t[s].startsWith(e)&&(!r||!r.test(t[s]))&&(t[s]=e+t[s])}return t}function wT(t){if(rp(t)){delete t.parent;for(let e in t)wT(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var tee=eee.default.default;function ree(t){let e;try{e=tee(t)}catch{return{type:"selector-unknown",value:t}}return ju(wT(e),"media-")}var see=ree,nee=_a(hY());function iee(t){if(/\/[/*]/.test(kt(0,t,/"[^"]+"|'[^']+'/g,"")))return{type:"selector-unknown",value:t.trim()};let e;try{new nee.default(r=>{e=r}).process(t)}catch{return{type:"selector-unknown",value:t}}return ju(e,"selector-")}var ni=iee,aee=_a(kY()),oee=t=>{for(;t.parent;)t=t.parent;return t},ST=oee;function uee(t){return ST(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var lee=uee;function cee(t){if(ep(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var pee=cee;function hee(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var dee=hee;function fee(t,e){return!!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var mee=fee,Dg=t=>t.type==="paren"&&t.value===")";function yee(t,e){let{nodes:r}=t,s={open:null,close:null,groups:[],type:"paren_group"},n=[s],i=s,o={groups:[],type:"comma_group"},u=[o];for(let c=0;c<r.length;++c){let d=r[c];if(e.parser==="scss"&&d.type==="number"&&d.unit===".."&&d.value.endsWith(".")&&(d.value=d.value.slice(0,-1),d.unit="..."),d.type==="func"&&d.value==="selector"){let p=ST(t).text.slice(d.group.open.sourceIndex+1,d.group.close.sourceIndex),f=ni(p);f.sourceIndex=d.group.open.sourceIndex+1,f.raws??(f.raws={}),f.raws.selector=p,d.group.groups=[f]}if(d.type==="func"&&d.value==="url"){let p=d.group?.groups??[],f=[];for(let D=0;D<p.length;D++){let m=p[D];m.type==="comma_group"?f=[...f,...m.groups]:f.push(m)}(pee(f)||!dee(f)&&!mee(f[0],e))&&(d.group.groups=[lee(d)])}if(d.type==="paren"&&d.value==="(")s={open:d,close:null,groups:[],type:"paren_group"},n.push(s),o={groups:[],type:"comma_group"},u.push(o);else if(Dg(d)){if(o.groups.length>0&&s.groups.push(o),s.close=d,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=bi(0,u,-1),o.groups.push(s),n.pop(),s=bi(0,n,-1)}else if(d.type==="comma"){if(c===r.length-3&&r[c+1].type==="comment"&&Dg(r[c+2]))continue;s.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(d)}return o.groups.length>0&&s.groups.push(o),i}function hd(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?hd(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(hd)}:t}function kT(t,e){if(rp(t))for(let r in t)r!=="parent"&&(kT(t[r],e),r==="nodes"&&(t.type==="atword"&&t.nodes.length===0||(t.group=hd(yee(t,e))),delete t[r]));return t}function Dee(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let r;try{r=new aee.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}r.text=t;let s=kT(r,e);return ju(s,"value-",/^selector-/)}var ti=Dee,gee=new Set(["import","use","forward"]);function xee(t){return gee.has(t)}var bee=xee;function Eee(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trimEnd().endsWith(":")}var Cee=Eee,Aee=/(\s*)(!default).*$/,vee=/(\s*)(!global).*$/;function PT(t,e){if(rp(t)){delete t.parent;for(let i in t)PT(t[i],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let i;if(t.value.trimEnd().endsWith("}")){let o=e.originalText.slice(0,t.source.start.offset),u="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),c=hT(o)+u,d;e.parser==="scss"?d=NT:e.parser==="less"?d=BT:d=IT;let p;try{p=d(c,{...e})}catch{}p?.nodes?.length===1&&p.nodes[0].type==="css-rule"&&(i=p.nodes[0].nodes)}return i?t.value={type:"css-rule",nodes:i}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let r="";typeof t.selector=="string"&&(r=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(r+=t.raws.between),t.raws.selector=r);let s="";typeof t.value=="string"&&(s=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=s.trim());let n="";if(typeof t.params=="string"&&(n=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(n=t.raws.afterName+n),t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),n=n.trim(),t.raws.params=n),r.trim().length>0)return r.startsWith("@")&&r.endsWith(":")?t:t.mixin?(t.selector=ti(r,e),t):(Cee(t,e)&&(t.isScssNestedProperty=!0),t.selector=ni(r),t);if(s.trim().length>0){let i=s.match(Aee);i&&(s=s.slice(0,i.index),t.scssDefault=!0,i[0].trim()!=="!default"&&(t.raws.scssDefault=i[0]));let o=s.match(vee);if(o&&(s=s.slice(0,o.index),t.scssGlobal=!0,o[0].trim()!=="!global"&&(t.raws.scssGlobal=o[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};t.value=ti(s,e)}if(e.parser==="less"&&t.type==="css-decl"&&typeof t.prop=="string"&&/^\s*\+\s*:/.test(t.raws.between)&&(t.prop+="+",t.raws.between=t.raws.between.replace("+","")),e.parser==="less"&&t.type==="css-decl"&&s.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=ni(s.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let i=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=ni(i),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let i=t.params.match(/:--\S+\s+/)[0].trim();return t.customSelector=i,t.selector=ni(t.params.slice(i.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=!0;let i=t.name.split(":");t.name=i[0];let o=i.slice(1).join(":");t.params&&(o+=t.params),t.value=ti(o,e)}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=!0;let i=t.params.slice(1);i&&(t.value=ti(i,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&n.length>0){let{name:i}=t;if(i==="warn"||i==="error")return t.params={type:"media-unknown",value:n},t;if(i==="extend"||i==="nest")return t.selector=ni(n),delete t.params,t;if(i==="at-root")return/^\(\s*(?:without|with)\s*:.+\)$/s.test(n)?t.params=ti(n,e):(t.selector=ni(n),delete t.params),t;let o=i.toLowerCase();return bee(o)?(t.import=!0,delete t.filename,t.params=ti(n,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(i)?(n=n.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),n=n.replace(/^(?!if)([^"'\s(]+)(\s+)\(/,"$1($2"),t.value=ti(n,e),delete t.params,t):["media","custom-media"].includes(o)?n.includes("#{")?{type:"media-unknown",value:n}:(t.params=see(n),t):(t.params=n,t)}}return t}function Ym(t,e,r){let{frontMatter:s,content:n}=tp(e),i;try{i=t(n,{map:!1})}catch(o){let{name:u,reason:c,line:d,column:p}=o;throw typeof d!="number"?o:QZ(`${u}: ${c}`,{loc:{start:{line:d,column:p}},cause:o})}return r.originalText=e,i=PT(ju(i,"css-"),r),fQ(i,e),s&&(i.frontMatter={...s,type:"front-matter",source:{startOffset:s.start.index,endOffset:s.end.index}}),i}function IT(t,e={}){return Ym(GZ.default.default,t,e)}function BT(t,e={}){return Ym(r=>KZ.default.parse(EQ(r)),t,e)}function NT(t,e={}){return Ym(XZ.default,t,e)}var Qm={astFormat:"postcss",hasPragma:JQ,hasIgnorePragma:GQ,locStart:gr,locEnd:xr},Tee={...Qm,parse:IT},Fee={...Qm,parse:BT},wee={...Qm,parse:NT},LT={postcss:HZ};const El=Object.freeze(Object.defineProperty({__proto__:null,default:Ov,languages:TT,options:FT,parsers:Xm,printers:LT},Symbol.toStringTag,{value:"Module"}));var uh={exports:{}},gg;function See(){return gg||(gg=1,(function(t,e){(function(r){function s(){var n=r();return n.default||n}t.exports=s()})(function(){var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(l,a)=>{for(var h in a)r(l,h,{get:a[h],enumerable:!0})},u=(l,a,h,y)=>{if(a&&typeof a=="object"||typeof a=="function")for(let E of n(a))!i.call(l,E)&&E!==h&&r(l,E,{get:()=>a[E],enumerable:!(y=s(a,E))||y.enumerable});return l},c=l=>u(r({},"__esModule",{value:!0}),l),d={};o(d,{parsers:()=>vS});var p={};o(p,{__babel_estree:()=>DS,__js_expression:()=>Z2,__ts_expression:()=>ey,__vue_event_binding:()=>Y2,__vue_expression:()=>Z2,__vue_ts_event_binding:()=>Q2,__vue_ts_expression:()=>ey,babel:()=>Y2,"babel-flow":()=>ty,"babel-ts":()=>Q2});var f=(l,a)=>(h,y,...E)=>h|1&&y==null?void 0:(a.call(y)??y[l]).apply(y,E),D=String.prototype.replaceAll??function(l,a){return l.global?this.replace(l,a):this.split(l).join(a)},m=f("replaceAll",function(){if(typeof this=="string")return D}),g=m,x=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),b=x,A=class{constructor(l,a,h){this.line=void 0,this.column=void 0,h!==void 0&&(this.index=void 0),this.line=l,this.column=a,h!==void 0&&(this.index=h)}},C=class{start;end;filename;identifierName;constructor(l,a){this.start=l,this.end=a}};function v(l,a){let{line:h,column:y,index:E}=l;return new A(h,y+a,E+a)}var P="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",T={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:P},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:P}},F={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},k=l=>l.type==="UpdateExpression"?F.UpdateExpression[`${l.prefix}`]:F[l.type],I={AccessorIsGenerator:({kind:l})=>`A ${l}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:l})=>`Missing initializer in ${l} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:l})=>`\`${l}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:l,exportName:a})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
242
|
-
- Did you mean \`export { '${l}' as '${a}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:l})=>`'${l==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:l})=>`Unsyntactic ${l==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:l})=>`A string literal cannot be used as an imported binding.
|
|
243
|
-
- Did you mean \`import { "${l}" as foo }\`?`,ImportCallArity:({phase:l})=>`\`import${l?`.${l}`:""}()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:({phase:l})=>`Cannot use new with import${l?`.${l}`:""}().`,ImportCallSpreadArgument:({phase:l})=>`\`...\` is not allowed in \`import${l?`.${l}`:""}()\`.`,IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDigit:({radix:l})=>`Expected number in radix ${l}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:l})=>`Escape sequence in keyword ${l}.`,InvalidIdentifier:({identifierName:l})=>`Invalid identifier ${l}.`,InvalidLhs:({ancestor:l})=>`Invalid left-hand side in ${k(l)}.`,InvalidLhsBinding:({ancestor:l})=>`Binding invalid left-hand side in ${k(l)}.`,InvalidLhsOptionalChaining:({ancestor:l})=>`Invalid optional chaining in the left-hand side of ${k(l)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:l})=>`Unexpected character '${l}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:l})=>`Private name #${l} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:l})=>`Label '${l}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:l})=>`This experimental syntax requires enabling the parser plugin: ${l.map(a=>JSON.stringify(a)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:l})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${l.map(a=>JSON.stringify(a)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:l})=>`Duplicate key "${l}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:l})=>`An export name cannot include a lone surrogate, found '\\u${l.toString(16)}'.`,ModuleExportUndefined:({localName:l})=>`Export '${l}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:l})=>`Private names are only allowed in property accesses (\`obj.#${l}\`) or in \`in\` expressions (\`#${l} in obj\`).`,PrivateNameRedeclaration:({identifierName:l})=>`Duplicate private name #${l}.`,RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:l})=>`Unexpected keyword '${l}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:l})=>`Unexpected reserved word '${l}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:l,unexpected:a})=>`Unexpected token${a?` '${a}'.`:""}${l?`, expected "${l}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:l,onlyValidPropertyName:a})=>`The only valid meta property for ${l} is ${l}.${a}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:l})=>`Identifier '${l}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},L={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:l})=>`Assigning to '${l}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:l})=>`Binding '${l}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},B={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:l})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(l)}\`.`},O=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),R={PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:l})=>`Invalid topic token ${l}. In order to use ${l} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${l}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:l})=>`Hack-style pipe body cannot be an unparenthesized ${k({type:l})}; please wrap it in parentheses.`,PipelineUnparenthesized:"Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses."},q={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."};function V(l,a,h){Object.defineProperty(l,a,{enumerable:!1,configurable:!0,value:h})}function j({toMessage:l,code:a,reasonCode:h,syntaxPlugin:y}){let E=h==="MissingPlugin"||h==="MissingOneOfPlugins";return function w($,_,H){let U=new SyntaxError;return U.code=a,U.reasonCode=h,U.loc=$,U.pos=_,U.syntaxPlugin=y,E&&(U.missingPlugin=H.missingPlugin),V(U,"clone",function(oe={}){let{line:De,column:Ie,index:Ue=_}=oe.loc??$;return w(new A(De,Ie),Ue,{...H,...oe.details})}),V(U,"details",H),Object.defineProperty(U,"message",{configurable:!0,get(){let oe=`${l(H)} (${$.line}:${$.column})`;return this.message=oe,oe},set(oe){Object.defineProperty(this,"message",{value:oe,writable:!0})}}),U}}function z(l,a){if(Array.isArray(l))return y=>z(y,l[0]);let h={};for(let y of Object.keys(l)){let E=l[y],{message:w,...$}=typeof E=="string"?{message:()=>E}:typeof E=="function"?{message:E}:E,_=typeof w=="string"?()=>w:w;h[y]=j({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:y,toMessage:_,...a?{syntaxPlugin:a}:{},...$})}return h}var M={...z(T),...z(I),...z(L),...z(B),...z`pipelineOperator`(R),...z`functionBind`(q)};function ae(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,locations:!0,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function ce(l){let a=ae();if(l==null)return a;if(l.annexB!=null&&l.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let h of Object.keys(a))l[h]!=null&&(a[h]=l[h]);if(a.startLine===1)l.startIndex==null&&a.startColumn>0?a.startIndex=a.startColumn:l.startColumn==null&&a.startIndex>0&&(a.startColumn=a.startIndex);else if(l.startColumn==null||l.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(a.sourceType==="commonjs"){if(l.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(l.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(l.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return a}function S(l){let{start:a,end:h}=l.loc;return l.loc.start=new A(a.line,a.column),l.loc.end=new A(h.line,h.column),l}var te=l=>class extends l{createPosition(a){return new A(a.line,a.column)}parse(){let a=super.parse();return this.optionFlags&512&&(a.tokens=a.tokens.map(S)),S(a)}parseRegExpLiteral({pattern:a,flags:h}){let y=null;try{y=new RegExp(a,h)}catch{}let E=this.estreeParseLiteral(y);return E.regex={pattern:a,flags:h},E}parseBigIntLiteral(a){let h;try{h=BigInt(a)}catch{h=null}let y=this.estreeParseLiteral(h);return y.bigint=String(y.value||a),y}estreeParseLiteral(a){return this.parseLiteral(a,"Literal")}parseStringLiteral(a){return this.estreeParseLiteral(a)}parseNumericLiteral(a){return this.estreeParseLiteral(a)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(a){return this.estreeParseLiteral(a)}estreeParseChainExpression(a,h){let y=this.startNodeAtNode(a);return y.expression=a,this.finishNodeAtNode(y,"ChainExpression",h)}directiveToStmt(a){let h=a.value;delete a.value,this.castNodeTo(h,"Literal"),h.raw=h.extra.raw,h.value=h.extra.expressionValue;let y=this.castNodeTo(a,"ExpressionStatement");return y.expression=h,y.directive=h.extra.rawValue,delete h.extra,y}fillOptionalPropertiesForTSESLint(a){}cloneEstreeStringLiteral(a){let{start:h,end:y,loc:E,range:w,raw:$,value:_}=a,H=Object.create(a.constructor.prototype);return H.type="Literal",H.start=h,H.end=y,H.loc=E,H.range=w,H.raw=$,H.value=_,H}initFunction(a,h){super.initFunction(a,h),a.expression=!1}checkDeclaration(a){a!=null&&this.isObjectProperty(a)?this.checkDeclaration(a.value):super.checkDeclaration(a)}getObjectOrClassMethodParams(a){return a.value.params}isValidDirective(a){return a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&!a.expression.extra?.parenthesized}parseBlockBody(a,h,y,E,w){super.parseBlockBody(a,h,y,E,w);let $=a.directives.map(_=>this.directiveToStmt(_));a.body=$.concat(a.body),delete a.directives}parsePrivateName(){let a=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(a)}convertPrivateNameToPrivateIdentifier(a){let h=super.getPrivateNameSV(a);return delete a.id,a.name=h,this.castNodeTo(a,"PrivateIdentifier")}isPrivateName(a){return a.type==="PrivateIdentifier"}getPrivateNameSV(a){return a.name}parseLiteral(a,h){let y=super.parseLiteral(a,h);return y.raw=y.extra.raw,delete y.extra,y}parseFunctionBody(a,h,y=!1){super.parseFunctionBody(a,h,y),a.expression=a.body.type!=="BlockStatement"}parseMethod(a,h,y,E,w,$,_=!1){let H=this.startNode();H.kind=a.kind,H=super.parseMethod(H,h,y,E,w,$,_),delete H.kind;let{typeParameters:U}=a;U&&(delete a.typeParameters,H.typeParameters=U,this.resetStartLocationFromNode(H,U));let oe=this.castNodeTo(H,this.hasPlugin("typescript")&&!H.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return a.value=oe,$==="ClassPrivateMethod"&&(a.computed=!1),this.hasPlugin("typescript")&&a.abstract?(delete a.abstract,this.finishNode(a,"TSAbstractMethodDefinition")):$==="ObjectMethod"?(a.kind==="method"&&(a.kind="init"),a.shorthand=!1,this.finishNode(a,"Property")):this.finishNode(a,"MethodDefinition")}nameIsConstructor(a){return a.type==="Literal"?a.value==="constructor":super.nameIsConstructor(a)}parseClassProperty(...a){let h=super.parseClassProperty(...a);return h.abstract&&this.hasPlugin("typescript")?(delete h.abstract,this.castNodeTo(h,"TSAbstractPropertyDefinition")):this.castNodeTo(h,"PropertyDefinition"),h}parseClassPrivateProperty(...a){let h=super.parseClassPrivateProperty(...a);return h.abstract&&this.hasPlugin("typescript")?this.castNodeTo(h,"TSAbstractPropertyDefinition"):this.castNodeTo(h,"PropertyDefinition"),h.computed=!1,h}parseClassAccessorProperty(a){let h=super.parseClassAccessorProperty(a);return h.abstract&&this.hasPlugin("typescript")?(delete h.abstract,this.castNodeTo(h,"TSAbstractAccessorProperty")):this.castNodeTo(h,"AccessorProperty"),h}parseObjectProperty(a,h,y,E){let w=super.parseObjectProperty(a,h,y,E);return w&&(w.kind="init",this.castNodeTo(w,"Property")),w}finishObjectProperty(a){return a.kind="init",this.finishNode(a,"Property")}isValidLVal(a,h,y,E){return a==="Property"?"value":super.isValidLVal(a,h,y,E)}isAssignable(a,h){return a!=null&&this.isObjectProperty(a)?this.isAssignable(a.value,h):super.isAssignable(a,h)}toAssignable(a,h=!1){if(a!=null&&this.isObjectProperty(a)){let{key:y,value:E}=a;this.isPrivateName(y)&&this.classScope.usePrivateName(this.getPrivateNameSV(y),y.start),this.toAssignable(E,h)}else super.toAssignable(a,h)}toAssignableObjectExpressionProp(a,h,y){a.type==="Property"&&(a.kind==="get"||a.kind==="set")?this.raise(M.PatternHasAccessor,a.key):a.type==="Property"&&a.method?this.raise(M.PatternHasMethod,a.key):super.toAssignableObjectExpressionProp(a,h,y)}finishCallExpression(a,h){let y=super.finishCallExpression(a,h);return y.callee.type==="Import"?(this.castNodeTo(y,"ImportExpression"),y.source=y.arguments[0],y.options=y.arguments[1]??null,delete y.arguments,delete y.callee):y.type==="OptionalCallExpression"?this.castNodeTo(y,"CallExpression"):y.optional=!1,y}parseExport(a,h){let y=this.state.lastTokStartLoc,E=super.parseExport(a,h);switch(E.type){case"ExportAllDeclaration":E.exported=null;break;case"ExportNamedDeclaration":E.specifiers.length===1&&E.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(E,"ExportAllDeclaration"),E.exported=E.specifiers[0].exported,delete E.specifiers);case"ExportDefaultDeclaration":{let{declaration:w}=E;w?.type==="ClassDeclaration"&&w.decorators?.length>0&&w.start===E.start&&this.resetStartLocation(E,y)}break}return E}stopParseSubscript(a,h){let y=super.stopParseSubscript(a,h);return h.optionalChainMember?this.estreeParseChainExpression(y,a):y}parseMember(a,h,y,E,w){let $=super.parseMember(a,h,y,E,w);return $.type==="OptionalMemberExpression"?this.castNodeTo($,"MemberExpression"):$.optional=!1,$}isOptionalMemberExpression(a){return a.type==="ChainExpression"?a.expression.type==="MemberExpression":super.isOptionalMemberExpression(a)}hasPropertyAsPrivateName(a){return a.type==="ChainExpression"&&(a=a.expression),super.hasPropertyAsPrivateName(a)}isObjectProperty(a){return a.type==="Property"&&a.kind==="init"&&!a.method}isObjectMethod(a){return a.type==="Property"&&(a.method||a.kind==="get"||a.kind==="set")}castNodeTo(a,h){let y=super.castNodeTo(a,h);return this.fillOptionalPropertiesForTSESLint(y),y}cloneIdentifier(a){let h=super.cloneIdentifier(a);return this.fillOptionalPropertiesForTSESLint(h),h}cloneStringLiteral(a){return a.type==="Literal"?this.cloneEstreeStringLiteral(a):super.cloneStringLiteral(a)}finishNodeAt(a,h,y){return S(super.finishNodeAt(a,h,y))}finishNodeAtNode(a,h,y){return S(super.finishNodeAtNode(a,h,y))}finishNode(a,h){let y=super.finishNode(a,h);return this.fillOptionalPropertiesForTSESLint(y),y}resetStartLocation(a,h){super.resetStartLocation(a,h),S(a)}resetEndLocation(a,h=this.state.lastTokEndLoc){super.resetEndLocation(a,h),S(a)}},Z=!0,N=!0,se=!0,ye=!0,ne=!0,Q=!0,J=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(l,a={}){this.label=l,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.rightAssociative=!!a.rightAssociative,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop!=null?a.binop:null}},G=new Map;function ie(l,a={}){a.keyword=l;let h=fe(l,a);return G.set(l,h),h}function de(l,a){return fe(l,{beforeExpr:Z,binop:a})}var Pe=-1,ve=[],We=[],nt=[],lt=[],rt=[],ke=[];function fe(l,a={}){return++Pe,We.push(l),nt.push(a.binop??-1),lt.push(a.beforeExpr??!1),rt.push(a.startsExpr??!1),ke.push(a.prefix??!1),ve.push(new J(l,a)),Pe}function we(l,a={}){return++Pe,G.set(l,Pe),We.push(l),nt.push(a.binop??-1),lt.push(a.beforeExpr??!1),rt.push(a.startsExpr??!1),ke.push(a.prefix??!1),ve.push(new J("name",a)),Pe}var Vt={bracketL:fe("[",{beforeExpr:Z,startsExpr:N}),bracketR:fe("]"),braceL:fe("{",{beforeExpr:Z,startsExpr:N}),braceBarL:fe("{|",{beforeExpr:Z,startsExpr:N}),braceR:fe("}"),braceBarR:fe("|}"),parenL:fe("(",{beforeExpr:Z,startsExpr:N}),parenR:fe(")"),comma:fe(",",{beforeExpr:Z}),semi:fe(";",{beforeExpr:Z}),colon:fe(":",{beforeExpr:Z}),doubleColon:fe("::",{beforeExpr:Z}),dot:fe("."),question:fe("?",{beforeExpr:Z}),questionDot:fe("?."),arrow:fe("=>",{beforeExpr:Z}),template:fe("template"),ellipsis:fe("...",{beforeExpr:Z}),backQuote:fe("`",{startsExpr:N}),dollarBraceL:fe("${",{beforeExpr:Z,startsExpr:N}),templateTail:fe("...`",{startsExpr:N}),templateNonTail:fe("...${",{beforeExpr:Z,startsExpr:N}),at:fe("@"),hash:fe("#",{startsExpr:N}),interpreterDirective:fe("#!..."),eq:fe("=",{beforeExpr:Z,isAssign:ye}),assign:fe("_=",{beforeExpr:Z,isAssign:ye}),slashAssign:fe("_=",{beforeExpr:Z,isAssign:ye}),xorAssign:fe("_=",{beforeExpr:Z,isAssign:ye}),moduloAssign:fe("_=",{beforeExpr:Z,isAssign:ye}),incDec:fe("++/--",{prefix:ne,postfix:Q,startsExpr:N}),bang:fe("!",{beforeExpr:Z,prefix:ne,startsExpr:N}),tilde:fe("~",{beforeExpr:Z,prefix:ne,startsExpr:N}),doubleCaret:fe("^^",{startsExpr:N}),doubleAt:fe("@@",{startsExpr:N}),pipeline:de("|>",0),nullishCoalescing:de("??",1),logicalOR:de("||",1),logicalAND:de("&&",2),bitwiseOR:de("|",3),bitwiseXOR:de("^",4),bitwiseAND:de("&",5),equality:de("==/!=/===/!==",6),lt:de("</>/<=/>=",7),gt:de("</>/<=/>=",7),relational:de("</>/<=/>=",7),bitShift:de("<</>>/>>>",8),bitShiftL:de("<</>>/>>>",8),bitShiftR:de("<</>>/>>>",8),plusMin:fe("+/-",{beforeExpr:Z,binop:9,prefix:ne,startsExpr:N}),modulo:fe("%",{binop:10,startsExpr:N}),star:fe("*",{binop:10}),slash:de("/",10),exponent:fe("**",{beforeExpr:Z,binop:11,rightAssociative:!0}),_in:ie("in",{beforeExpr:Z,binop:7}),_instanceof:ie("instanceof",{beforeExpr:Z,binop:7}),_break:ie("break"),_case:ie("case",{beforeExpr:Z}),_catch:ie("catch"),_continue:ie("continue"),_debugger:ie("debugger"),_default:ie("default",{beforeExpr:Z}),_else:ie("else",{beforeExpr:Z}),_finally:ie("finally"),_function:ie("function",{startsExpr:N}),_if:ie("if"),_return:ie("return",{beforeExpr:Z}),_switch:ie("switch"),_throw:ie("throw",{beforeExpr:Z,prefix:ne,startsExpr:N}),_try:ie("try"),_var:ie("var"),_const:ie("const"),_with:ie("with"),_new:ie("new",{beforeExpr:Z,startsExpr:N}),_this:ie("this",{startsExpr:N}),_super:ie("super",{startsExpr:N}),_class:ie("class",{startsExpr:N}),_extends:ie("extends",{beforeExpr:Z}),_export:ie("export"),_import:ie("import",{startsExpr:N}),_null:ie("null",{startsExpr:N}),_true:ie("true",{startsExpr:N}),_false:ie("false",{startsExpr:N}),_typeof:ie("typeof",{beforeExpr:Z,prefix:ne,startsExpr:N}),_void:ie("void",{beforeExpr:Z,prefix:ne,startsExpr:N}),_delete:ie("delete",{beforeExpr:Z,prefix:ne,startsExpr:N}),_do:ie("do",{isLoop:se,beforeExpr:Z}),_for:ie("for",{isLoop:se}),_while:ie("while",{isLoop:se}),_as:we("as",{startsExpr:N}),_assert:we("assert",{startsExpr:N}),_async:we("async",{startsExpr:N}),_await:we("await",{startsExpr:N}),_defer:we("defer",{startsExpr:N}),_from:we("from",{startsExpr:N}),_get:we("get",{startsExpr:N}),_let:we("let",{startsExpr:N}),_meta:we("meta",{startsExpr:N}),_of:we("of",{startsExpr:N}),_sent:we("sent",{startsExpr:N}),_set:we("set",{startsExpr:N}),_source:we("source",{startsExpr:N}),_static:we("static",{startsExpr:N}),_using:we("using",{startsExpr:N}),_yield:we("yield",{startsExpr:N}),_asserts:we("asserts",{startsExpr:N}),_checks:we("checks",{startsExpr:N}),_exports:we("exports",{startsExpr:N}),_global:we("global",{startsExpr:N}),_implements:we("implements",{startsExpr:N}),_intrinsic:we("intrinsic",{startsExpr:N}),_infer:we("infer",{startsExpr:N}),_is:we("is",{startsExpr:N}),_mixins:we("mixins",{startsExpr:N}),_proto:we("proto",{startsExpr:N}),_require:we("require",{startsExpr:N}),_satisfies:we("satisfies",{startsExpr:N}),_keyof:we("keyof",{startsExpr:N}),_readonly:we("readonly",{startsExpr:N}),_unique:we("unique",{startsExpr:N}),_abstract:we("abstract",{startsExpr:N}),_declare:we("declare",{startsExpr:N}),_enum:we("enum",{startsExpr:N}),_module:we("module",{startsExpr:N}),_namespace:we("namespace",{startsExpr:N}),_interface:we("interface",{startsExpr:N}),_type:we("type",{startsExpr:N}),_opaque:we("opaque",{startsExpr:N}),name:fe("name",{startsExpr:N}),placeholder:fe("%%",{startsExpr:N}),string:fe("string",{startsExpr:N}),num:fe("num",{startsExpr:N}),bigint:fe("bigint",{startsExpr:N}),regexp:fe("regexp",{startsExpr:N}),privateName:fe("#name",{startsExpr:N}),eof:fe("eof"),jsxName:fe("jsxName"),jsxText:fe("jsxText",{beforeExpr:Z}),jsxTagStart:fe("jsxTagStart",{startsExpr:N}),jsxTagEnd:fe("jsxTagEnd")};function _e(l){return l>=89&&l<=129}function Ct(l){return l<=88}function tt(l){return l>=54&&l<=129}function jt(l){return l>=54&&l<=132}function re(l){return lt[l]}function le(l){return rt[l]}function Be(l){return l>=25&&l<=29}function je(l){return l>=125&&l<=127}function qe(l){return l>=86&&l<=88}function dt(l){return l>=54&&l<=88}function hr(l){return l>=35&&l<=55}function sr(l){return l===30}function nr(l){return ke[l]}function wr(l){return l>=117&&l<=119}function Dt(l){return l>=120&&l<=126}function ft(l){return We[l]}function Ht(l){return nt[l]}function Kn(l){return l===53}function mn(l){return l>=20&&l<=21}function Sr(l){return ve[l]}var gt=class{constructor(l,a){this.token=l,this.preserveSpace=!!a}token;preserveSpace},st={brace:new gt("{"),j_oTag:new gt("<tag"),j_cTag:new gt("</tag"),j_expr:new gt("<tag>...</tag>",!0)},Ru="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u0870-\\u0887\\u0889-\\u088f\\u08a0-\\u08c9\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c5c\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdc-\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u1711\\u171f-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4c\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c8a\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7dc\\ua7f1-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",qu="\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u0897-\\u089f\\u08ca-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1add\\u1ae0-\\u1aeb\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f\\uff65",Ra=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Uu=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],qa=new RegExp("["+Ru+"]"),zT=new RegExp("["+Ru+qu+"]");function op(l,a){let h=65536;for(let y=0,E=a.length;y<E;y+=2){if(h+=a[y],h>l)return!1;if(h+=a[y+1],h>=l)return!0}return!1}function fs(l){return l<65?l===36:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&qa.test(String.fromCharCode(l)):op(l,Ra)}function Xn(l){return l<48?l===36:l<58?!0:l<65?!1:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&zT.test(String.fromCharCode(l)):op(l,Ra)||op(l,Uu)}var up={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},VT=new Set(up.keyword),HT=new Set(up.strict),WT=new Set(up.strictBind);function n2(l,a){return a&&l==="await"||l==="enum"}function i2(l,a){return n2(l,a)||HT.has(l)}function a2(l){return WT.has(l)}function o2(l,a){return i2(l,a)||a2(l)}function JT(l){return VT.has(l)}function GT(l,a,h){return l===64&&a===64&&fs(h)}var KT=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function XT(l){return KT.has(l)}var lp=class{flags=0;names=new Map;firstLexicalName="";constructor(l){this.flags=l}},cp=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(l,a){this.parser=l,this.inModule=a}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let l=this.currentThisScopeFlags();return(l&64)>0&&(l&2)===0}get inStaticBlock(){for(let l=this.scopeStack.length-1;;l--){let{flags:a}=this.scopeStack[l];if(a&128)return!0;if(a&3779)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(l){return new lp(l)}enter(l){this.scopeStack.push(this.createScope(l))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(l){return!!(l.flags&130||!this.parser.inModule&&l.flags&1)}declareName(l,a,h){let y=this.currentScope();if(a&8||a&16){this.checkRedeclarationInScope(y,l,a,h);let E=y.names.get(l)||0;a&16?E=E|4:(y.firstLexicalName||(y.firstLexicalName=l),E=E|2),y.names.set(l,E),a&8&&this.maybeExportDefined(y,l)}else if(a&4)for(let E=this.scopeStack.length-1;E>=0&&(y=this.scopeStack[E],this.checkRedeclarationInScope(y,l,a,h),y.names.set(l,(y.names.get(l)||0)|1),this.maybeExportDefined(y,l),!(y.flags&3715));--E);this.parser.inModule&&y.flags&1&&this.undefinedExports.delete(l)}maybeExportDefined(l,a){this.parser.inModule&&l.flags&1&&this.undefinedExports.delete(a)}checkRedeclarationInScope(l,a,h,y){this.isRedeclaredInScope(l,a,h)&&this.parser.raise(M.VarRedeclaration,y,{identifierName:a})}isRedeclaredInScope(l,a,h){if(!(h&1))return!1;if(h&8)return l.names.has(a);let y=l.names.get(a)||0;return h&16?(y&2)>0||!this.treatFunctionsAsVarInScope(l)&&(y&1)>0:(y&2)>0&&!(l.flags&8&&l.firstLexicalName===a)||!this.treatFunctionsAsVarInScope(l)&&(y&4)>0}checkLocalExport(l){let{name:a}=l;this.scopeStack[0].names.has(a)||this.undefinedExports.set(a,l.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let l=this.scopeStack.length-1;;l--){let{flags:a}=this.scopeStack[l];if(a&3715)return a}}currentThisScopeFlags(){for(let l=this.scopeStack.length-1;;l--){let{flags:a}=this.scopeStack[l];if(a&3779&&!(a&4))return a}}},YT=class extends lp{declareFunctions=new Set},QT=class extends cp{createScope(l){return new YT(l)}declareName(l,a,h){let y=this.currentScope();if(a&2048){this.checkRedeclarationInScope(y,l,a,h),this.maybeExportDefined(y,l),y.declareFunctions.add(l);return}super.declareName(l,a,h)}isRedeclaredInScope(l,a,h){if(super.isRedeclaredInScope(l,a,h))return!0;if(h&2048&&!l.declareFunctions.has(a)){let y=l.names.get(a);return(y&4)>0||(y&2)>0}return!1}checkLocalExport(l){this.scopeStack[0].declareFunctions.has(l.name)||super.checkLocalExport(l)}},ZT=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),eF={AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:l})=>`Cannot overwrite reserved type ${l}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:l,enumName:a})=>`Boolean enum members need to be initialized. Use either \`${l} = true,\` or \`${l} = false,\` in enum \`${a}\`.`,EnumDuplicateMemberName:({memberName:l,enumName:a})=>`Enum member names need to be unique, but the name \`${l}\` has already been used before in enum \`${a}\`.`,EnumInconsistentMemberValues:({enumName:l})=>`Enum \`${l}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:l,enumName:a})=>`Enum type \`${l}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:l})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${l}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:l,memberName:a,explicitType:h})=>`Enum \`${l}\` has type \`${h}\`, so the initializer of \`${a}\` needs to be a ${h} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:l,memberName:a})=>`Symbol enum members cannot be initialized. Use \`${a},\` in enum \`${l}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:l,memberName:a})=>`The enum member initializer for \`${a}\` needs to be a literal (either a boolean, number, or string) in enum \`${l}\`.`,EnumInvalidMemberName:({enumName:l,memberName:a,suggestion:h})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${a}\`, consider using \`${h}\`, in enum \`${l}\`.`,EnumNumberMemberNotInitialized:({enumName:l,memberName:a})=>`Number enum members need to be initialized, e.g. \`${a} = 1\` in enum \`${l}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:l})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${l}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:{message:"A binding pattern parameter cannot be optional in an implementation signature."},SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:l})=>`Unexpected reserved type ${l}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:l,suggestion:a})=>`\`declare export ${l}\` is not supported. Use \`${a}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},$e=z`flow`(eF);function tF(l){return l.type==="DeclareExportAllDeclaration"||l.type==="DeclareExportDeclaration"&&(!l.declaration||l.declaration.type!=="TypeAlias"&&l.declaration.type!=="InterfaceDeclaration")}function u2(l){return l.importKind==="type"||l.importKind==="typeof"}var rF={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function sF(l,a){let h=[],y=[];for(let E=0;E<l.length;E++)(a(l[E],E,l)?h:y).push(l[E]);return[h,y]}var nF=/\*?\s*@((?:no)?flow)\b/,iF=l=>class extends l{flowPragma=void 0;getScopeHandler(){return QT}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(a,h){a!==130&&a!==9&&a!==24&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(a,h)}addComment(a){if(this.flowPragma===void 0){let h=nF.exec(a.value);if(h)if(h[1]==="flow")this.flowPragma="flow";else if(h[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(a)}flowParseTypeInitialiser(a){let h=this.state.inType;this.state.inType=!0,this.expect(a||10);let y=this.flowParseType();return this.state.inType=h,y}flowParsePredicate(){let a=this.startNode(),h=this.state.startLoc;return this.next(),this.expectContextual(106),this.state.lastTokStartLoc.index>h.index+1&&this.raise($e.UnexpectedSpaceBetweenModuloChecks,h),this.eat(6)?(a.value=super.parseExpression(),this.expect(7),this.finishNode(a,"DeclaredPredicate")):this.finishNode(a,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(a){let h=this.state.inType;this.state.inType=!0,this.expect(10);let y=null,E=null;return a&&this.match(50)?(this.state.inType=h,E=this.flowParsePredicate()):(y=this.flowParseType(),this.state.inType=h,this.match(50)&&(E=this.flowParsePredicate())),[y,E]}flowParseDeclareClass(a){return this.next(),this.flowParseInterfaceish(a,!0),this.finishNode(a,"DeclareClass")}flowParseDeclareFunction(a){this.next();let h=a.id=this.parseIdentifier(),y=this.startNode(),E=this.startNode();this.match(43)?y.typeParameters=this.flowParseTypeParameterDeclaration():y.typeParameters=null,this.expect(6);let w=this.flowParseFunctionTypeParams();return y.params=w.params,y.rest=w.rest,y.this=w._this,this.expect(7),[y.returnType,a.predicate]=this.flowParseTypeAndPredicateInitialiser(!1),E.typeAnnotation=this.finishNode(y,"FunctionTypeAnnotation"),h.typeAnnotation=this.finishNode(E,"TypeAnnotation"),this.resetEndLocation(h),this.semicolon(),this.scope.declareName(a.id.name,2048,a.id.start),this.finishNode(a,"DeclareFunction")}flowParseDeclare(a,h){if(this.match(76))return this.flowParseDeclareClass(a);if(this.match(64))return this.flowParseDeclareFunction(a);if(this.match(70))return this.flowParseDeclareVariable(a);if(this.eatContextual(123))return this.match(12)?this.flowParseDeclareModuleExports(a):(h&&this.raise($e.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(a));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(a);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(a);if(this.isContextual(125))return this.flowParseDeclareInterface(a);if(this.match(78))return this.flowParseDeclareExportDeclaration(a,h);throw this.unexpected()}flowParseDeclareVariable(a){return this.next(),a.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(a.id.name,5,a.id.start),this.semicolon(),this.finishNode(a,"DeclareVariable")}flowParseDeclareModule(a){this.scope.enter(0),this.match(130)?a.id=super.parseExprAtom():a.id=this.parseIdentifier();let h=this.startNode(),y=h.body=[];for(this.expect(2);!this.match(4);){let $=this.startNode();this.match(79)?(this.next(),!this.isContextual(126)&&!this.match(83)&&this.raise($e.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),y.push(super.parseImport($))):(this.expectContextual(121,$e.UnsupportedStatementInDeclareModule),y.push(this.flowParseDeclare($,!0)))}this.scope.exit(),this.expect(4),a.body=this.finishNode(h,"BlockStatement");let E=null,w=!1;return y.forEach($=>{tF($)?(E==="CommonJS"&&this.raise($e.AmbiguousDeclareModuleKind,$),E="ES"):$.type==="DeclareModuleExports"&&(w&&this.raise($e.DuplicateDeclareModuleExports,$),E==="ES"&&this.raise($e.AmbiguousDeclareModuleKind,$),E="CommonJS",w=!0)}),a.kind=E||"CommonJS",this.finishNode(a,"DeclareModule")}flowParseDeclareExportDeclaration(a,h){if(this.expect(78),this.eat(61))return this.match(64)||this.match(76)?a.declaration=this.flowParseDeclare(this.startNode()):(a.declaration=this.flowParseType(),this.semicolon()),a.default=!0,this.finishNode(a,"DeclareExportDeclaration");if(this.match(71)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!h){let y=this.state.value;throw this.raise($e.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:y,suggestion:rF[y]})}if(this.match(70)||this.match(64)||this.match(76)||this.isContextual(127))return a.declaration=this.flowParseDeclare(this.startNode()),a.default=!1,this.finishNode(a,"DeclareExportDeclaration");if(this.match(51)||this.match(2)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127)){let y=this.parseExport(a,null);return y.type==="ExportNamedDeclaration"?(y.default=!1,delete y.exportKind,this.castNodeTo(y,"DeclareExportDeclaration")):this.castNodeTo(y,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(a){return this.next(),this.expectContextual(107),a.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(a,"DeclareModuleExports")}flowParseDeclareTypeAlias(a){this.next();let h=this.flowParseTypeAlias(a);return this.castNodeTo(h,"DeclareTypeAlias"),h}flowParseDeclareOpaqueType(a){return this.next(),this.flowParseOpaqueType(a,!0)}flowParseDeclareInterface(a){return this.next(),this.flowParseInterfaceish(a,!1),this.finishNode(a,"DeclareInterface")}flowParseInterfaceish(a,h){if(a.id=this.flowParseRestrictedIdentifier(!h,!0),this.scope.declareName(a.id.name,h?17:8201,a.id.start),this.match(43)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.extends=[],this.eat(77))do a.extends.push(this.flowParseInterfaceExtends());while(!h&&this.eat(8));if(h){let y=[],E=[];if(this.eatContextual(113))do E.push(this.flowParseInterfaceExtends());while(this.eat(8));if(this.eatContextual(109))do y.push(this.flowParseClassImplements());while(this.eat(8));a.implements=y,a.mixins=E}a.body=this.flowParseObjectType({allowStatic:h,allowExact:!1,allowSpread:!1,allowProto:h,allowInexact:!1})}flowParseInterfaceExtends(){let a=this.startNode();return a.id=this.flowParseQualifiedTypeIdentifier(),this.match(43)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,this.finishNode(a,"InterfaceExtends")}flowParseInterface(a){return this.flowParseInterfaceish(a,!1),this.finishNode(a,"InterfaceDeclaration")}checkNotUnderscore(a){a==="_"&&this.raise($e.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(a,h,y){ZT.has(a)&&this.raise(y?$e.AssignReservedType:$e.UnexpectedReservedType,h,{reservedType:a})}flowParseRestrictedIdentifierName(a,h){return this.checkReservedType(this.state.value,this.state.startLoc,h),this.parseIdentifierName(a)}flowParseRestrictedIdentifier(a,h){let y=this.startNode(),E=this.flowParseRestrictedIdentifierName(a,h);return this.createIdentifier(y,E)}flowParseTypeAlias(a){return a.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(a.id.name,8201,a.id.start),this.match(43)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.right=this.flowParseTypeInitialiser(25),this.semicolon(),this.finishNode(a,"TypeAlias")}flowParseOpaqueType(a,h){return this.expectContextual(126),a.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(a.id.name,8201,a.id.start),this.match(43)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.supertype=null,this.match(10)&&(a.supertype=this.flowParseTypeInitialiser(10)),a.impltype=null,h||(a.impltype=this.flowParseTypeInitialiser(25)),this.semicolon(),this.finishNode(a,h?"DeclareOpaqueType":"OpaqueType")}flowParseTypeParameterBound(){if(this.match(10)||this.isContextual(77)){let a=this.startNode();return this.next(),a.typeAnnotation=this.flowParseType(),this.finishNode(a,"TypeAnnotation")}}flowParseTypeParameter(a=!1){let h=this.state.startLoc,y=this.startNode(),E=this.flowParseVariance();return y.name=this.flowParseRestrictedIdentifierName(),y.variance=E,y.bound=this.flowParseTypeParameterBound(),this.match(25)?(this.eat(25),y.default=this.flowParseType()):a&&this.raise($e.MissingTypeParamDefault,h),this.finishNode(y,"TypeParameter")}flowParseTypeParameterDeclaration(){let a=this.state.inType,h=this.startNode();h.params=[],this.state.inType=!0,this.match(43)||this.match(138)?this.next():this.unexpected();let y=!1;do{let E=this.flowParseTypeParameter(y);h.params.push(E),E.default&&(y=!0),this.match(44)||this.expect(8)}while(!this.match(44));return this.expect(44),this.state.inType=a,this.finishNode(h,"TypeParameterDeclaration")}flowInTopLevelContext(a){if(this.curContext()!==st.brace){let h=this.state.context;this.state.context=[h[0]];try{return a()}finally{this.state.context=h}}else return a()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===43)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let a=this.startNode(),h=this.state.inType;return this.state.inType=!0,a.params=[],this.flowInTopLevelContext(()=>{this.expect(43);let y=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(44);)a.params.push(this.flowParseType()),this.match(44)||this.expect(8);this.state.noAnonFunctionType=y}),this.state.inType=h,!this.state.inType&&this.curContext()===st.brace&&this.reScan_lt_gt(),this.expect(44),this.finishNode(a,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==43)return null;let a=this.startNode(),h=this.state.inType;for(a.params=[],this.state.inType=!0,this.expect(43);!this.match(44);)a.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(44)||this.expect(8);return this.expect(44),this.state.inType=h,this.finishNode(a,"TypeParameterInstantiation")}flowParseInterfaceType(){let a=this.startNode();if(this.expectContextual(125),a.extends=[],this.eat(77))do a.extends.push(this.flowParseInterfaceExtends());while(this.eat(8));return a.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(a,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(131)||this.match(130)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(a,h,y){return a.static=h,this.lookahead().type===10?(a.id=this.parseIdentifier(!0),a.key=this.flowParseTypeInitialiser()):(a.id=null,a.key=this.flowParseType()),this.expect(1),a.value=this.flowParseTypeInitialiser(),a.variance=y,this.finishNode(a,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(a,h){return a.static=h,a.id=this.parseIdentifier(!0),this.expect(1),this.expect(1),this.match(43)||this.match(6)?(a.method=!0,a.optional=!1,a.value=this.flowParseObjectTypeMethodish(this.startNodeAtNode(a))):(a.method=!1,this.eat(13)&&(a.optional=!0),a.value=this.flowParseTypeInitialiser()),this.finishNode(a,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(a){for(a.params=[],a.rest=null,a.typeParameters=null,a.this=null,this.match(43)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(6),this.match(74)&&(a.this=this.flowParseFunctionTypeParam(!0),a.this.name=null,this.match(7)||this.expect(8));!this.match(7)&&!this.match(17);)a.params.push(this.flowParseFunctionTypeParam(!1)),this.match(7)||this.expect(8);return this.eat(17)&&(a.rest=this.flowParseFunctionTypeParam(!1)),this.expect(7),a.returnType=this.flowParseTypeInitialiser(),this.finishNode(a,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(a,h){let y=this.startNode();return a.static=h,a.value=this.flowParseObjectTypeMethodish(y),this.finishNode(a,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:a,allowExact:h,allowSpread:y,allowProto:E,allowInexact:w}){let $=this.state.inType;this.state.inType=!0;let _=this.startNode();_.callProperties=[],_.properties=[],_.indexers=[],_.internalSlots=[];let H,U,oe=!1;for(h&&this.match(3)?(this.expect(3),H=5,U=!0):(this.expect(2),H=4,U=!1),_.exact=U;!this.match(H);){let Ie=!1,Ue=null,wt=null,Wt=this.startNode();if(E&&this.isContextual(114)){let vt=this.lookahead();vt.type!==10&&vt.type!==13&&(this.next(),Ue=this.state.startLoc,a=!1)}if(a&&this.isContextual(102)){let vt=this.lookahead();vt.type!==10&&vt.type!==13&&(this.next(),Ie=!0)}let At=this.flowParseVariance();if(this.eat(0))Ue!=null&&this.unexpected(Ue),this.eat(0)?(At&&this.unexpected(At.start),_.internalSlots.push(this.flowParseObjectTypeInternalSlot(Wt,Ie))):_.indexers.push(this.flowParseObjectTypeIndexer(Wt,Ie,At));else if(this.match(6)||this.match(43))Ue!=null&&this.unexpected(Ue),At&&this.unexpected(At.start),_.callProperties.push(this.flowParseObjectTypeCallProperty(Wt,Ie));else{let vt="init";if(this.isContextual(95)||this.isContextual(100)){let vp=this.lookahead();jt(vp.type)&&(vt=this.state.value,this.next())}let Pr=this.flowParseObjectTypeProperty(Wt,Ie,Ue,At,vt,y,w??!U);Pr===null?(oe=!0,wt=this.state.lastTokStartLoc):_.properties.push(Pr)}this.flowObjectTypeSemicolon(),wt&&!this.match(4)&&!this.match(5)&&this.raise($e.UnexpectedExplicitInexactInObject,wt)}this.expect(H),y&&(_.inexact=oe);let De=this.finishNode(_,"ObjectTypeAnnotation");return this.state.inType=$,De}flowParseObjectTypeProperty(a,h,y,E,w,$,_){if(this.eat(17))return this.match(8)||this.match(9)||this.match(4)||this.match(5)?($?_||this.raise($e.InexactInsideExact,this.state.lastTokStartLoc):this.raise($e.InexactInsideNonObject,this.state.lastTokStartLoc),E&&this.raise($e.InexactVariance,E),null):($||this.raise($e.UnexpectedSpreadType,this.state.lastTokStartLoc),y!=null&&this.unexpected(y),E&&this.raise($e.SpreadVariance,E),a.argument=this.flowParseType(),this.finishNode(a,"ObjectTypeSpreadProperty"));{a.key=this.flowParseObjectPropertyKey(),a.static=h,a.proto=y!=null,a.kind=w;let H=!1;return this.match(43)||this.match(6)?(a.method=!0,y!=null&&this.unexpected(y),E&&this.unexpected(E.start),a.value=this.flowParseObjectTypeMethodish(this.startNodeAtNode(a)),w==="get"||w==="set"?this.flowCheckGetterSetterParams(a):!h&&!$&&a.key.name==="constructor"&&a.value.this&&this.raise($e.ThisParamBannedInConstructor,a.value.this)):(w!=="init"&&this.unexpected(),a.method=!1,this.eat(13)&&(H=!0),a.value=this.flowParseTypeInitialiser(),a.variance=E),a.optional=H,this.finishNode(a,"ObjectTypeProperty")}}flowCheckGetterSetterParams(a){let h=a.kind==="get"?0:1,y=a.value,E=y.params.length+(y.rest?1:0);y.this&&this.raise(a.kind==="get"?$e.GetterMayNotHaveThisParam:$e.SetterMayNotHaveThisParam,y.this),E!==h&&this.raise(a.kind==="get"?M.BadGetterArity:M.BadSetterArity,a),a.kind==="set"&&y.rest&&this.raise(M.BadSetterRestParameter,a)}flowObjectTypeSemicolon(){!this.eat(9)&&!this.eat(8)&&!this.match(4)&&!this.match(5)&&this.unexpected()}flowParseQualifiedTypeIdentifier(a,h){a??(a=this.state.startLoc);let y=h||this.flowParseRestrictedIdentifier(!0);for(;this.eat(12);){let E=this.startNodeAt(a);E.qualification=y,E.id=this.flowParseRestrictedIdentifier(!0),y=this.finishNode(E,"QualifiedTypeIdentifier")}return y}flowParseGenericType(a,h){let y=this.startNodeAt(a);return y.typeParameters=null,y.id=this.flowParseQualifiedTypeIdentifier(a,h),this.match(43)&&(y.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(y,"GenericTypeAnnotation")}flowParseTypeofType(){let a=this.startNode();return this.expect(83),a.argument=this.flowParsePrimaryType(),this.finishNode(a,"TypeofTypeAnnotation")}flowParseTupleType(){let a=this.startNode();for(a.types=[],this.expect(0);this.state.pos<this.length&&!this.match(1)&&(a.types.push(this.flowParseType()),!this.match(1));)this.expect(8);return this.expect(1),this.finishNode(a,"TupleTypeAnnotation")}flowParseFunctionTypeParam(a){let h=null,y=!1,E,w=this.startNode(),$=this.lookahead(),_=this.state.type===74;return $.type===10||$.type===13?(_&&!a&&this.raise($e.ThisParamMustBeFirst,w),h=this.parseIdentifier(_),this.eat(13)&&(y=!0,_&&this.raise($e.ThisParamMayNotBeOptional,w)),E=this.flowParseTypeInitialiser()):E=this.flowParseType(),w.name=h,w.optional=y,w.typeAnnotation=E,this.finishNode(w,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(a){let h=this.startNodeAtNode(a);return h.name=null,h.optional=!1,h.typeAnnotation=a,this.finishNode(h,"FunctionTypeParam")}flowParseFunctionTypeParams(a=[]){let h=null,y=null;for(this.match(74)&&(y=this.flowParseFunctionTypeParam(!0),y.name=null,this.match(7)||this.expect(8));!this.match(7)&&!this.match(17);)a.push(this.flowParseFunctionTypeParam(!1)),this.match(7)||this.expect(8);return this.eat(17)&&(h=this.flowParseFunctionTypeParam(!1)),{params:a,rest:h,_this:y}}flowIdentToTypeAnnotation(a,h,y){switch(y.name){case"any":return this.finishNode(h,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(h,"BooleanTypeAnnotation");case"mixed":return this.finishNode(h,"MixedTypeAnnotation");case"empty":return this.finishNode(h,"EmptyTypeAnnotation");case"number":return this.finishNode(h,"NumberTypeAnnotation");case"string":return this.finishNode(h,"StringTypeAnnotation");case"symbol":return this.finishNode(h,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(y.name),this.flowParseGenericType(a,y)}}flowParsePrimaryType(){let a=this.state.startLoc,h=this.startNode(),y,E,w=!1,$=this.state.noAnonFunctionType;switch(this.state.type){case 2:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 3:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,E=this.flowParseTupleType(),this.state.noAnonFunctionType=$,E;case 43:{let _=this.startNode();return _.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(6),y=this.flowParseFunctionTypeParams(),_.params=y.params,_.rest=y.rest,_.this=y._this,this.expect(7),this.expect(15),_.returnType=this.flowParseType(),this.finishNode(_,"FunctionTypeAnnotation")}case 6:{let _=this.startNode();if(this.next(),!this.match(7)&&!this.match(17))if(_e(this.state.type)||this.match(74)){let H=this.lookahead().type;w=H!==13&&H!==10}else w=!0;if(w){if(this.state.noAnonFunctionType=!1,E=this.flowParseType(),this.state.noAnonFunctionType=$,this.state.noAnonFunctionType||!(this.match(8)||this.match(7)&&this.lookahead().type===15))return this.expect(7),E;this.eat(8)}return E?y=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(E)]):y=this.flowParseFunctionTypeParams(),_.params=y.params,_.rest=y.rest,_.this=y._this,this.expect(7),this.expect(15),_.returnType=this.flowParseType(),_.typeParameters=null,this.finishNode(_,"FunctionTypeAnnotation")}case 130:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 81:case 82:return h.value=this.match(81),this.next(),this.finishNode(h,"BooleanLiteralTypeAnnotation");case 49:if(this.state.value==="-"){if(this.next(),this.match(131))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",h);if(this.match(132))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",h);throw this.raise($e.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 131:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 132:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 84:return this.next(),this.finishNode(h,"VoidTypeAnnotation");case 80:return this.next(),this.finishNode(h,"NullLiteralTypeAnnotation");case 74:return this.next(),this.finishNode(h,"ThisTypeAnnotation");case 51:return this.next(),this.finishNode(h,"ExistsTypeAnnotation");case 83:return this.flowParseTypeofType();default:if(dt(this.state.type)){let _=ft(this.state.type);return this.next(),super.createIdentifier(h,_)}else if(_e(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(a,h,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let a=this.state.startLoc,h=this.flowParsePrimaryType(),y=!1;for(;(this.match(0)||this.match(14))&&!this.canInsertSemicolon();){let E=this.startNodeAt(a),w=this.eat(14);y=y||w,this.expect(0),!w&&this.match(1)?(E.elementType=h,this.next(),h=this.finishNode(E,"ArrayTypeAnnotation")):(E.objectType=h,E.indexType=this.flowParseType(),this.expect(1),y?(E.optional=w,h=this.finishNode(E,"OptionalIndexedAccessType")):h=this.finishNode(E,"IndexedAccessType"))}return h}flowParsePrefixType(){let a=this.startNode();return this.eat(13)?(a.typeAnnotation=this.flowParsePrefixType(),this.finishNode(a,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let a=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(15)){let h=this.startNodeAtNode(a);return h.params=[this.reinterpretTypeAsFunctionTypeParam(a)],h.rest=null,h.this=null,h.returnType=this.flowParseType(),h.typeParameters=null,this.finishNode(h,"FunctionTypeAnnotation")}return a}flowParseIntersectionType(){let a=this.startNode();this.eat(41);let h=this.flowParseAnonFunctionWithoutParens();for(a.types=[h];this.eat(41);)a.types.push(this.flowParseAnonFunctionWithoutParens());return a.types.length===1?h:this.finishNode(a,"IntersectionTypeAnnotation")}flowParseUnionType(){let a=this.startNode();this.eat(39);let h=this.flowParseIntersectionType();for(a.types=[h];this.eat(39);)a.types.push(this.flowParseIntersectionType());return a.types.length===1?h:this.finishNode(a,"UnionTypeAnnotation")}flowParseType(){let a=this.state.inType;this.state.inType=!0;let h=this.flowParseUnionType();return this.state.inType=a,h}flowParseTypeOrImplicitInstantiation(){if(this.state.type===128&&this.state.value==="_"){let a=this.state.startLoc,h=this.parseIdentifier();return this.flowParseGenericType(a,h)}else return this.flowParseType()}flowParseTypeAnnotation(){let a=this.startNode();return a.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(a,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let a=this.startNode(),h=this.parseIdentifierName();return this.match(10)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(a,h)}typeCastToParameter(a){return a.expression.typeAnnotation=a.typeAnnotation,this.resetEndLocationFromNode(a.expression,a.typeAnnotation),a.expression}flowParseVariance(){let a=null;return this.match(49)?(a=this.startNode(),this.state.value==="+"?a.kind="plus":a.kind="minus",this.next(),this.finishNode(a,"Variance")):a}parseFunctionBody(a,h,y=!1){if(h){this.forwardNoArrowParamsConversionAt(a,()=>super.parseFunctionBody(a,!0,y));return}super.parseFunctionBody(a,!1,y)}parseFunctionBodyAndFinish(a,h,y=!1){if(this.match(10)){let E=this.startNode();h==="FunctionDeclaration"||h==="FunctionExpression"||h==="ArrowFunctionExpression"?[E.typeAnnotation,a.predicate]=this.flowParseTypeAndPredicateInitialiser(!0):E.typeAnnotation=this.flowParseTypeInitialiser(),a.returnType=E.typeAnnotation?this.finishNode(E,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(a,h,y)}parseStatementLike(a){if(this.state.strict&&this.isContextual(125)){let y=this.lookahead();if(tt(y.type)){let E=this.startNode();return this.next(),this.flowParseInterface(E)}}else if(this.isContextual(122)){let y=this.startNode();return this.next(),this.flowParseEnumDeclaration(y)}let h=super.parseStatementLike(a);return this.flowPragma===void 0&&!this.isValidDirective(h)&&(this.flowPragma=null),h}parseExpressionStatement(a,h,y){if(h.type==="Identifier"){if(h.name==="declare"){if(this.match(76)||_e(this.state.type)||this.match(64)||this.match(70)||this.match(78))return this.flowParseDeclare(a)}else if(_e(this.state.type)){if(h.name==="interface")return this.flowParseInterface(a);if(h.name==="type")return this.flowParseTypeAlias(a);if(h.name==="opaque")return this.flowParseOpaqueType(a,!1)}}return super.parseExpressionStatement(a,h,y)}shouldParseExportDeclaration(){let{type:a}=this.state;return a===122||je(a)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:a}=this.state;return a===122||je(a)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(122)){let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}return super.parseExportDefaultExpression()}parseConditional(a,h,y){if(!this.match(13))return a;if(y!=null){let Ie=this.lookaheadCharCode();if(Ie===44||Ie===61||Ie===58||Ie===41)return this.setOptionalParametersError(y),a}this.expect(13);let E=this.state.clone(),w=this.state.noArrowAt,$=this.startNodeAt(h),{consequent:_,failed:H}=this.tryParseConditionalConsequent(),U=this.getArrowLikeExpressions(_),oe=U[0],De=U[1];if(H||De.length>0){let Ie=[...w];if(De.length>0){this.state=E,this.state.noArrowAt=Ie;for(let Ue=0;Ue<De.length;Ue++)Ie.push(De[Ue].start);({consequent:_,failed:H}=this.tryParseConditionalConsequent()),[oe]=this.getArrowLikeExpressions(_)}H&&oe.length>1&&this.raise($e.AmbiguousConditionalArrow,E.startLoc),H&&oe.length===1&&(this.state=E,Ie.push(oe[0].start),this.state.noArrowAt=Ie,{consequent:_}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(_,!0),this.state.noArrowAt=w,this.expect(10),$.test=a,$.consequent=_,$.alternate=this.forwardNoArrowParamsConversionAt($,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode($,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let a=this.parseMaybeAssignAllowIn(),h=!this.match(10);return this.state.noArrowParamsConversionAt.pop(),{consequent:a,failed:h}}getArrowLikeExpressions(a,h){let y=[a],E=[];for(;y.length!==0;){let w=y.pop();w.type==="ArrowFunctionExpression"&&w.body.type!=="BlockStatement"?(w.typeParameters||!w.returnType?this.finishArrowValidation(w):E.push(w),y.push(w.body)):w.type==="ConditionalExpression"&&(y.push(w.consequent),y.push(w.alternate))}return h?(E.forEach(w=>this.finishArrowValidation(w)),[E,[]]):sF(E,w=>w.params.every($=>this.isAssignable($,!0)))}finishArrowValidation(a){this.toAssignableList(a.params,a.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(a,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(a,h){let y;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(a.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),y=h(),this.state.noArrowParamsConversionAt.pop()):y=h(),y}parseParenItem(a,h){let y=super.parseParenItem(a,h);if(this.eat(13)&&(y.optional=!0,this.resetEndLocation(a)),this.match(10)){let E=this.startNodeAt(h);return E.expression=y,E.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(E,"TypeCastExpression")}return y}assertModuleNodeAllowed(a){a.type==="ImportDeclaration"&&(a.importKind==="type"||a.importKind==="typeof")||a.type==="ExportNamedDeclaration"&&a.exportKind==="type"||a.type==="ExportAllDeclaration"&&a.exportKind==="type"||super.assertModuleNodeAllowed(a)}parseExportDeclaration(a){if(this.isContextual(126)){a.exportKind="type";let h=this.startNode();return this.next(),this.match(2)?(a.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(a),null):this.flowParseTypeAlias(h)}else if(this.isContextual(127)){a.exportKind="type";let h=this.startNode();return this.next(),this.flowParseOpaqueType(h,!1)}else if(this.isContextual(125)){a.exportKind="type";let h=this.startNode();return this.next(),this.flowParseInterface(h)}else if(this.isContextual(122)){a.exportKind="value";let h=this.startNode();return this.next(),this.flowParseEnumDeclaration(h)}else return super.parseExportDeclaration(a)}eatExportStar(a){return super.eatExportStar(a)?!0:this.isContextual(126)&&this.lookahead().type===51?(a.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(a){let{startLoc:h}=this.state,y=super.maybeParseExportNamespaceSpecifier(a);return y&&a.exportKind==="type"&&this.unexpected(h),y}parseClassId(a,h,y){if((!h||y)&&this.isContextual(109)){a.id=null;return}super.parseClassId(a,h,y),this.match(43)&&(a.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(a,h,y){let{startLoc:E}=this.state;if(this.isContextual(121)){if(super.parseClassMemberFromModifier(a,h))return;h.declare=!0}super.parseClassMember(a,h,y),h.declare&&(h.type!=="ClassProperty"&&h.type!=="ClassPrivateProperty"&&h.type!=="PropertyDefinition"?this.raise($e.DeclareClassElement,E):h.value&&this.raise($e.DeclareClassFieldInitializer,h.value))}isIterator(a){return a==="iterator"||a==="asyncIterator"}readIterator(){let a=super.readWord1(),h="@@"+a;(!this.isIterator(a)||!this.state.inType)&&this.raise(M.InvalidIdentifier,this.state.curPosition(),{identifierName:h}),this.finishToken(128,h)}getTokenFromCode(a){let h=this.input.charCodeAt(this.state.pos+1);a===123&&h===124?this.finishOp(3,2):this.state.inType&&(a===62||a===60)?this.finishOp(a===62?44:43,1):this.state.inType&&a===63?h===46?this.finishOp(14,2):this.finishOp(13,1):GT(a,h,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(a)}isAssignable(a,h){return a.type==="TypeCastExpression"?this.isAssignable(a.expression,h):super.isAssignable(a,h)}toAssignable(a,h=!1){!h&&a.type==="AssignmentExpression"&&a.left.type==="TypeCastExpression"&&(a.left=this.typeCastToParameter(a.left)),super.toAssignable(a,h)}toAssignableListItem(a,h,y){let E=a[h];E.type==="TypeCastExpression"&&(a[h]=this.typeCastToParameter(E)),super.toAssignableListItem(a,h,y)}toReferencedList(a,h){for(let y=0;y<a.length;y++){let E=a[y];E?.type==="TypeCastExpression"&&!E.extra?.parenthesized&&(a.length>1||!h)&&this.raise($e.TypeCastInPattern,E.typeAnnotation)}return a}parseArrayLike(a,h){let y=super.parseArrayLike(a,h);return y.type==="ArrayExpression"&&this.toReferencedList(y.elements),y}isValidLVal(a,h,y,E){return a==="TypeCastExpression"||super.isValidLVal(a,h,y,E)}parseClassProperty(a){return this.match(10)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(a)}parseClassPrivateProperty(a){return this.match(10)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(a)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(10)||super.isClassProperty()}isNonstaticConstructor(a){return!this.match(10)&&super.isNonstaticConstructor(a)}pushClassMethod(a,h,y,E,w,$){if(h.variance&&this.unexpected(h.variance.start),delete h.variance,this.match(43)&&(h.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(a,h,y,E,w,$),h.params&&w){let _=h.params;_.length>0&&this.isThisParam(_[0])&&this.raise($e.ThisParamBannedInConstructor,h)}else if(h.type==="MethodDefinition"&&w&&h.value.params){let _=h.value.params;_.length>0&&this.isThisParam(_[0])&&this.raise($e.ThisParamBannedInConstructor,h)}}pushClassPrivateMethod(a,h,y,E){h.variance&&this.unexpected(h.variance.start),delete h.variance,this.match(43)&&(h.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(a,h,y,E)}flowParseClassImplements(){let a=this.startNode();return a.id=this.flowParseRestrictedIdentifier(!0),this.match(43)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,this.finishNode(a,"ClassImplements")}parseClassSuper(a){if(super.parseClassSuper(a),a.superClass&&(this.match(43)||this.match(47))&&(a.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.eatContextual(109)){let h=a.implements=[];do h.push(this.flowParseClassImplements());while(this.eat(8))}}checkGetterSetterParams(a){super.checkGetterSetterParams(a);let h=this.getObjectOrClassMethodParams(a);if(h.length>0){let y=h[0];this.isThisParam(y)&&a.kind==="get"?this.raise($e.GetterMayNotHaveThisParam,y):this.isThisParam(y)&&this.raise($e.SetterMayNotHaveThisParam,y)}}parsePropertyNamePrefixOperator(a){a.variance=this.flowParseVariance()}parseObjPropValue(a,h,y,E,w,$,_){a.variance&&this.unexpected(a.variance.start),delete a.variance;let H;this.match(43)&&!$&&(H=this.flowParseTypeParameterDeclaration(),this.match(6)||this.unexpected());let U=super.parseObjPropValue(a,h,y,E,w,$,_);return H&&((U.value||U).typeParameters=H),U}parseFunctionParamType(a){return this.eat(13)&&(a.type!=="Identifier"&&this.raise($e.PatternIsOptional,a),this.isThisParam(a)&&this.raise($e.ThisParamMayNotBeOptional,a),a.optional=!0),this.match(10)?a.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(a)&&this.raise($e.ThisParamAnnotationRequired,a),this.match(25)&&this.isThisParam(a)&&this.raise($e.ThisParamNoDefault,a),this.resetEndLocation(a),a}parseMaybeDefault(a,h){let y=super.parseMaybeDefault(a,h);return y.type==="AssignmentPattern"&&y.typeAnnotation&&y.right.start<y.typeAnnotation.start&&this.raise($e.TypeBeforeInitializer,y.typeAnnotation),y}parseImportSpecifierLocal(a,h,y){h.local=u2(a)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),a.specifiers.push(this.finishImportSpecifier(h,y))}isPotentialImportPhase(a){if(super.isPotentialImportPhase(a))return!0;if(this.isContextual(126)){if(!a)return!0;let h=this.lookaheadCharCode();return h===123||h===42}return!a&&this.isContextual(83)}applyImportPhase(a,h,y,E){if(super.applyImportPhase(a,h,y,E),h){if(!y&&this.match(61))return;a.exportKind=y==="type"?y:"value"}else y==="type"&&this.match(51)&&this.unexpected(),a.importKind=y==="type"||y==="typeof"?y:"value"}parseImportSpecifier(a,h,y,E,w){let $=a.imported,_=null;$.type==="Identifier"&&($.name==="type"?_="type":$.name==="typeof"&&(_="typeof"));let H=!1;if(this.isContextual(89)&&!this.isLookaheadContextual("as")){let oe=this.parseIdentifier(!0);_!==null&&!tt(this.state.type)?(a.imported=oe,a.importKind=_,a.local=this.cloneIdentifier(oe)):(a.imported=$,a.importKind=null,a.local=this.parseIdentifier())}else{if(_!==null&&tt(this.state.type))a.imported=this.parseIdentifier(!0),a.importKind=_;else{if(h)throw this.raise(M.ImportBindingIsString,a,{importName:$.value});a.imported=$,a.importKind=null}this.eatContextual(89)?a.local=this.parseIdentifier():(H=!0,a.local=this.cloneIdentifier(a.imported))}let U=u2(a);return y&&U&&this.raise($e.ImportTypeShorthandOnlyInPureImport,a),(y||U)&&this.checkReservedType(a.local.name,a.local.start,!0),H&&!y&&!U&&this.checkReservedWord(a.local.name,a.start,!0,!0),this.finishImportSpecifier(a,"ImportSpecifier")}parseBindingAtom(){return this.state.type===74?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(a,h){let y=a.kind;y!=="get"&&y!=="set"&&this.match(43)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(a,h)}parseVarId(a,h){super.parseVarId(a,h),this.match(10)&&(a.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(a.id))}parseAsyncArrowFromCallExpression(a,h){if(this.match(10)){let y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,a.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=y}return super.parseAsyncArrowFromCallExpression(a,h)}shouldParseAsyncArrow(){return this.match(10)||super.shouldParseAsyncArrow()}parseMaybeAssign(a,h){let y=null,E;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(y=this.state.clone(),E=this.tryParse(()=>super.parseMaybeAssign(a,h),y),!E.error)return E.node;let{context:w}=this.state,$=w[w.length-1];($===st.j_oTag||$===st.j_expr)&&w.pop()}if(E?.error||this.match(43)){y=y||this.state.clone();let w,$=this.tryParse(H=>{w=this.flowParseTypeParameterDeclaration();let U=this.forwardNoArrowParamsConversionAt(w,()=>{let De=super.parseMaybeAssign(a,h);return this.resetStartLocationFromNode(De,w),De});U.extra?.parenthesized&&H();let oe=this.maybeUnwrapTypeCastExpression(U);return oe.type!=="ArrowFunctionExpression"&&H(),oe.typeParameters=w,this.resetStartLocationFromNode(oe,w),U},y),_=null;if($.node&&this.maybeUnwrapTypeCastExpression($.node).type==="ArrowFunctionExpression"){if(!$.error&&!$.aborted)return $.node.async&&this.raise($e.UnexpectedTypeParameterBeforeAsyncArrowFunction,w),$.node;_=$.node}if(E?.node)return this.state=E.failState,E.node;if(_)return this.state=$.failState,_;throw E?.thrown?E.error:$.thrown?$.error:this.raise($e.UnexpectedTokenAfterTypeParameter,w)}return super.parseMaybeAssign(a,h)}parseArrow(a){if(this.match(10)){let h=this.tryParse(()=>{let y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let E=this.startNode();return[E.typeAnnotation,a.predicate]=this.flowParseTypeAndPredicateInitialiser(!0),this.state.noAnonFunctionType=y,this.canInsertSemicolon()&&this.unexpected(),this.match(15)||this.unexpected(),E});if(h.thrown)return null;h.error&&(this.state=h.failState),a.returnType=h.node.typeAnnotation?this.finishNode(h.node,"TypeAnnotation"):null}return super.parseArrow(a)}shouldParseArrow(a){return this.match(10)||super.shouldParseArrow(a)}setArrowFunctionParameters(a,h){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(a.start))?a.params=h:super.setArrowFunctionParameters(a,h)}checkParams(a,h,y,E=!0){if(!(y&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(a.start)))){for(let w=0;w<a.params.length;w++)this.isThisParam(a.params[w])&&w>0&&this.raise($e.ThisParamMustBeFirst,a.params[w]);super.checkParams(a,h,y,E)}}parseParenAndDistinguishExpression(a){return super.parseParenAndDistinguishExpression(a&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(a,h,y){if(a.type==="Identifier"&&a.name==="async"&&this.state.noArrowAt.includes(h.index)){this.next();let E=this.startNodeAt(h);E.callee=a,E.arguments=super.parseCallExpressionArguments(),a=this.finishNode(E,"CallExpression")}else if(a.type==="Identifier"&&a.name==="async"&&this.match(43)){let E=this.state.clone(),w=this.tryParse(_=>this.parseAsyncArrowWithTypeParameters(h)||_(),E);if(!w.error&&!w.aborted)return w.node;let $=this.tryParse(()=>super.parseSubscripts(a,h,y),E);if($.node&&!$.error)return $.node;if(w.node)return this.state=w.failState,w.node;if($.node)return this.state=$.failState,$.node;throw w.error||$.error}return super.parseSubscripts(a,h,y)}parseSubscript(a,h,y,E){if(this.match(14)&&this.isLookaheadToken_lt()){if(E.optionalChainMember=!0,y)return E.stop=!0,a;this.next();let w=this.startNodeAt(h);return w.callee=a,w.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(6),w.arguments=this.parseCallExpressionArguments(),w.optional=!0,this.finishCallExpression(w,!0)}else if(!y&&this.shouldParseTypes()&&(this.match(43)||this.match(47))){let w=this.startNodeAt(h);w.callee=a;let $=this.tryParse(()=>(w.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(6),w.arguments=super.parseCallExpressionArguments(),E.optionalChainMember&&(w.optional=!1),this.finishCallExpression(w,E.optionalChainMember)));if($.node)return $.error&&(this.state=$.failState),$.node}return super.parseSubscript(a,h,y,E)}parseNewCallee(a){super.parseNewCallee(a);let h=null;this.shouldParseTypes()&&this.match(43)&&(h=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),a.typeArguments=h}parseAsyncArrowWithTypeParameters(a){let h=this.startNodeAt(a);if(this.parseFunctionParams(h,!1),!!this.parseArrow(h))return super.parseArrowExpression(h,void 0,!0)}readToken_mult_modulo(a){let h=this.input.charCodeAt(this.state.pos+1);if(a===42&&h===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(a)}readToken_pipe_amp(a){let h=this.input.charCodeAt(this.state.pos+1);if(a===124&&h===125){this.finishOp(5,2);return}super.readToken_pipe_amp(a)}parseTopLevel(a,h){let y=super.parseTopLevel(a,h);return this.state.hasFlowComment&&this.raise($e.UnterminatedFlowComment,this.state.curPosition()),y}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise($e.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let a=this.skipFlowComment();a&&(this.state.pos+=a,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:a}=this.state,h=2;for(;[32,9].includes(this.input.charCodeAt(a+h));)h++;let y=this.input.charCodeAt(h+a),E=this.input.charCodeAt(h+a+1);return y===58&&E===58?h+2:this.input.slice(h+a,h+a+12)==="flow-include"?h+12:y===58&&E!==58?h:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(a,h){this.raise($e.EnumBooleanMemberNotInitialized,a,h)}flowEnumErrorInvalidMemberInitializer(a,h){return this.raise(h.explicitType?h.explicitType==="symbol"?$e.EnumInvalidMemberInitializerSymbolType:$e.EnumInvalidMemberInitializerPrimaryType:$e.EnumInvalidMemberInitializerUnknownType,a,h)}flowEnumErrorNumberMemberNotInitialized(a,h){this.raise($e.EnumNumberMemberNotInitialized,a,h)}flowEnumErrorStringMemberInconsistentlyInitialized(a,h){this.raise($e.EnumStringMemberInconsistentlyInitialized,a,h)}flowEnumMemberInit(){let a=this.state.startLoc,h=()=>this.match(8)||this.match(4);switch(this.state.type){case 131:{let y=this.parseNumericLiteral(this.state.value);if(h())return{type:"number",loc:y.start,value:y};break}case 130:{let y=this.parseStringLiteral(this.state.value);if(h())return{type:"string",loc:y.start,value:y};break}case 81:case 82:{let y=this.parseBooleanLiteral(this.match(81));if(h())return{type:"boolean",loc:y.start,value:y}}}return{type:"invalid",loc:a}}flowEnumMemberRaw(){let a=this.state.startLoc,h=this.parseIdentifier(!0),y=this.eat(25)?this.flowEnumMemberInit():{type:"none",loc:a};return{id:h,init:y}}flowEnumCheckExplicitTypeMismatch(a,h,y){let{explicitType:E}=h;E!==null&&E!==y&&this.flowEnumErrorInvalidMemberInitializer(a,h)}flowEnumMembers({enumName:a,explicitType:h}){let y=new Set,E={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},w=!1;for(;!this.match(4);){if(this.eat(17)){w=!0;break}let $=this.startNode(),{id:_,init:H}=this.flowEnumMemberRaw(),U=_.name;if(U==="")continue;/^[a-z]/.test(U)&&this.raise($e.EnumInvalidMemberName,_,{memberName:U,suggestion:U[0].toUpperCase()+U.slice(1),enumName:a}),y.has(U)&&this.raise($e.EnumDuplicateMemberName,_,{memberName:U,enumName:a}),y.add(U);let oe={enumName:a,explicitType:h,memberName:U};switch($.id=_,H.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(H.loc,oe,"boolean"),$.init=H.value,E.booleanMembers.push(this.finishNode($,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(H.loc,oe,"number"),$.init=H.value,E.numberMembers.push(this.finishNode($,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(H.loc,oe,"string"),$.init=H.value,E.stringMembers.push(this.finishNode($,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(H.loc,oe);case"none":switch(h){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(H.loc,oe);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(H.loc,oe);break;default:E.defaultedMembers.push(this.finishNode($,"EnumDefaultedMember"))}}this.match(4)||this.expect(8)}return{members:E,hasUnknownMembers:w}}flowEnumStringMembers(a,h,{enumName:y}){if(a.length===0)return h;if(h.length===0)return a;if(h.length>a.length){for(let E of a)this.flowEnumErrorStringMemberInconsistentlyInitialized(E,{enumName:y});return h}else{for(let E of h)this.flowEnumErrorStringMemberInconsistentlyInitialized(E,{enumName:y});return a}}flowEnumParseExplicitType({enumName:a}){if(!this.eatContextual(98))return null;if(!_e(this.state.type))throw this.raise($e.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:a});let{value:h}=this.state;return this.next(),h!=="boolean"&&h!=="number"&&h!=="string"&&h!=="symbol"&&this.raise($e.EnumInvalidExplicitType,this.state.startLoc,{enumName:a,invalidEnumType:h}),h}flowEnumBody(a,h){let y=h.name,E=h.start,w=this.flowEnumParseExplicitType({enumName:y});this.expect(2);let{members:$,hasUnknownMembers:_}=this.flowEnumMembers({enumName:y,explicitType:w});switch(a.hasUnknownMembers=_,w){case"boolean":return a.explicitType=!0,a.members=$.booleanMembers,this.expect(4),this.finishNode(a,"EnumBooleanBody");case"number":return a.explicitType=!0,a.members=$.numberMembers,this.expect(4),this.finishNode(a,"EnumNumberBody");case"string":return a.explicitType=!0,a.members=this.flowEnumStringMembers($.stringMembers,$.defaultedMembers,{enumName:y}),this.expect(4),this.finishNode(a,"EnumStringBody");case"symbol":return a.members=$.defaultedMembers,this.expect(4),this.finishNode(a,"EnumSymbolBody");default:{let H=()=>(a.members=[],this.expect(4),this.finishNode(a,"EnumStringBody"));a.explicitType=!1;let U=$.booleanMembers.length,oe=$.numberMembers.length,De=$.stringMembers.length,Ie=$.defaultedMembers.length;if(!U&&!oe&&!De&&!Ie)return H();if(!U&&!oe)return a.members=this.flowEnumStringMembers($.stringMembers,$.defaultedMembers,{enumName:y}),this.expect(4),this.finishNode(a,"EnumStringBody");if(!oe&&!De&&U>=Ie){for(let Ue of $.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Ue.start,{enumName:y,memberName:Ue.id.name});return a.members=$.booleanMembers,this.expect(4),this.finishNode(a,"EnumBooleanBody")}else if(!U&&!De&&oe>=Ie){for(let Ue of $.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Ue.start,{enumName:y,memberName:Ue.id.name});return a.members=$.numberMembers,this.expect(4),this.finishNode(a,"EnumNumberBody")}else return this.raise($e.EnumInconsistentMemberValues,E,{enumName:y}),H()}}}flowParseEnumDeclaration(a){let h=this.parseIdentifier();return a.id=h,a.body=this.flowEnumBody(this.startNode(),h),this.finishNode(a,"EnumDeclaration")}jsxParseOpeningElementAfterName(a){return this.shouldParseTypes()&&(this.match(43)||this.match(47))&&(a.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(a)}isLookaheadToken_lt(){let a=this.nextTokenStart();if(this.input.charCodeAt(a)===60){let h=this.input.charCodeAt(a+1);return h!==60&&h!==61}return!1}reScan_lt_gt(){let{type:a}=this.state;a===43?(this.state.pos-=1,this.readToken_lt()):a===44&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:a}=this.state;return a===47?(this.state.pos-=2,this.finishOp(43,1),43):a}maybeUnwrapTypeCastExpression(a){return a.type==="TypeCastExpression"?a.expression:a}},aF=/\r\n|[\r\n\u2028\u2029]/,zu=new RegExp(aF.source,"g");function Mi(l){switch(l){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function l2(l,a,h){for(let y=a;y<h;y++)if(Mi(l.charCodeAt(y)))return!0;return!1}var pp=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,hp=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function oF(l){switch(l){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var uF={AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:l})=>`Expected corresponding JSX closing tag for <${l}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:l,HTMLEntity:a})=>`Unexpected token \`${l}\`. Did you mean \`${a}\` or \`{'${l}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"},_s=z`jsx`(uF);function yn(l){return l?l.type==="JSXOpeningFragment"||l.type==="JSXClosingFragment":!1}function Oi(l){if(l.type==="JSXIdentifier")return l.name;if(l.type==="JSXNamespacedName")return l.namespace.name+":"+l.name.name;if(l.type==="JSXMemberExpression")return Oi(l.object)+"."+Oi(l.property);throw new Error("Node had unexpected type: "+l.type)}var lF=l=>class extends l{jsxReadToken(){let a="",h=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_s.UnterminatedJsxContent,this.state.startLoc);let y=this.input.charCodeAt(this.state.pos);switch(y){case 60:case 123:if(this.state.pos===this.state.start){y===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(y);return}a+=this.input.slice(h,this.state.pos),this.finishToken(137,a);return;case 38:a+=this.input.slice(h,this.state.pos),a+=this.jsxReadEntity(),h=this.state.pos;break;case 62:case 125:this.raise(_s.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:y===125?"}":">"});default:Mi(y)?(a+=this.input.slice(h,this.state.pos),a+=this.jsxReadNewLine(!0),h=this.state.pos):++this.state.pos}}}jsxReadNewLine(a){let h=this.input.charCodeAt(this.state.pos),y;return++this.state.pos,h===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,y=a?`
|
|
244
|
-
`:`\r
|
|
245
|
-
`):y=String.fromCharCode(h),++this.state.curLine,this.state.lineStart=this.state.pos,y}jsxReadString(a){let h="",y=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M.UnterminatedString,this.state.startLoc);let E=this.input.charCodeAt(this.state.pos);if(E===a)break;E===38?(h+=this.input.slice(y,this.state.pos),h+=this.jsxReadEntity(),y=this.state.pos):Mi(E)?(h+=this.input.slice(y,this.state.pos),h+=this.jsxReadNewLine(!1),y=this.state.pos):++this.state.pos}h+=this.input.slice(y,this.state.pos++),this.finishToken(130,h)}jsxReadEntity(){let a=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let h=10;this.codePointAtPos(this.state.pos)===120&&(h=16,++this.state.pos);let y=this.readInt(h,void 0,!1,"bail");if(y!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(y)}else{let h=0,y=!1;for(;h++<10&&this.state.pos<this.length&&!(y=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(y){this.input.slice(a,this.state.pos);let E;++this.state.pos}}return this.state.pos=a,"&"}jsxReadWord(){let a,h=this.state.pos;do a=this.input.charCodeAt(++this.state.pos);while(Xn(a)||a===45);this.finishToken(136,this.input.slice(h,this.state.pos))}jsxParseIdentifier(){let a=this.startNode();return this.match(136)?a.name=this.state.value:dt(this.state.type)?a.name=ft(this.state.type):this.unexpected(),this.next(),this.finishNode(a,"JSXIdentifier")}jsxParseNamespacedName(){let a=this.state.startLoc,h=this.jsxParseIdentifier();if(!this.eat(10))return h;let y=this.startNodeAt(a);return y.namespace=h,y.name=this.jsxParseIdentifier(),this.finishNode(y,"JSXNamespacedName")}jsxParseElementName(){let a=this.state.startLoc,h=this.jsxParseNamespacedName();if(h.type==="JSXNamespacedName")return h;for(;this.eat(12);){let y=this.startNodeAt(a);y.object=h,y.property=this.jsxParseIdentifier(),h=this.finishNode(y,"JSXMemberExpression")}return h}jsxParseAttributeValue(){let a;switch(this.state.type){case 2:return a=this.startNode(),this.setContext(st.brace),this.next(),a=this.jsxParseExpressionContainer(a,st.j_oTag),a.expression.type==="JSXEmptyExpression"&&this.raise(_s.AttributeIsEmpty,a),a;case 138:case 130:return this.parseExprAtom();default:throw this.raise(_s.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let a=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(a,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(a){return this.next(),a.expression=this.parseExpression(),this.setContext(st.j_expr),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(a,"JSXSpreadChild")}jsxParseExpressionContainer(a,h){if(this.match(4))a.expression=this.jsxParseEmptyExpression();else{let y=this.parseExpression();y.type==="SequenceExpression"&&!y.extra?.parenthesized&&this.raise(_s.UnexpectedSequenceExpression,y.expressions[1]),a.expression=y}return this.setContext(h),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(a,"JSXExpressionContainer")}jsxParseAttribute(){if(this.match(2)){let h=this.startNode();return this.setContext(st.brace),this.next(),this.expect(17),h.argument=this.parseMaybeAssignAllowIn(),this.setContext(st.j_oTag),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(h,"JSXSpreadAttribute")}let a=this.startNode();return a.name=this.jsxParseNamespacedName(),a.value=this.eat(25)?this.jsxParseAttributeValue():null,this.finishNode(a,"JSXAttribute")}jsxParseOpeningElementAt(a){if(this.eat(139)){let y=this.startNodeAt(a);return this.finishNode(y,"JSXOpeningFragment")}let h=this.startNodeAt(a);return h.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(h)}jsxParseOpeningElementAfterName(a){let h=[];for(;!this.match(52)&&!this.match(139);)h.push(this.jsxParseAttribute());return a.attributes=h,a.selfClosing=this.eat(52),this.expect(139),this.finishNode(a,"JSXOpeningElement")}jsxParseClosingElementAt(a){if(this.eat(139)){let y=this.startNodeAt(a);return this.finishNode(y,"JSXClosingFragment")}let h=this.startNodeAt(a);return h.name=this.jsxParseElementName(),this.expect(139),this.finishNode(h,"JSXClosingElement")}jsxParseElementAt(a){let h=this.startNodeAt(a),y=[],E=this.jsxParseOpeningElementAt(a),w=null;if(!E.selfClosing){e:for(;;)switch(this.state.type){case 138:if(a=this.state.startLoc,this.next(),this.eat(52)){this.setLoc(a),w=this.jsxParseClosingElementAt(a);break e}y.push(this.jsxParseElementAt(a));break;case 137:y.push(this.parseLiteral(this.state.value,"JSXText"));break;case 2:{let $=this.startNode();this.setContext(st.brace),this.next(),this.match(17)?y.push(this.jsxParseSpreadChild($)):y.push(this.jsxParseExpressionContainer($,st.j_expr));break}default:this.unexpected()}yn(E)&&!yn(w)&&w!==null?this.raise(_s.MissingClosingTagFragment,w):!yn(E)&&yn(w)?this.raise(_s.MissingClosingTagElement,w,{openingTagName:Oi(E.name)}):!yn(E)&&!yn(w)&&Oi(w.name)!==Oi(E.name)&&this.raise(_s.MissingClosingTagElement,w,{openingTagName:Oi(E.name)})}if(yn(E)?(h.openingFragment=E,h.closingFragment=w):(h.openingElement=E,h.closingElement=w),h.children=y,this.match(43))throw this.raise(_s.UnwrappedAdjacentJSXElements,this.state.startLoc);return yn(E)?this.finishNode(h,"JSXFragment"):this.finishNode(h,"JSXElement")}jsxParseElement(){let a=this.state.startLoc;return this.next(),this.jsxParseElementAt(a)}setContext(a){let{context:h}=this.state;h[h.length-1]=a}parseExprAtom(a){return this.match(138)?this.jsxParseElement():this.match(43)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(a)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(a){let h=this.curContext();if(h===st.j_expr){this.jsxReadToken();return}if(h===st.j_oTag||h===st.j_cTag){if(fs(a)){this.jsxReadWord();return}if(a===62){++this.state.pos,this.finishToken(139);return}if((a===34||a===39)&&h===st.j_oTag){this.jsxReadString(a);return}}if(a===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(138);return}super.getTokenFromCode(a)}updateContext(a){let{context:h,type:y}=this.state;if(y===52&&a===138)h.splice(-2,2,st.j_cTag),this.state.canStartJSXElement=!1;else if(y===138)h.push(st.j_oTag);else if(y===139){let E=h[h.length-1];E===st.j_oTag&&a===52||E===st.j_cTag?(h.pop(),this.state.canStartJSXElement=h[h.length-1]===st.j_expr):(this.setContext(st.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=re(y)}},cF=class extends lp{tsNames=new Map},pF=class extends cp{get inTSNamespace(){let l=this.scopeStack;return l.length>=2&&l[l.length-1].flags===0&&(l[l.length-2].flags&2048)>0}importsStack=[];createScope(l){return this.importsStack.push(new Set),new cF(l)}enter(l){l&3072&&this.importsStack.push(new Set),super.enter(l)}exit(){let l=super.exit();return l&3072&&this.importsStack.pop(),l}hasImport(l,a){let h=this.importsStack.length;if(this.importsStack[h-1].has(l))return!0;if(!a&&h>1){for(let y=0;y<h-1;y++)if(this.importsStack[y].has(l))return!0}return!1}declareName(l,a,h){if(a&4096){this.hasImport(l,!0)&&this.parser.raise(M.VarRedeclaration,h,{identifierName:l}),this.importsStack[this.importsStack.length-1].add(l);return}let y=this.currentScope(),E=y.tsNames.get(l)||0;if(a&1024){this.maybeExportDefined(y,l),y.tsNames.set(l,E|16);return}super.declareName(l,a,h),a&2&&(a&1||(this.checkRedeclarationInScope(y,l,a,h),this.maybeExportDefined(y,l)),E=E|1),a&256&&(E=E|2),a&512&&(E=E|4),a&128&&(E=E|8),E&&y.tsNames.set(l,E)}isRedeclaredInScope(l,a,h){let y=l.tsNames.get(a);if((y&2)>0){if(h&256){let E=(h&512)>0,w=(y&4)>0;return E!==w}return!0}return h&128&&(y&8)>0?l.names.get(a)&2?!!(h&1):!1:h&2&&(y&1)>0?!0:super.isRedeclaredInScope(l,a,h)}checkLocalExport(l){let{name:a}=l;if(this.hasImport(a))return;let h=this.scopeStack.length;for(let y=h-1;y>=0;y--){let E=this.scopeStack[y].tsNames.get(a);if((E&1)>0||(E&16)>0)return}super.checkLocalExport(l)}},hF=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(l){return l+this.startIndex}offsetToSourcePos(l){return l-this.startIndex}hasPlugin(l){if(typeof l=="string")return this.plugins.has(l);{let[a,h]=l;if(!this.hasPlugin(a))return!1;let y=this.plugins.get(a);for(let E of Object.keys(h))if(y?.[E]!==h[E])return!1;return!0}}getPluginOption(l,a){return this.plugins.get(l)?.[a]}};function c2(l,a){l.trailingComments===void 0?l.trailingComments=a:l.trailingComments.unshift(...a)}function dF(l,a){l.leadingComments===void 0?l.leadingComments=a:l.leadingComments.unshift(...a)}function Ua(l,a){l.innerComments===void 0?l.innerComments=a:l.innerComments.unshift(...a)}function Dn(l,a,h){let y=null,E=a.length;for(;y===null&&E>0;)y=a[--E];y===null||y.start>h.start?Ua(l,h.comments):c2(y,h.comments)}var fF=class extends hF{addComment(l){this.filename&&(l.loc.filename=this.filename);let{commentsLen:a}=this.state;this.comments.length!==a&&(this.comments.length=a),this.comments.push(l),this.state.commentsLen++}processComment(l){let{commentStack:a}=this.state,h=a.length;if(h===0)return;let y=h-1,E=a[y];E.start===l.end&&(E.leadingNode=l,y--);let w=l.start;for(;y>=0;y--){let $=a[y],_=$.end;if(_>w)$.containingNode=l,this.finalizeComment($),a.splice(y,1);else{_===w&&($.trailingNode=l);break}}}finalizeComment(l){let{comments:a}=l;if(l.leadingNode!==null||l.trailingNode!==null)l.leadingNode!==null&&c2(l.leadingNode,a),l.trailingNode!==null&&dF(l.trailingNode,a);else{let h=l.containingNode,y=l.start;if(this.input.charCodeAt(this.offsetToSourcePos(y)-1)===44)switch(h.type){case"ObjectExpression":case"ObjectPattern":Dn(h,h.properties,l);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Dn(h,h.arguments,l);break;case"ImportExpression":Dn(h,[h.source,h.options??null],l);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Dn(h,h.params,l);break;case"ArrayExpression":case"ArrayPattern":Dn(h,h.elements,l);break;case"ExportNamedDeclaration":case"ImportDeclaration":Dn(h,h.specifiers,l);break;case"TSEnumBody":Dn(h,h.members,l);break;case"TSInterfaceBody":Dn(h,h.body,l);break;default:Ua(h,a)}else Ua(h,a)}}finalizeRemainingComments(){let{commentStack:l}=this.state;for(let a=l.length-1;a>=0;a--)this.finalizeComment(l[a]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(l){let{commentStack:a}=this.state,{length:h}=a;if(h===0)return;let y=a[h-1];y.leadingNode===l&&(y.leadingNode=null)}takeSurroundingComments(l,a,h){let{commentStack:y}=this.state,E=y.length;if(E===0)return;let w=E-1;for(;w>=0;w--){let $=y[w],_=$.end;if($.start===h)$.leadingNode=l;else if(_===a)$.trailingNode=l;else if(_<a)break}}},mF=class $T{flags=2048;get strict(){return(this.flags&1)>0}set strict(a){a?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:a,sourceType:h,startIndex:y,startLine:E,startColumn:w}){this.strict=a===!1?!1:a===!0?!0:h==="module",this.startIndex=y,this.curLine=E,this.lineStart=-w,this.startLoc=this.endLoc=new A(E,w,y)}errors=[];noArrowAt=[];noArrowParamsConversionAt=[];get canStartArrow(){return(this.flags&2)>0}set canStartArrow(a){a?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(a){a?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(a){a?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(a){a?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(a){a?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(a){a?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(a){a?this.flags|=128:this.flags&=-129}get inConditionalConsequent(){return(this.flags&256)>0}set inConditionalConsequent(a){a?this.flags|=256:this.flags&=-257}get inHackPipelineBody(){return(this.flags&512)>0}set inHackPipelineBody(a){a?this.flags|=512:this.flags&=-513}get seenTopicReference(){return(this.flags&1024)>0}set seenTopicReference(a){a?this.flags|=1024:this.flags&=-1025}labels=[];commentsLen=0;commentStack=[];pos=0;type=135;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[st.brace];get canStartJSXElement(){return(this.flags&2048)>0}set canStartJSXElement(a){a?this.flags|=2048:this.flags&=-2049}get containsEsc(){return(this.flags&4096)>0}set containsEsc(a){a?this.flags|=4096:this.flags&=-4097}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&8192)>0}set hasTopLevelAwait(a){a?this.flags|=8192:this.flags&=-8193}strictErrors=new Map;tokensLength=0;curPosition(){return new A(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let a=new $T;return a.flags=this.flags,a.startIndex=this.startIndex,a.curLine=this.curLine,a.lineStart=this.lineStart,a.startLoc=this.startLoc,a.endLoc=this.endLoc,a.errors=this.errors.slice(),a.noArrowAt=this.noArrowAt.slice(),a.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),a.labels=this.labels.slice(),a.commentsLen=this.commentsLen,a.commentStack=this.commentStack.slice(),a.pos=this.pos,a.type=this.type,a.value=this.value,a.start=this.start,a.end=this.end,a.lastTokEndLoc=this.lastTokEndLoc,a.lastTokStartLoc=this.lastTokStartLoc,a.context=this.context.slice(),a.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,a.strictErrors=this.strictErrors,a.tokensLength=this.tokensLength,a}},yF=function(l){return l>=48&&l<=57},p2={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Vu={bin:l=>l===48||l===49,oct:l=>l>=48&&l<=55,dec:l=>l>=48&&l<=57,hex:l=>l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102};function h2(l,a,h,y,E,w){let $=h,_=y,H=E,U="",oe=null,De=h,{length:Ie}=a;for(;;){if(h>=Ie){w.unterminated($,_,H),U+=a.slice(De,h);break}let Ue=a.charCodeAt(h);if(DF(l,Ue,a,h)){U+=a.slice(De,h);break}if(Ue===92){U+=a.slice(De,h);let wt=gF(a,h,y,E,l==="template",w);wt.ch===null&&!oe?oe={pos:h,lineStart:y,curLine:E}:U+=wt.ch,{pos:h,lineStart:y,curLine:E}=wt,De=h}else Ue===8232||Ue===8233?(++h,++E,y=h):Ue===10||Ue===13?l==="template"?(U+=a.slice(De,h)+`
|
|
246
|
-
`,++h,Ue===13&&a.charCodeAt(h)===10&&++h,++E,De=y=h):w.unterminated($,_,H):++h}return{pos:h,str:U,firstInvalidLoc:oe,lineStart:y,curLine:E}}function DF(l,a,h,y){return l==="template"?a===96||a===36&&h.charCodeAt(y+1)===123:a===(l==="double"?34:39)}function gF(l,a,h,y,E,w){let $=!E;a++;let _=U=>({pos:a,ch:U,lineStart:h,curLine:y}),H=l.charCodeAt(a++);switch(H){case 110:return _(`
|
|
247
|
-
`);case 114:return _("\r");case 120:{let U;return{code:U,pos:a}=dp(l,a,h,y,2,!1,$,w),_(U===null?null:String.fromCharCode(U))}case 117:{let U;return{code:U,pos:a}=f2(l,a,h,y,$,w),_(U===null?null:String.fromCodePoint(U))}case 116:return _(" ");case 98:return _("\b");case 118:return _("\v");case 102:return _("\f");case 13:l.charCodeAt(a)===10&&++a;case 10:h=a,++y;case 8232:case 8233:return _("");case 56:case 57:if(E)return _(null);w.strictNumericEscape(a-1,h,y);default:if(H>=48&&H<=55){let U=a-1,oe=/^[0-7]+/.exec(l.slice(U,a+2))[0],De=parseInt(oe,8);De>255&&(oe=oe.slice(0,-1),De=parseInt(oe,8)),a+=oe.length-1;let Ie=l.charCodeAt(a);if(oe!=="0"||Ie===56||Ie===57){if(E)return _(null);w.strictNumericEscape(U,h,y)}return _(String.fromCharCode(De))}return _(String.fromCharCode(H))}}function dp(l,a,h,y,E,w,$,_){let H=a,U;return{n:U,pos:a}=d2(l,a,h,y,16,E,w,!1,_,!$),U===null&&($?_.invalidEscapeSequence(H,h,y):a=H-1),{code:U,pos:a}}function d2(l,a,h,y,E,w,$,_,H,U){let oe=a,De=E===16?p2.hex:p2.decBinOct,Ie=E===16?Vu.hex:E===10?Vu.dec:E===8?Vu.oct:Vu.bin,Ue=!1,wt=0;for(let Wt=0,At=w??1/0;Wt<At;++Wt){let vt=l.charCodeAt(a),Pr;if(vt===95&&_!=="bail"){let vp=l.charCodeAt(a-1),Tp=l.charCodeAt(a+1);if(_){if(Number.isNaN(Tp)||!Ie(Tp)||De.has(vp)||De.has(Tp)){if(U)return{n:null,pos:a};H.unexpectedNumericSeparator(a,h,y)}}else{if(U)return{n:null,pos:a};H.numericSeparatorInEscapeSequence(a,h,y)}++a;continue}if(vt>=97?Pr=vt-97+10:vt>=65?Pr=vt-65+10:yF(vt)?Pr=vt-48:Pr=1/0,Pr>=E){if(Pr<=9&&U)return{n:null,pos:a};if(Pr<=9&&H.invalidDigit(a,h,y,E))Pr=0;else if($)Pr=0,Ue=!0;else break}++a,wt=wt*E+Pr}return a===oe||w!=null&&a-oe!==w||Ue?{n:null,pos:a}:{n:wt,pos:a}}function f2(l,a,h,y,E,w){let $=l.charCodeAt(a),_;if($===123){if(++a,{code:_,pos:a}=dp(l,a,h,y,l.indexOf("}",a)-a,!0,E,w),++a,_!==null&&_>1114111)if(E)w.invalidCodePoint(a,h,y);else return{code:null,pos:a}}else({code:_,pos:a}=dp(l,a,h,y,4,!1,E,w));return{code:_,pos:a}}function za(l,a,h){return new A(h,l-a,l)}var xF=new Set([103,109,115,105,121,117,100,118]),bF=class{constructor(l){let a=l.startIndex||0;this.type=l.type,this.value=l.value,this.start=a+l.start,this.end=a+l.end,this.loc=new C(l.startLoc,l.endLoc)}},Hu,EF=class extends fF{isLookahead;tokens=[];constructor(l,a){super(),this.state=new mF,this.state.init(l),this.input=a,this.length=a.length,this.comments=[],this.isLookahead=!1,(!Hu||Hu.length<(this.length+1)*2)&&(Hu=new Uint32Array((this.length+1)*2)),this.locData=Hu}setLoc(l){let a=this.offsetToSourcePos(l.index);this.locData[a*2]=l.line,this.locData[a*2+1]=l.column}getLoc(l){let a=this.offsetToSourcePos(l);return new A(this.locData[a*2],this.locData[a*2+1],l)}pushToken(l){this.tokens.length=this.state.tokensLength,this.tokens.push(l),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&512&&this.pushToken(new bF(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(l){return this.match(l)?(this.next(),!0):!1}match(l){return this.state.type===l}createLookaheadState(l){return{pos:l.pos,value:null,type:l.type,start:l.start,end:l.end,context:[this.curContext()],inType:l.inType,startLoc:l.startLoc,lastTokEndLoc:l.lastTokEndLoc,curLine:l.curLine,lineStart:l.lineStart,curPosition:l.curPosition}}lookahead(){let l=this.state;this.state=this.createLookaheadState(l),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let a=this.state;return this.state=l,a}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(l){return pp.lastIndex=l,pp.test(this.input)?pp.lastIndex:l}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(l){return this.input.charCodeAt(this.nextTokenStartSince(l))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(l){return hp.lastIndex=l,hp.test(this.input)?hp.lastIndex:l}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(l){let a=this.input.charCodeAt(l);if((a&64512)===55296&&++l<this.input.length){let h=this.input.charCodeAt(l);(h&64512)===56320&&(a=65536+((a&1023)<<10)+(h&1023))}return a}setStrict(l){this.state.strict=l,l&&(this.state.strictErrors.forEach(([a,h])=>this.raise(a,h)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(135);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(l){let a;this.isLookahead||(a=this.state.curPosition());let h=this.state.pos,y=this.input.indexOf(l,h+2);if(y===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition());for(this.state.pos=y+l.length,zu.lastIndex=h+2;zu.test(this.input)&&zu.lastIndex<=y;)++this.state.curLine,this.state.lineStart=zu.lastIndex;if(this.isLookahead)return;let E={type:"CommentBlock",value:this.input.slice(h+2,y),start:this.sourceToOffsetPos(h),end:this.sourceToOffsetPos(y+l.length),loc:new C(a,this.state.curPosition())};return this.optionFlags&512&&this.pushToken(E),E}skipLineComment(l){let a=this.state.pos,h;this.isLookahead||(h=this.state.curPosition());let y=this.input.charCodeAt(this.state.pos+=l);if(this.state.pos<this.length)for(;!Mi(y)&&++this.state.pos<this.length;)y=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let E=this.state.pos,w={type:"CommentLine",value:this.input.slice(a+l,E),start:this.sourceToOffsetPos(a),end:this.sourceToOffsetPos(E),loc:new C(h,this.state.curPosition())};return this.optionFlags&512&&this.pushToken(w),w}skipSpace(){let l=this.state.pos,a=this.optionFlags&8192?[]:null;e:for(;this.state.pos<this.length;){let h=this.input.charCodeAt(this.state.pos);switch(h){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let y=this.skipBlockComment("*/");y!==void 0&&(this.addComment(y),a?.push(y));break}case 47:{let y=this.skipLineComment(2);y!==void 0&&(this.addComment(y),a?.push(y));break}default:break e}break;default:if(oF(h))++this.state.pos;else if(h===45&&!this.inModule&&this.optionFlags&16384){let y=this.state.pos;if(this.input.charCodeAt(y+1)===45&&this.input.charCodeAt(y+2)===62&&(l===0||this.state.lineStart>l)){let E=this.skipLineComment(3);E!==void 0&&(this.addComment(E),a?.push(E))}else break e}else if(h===60&&!this.inModule&&this.optionFlags&16384){let y=this.state.pos;if(this.input.charCodeAt(y+1)===33&&this.input.charCodeAt(y+2)===45&&this.input.charCodeAt(y+3)===45){let E=this.skipLineComment(4);E!==void 0&&(this.addComment(E),a?.push(E))}else break e}else break e}}if(a?.length>0){let h=this.state.pos,y={start:this.sourceToOffsetPos(l),end:this.sourceToOffsetPos(h),comments:a,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(y)}}finishToken(l,a){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let h=this.state.type;this.state.type=l,this.state.value=a,this.isLookahead||this.updateContext(h)}replaceToken(l){this.state.type=l,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let l=this.state.pos+1,a=this.codePointAtPos(l);if(a>=48&&a<=57)throw this.raise(M.UnexpectedDigitAfterHash,this.state.curPosition());fs(a)?(++this.state.pos,this.finishToken(134,this.readWord1(a))):a===92?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(23,1)}readToken_dot(){let l=this.input.charCodeAt(this.state.pos+1);if(l>=48&&l<=57){this.readNumber(!0);return}l===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(17)):(++this.state.pos,this.finishToken(12))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(27,2):this.finishOp(52,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let l=this.input.charCodeAt(this.state.pos+1);if(l!==33)return!1;let a=this.state.pos;for(this.state.pos+=1;!Mi(l)&&++this.state.pos<this.length;)l=this.input.charCodeAt(this.state.pos);let h=this.input.slice(a+2,this.state.pos);return this.finishToken(24,h),!0}readToken_mult_modulo(l){let a=l===42?51:50,h=1,y=this.input.charCodeAt(this.state.pos+1);l===42&&y===42&&(h++,y=this.input.charCodeAt(this.state.pos+2),a=53),y===61&&!this.state.inType&&(h++,a=l===37?29:26),this.finishOp(a,h)}readToken_pipe_amp(l){let a=this.input.charCodeAt(this.state.pos+1);if(a===l){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(26,3):this.finishOp(l===124?37:38,2);return}if(l===124&&a===62){this.finishOp(35,2);return}if(a===61){this.finishOp(26,2);return}this.finishOp(l===124?39:41,1)}readToken_caret(){let l=this.input.charCodeAt(this.state.pos+1);l===61&&!this.state.inType?this.finishOp(28,2):l===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(33,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(40,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(34,2):this.finishOp(22,1)}readToken_plus_min(l){let a=this.input.charCodeAt(this.state.pos+1);if(a===l){this.finishOp(30,2);return}a===61?this.finishOp(26,2):this.finishOp(49,1)}readToken_lt(){let{pos:l}=this.state,a=this.input.charCodeAt(l+1);if(a===60){if(this.input.charCodeAt(l+2)===61){this.finishOp(26,3);return}this.finishOp(47,2);return}if(a===61){this.finishOp(45,2);return}this.finishOp(43,1)}readToken_gt(){let{pos:l}=this.state,a=this.input.charCodeAt(l+1);if(a===62){let h=this.input.charCodeAt(l+2)===62?3:2;if(this.input.charCodeAt(l+h)===61){this.finishOp(26,h+1);return}this.finishOp(48,h);return}if(a===61){this.finishOp(45,2);return}this.finishOp(44,1)}readToken_eq_excl(l){let a=this.input.charCodeAt(this.state.pos+1);if(a===61){this.finishOp(42,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(l===61&&a===62){this.state.pos+=2,this.finishToken(15);return}this.finishOp(l===61?25:31,1)}readToken_question(){let l=this.input.charCodeAt(this.state.pos+1),a=this.input.charCodeAt(this.state.pos+2);l===63?a===61?this.finishOp(26,3):this.finishOp(36,2):l===46&&!(a>=48&&a<=57)?(this.state.pos+=2,this.finishToken(14)):(++this.state.pos,this.finishToken(13))}getTokenFromCode(l){switch(l){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(6);return;case 41:++this.state.pos,this.finishToken(7);return;case 59:++this.state.pos,this.finishToken(9);return;case 44:++this.state.pos,this.finishToken(8);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(1);return;case 123:++this.state.pos,this.finishToken(2);return;case 125:++this.state.pos,this.finishToken(4);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(11,2):(++this.state.pos,this.finishToken(10));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let a=this.input.charCodeAt(this.state.pos+1);if(a===120||a===88){this.readRadixNumber(16);return}if(a===111||a===79){this.readRadixNumber(8);return}if(a===98||a===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(l);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(l);return;case 124:case 38:this.readToken_pipe_amp(l);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(l);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(l);return;case 126:this.finishOp(32,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(fs(l)){this.readWord(l);return}}throw this.raise(M.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(l)})}finishOp(l,a){let h=this.input.slice(this.state.pos,this.state.pos+a);this.state.pos+=a,this.finishToken(l,h)}readRegexp(){let l=this.state.startLoc,a=this.state.start+1,h,y,{pos:E}=this.state;for(;;++E){if(E>=this.length)throw this.raise(M.UnterminatedRegExp,v(l,1));let H=this.input.charCodeAt(E);if(Mi(H))throw this.raise(M.UnterminatedRegExp,v(l,1));if(h)h=!1;else{if(H===91)y=!0;else if(H===93&&y)y=!1;else if(H===47&&!y)break;h=H===92}}let w=this.input.slice(a,E);++E;let $="",_=()=>v(l,E+2-a);for(;E<this.length;){let H=this.codePointAtPos(E),U=String.fromCharCode(H);if(xF.has(H))H===118?$.includes("u")&&this.raise(M.IncompatibleRegExpUVFlags,_()):H===117&&$.includes("v")&&this.raise(M.IncompatibleRegExpUVFlags,_()),$.includes(U)&&this.raise(M.DuplicateRegExpFlags,_());else if(Xn(H)||H===92)this.raise(M.MalformedRegExpFlags,_());else break;++E,$+=U}this.state.pos=E,this.finishToken(133,{pattern:w,flags:$})}readInt(l,a,h=!1,y=!0){let{n:E,pos:w}=d2(this.input,this.state.pos,this.state.lineStart,this.state.curLine,l,a,h,y,this.errorHandlers_readInt,!1);return this.state.pos=w,E}readRadixNumber(l){let a=this.state.pos,h=this.state.curPosition(),y=!1;this.state.pos+=2;let E=this.readInt(l);if(E==null&&this.raise(M.InvalidDigit,v(h,2),{radix:l}),this.input.charCodeAt(this.state.pos)===110&&(++this.state.pos,y=!0),fs(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(y){let w=this.input.slice(a,this.state.pos).replace(/[_n]/g,"");this.finishToken(132,w);return}this.finishToken(131,E)}readNumber(l){let a=this.state.pos,h=this.state.curPosition(),y=!1,E=!1,w=!1;!l&&this.readInt(10)===null&&this.raise(M.InvalidNumber,this.state.curPosition());let $=this.state.pos-a>=2&&this.input.charCodeAt(a)===48;if($){let oe=this.input.slice(a,this.state.pos);if(this.recordStrictModeErrors(M.StrictOctalLiteral,h),!this.state.strict){let De=oe.indexOf("_");De>0&&this.raise(M.ZeroDigitNumericSeparator,v(h,De))}w=$&&!/[89]/.test(oe)}let _=this.input.charCodeAt(this.state.pos);_===46&&!w&&(++this.state.pos,this.readInt(10),y=!0,_=this.input.charCodeAt(this.state.pos)),(_===69||_===101)&&!w&&(_=this.input.charCodeAt(++this.state.pos),(_===43||_===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(M.InvalidOrMissingExponent,h),y=!0,_=this.input.charCodeAt(this.state.pos));let H=g(0,this.input.slice(a,this.state.pos),"_","");if(_===110&&((y||$)&&this.raise(M.InvalidBigIntLiteral,h),++this.state.pos,E=!0),fs(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(E){this.finishToken(132,H);return}let U=w?parseInt(H,8):parseFloat(H);this.finishToken(131,U)}readCodePoint(l){let{code:a,pos:h}=f2(this.input,this.state.pos,this.state.lineStart,this.state.curLine,l,this.errorHandlers_readCodePoint);return this.state.pos=h,a}readString(l){let{str:a,pos:h,curLine:y,lineStart:E}=h2(l===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=h+1,this.state.lineStart=E,this.state.curLine=y,this.finishToken(130,a)}readTemplateContinuation(){this.match(4)||this.unexpected(null,4),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let l=this.input[this.state.pos],{str:a,firstInvalidLoc:h,pos:y,curLine:E,lineStart:w}=h2("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=y+1,this.state.lineStart=w,this.state.curLine=E,h&&(this.state.firstInvalidTemplateEscapePos=new A(h.curLine,h.pos-h.lineStart,this.sourceToOffsetPos(h.pos))),this.input.codePointAt(y)===96?this.finishToken(20,h?null:l+a+"`"):(this.state.pos++,this.finishToken(21,h?null:l+a+"${"))}recordStrictModeErrors(l,a){let h=a.index;this.state.strict&&!this.state.strictErrors.has(h)?this.raise(l,a):this.state.strictErrors.set(h,[l,a])}readWord1(l){this.state.containsEsc=!1;let a="",h=this.state.pos,y=this.state.pos;for(l!==void 0&&(this.state.pos+=l<=65535?1:2);this.state.pos<this.length;){let E=this.codePointAtPos(this.state.pos);if(Xn(E))this.state.pos+=E<=65535?1:2;else if(E===92){this.state.containsEsc=!0,a+=this.input.slice(y,this.state.pos);let w=this.state.curPosition(),$=this.state.pos===h?fs:Xn;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(M.MissingUnicodeEscape,this.state.curPosition()),y=this.state.pos-1;continue}++this.state.pos;let _=this.readCodePoint(!0);_!==null&&($(_)||this.raise(M.EscapedCharNotAnIdentifier,w),a+=String.fromCodePoint(_)),y=this.state.pos}else break}return a+this.input.slice(y,this.state.pos)}readWord(l){let a=this.readWord1(l),h=G.get(a);h!==void 0?this.finishToken(h,ft(h)):this.finishToken(128,a)}checkKeywordEscapes(){let{type:l}=this.state;dt(l)&&this.state.containsEsc&&this.raise(M.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:ft(l)})}raise(l,a,h={}){let y=a instanceof A?a:typeof a=="number"?this.getLoc(a):this.optionFlags&256?a.loc.start:this.getLoc(a.start),E=a instanceof A?y.index:typeof a=="number"?a:a.start,w=l(y,E,h);if(!(this.optionFlags&4096))throw w;return this.isLookahead||this.state.errors.push(w),w}raiseOverwrite(l,a,h={}){let y=a instanceof A?a:this.optionFlags&256?a.loc.start:this.getLoc(a.start),E=a instanceof A?y.index:a.start,w=this.state.errors;for(let $=w.length-1;$>=0;$--){let _=w[$];if(_.pos===E)return w[$]=l(y,E,h);if(_.pos<E)break}return this.raise(l,y,h)}updateContext(l){}unexpected(l,a){throw this.raise(M.UnexpectedToken,l??this.state.startLoc,{expected:a?ft(a):null})}expectPlugin(l,a){if(this.hasPlugin(l))return!0;throw this.raise(M.MissingPlugin,a??this.state.startLoc,{missingPlugin:[l]})}expectOnePlugin(l){if(!l.some(a=>this.hasPlugin(a)))throw this.raise(M.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:l})}errorBuilder(l){return(a,h,y)=>{this.raise(l,za(a,h,y))}}errorHandlers_readInt={invalidDigit:(l,a,h,y)=>this.optionFlags&4096?(this.raise(M.InvalidDigit,za(l,a,h),{radix:y}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(M.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(M.UnexpectedNumericSeparator)};errorHandlers_readCodePoint={...this.errorHandlers_readInt,invalidEscapeSequence:this.errorBuilder(M.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(M.InvalidCodePoint)};errorHandlers_readStringContents_string={...this.errorHandlers_readCodePoint,strictNumericEscape:(l,a,h)=>{this.recordStrictModeErrors(M.StrictNumericEscape,za(l,a,h))},unterminated:(l,a,h)=>{throw this.raise(M.UnterminatedString,za(l-1,a,h))}};errorHandlers_readStringContents_template={...this.errorHandlers_readCodePoint,strictNumericEscape:this.errorBuilder(M.StrictNumericEscape),unterminated:(l,a,h)=>{throw this.raise(M.UnterminatedTemplate,za(l,a,h))}}},CF=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},AF=class{parser;stack=[];constructor(l){this.parser=l}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new CF)}exit(){let l=this.stack.pop(),a=this.current();for(let[h,y]of Array.from(l.undefinedPrivateNames))a?a.undefinedPrivateNames.has(h)||a.undefinedPrivateNames.set(h,y):this.parser.raise(M.InvalidPrivateFieldResolution,y,{identifierName:h})}declarePrivateName(l,a,h){let{privateNames:y,loneAccessors:E,undefinedPrivateNames:w}=this.current(),$=y.has(l);if(a&3){let _=$&&E.get(l);if(_){let H=_&4,U=a&4,oe=_&3,De=a&3;$=oe===De||H!==U,$||E.delete(l)}else $||E.set(l,a)}$&&this.parser.raise(M.PrivateNameRedeclaration,h,{identifierName:l}),y.add(l),w.delete(l)}usePrivateName(l,a){let h;for(h of this.stack)if(h.privateNames.has(l))return;h?h.undefinedPrivateNames.set(l,a):this.parser.raise(M.InvalidPrivateFieldResolution,a,{identifierName:l})}},Wu=class{constructor(l=0){this.type=l}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},m2=class extends Wu{declarationErrors=new Map;constructor(l){super(l)}recordDeclarationError(l,a){this.declarationErrors.set(a,l)}clearDeclarationError(l){this.declarationErrors.delete(l)}iterateErrors(l){this.declarationErrors.forEach(l)}},vF=class{parser;stack=[new Wu];constructor(l){this.parser=l}enter(l){this.stack.push(l)}exit(){this.stack.pop()}recordParameterInitializerError(l,a){let{stack:h}=this,y=h.length-1,E=h[y];for(;!E.isCertainlyParameterDeclaration();){if(E.canBeArrowParameterDeclaration())E.recordDeclarationError(l,a);else return;E=h[--y]}this.parser.raise(l,a)}recordArrowParameterBindingError(l,a){let{stack:h}=this,y=h[h.length-1],E=a.start;if(y.isCertainlyParameterDeclaration())this.parser.raise(l,E);else if(y.canBeArrowParameterDeclaration())y.recordDeclarationError(l,E);else return}recordAsyncArrowParametersError(l){let{stack:a}=this,h=a.length-1,y=a[h];for(;y.canBeArrowParameterDeclaration();)y.type===2&&y.recordDeclarationError(M.AwaitBindingIdentifier,l),y=a[--h]}validateAsPattern(){let{stack:l}=this,a=l[l.length-1];a.canBeArrowParameterDeclaration()&&a.iterateErrors((h,y)=>{this.parser.raise(h,y);let E=l.length-2,w=l[E];for(;w.canBeArrowParameterDeclaration();)w.clearDeclarationError(y),w=l[--E]})}};function TF(){return new Wu(3)}function FF(){return new m2(1)}function wF(){return new m2(2)}function y2(){return new Wu}var SF=class{stacks=[];enter(l){this.stacks.push(l)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}get inFSharpPipelineDirectBody(){return(this.currentFlags()&16)===0}};function Ju(l,a){return(l?2:0)|(a?1:0)}var kF=class extends EF{addExtra(l,a,h,y=!0){if(!l)return;let{extra:E}=l;E==null&&(E={},l.extra=E),y?E[a]=h:Object.defineProperty(E,a,{enumerable:y,value:h})}isContextual(l){return this.state.type===l&&!this.state.containsEsc}isUnparsedContextual(l,a){if(this.input.startsWith(a,l)){let h=this.input.charCodeAt(l+a.length);return!(Xn(h)||(h&64512)===55296)}return!1}isLookaheadContextual(l){let a=this.nextTokenStart();return this.isUnparsedContextual(a,l)}eatContextual(l){return this.isContextual(l)?(this.next(),!0):!1}expectContextual(l,a){if(!this.eatContextual(l)){if(a!=null)throw this.raise(a,this.state.startLoc);this.unexpected(null,l)}}canInsertSemicolon(){return this.match(135)||this.match(4)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return l2(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return l2(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(9)||this.canInsertSemicolon()}semicolon(l=!0){(l?this.isLineTerminator():this.eat(9))||this.raise(M.MissingSemicolon,this.state.lastTokEndLoc)}expect(l,a){this.eat(l)||this.unexpected(a,l)}tryParse(l,a=this.state.clone()){let h={node:null};try{let y=l((E=null)=>{throw h.node=E,h});if(this.state.errors.length>a.errors.length){let E=this.state;return this.state=a,this.state.tokensLength=E.tokensLength,{node:y,error:E.errors[a.errors.length],thrown:!1,aborted:!1,failState:E}}return{node:y,error:null,thrown:!1,aborted:!1,failState:null}}catch(y){let E=this.state;if(this.state=a,y instanceof SyntaxError)return{node:null,error:y,thrown:!0,aborted:!1,failState:E};if(y===h)return{node:h.node,error:null,thrown:!1,aborted:!0,failState:E};throw y}}checkExpressionErrors(l,a){if(!l)return!1;let{shorthandAssignLoc:h,doubleProtoLoc:y,privateKeyLoc:E,optionalParametersLoc:w,voidPatternLoc:$}=l,_=!!h||!!y||!!w||!!E||!!$;if(!a)return _;h!=null&&this.raise(M.InvalidCoverInitializedName,h),y!=null&&this.raise(M.DuplicateProto,y),E!=null&&this.raise(M.UnexpectedPrivateField,E),w!=null&&this.unexpected(w),$!=null&&this.raise(M.InvalidCoverDiscardElement,$)}isLiteralPropertyName(){return jt(this.state.type)}isPrivateName(l){return l.type==="PrivateName"}getPrivateNameSV(l){return l.id.name}hasPropertyAsPrivateName(l){return(l.type==="MemberExpression"||l.type==="OptionalMemberExpression")&&this.isPrivateName(l.property)}isObjectProperty(l){return l.type==="ObjectProperty"}isObjectMethod(l){return l.type==="ObjectMethod"}initializeScopes(l=this.options.sourceType==="module"){let a=this.state.labels;this.state.labels=[];let h=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let y=this.inModule;this.inModule=l;let E=this.scope,w=this.getScopeHandler();this.scope=new w(this,l);let $=this.prodParam;this.prodParam=new SF;let _=this.classScope;this.classScope=new AF(this);let H=this.expressionScope;return this.expressionScope=new vF(this),()=>{this.state.labels=a,this.exportedIdentifiers=h,this.inModule=y,this.scope=E,this.prodParam=$,this.classScope=_,this.expressionScope=H}}enterInitialScopes(){let l=0;(this.inModule||this.optionFlags&1)&&(l|=2),this.optionFlags&32&&(l|=1);let a=!this.inModule&&this.options.sourceType==="commonjs";(a||this.optionFlags&2)&&(l|=4),this.prodParam.enter(l);let h=a?514:1;this.optionFlags&4&&(h|=512),this.optionFlags&16&&(h|=48),this.scope.enter(h)}checkDestructuringPrivate(l){let{privateKeyLoc:a}=l;a!==null&&this.expectPlugin("destructuringPrivate",a)}},Gu=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Va=class{constructor(l,a,h,y){this.start=h,this.end=0,y!==void 0&&(this.loc=new C(y)),l&128&&(this.range=[h,0]),y!==void 0&&a&&(this.loc.filename=a)}type=""},D2=Va.prototype,PF=class extends kF{createPosition(l){return l}startNode(){let{startLoc:l}=this.state;return this.setLoc(l),this.startNodeAt(l)}startNodeAt(l){let{optionFlags:a,filename:h}=this;return a&256?new Va(a,h,l.index,this.createPosition(l)):new Va(a,h,l.index)}startNodeAtNode(l){let{optionFlags:a,filename:h}=this;return a&256?new Va(a,h,l.start,l.loc.start):new Va(a,h,l.start)}finishNode(l,a){return this.finishNodeAt(l,a,this.state.lastTokEndLoc)}finishNodeAt(l,a,h){l.type=a,l.end=h.index;let{optionFlags:y}=this;return y&256&&(l.loc.end=this.createPosition(h)),y&128&&(l.range[1]=h.index),y&8192&&this.processComment(l),l}finishNodeAtNode(l,a,h){l.type=a,l.end=h.end;let{optionFlags:y}=this;return y&256&&(l.loc.end=h.loc.end),y&128&&(l.range[1]=l.end),y&8192&&this.processComment(l),l}resetStartLocation(l,a){l.start=a.index;let{optionFlags:h}=this;h&256&&(l.loc.start=this.createPosition(a)),h&128&&(l.range[0]=a.index)}resetEndLocation(l,a=this.state.lastTokEndLoc){l.end=a.index;let{optionFlags:h}=this;h&256&&(l.loc.end=this.createPosition(a)),h&128&&(l.range[1]=a.index)}resetStartLocationFromNode(l,a){l.start=a.start;let{optionFlags:h}=this;h&256&&(l.loc.start=a.loc.start),h&128&&(l.range[0]=a.start)}resetEndLocationFromNode(l,a){l.end=a.end;let{optionFlags:h}=this;h&256&&(l.loc.end=a.loc.end),h&128&&(l.range[1]=a.end)}castNodeTo(l,a){return l.type=a,l}cloneIdentifier(l){let{type:a,start:h,end:y,loc:E,range:w,name:$}=l,_=Object.create(D2);return _.type=a,_.start=h,_.end=y,_.loc=E,_.range=w,_.name=$,l.extra&&(_.extra=l.extra),_}cloneStringLiteral(l){let{type:a,start:h,end:y,loc:E,range:w,extra:$}=l,_=Object.create(D2);return _.type=a,_.start=h,_.end=y,_.loc=E,_.range=w,_.extra=$,_.value=l.value,_}},fp=l=>l.type==="ParenthesizedExpression"?fp(l.expression):l,IF=class extends PF{toAssignable(l,a=!1){let h;switch((l.type==="ParenthesizedExpression"||l.extra?.parenthesized)&&(h=fp(l),a?h.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(M.InvalidParenthesizedAssignment,l):h.type!=="CallExpression"&&h.type!=="MemberExpression"&&!this.isOptionalMemberExpression(h)&&this.raise(M.InvalidParenthesizedAssignment,l):this.raise(M.InvalidParenthesizedAssignment,l)),l.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(l,"ObjectPattern");for(let y=0,E=l.properties.length,w=E-1;y<E;y++){let $=l.properties[y],_=y===w;this.toAssignableObjectExpressionProp($,_,a),_&&$.type==="RestElement"&&l.extra?.trailingCommaLoc&&this.raise(M.RestTrailingComma,l.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:y,value:E}=l;this.isPrivateName(y)&&this.classScope.usePrivateName(this.getPrivateNameSV(y),y.start),this.toAssignable(E,a);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(l,"ArrayPattern"),this.toAssignableList(l.elements,l.extra?.trailingCommaLoc,a);break;case"AssignmentExpression":l.operator!=="="&&this.raise(M.MissingEqInAssignment,this.optionFlags&256?l.left.loc.end:l.left),this.castNodeTo(l,"AssignmentPattern"),delete l.operator,l.left.type==="VoidPattern"&&this.raise(M.VoidPatternInitializer,l.left),this.toAssignable(l.left,a);break;case"ParenthesizedExpression":this.toAssignable(h,a);break}}toAssignableObjectExpressionProp(l,a,h){if(l.type==="ObjectMethod")this.raise(l.kind==="get"||l.kind==="set"?M.PatternHasAccessor:M.PatternHasMethod,l.key);else if(l.type==="SpreadElement"){this.castNodeTo(l,"RestElement");let y=l.argument;this.checkToRestConversion(y,!1),this.toAssignable(y,h),a||this.raise(M.RestTrailingComma,l)}else this.toAssignable(l,h)}toAssignableList(l,a,h){let y=l.length-1;for(let E=0;E<=y;E++){let w=l[E];w&&(this.toAssignableListItem(l,E,h),w.type==="RestElement"&&(E<y?this.raise(M.RestTrailingComma,w):a&&this.raise(M.RestTrailingComma,a)))}}toAssignableListItem(l,a,h){let y=l[a];if(y.type==="SpreadElement"){this.castNodeTo(y,"RestElement");let E=y.argument;this.checkToRestConversion(E,!0),this.toAssignable(E,h)}else this.toAssignable(y,h)}isAssignable(l,a){switch(l.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let h=l.properties.length-1;return l.properties.every((y,E)=>y.type!=="ObjectMethod"&&(E===h||y.type!=="SpreadElement")&&this.isAssignable(y))}case"ObjectProperty":return this.isAssignable(l.value);case"SpreadElement":return this.isAssignable(l.argument);case"ArrayExpression":return l.elements.every(h=>h===null||this.isAssignable(h));case"AssignmentExpression":return l.operator==="=";case"ParenthesizedExpression":return this.isAssignable(l.expression);case"MemberExpression":case"OptionalMemberExpression":return!a;default:return!1}}toReferencedList(l,a){return l}parseSpread(l){let a=this.startNode();return this.next(),a.argument=this.parseMaybeAssignAllowIn(l,void 0),this.finishNode(a,"SpreadElement")}parseRestBinding(){let l=this.startNode();this.next();let a=this.parseBindingAtom();return a.type==="VoidPattern"&&this.raise(M.UnexpectedVoidPattern,a),l.argument=a,this.finishNode(l,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let l=this.startNode();return this.next(),l.elements=this.parseBindingList(1,93,1),this.finishNode(l,"ArrayPattern")}case 2:return this.parseObjectLike(4,!0);case 84:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(l,a,h){let y=h&1,E=[],w=!0;for(;!this.eat(l);)if(w?w=!1:this.expect(8),y&&this.match(8))E.push(null);else{if(this.eat(l))break;if(this.match(17)){let $=this.parseRestBinding();if(h&2&&($=this.parseFunctionParamType($)),E.push($),!this.checkCommaAfterRest(a)){this.expect(l);break}}else{let $=[];if(h&2)for(this.match(22)&&this.hasPlugin("decorators")&&this.raise(M.UnsupportedParameterDecorator,this.state.startLoc);this.match(22);)$.push(this.parseDecorator());E.push(this.parseBindingElement(h,$))}}return E}parseBindingRestProperty(l){return this.next(),this.hasPlugin("discardBinding")&&this.match(84)?(l.argument=this.parseVoidPattern(null),this.raise(M.UnexpectedVoidPattern,l.argument)):l.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(l,"RestElement")}parseBindingProperty(){let{type:l,startLoc:a}=this.state;if(l===17)return this.parseBindingRestProperty(this.startNode());let h=this.startNode();return l===134?(this.expectPlugin("destructuringPrivate",a),this.classScope.usePrivateName(this.state.value,a),h.key=this.parsePrivateName()):this.parsePropertyName(h),h.method=!1,this.parseObjPropValue(h,a,!1,!1,!0,!1)}parseBindingElement(l,a){let{startLoc:h}=this.state,y=this.parseMaybeDefault();return l&2&&this.parseFunctionParamType(y),a.length&&(y.decorators=a,this.resetStartLocationFromNode(y,a[0])),this.parseMaybeDefault(h,y)}parseFunctionParamType(l){return l}parseMaybeDefault(l,a){if(l??(l=this.state.startLoc),a=a??this.parseBindingAtom(),!this.eat(25))return a;let h=this.startNodeAt(l);return a.type==="VoidPattern"&&this.raise(M.VoidPatternInitializer,a),h.left=a,h.right=this.parseMaybeAssignAllowIn(),this.finishNode(h,"AssignmentPattern")}isValidLVal(l,a,h,y){switch(l){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!a&&!this.state.strict&&this.optionFlags&16384)return!0}return!1}isOptionalMemberExpression(l){return l.type==="OptionalMemberExpression"}checkLVal(l,a,h=64,y=!1,E=!1,w=!1,$=!1){let _=l.type;if(this.isObjectMethod(l))return;let H=this.isOptionalMemberExpression(l);if(H||_==="MemberExpression"){H&&(this.expectPlugin("optionalChainingAssign",l.start),a.type!=="AssignmentExpression"&&this.raise(M.InvalidLhsOptionalChaining,l,{ancestor:a})),h!==64&&this.raise(M.InvalidPropertyBindingPattern,l);return}if(_==="Identifier"){this.checkIdentifier(l,h,E);let{name:Wt}=l;y&&(y.has(Wt)?this.raise(M.ParamDupe,l):y.add(Wt));return}else _==="VoidPattern"&&a.type==="CatchClause"&&this.raise(M.VoidPatternCatchClauseParam,l);let U=fp(l);$||($=U.type==="CallExpression"&&(U.callee.type==="Import"||U.callee.type==="Super"));let oe=this.isValidLVal(_,$,!(w||l.extra?.parenthesized)&&a.type==="AssignmentExpression",h);if(oe===!0)return;if(oe===!1){let Wt=h===64?M.InvalidLhs:M.InvalidLhsBinding;this.raise(Wt,l,{ancestor:a});return}let De,Ie;typeof oe=="string"?(De=oe,Ie=_==="ParenthesizedExpression"):[De,Ie]=oe;let Ue=_==="ArrayPattern"||_==="ObjectPattern"?{type:_}:a,wt=l[De];if(Array.isArray(wt))for(let Wt of wt)Wt&&this.checkLVal(Wt,Ue,h,y,E,Ie,!0);else wt&&this.checkLVal(wt,Ue,h,y,E,Ie,$)}checkIdentifier(l,a,h=!1){this.state.strict&&(h?o2(l.name,this.inModule):a2(l.name))&&(a===64?this.raise(M.StrictEvalArguments,l,{referenceName:l.name}):this.raise(M.StrictEvalArgumentsBinding,l,{bindingName:l.name})),a&8192&&l.name==="let"&&this.raise(M.LetInLexicalBinding,l),a&64||this.declareNameFromIdentifier(l,a)}declareNameFromIdentifier(l,a){this.scope.declareName(l.name,a,l.start)}checkToRestConversion(l,a){switch(l.type){case"ParenthesizedExpression":this.checkToRestConversion(l.expression,a);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(a)break;default:this.raise(M.InvalidRestAssignmentPattern,l)}}checkCommaAfterRest(l){return this.match(8)?(this.raise(this.lookaheadCharCode()===l?M.RestTrailingComma:M.ElementAfterRest,this.state.startLoc),!0):!1}},BF=class extends IF{checkProto(l,a,h){if(l.type==="SpreadElement"||this.isObjectMethod(l)||l.computed||l.shorthand)return a;let y=l.key;return(y.type==="Identifier"?y.name:y.value)==="__proto__"?(a&&(h?h.doubleProtoLoc===null&&(h.doubleProtoLoc=this.getLoc(y.start)):this.raise(M.DuplicateProto,y)),!0):a}shouldExitDescending(l){return l.type==="ArrowFunctionExpression"&&!l.extra?.parenthesized}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(135))throw this.raise(M.ParseExpressionEmptyInput,this.state.startLoc);let l=this.parseExpression();if(!this.match(135))throw this.raise(M.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),l.comments=this.comments,l.errors=this.state.errors,this.optionFlags&512&&(l.tokens=g2(this.tokens)),l}parseExpression(l,a){return l?this.disallowInAnd(()=>this.parseExpressionBase(a)):this.allowInAnd(()=>this.parseExpressionBase(a))}parseExpressionBase(l){let a=this.state.startLoc,h=this.parseMaybeAssign(l);if(this.match(8)){let y=this.startNodeAt(a);for(y.expressions=[h];this.eat(8);)y.expressions.push(this.parseMaybeAssign(l));return this.toReferencedList(y.expressions),this.finishNode(y,"SequenceExpression")}return h}parseMaybeAssignDisallowIn(l,a){return this.disallowInAnd(()=>this.parseMaybeAssign(l,a))}parseMaybeAssignAllowIn(l,a){return this.allowInAnd(()=>this.parseMaybeAssign(l,a))}setOptionalParametersError(l){l.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(l,a){let h=this.state.startLoc,y=this.isContextual(104);if(y&&this.prodParam.hasYield){this.next();let $=this.parseYield(h);return a&&($=a.call(this,$,h)),$}let E;l?E=!1:(l=new Gu,E=!0),this.state.canStartArrow=!0;let w=this.parseMaybeConditional(l);if(a&&(w=a.call(this,w,h)),Be(this.state.type)){let $=this.startNodeAt(h),_=this.state.value;if($.operator=_,this.match(25)){this.toAssignable(w,!0),$.left=w;let H=h.index;l.doubleProtoLoc!=null&&l.doubleProtoLoc.index>=H&&(l.doubleProtoLoc=null),l.shorthandAssignLoc!=null&&l.shorthandAssignLoc.index>=H&&(l.shorthandAssignLoc=null),l.privateKeyLoc!=null&&l.privateKeyLoc.index>=H&&(this.checkDestructuringPrivate(l),l.privateKeyLoc=null),l.voidPatternLoc!=null&&l.voidPatternLoc.index>=H&&(l.voidPatternLoc=null)}else $.left=w;return this.next(),$.right=this.parseMaybeAssign(),this.checkLVal(w,this.finishNode($,"AssignmentExpression"),void 0,void 0,void 0,void 0,_==="||="||_==="&&="||_==="??="),$}else E&&this.checkExpressionErrors(l,!0);if(y){let{type:$}=this.state;if((this.hasPlugin("v8intrinsic")?le($):le($)&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.YieldNotInGeneratorFunction,h),this.parseYield(h)}return w}parseMaybeConditional(l){let a=this.state.startLoc,h=this.parseExprOps(l);return this.shouldExitDescending(h)?h:this.parseConditional(h,a,l)}parseConditional(l,a,h){if(this.eat(13)){let y=this.startNodeAt(a);return y.test=l,y.consequent=this.parseMaybeAssignAllowIn(),this.expect(10),y.alternate=this.parseMaybeAssign(),this.finishNode(y,"ConditionalExpression")}return l}parseMaybeUnaryOrPrivate(l){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(l)}parseExprOps(l){let a=this.state.startLoc,h=this.parseMaybeUnaryOrPrivate(l);return this.shouldExitDescending(h)?h:(this.state.canStartArrow=!1,this.parseExprOp(h,a,-1))}parseExprOp(l,a,h){if(this.isPrivateName(l)){let E=this.getPrivateNameSV(l);(h>=Ht(54)||!this.prodParam.hasIn||!this.match(54))&&this.raise(M.PrivateInExpectedIn,a,{identifierName:E}),this.classScope.usePrivateName(E,a)}let y=this.state.type;if(hr(y)&&(this.prodParam.hasIn||!this.match(54))){let E=Ht(y);if(E>h){if(y===35&&(this.expectPlugin("pipelineOperator"),this.prodParam.inFSharpPipelineDirectBody))return l;let w=this.startNodeAt(a);w.left=l,w.operator=this.state.value;let $=y===37||y===38,_=y===36;_&&(E=Ht(38)),this.next(),w.right=this.parseExprOpRightExpr(y,E);let H=this.finishNode(w,$||_?"LogicalExpression":"BinaryExpression"),U=this.state.type;if(_&&(U===37||U===38)||$&&U===36)throw this.raise(M.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(H,a,h)}}return l}parseExprOpRightExpr(l,a){switch(l){case 35:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.parseFSharpPipelineBody(a)}default:return this.parseExprOpBaseRightExpr(l,a)}}parseExprOpBaseRightExpr(l,a){let h=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),h,Kn(l)?a-1:a)}parseHackPipeBody(){let{startLoc:l}=this.state,a=this.parseMaybeAssign();return O.has(a.type)&&!a.extra?.parenthesized&&this.raise(M.PipeUnparenthesizedBody,l,{type:a.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(M.PipeTopicUnused,l),a}checkExponentialAfterUnary(l){this.match(53)&&this.raise(M.UnexpectedTokenUnaryExponentiation,l.argument)}parseMaybeUnary(l,a){let h=this.state.startLoc,y=this.isContextual(92);if(y&&this.recordAwaitIfAllowed()){this.next();let _=this.parseAwait(h);return a||this.checkExponentialAfterUnary(_),_}let E=this.match(30),w=this.startNode();if(nr(this.state.type)){w.operator=this.state.value,w.prefix=!0,this.state.canStartArrow=!1,this.match(68)&&this.expectPlugin("throwExpressions");let _=this.match(85);if(this.next(),w.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(l,!0),this.state.strict&&_){let H=w.argument;H.type==="Identifier"?this.raise(M.StrictDelete,w):this.hasPropertyAsPrivateName(H)&&this.raise(M.DeletePrivateField,w)}if(!E)return a||this.checkExponentialAfterUnary(w),this.finishNode(w,"UnaryExpression")}let $=this.parseUpdate(w,E,l);if(y){let{type:_}=this.state;if((this.hasPlugin("v8intrinsic")?le(_):le(_)&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.AwaitNotInAsyncContext,h),this.parseAwait(h)}return $}parseUpdate(l,a,h){if(a){let w=this.finishNode(l,"UpdateExpression");return this.checkLVal(w.argument,w),w}let y=this.state.startLoc,E=this.parseExprSubscripts(h);if(this.checkExpressionErrors(h,!1))return E;for(;sr(this.state.type)&&!this.canInsertSemicolon();){let w=this.startNodeAt(y);w.operator=this.state.value,w.prefix=!1,w.argument=E,this.next(),this.checkLVal(E,E=this.finishNode(w,"UpdateExpression"))}return E}parseExprSubscripts(l){let a=this.state.startLoc;this.setLoc(a);let h=this.parseExprAtom(l);return this.shouldExitDescending(h)?h:this.parseSubscripts(h,a)}parseSubscripts(l,a,h){let y={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(l),stop:!1};do l=this.parseSubscript(l,a,h,y),y.maybeAsyncArrow=!1;while(!y.stop);return l}parseSubscript(l,a,h,y){let{type:E}=this.state;if(!h&&E===11)return this.parseBind(l,a,y);if(mn(E))return this.parseTaggedTemplateExpression(l,a,y);let w=!1;if(E===14){if(h&&(this.raise(M.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(l,y);y.optionalChainMember=w=!0,this.next()}if(!h&&this.match(6))return this.parseCoverCallAndAsyncArrowHead(l,a,y,w);{let $=this.eat(0);return $||w||this.eat(12)?this.parseMember(l,a,y,$,w):this.stopParseSubscript(l,y)}}stopParseSubscript(l,a){return a.stop=!0,l}parseMember(l,a,h,y,E){let w=this.startNodeAt(a);return w.object=l,w.computed=y,y?(w.property=this.parseExpression(),this.expect(1)):this.match(134)?(l.type==="Super"&&this.raise(M.SuperPrivateField,a),this.classScope.usePrivateName(this.state.value,this.state.startLoc),w.property=this.parsePrivateName()):w.property=this.parseIdentifier(!0),h.optionalChainMember?(w.optional=E,this.finishNode(w,"OptionalMemberExpression")):this.finishNode(w,"MemberExpression")}parseBind(l,a,h){let y=this.startNodeAt(a);y.object=l,this.next();let E=this.match(79),w=this.parseNoCallExpr();if(w.type==="Super"||E&&w.type==="ImportExpression"||w.type==="Import")throw this.raise(M.UnsupportedBindRHS,w);return y.callee=w,h.stop=!0,this.parseSubscripts(this.finishNode(y,"BindExpression"),a,!1)}parseCoverCallAndAsyncArrowHead(l,a,h,y){let E=null;this.next();let w=this.startNodeAt(a);w.callee=l;let{maybeAsyncArrow:$,optionalChainMember:_}=h;$&&(this.expressionScope.enter(wF()),E=new Gu),_&&(w.optional=y),y?w.arguments=this.parseCallExpressionArguments():w.arguments=this.parseCallExpressionArguments(l.type!=="Super",w,E);let H=this.finishCallExpression(w,_);return $&&this.shouldParseAsyncArrow()&&!y?(h.stop=!0,this.checkDestructuringPrivate(E),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),H=this.parseAsyncArrowFromCallExpression(this.startNodeAt(a),H)):($&&(this.checkExpressionErrors(E,!0),this.expressionScope.exit()),this.toReferencedList(w.arguments)),H}parseTaggedTemplateExpression(l,a,h){let y=this.startNodeAt(a);return y.tag=l,y.quasi=this.parseTemplate(!0),h.optionalChainMember&&this.raise(M.OptionalChainingNoTemplate,a),this.finishNode(y,"TaggedTemplateExpression")}atPossibleAsyncArrow(l){return l.type==="Identifier"&&l.name==="async"&&this.state.lastTokEndLoc.index===l.end&&!this.canInsertSemicolon()&&l.end-l.start===5&&this.state.canStartArrow}finishCallExpression(l,a){if(l.callee.type==="Import")if(l.arguments.length===0||l.arguments.length>2)this.raise(M.ImportCallArity,l);else for(let h of l.arguments)h.type==="SpreadElement"&&this.raise(M.ImportCallSpreadArgument,h);return this.finishNode(l,a?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(l,a,h){let y=[],E=!0;for(;!this.eat(7);){if(E)E=!1;else if(this.expect(8),this.match(7)){a&&this.addTrailingCommaExtraToNode(a),this.next();break}y.push(this.parseExprListItem(7,!1,h,l))}return y}shouldParseAsyncArrow(){return this.match(15)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(l,a){return this.resetPreviousNodeTrailingComments(a),this.expect(15),this.parseArrowExpression(l,a.arguments,!0,a.extra?.trailingCommaLoc),a.innerComments&&Ua(l,a.innerComments),a.callee.trailingComments&&Ua(l,a.callee.trailingComments),l}parseNoCallExpr(){let l=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),l,!0)}parseExprAtom(l){let a,h=null,{type:y}=this.state;switch(y){case 75:return this.parseSuper();case 79:return a=this.startNode(),this.next(),this.match(12)?this.parseImportMetaPropertyOrPhaseCall(a):this.match(6)?this.optionFlags&1024?this.parseImportCall(a):this.finishNode(a,"Import"):(this.raise(M.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(a,"Import"));case 74:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case 86:return this.parseDo(this.startNode(),!1);case 52:case 27:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 131:return this.parseNumericLiteral(this.state.value);case 132:return this.parseBigIntLiteral(this.state.value);case 130:return this.parseStringLiteral(this.state.value);case 80:return this.parseNullLiteral();case 81:return this.parseBooleanLiteral(!0);case 82:return this.parseBooleanLiteral(!1);case 6:return this.parseParenAndDistinguishExpression(this.state.canStartArrow);case 0:return this.parseArrayLike(1,l);case 2:return this.parseObjectLike(4,!1,l);case 64:return this.parseFunctionOrFunctionSent();case 22:h=this.parseDecorators();case 76:return this.parseClass(this.maybeTakeDecorators(h,this.startNode()),!1);case 73:return this.parseNewOrNewTarget();case 21:case 20:return this.parseTemplate(!1);case 11:{a=this.startNode(),this.next(),a.object=null;let E=a.callee=this.parseNoCallExpr();if(E.type==="MemberExpression")return this.finishNode(a,"BindExpression");throw this.raise(M.UnsupportedBind,E)}case 134:return this.raise(M.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 29:return this.parseTopicReferenceThenEqualsSign(50,"%");case 28:return this.parseTopicReferenceThenEqualsSign(40,"^");case 33:case 34:return this.parseTopicReference("hack");case 40:case 50:case 23:{let E=this.getPluginOption("pipelineOperator","proposal");if(E)return this.parseTopicReference(E);throw this.unexpected()}case 43:{let E=this.input.codePointAt(this.nextTokenStart());throw fs(E)||E===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(_e(y)){if(this.isContextual(123)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let{canStartArrow:E,containsEsc:w}=this.state,$=this.parseIdentifier();if(!w&&$.name==="async"&&!this.canInsertSemicolon()){let{type:_}=this.state;if(_===64)return this.resetPreviousNodeTrailingComments($),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode($));if(_e(_))return E&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode($)):$;if(_===86)return this.resetPreviousNodeTrailingComments($),this.parseDo(this.startNodeAtNode($),!0)}return E&&this.match(15)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode($),[$],!1)):$}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(l,a){let h=this.getPluginOption("pipelineOperator","proposal");if(h)return this.state.type=l,this.state.value=a,this.state.pos--,this.state.end--,this.state.endLoc=v(this.state.endLoc,-1),this.parseTopicReference(h);throw this.unexpected()}parseTopicReference(l){let a=this.startNode(),h=this.state.startLoc,y=this.state.type;return this.next(),this.finishTopicReference(a,h,l,y)}finishTopicReference(l,a,h,y){if(this.testTopicReferenceConfiguration(h,a,y))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(M.PipeTopicUnbound,a),this.registerTopicReference(),this.finishNode(l,"TopicReference");throw this.raise(M.PipeTopicUnconfiguredToken,a,{token:ft(y)})}testTopicReferenceConfiguration(l,a,h){if(l==="hack")return this.hasPlugin(["pipelineOperator",{topicToken:ft(h)}]);throw this.raise(M.PipeTopicRequiresHackPipes,a)}parseAsyncArrowUnaryFunction(l){this.prodParam.enter(Ju(!0,this.prodParam.hasYield));let a=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(M.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(15),this.parseArrowExpression(l,a,!0)}parseDo(l,a){this.expectPlugin("doExpressions"),a&&this.expectPlugin("asyncDoExpressions"),l.async=a,this.next();let h=this.state.labels;return this.state.labels=[],a?(this.prodParam.enter(2),l.body=this.parseBlock(),this.prodParam.exit()):l.body=this.parseBlock(),this.state.labels=h,this.finishNode(l,"DoExpression")}parseSuper(){let l=this.startNode();return this.next(),this.match(6)&&!this.scope.allowDirectSuper?this.raise(M.SuperNotAllowed,l):this.scope.allowSuper||this.raise(M.UnexpectedSuper,l),!this.match(6)&&!this.match(0)&&!this.match(12)&&this.raise(M.UnsupportedSuper,l),this.finishNode(l,"Super")}parsePrivateName(){let l=this.startNode(),a=this.startNodeAt(v(this.state.startLoc,1)),h=this.state.value;return this.next(),l.id=this.createIdentifier(a,h),this.finishNode(l,"PrivateName")}parseFunctionOrFunctionSent(){let l=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(12)){let a=this.createIdentifier(this.startNodeAtNode(l),"function");return this.next(),this.match(99)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(l,a,"sent")}return this.parseFunction(l)}parseMetaProperty(l,a,h){l.meta=a;let y=this.state.containsEsc;return l.property=this.parseIdentifier(!0),(l.property.name!==h||y)&&this.raise(M.UnsupportedMetaProperty,l.property,{target:a.name,onlyValidPropertyName:h}),this.finishNode(l,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(l){if(this.next(),this.isContextual(101)||this.isContextual(93)){let a=this.isContextual(101);return this.expectPlugin(a?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),l.phase=a?"source":"defer",this.parseImportCall(l)}else{let a=this.createIdentifierAt(this.startNodeAtNode(l),"import",this.state.lastTokStartLoc);return this.isContextual(97)&&(this.inModule||this.raise(M.ImportMetaOutsideModule,a),this.sawUnambiguousESM=!0),this.parseMetaProperty(l,a,"meta")}}parseLiteralAtNode(l,a,h){return this.addExtra(h,"rawValue",l),this.addExtra(h,"raw",this.input.slice(this.offsetToSourcePos(h.start),this.state.end)),h.value=l,this.next(),this.finishNode(h,a)}parseLiteral(l,a){let h=this.startNode();return this.parseLiteralAtNode(l,a,h)}parseStringLiteral(l){return this.parseLiteral(l,"StringLiteral")}parseNumericLiteral(l){return this.parseLiteral(l,"NumericLiteral")}parseBigIntLiteral(l){let a;try{a=BigInt(l)}catch{a=null}return this.parseLiteral(a,"BigIntLiteral")}parseRegExpLiteral(l){let a=this.startNode();return this.addExtra(a,"raw",this.input.slice(this.offsetToSourcePos(a.start),this.state.end)),a.pattern=l.pattern,a.flags=l.flags,this.next(),this.finishNode(a,"RegExpLiteral")}parseBooleanLiteral(l){let a=this.startNode();return a.value=l,this.next(),this.finishNode(a,"BooleanLiteral")}parseNullLiteral(){let l=this.startNode();return this.next(),this.finishNode(l,"NullLiteral")}parseParenAndDistinguishExpression(l){let a=this.state.startLoc,h;this.next(),this.expressionScope.enter(FF());let y=this.state.startLoc,E=[],w=new Gu,$=!0,_,H;for(;!this.match(7);){if($)$=!1;else if(this.expect(8,w.optionalParametersLoc===null?null:w.optionalParametersLoc),this.match(7)){H=this.state.startLoc;break}if(this.match(17)){let De=this.state.startLoc;if(_=this.state.startLoc,E.push(this.parseParenItem(this.parseRestBinding(),De)),!this.checkCommaAfterRest(41))break}else E.push(this.parseMaybeAssignAllowInOrVoidPattern(7,w,this.parseParenItem))}let U=this.state.lastTokEndLoc;this.expect(7);let oe=this.startNodeAt(a);return l&&this.shouldParseArrow(E)&&(oe=this.parseArrow(oe))?(this.checkDestructuringPrivate(w),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(oe,E,!1),oe):(this.expressionScope.exit(),E.length||this.unexpected(this.state.lastTokStartLoc),H&&this.unexpected(H),_&&this.unexpected(_),this.checkExpressionErrors(w,!0),this.toReferencedList(E,!0),E.length>1?(h=this.startNodeAt(y),h.expressions=E,this.finishNode(h,"SequenceExpression"),this.resetEndLocation(h,U)):h=E[0],this.wrapParenthesis(a,h))}wrapParenthesis(l,a){if(!(this.optionFlags&2048))return this.addExtra(a,"parenthesized",!0),this.addExtra(a,"parenStart",l.index),this.takeSurroundingComments(a,l.index,this.state.lastTokEndLoc.index),a;let h=this.startNodeAt(l);return h.expression=a,this.finishNode(h,"ParenthesizedExpression")}shouldParseArrow(l){return!this.canInsertSemicolon()}parseArrow(l){if(this.eat(15))return l}parseParenItem(l,a){return l}parseNewOrNewTarget(){let l=this.startNode();if(this.next(),this.match(12)){let a=this.createIdentifier(this.startNodeAtNode(l),"new");this.next();let h=this.parseMetaProperty(l,a,"target");return this.scope.allowNewTarget||this.raise(M.UnexpectedNewTarget,h),h}return this.parseNew(l)}parseNew(l){if(this.parseNewCallee(l),this.eat(6)){let a=this.parseExprList(7);this.toReferencedList(a),l.arguments=a}else l.arguments=[];return this.finishNode(l,"NewExpression")}parseNewCallee(l){let a=this.match(79),h=this.parseNoCallExpr();l.callee=h,a&&h.type==="ImportExpression"&&this.raise(M.ImportCallNotNewExpression,h,h),h.type==="Import"&&this.raise(M.ImportCallNotNewExpression,h),h.type==="Super"&&this.raise(M.SuperCallNotNewExpression,h)}parseTemplateElement(l){let{start:a,startLoc:h,end:y,value:E}=this.state,w=a+1,$=this.startNodeAt(v(h,1));E===null&&(l||this.raise(M.InvalidEscapeSequenceTemplate,v(this.state.firstInvalidTemplateEscapePos,1)));let _=this.match(20),H=_?-1:-2,U=y+H;$.value={raw:this.input.slice(w,U).replace(/\r\n?/g,`
|
|
248
|
-
`),cooked:E===null?null:E.slice(1,H)},$.tail=_,this.next();let oe=this.finishNode($,"TemplateElement");return this.resetEndLocation(oe,v(this.state.lastTokEndLoc,H)),oe}parseTemplate(l){let a=this.startNode(),h=this.parseTemplateElement(l),y=[h],E=[];for(;!h.tail;)E.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),y.push(h=this.parseTemplateElement(l));return a.expressions=E,a.quasis=y,this.finishNode(a,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(l,a,h){let y=!1,E=!0,w=this.startNode();for(w.properties=[],this.next();!this.match(l);){if(E)E=!1;else if(this.expect(8),this.match(l)){this.addTrailingCommaExtraToNode(w);break}let _;a?_=this.parseBindingProperty():(_=this.parsePropertyDefinition(h),y=this.checkProto(_,y,h)),w.properties.push(_)}this.next();let $=a?"ObjectPattern":"ObjectExpression";return this.finishNode(w,$)}addTrailingCommaExtraToNode(l){this.addExtra(l,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(l,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(l){return!l.computed&&l.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(51))}parsePropertyDefinition(l){let a=[];if(this.match(22))for(this.hasPlugin("decorators")&&this.raise(M.UnsupportedPropertyDecorator,this.state.startLoc);this.match(22);)a.push(this.parseDecorator());let h=this.startNode(),y=!1,E=!1,w;if(this.match(17))return a.length&&this.unexpected(),this.parseSpread();a.length&&(h.decorators=a),h.method=!1,l&&(w=this.state.startLoc);let $=this.eat(51);this.parsePropertyNamePrefixOperator(h);let _=this.state.containsEsc;if(this.parsePropertyName(h,l),!$&&!_&&this.maybeAsyncOrAccessorProp(h)){let{key:H}=h,U=H.name;U==="async"&&!this.hasPrecedingLineBreak()&&(y=!0,this.resetPreviousNodeTrailingComments(H),$=this.eat(51),this.parsePropertyName(h)),(U==="get"||U==="set")&&(E=!0,this.resetPreviousNodeTrailingComments(H),h.kind=U,this.match(51)&&($=!0,this.raise(M.AccessorIsGenerator,this.state.curPosition(),{kind:U}),this.next()),this.parsePropertyName(h))}return this.parseObjPropValue(h,w,$,y,!1,E,l)}getGetterSetterExpectedParamCount(l){return l.kind==="get"?0:1}getObjectOrClassMethodParams(l){return l.params}checkGetterSetterParams(l){let a=this.getGetterSetterExpectedParamCount(l),h=this.getObjectOrClassMethodParams(l);h.length!==a&&this.raise(l.kind==="get"?M.BadGetterArity:M.BadSetterArity,l),l.kind==="set"&&h[h.length-1]?.type==="RestElement"&&this.raise(M.BadSetterRestParameter,l)}parseObjectMethod(l,a,h,y,E){if(E){let w=this.parseMethod(l,a,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(w),w}if(h||a||this.match(6))return y&&this.unexpected(),l.kind="method",l.method=!0,this.parseMethod(l,a,h,!1,!1,"ObjectMethod")}parseObjectProperty(l,a,h,y){if(l.shorthand=!1,this.eat(10))return l.value=h?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(4,y),this.finishObjectProperty(l);if(!l.computed&&l.key.type==="Identifier"){if(this.checkReservedWord(l.key.name,l.key.start,!0,!1),h)l.value=this.parseMaybeDefault(a,this.cloneIdentifier(l.key));else if(this.match(25)){let E=this.state.startLoc;y!=null?y.shorthandAssignLoc===null&&(y.shorthandAssignLoc=E):this.raise(M.InvalidCoverInitializedName,E),l.value=this.parseMaybeDefault(a,this.cloneIdentifier(l.key))}else l.value=this.cloneIdentifier(l.key);return l.shorthand=!0,this.finishObjectProperty(l)}}finishObjectProperty(l){return this.finishNode(l,"ObjectProperty")}parseObjPropValue(l,a,h,y,E,w,$){let _=this.parseObjectMethod(l,h,y,E,w)||this.parseObjectProperty(l,a,E,$);return _||this.unexpected(),_}parsePropertyName(l,a){if(this.eat(0))l.computed=!0,l.key=this.parseMaybeAssignAllowIn(),this.expect(1);else{let{type:h,value:y}=this.state,E;if(tt(h))E=this.parseIdentifier(!0);else switch(h){case 131:E=this.parseNumericLiteral(y);break;case 130:E=this.parseStringLiteral(y);break;case 132:E=this.parseBigIntLiteral(y);break;case 134:{let w=this.state.startLoc;a!=null?a.privateKeyLoc===null&&(a.privateKeyLoc=w):this.raise(M.UnexpectedPrivateField,w),E=this.parsePrivateName();break}default:this.unexpected()}l.key=E,h!==134&&(l.computed=!1)}}initFunction(l,a){l.id=null,l.generator=!1,l.async=a}parseMethod(l,a,h,y,E,w,$=!1){this.initFunction(l,h),l.generator=a,this.scope.enter(530|($?576:0)|(E?32:0)),this.prodParam.enter(Ju(h,l.generator)),this.parseFunctionParams(l,y);let _=this.parseFunctionBodyAndFinish(l,w,!0);return this.prodParam.exit(),this.scope.exit(),_}parseArrayLike(l,a){let h=this.startNode();return this.next(),h.elements=this.parseExprList(l,!0,a,h),this.finishNode(h,"ArrayExpression")}parseArrowExpression(l,a,h,y){this.scope.enter(518);let E=Ju(h,!1);return this.match(2)||(E|=this.prodParam.currentFlags()&24),this.prodParam.enter(E),this.initFunction(l,h),a&&this.setArrowFunctionParameters(l,a,y),this.parseFunctionBody(l,!0),this.prodParam.exit(),this.scope.exit(),this.finishNode(l,"ArrowFunctionExpression")}setArrowFunctionParameters(l,a,h){this.toAssignableList(a,h,!1),l.params=a}parseFunctionBodyAndFinish(l,a,h=!1){return this.parseFunctionBody(l,!1,h),this.finishNode(l,a)}parseFunctionBody(l,a,h=!1){let y=a&&!this.match(2);if(this.expressionScope.enter(y2()),y)l.body=this.parseMaybeAssign(),this.checkParams(l,!1,a,!1);else{let E=this.state.strict,w=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),l.body=this.parseBlock(!0,!1,$=>{let _=!this.isSimpleParamList(l.params);$&&_&&this.raise(M.IllegalLanguageModeDirective,(l.kind==="method"||l.kind==="constructor")&&l.key?this.optionFlags&256?l.key.loc.end:l.key:l);let H=!E&&this.state.strict;this.checkParams(l,!this.state.strict&&!a&&!h&&!_,a,H),this.state.strict&&l.id&&this.checkIdentifier(l.id,65,H)}),this.prodParam.exit(),this.state.labels=w}this.expressionScope.exit()}isSimpleParameter(l){return l.type==="Identifier"}isSimpleParamList(l){for(let a=0,h=l.length;a<h;a++)if(!this.isSimpleParameter(l[a]))return!1;return!0}checkParams(l,a,h,y=!0){let E=!a&&new Set,w={type:"FormalParameters"};for(let $ of l.params)this.checkLVal($,w,5,E,y)}parseExprList(l,a,h,y){let E=[],w=!0;for(;!this.eat(l);){if(w)w=!1;else if(this.expect(8),this.match(l)){y&&this.addTrailingCommaExtraToNode(y),this.next();break}E.push(this.parseExprListItem(l,a,h))}return E}parseExprListItem(l,a,h,y){let E;if(this.match(8))a||this.raise(M.UnexpectedToken,this.state.curPosition(),{unexpected:","}),E=null;else if(this.match(17)){let w=this.state.startLoc;E=this.parseParenItem(this.parseSpread(h),w)}else if(this.match(13)){this.expectPlugin("partialApplication"),y||this.raise(M.UnexpectedArgumentPlaceholder,this.state.startLoc);let w=this.startNode();this.next(),E=this.finishNode(w,"ArgumentPlaceholder")}else E=this.parseMaybeAssignAllowInOrVoidPattern(l,h,this.parseParenItem);return E}parseIdentifier(l){let a=this.startNode(),h=this.parseIdentifierName(l);return this.createIdentifier(a,h)}createIdentifier(l,a){return l.name=a,this.optionFlags&256&&(l.loc.identifierName=a),this.finishNode(l,"Identifier")}createIdentifierAt(l,a,h){return l.name=a,this.optionFlags&256&&(l.loc.identifierName=a),this.finishNodeAt(l,"Identifier",h)}parseIdentifierName(l){let a,{start:h,type:y}=this.state;tt(y)?a=this.state.value:this.unexpected();let E=Ct(y);return l?E&&this.replaceToken(128):this.checkReservedWord(a,this.sourceToOffsetPos(h),E,!1),this.next(),a}checkReservedWord(l,a,h,y){if(!(l.length>10||!XT(l))){if(h&&JT(l)){this.raise(M.UnexpectedKeyword,a,{keyword:l});return}if((this.state.strict?y?o2:i2:n2)(l,this.inModule)){this.raise(M.UnexpectedReservedWord,a,{reservedWord:l});return}else if(l==="yield"){if(this.prodParam.hasYield){this.raise(M.YieldBindingIdentifier,a);return}}else if(l==="await"){if(this.prodParam.hasAwait){this.raise(M.AwaitBindingIdentifier,a);return}if(this.scope.inStaticBlock){this.raise(M.AwaitBindingIdentifierInStaticBlock,a);return}this.expressionScope.recordAsyncArrowParametersError(a)}else if(l==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(M.ArgumentsInClass,a);return}}}recordAwaitIfAllowed(){let l=this.prodParam.hasAwait;return l&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),l}parseAwait(l,a){let h=l.index;this.setLoc(l);let y=this.startNodeAt(l);return this.expressionScope.recordParameterInitializerError(M.AwaitExpressionFormalParameter,h),this.eat(51)&&this.raise(M.ObsoleteAwaitStar,l),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),a||(y.argument=this.parseMaybeUnary(null,!0)),this.finishNode(y,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:l}=this.state;return l===49||l===6||l===0||mn(l)||l===98&&!this.state.containsEsc||l===133||l===52||this.hasPlugin("v8intrinsic")&&l===50}parseYield(l){this.setLoc(l);let a=this.startNodeAt(l);this.expressionScope.recordParameterInitializerError(M.YieldInParameter,l.index);let h=!1,y=null;if(!this.hasPrecedingLineBreak())switch(h=this.eat(51),this.state.type){case 9:case 135:case 4:case 7:case 1:case 5:case 10:case 8:if(!h)break;default:y=this.parseMaybeAssign()}return a.delegate=h,a.argument=y,this.finishNode(a,"YieldExpression")}parseImportCall(l){this.next();let a=this.parseCallExpressionArguments();if(a.length===0||a.length>2)this.raise(M.ImportCallArity,l,l);else for(let h of a)h.type==="SpreadElement"&&this.raise(M.ImportCallSpreadArgument,h,l);return l.source=a[0],l.options=a[1]??null,this.finishNode(l,"ImportExpression")}withTopicBindingContext(l){let a=this.state.inHackPipelineBody;this.state.inHackPipelineBody=!0;let h=this.state.seenTopicReference;this.state.seenTopicReference=!1;try{return l()}finally{this.state.inHackPipelineBody=a,this.state.seenTopicReference=h}}allowInAnd(l){let a=this.prodParam.currentFlags();if(24&~a){this.prodParam.enter(a|8|16);try{return l()}finally{this.prodParam.exit()}}return l()}disallowInAnd(l){let a=this.prodParam.currentFlags(),h=8&a,y=16&~a;if(h||y){this.prodParam.enter(a&-9|16);try{return l()}finally{this.prodParam.exit()}}return l()}registerTopicReference(){this.state.seenTopicReference=!0}topicReferenceIsAllowedInCurrentContext(){return this.state.inHackPipelineBody}topicReferenceWasUsedInCurrentContext(){return this.state.seenTopicReference}parseFSharpPipelineBody(l){let a=this.state.startLoc;this.prodParam.enter(this.prodParam.currentFlags()&-17);let h;if(this.isContextual(92)&&this.recordAwaitIfAllowed()){this.next(),h=this.parseAwait(a,!0);let y=this.state.type;hr(y)&&y!==35&&(this.prodParam.hasIn||y!==54)&&this.raise(M.PipelineUnparenthesized,a)}else this.state.canStartArrow=!0,h=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),a,l);return this.prodParam.exit(),h}parseModuleExpression(){this.expectPlugin("moduleBlocks");let l=this.startNode();this.next(),this.match(2)||this.unexpected(null,2);let a=this.startNodeAt(this.state.endLoc);this.next();let h=this.initializeScopes(!0);this.enterInitialScopes();try{l.body=this.parseProgram(a,4,"module")}finally{h()}return this.finishNode(l,"ModuleExpression")}parseVoidPattern(l){this.expectPlugin("discardBinding");let a=this.startNode();return l!=null&&(l.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(a,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(l,a,h){if(a!=null&&this.match(84)){let y=this.lookaheadCharCode();if(y===44||y===(l===1?93:l===4?125:41)||y===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(a))}return this.parseMaybeAssignAllowIn(a,h)}parsePropertyNamePrefixOperator(l){}},mp={kind:1},NF={kind:2},LF=/[\uD800-\uDFFF]/u,yp=/in(?:stanceof)?/y;function g2(l){for(let a=0;a<l.length;a++){let h=l[a],{type:y}=h;typeof y=="number"&&(h.type=Sr(y))}return l}var $F=class extends BF{parseTopLevel(l,a){return l.program=this.parseProgram(a,135,this.options.sourceType==="module"?"module":"script"),l.comments=this.comments,this.optionFlags&512&&(l.tokens=g2(this.tokens)),this.finishNode(l,"File")}parseProgram(l,a,h){if(l.sourceType=h,l.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(l,!0,!0,a),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[E,w]of Array.from(this.scope.undefinedExports))this.raise(M.ModuleExportUndefined,w,{localName:E});this.addExtra(l,"topLevelAwait",this.state.hasTopLevelAwait)}let y;return a===135?y=this.finishNode(l,"Program"):y=this.finishNodeAt(l,"Program",v(this.state.startLoc,-1)),y}stmtToDirective(l){let a=this.castNodeTo(l,"Directive"),h=this.castNodeTo(l.expression,"DirectiveLiteral"),y=h.value,E=this.input.slice(this.offsetToSourcePos(h.start),this.offsetToSourcePos(h.end)),w=h.value=E.slice(1,-1);return this.addExtra(h,"raw",E),this.addExtra(h,"rawValue",w),this.addExtra(h,"expressionValue",y),a.value=h,delete l.expression,a}parseInterpreterDirective(){if(!this.match(24))return null;let l=this.startNode();return l.value=this.state.value,this.next(),this.finishNode(l,"InterpreterDirective")}isLet(){return this.isContextual(96)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(103)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(103))return!1;let l=this.nextTokenInLineStart(),a=this.codePointAtPos(l);if(this.isUnparsedContextual(l,"of")){let h=this.lookaheadCharCodeSince(l+2);if(h!==61&&h!==58&&h!==59)return!1}return!!(this.chStartsBindingIdentifier(a,l)||this.isUnparsedContextual(l,"void"))}nextTokenIsIdentifierOnSameLine(){let l=this.nextTokenInLineStart(),a=this.codePointAtPos(l);return this.chStartsBindingIdentifier(a,l)}isAwaitUsing(){if(!this.isContextual(92))return!1;let l=this.nextTokenInLineStart();if(this.isUnparsedContextual(l,"using")){l=this.nextTokenInLineStartSince(l+5);let a=this.codePointAtPos(l);if(this.chStartsBindingIdentifier(a,l))return!0}return!1}chStartsBindingIdentifier(l,a){if(fs(l)){if(yp.lastIndex=a,yp.test(this.input)){let h=this.codePointAtPos(yp.lastIndex);if(!Xn(h)&&h!==92)return!1}return!0}else return l===92}chStartsBindingPattern(l){return l===91||l===123}hasFollowingBindingAtom(){let l=this.nextTokenStart(),a=this.codePointAtPos(l);return this.chStartsBindingPattern(a)||this.chStartsBindingIdentifier(a,l)}hasInLineFollowingBindingIdentifierOrBrace(){let l=this.nextTokenInLineStart(),a=this.codePointAtPos(l);return a===123||this.chStartsBindingIdentifier(a,l)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(l=!1){let a=0;return this.options.annexB&&!this.state.strict&&(a|=4,l&&(a|=8)),this.parseStatementLike(a)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(l){let a=null;return this.match(22)&&(a=this.parseDecorators(!0)),this.parseStatementContent(l,a)}parseStatementContent(l,a){let h=this.state.type,y=this.startNode(),E=!!(l&2),w=!!(l&4),$=l&1;switch(h){case 56:return this.parseBreakContinueStatement(y,!0);case 59:return this.parseBreakContinueStatement(y,!1);case 60:return this.parseDebuggerStatement(y);case 86:return this.parseDoWhileStatement(y);case 87:return this.parseForStatement(y);case 64:if(this.lookaheadCharCode()===46)break;return w||this.raise(this.state.strict?M.StrictFunction:this.options.annexB?M.SloppyFunctionAnnexB:M.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(y,!1,!E&&w);case 76:return E||this.unexpected(),this.parseClass(this.maybeTakeDecorators(a,y),!0);case 65:return this.parseIfStatement(y);case 66:return this.parseReturnStatement(y);case 67:return this.parseSwitchStatement(y);case 68:return this.parseThrowStatement(y);case 69:return this.parseTryStatement(y);case 92:if(this.isAwaitUsing())return this.allowsUsing()?E?this.recordAwaitIfAllowed()||this.raise(M.AwaitUsingNotInAsyncContext,y):this.raise(M.UnexpectedLexicalDeclaration,y):this.raise(M.UnexpectedUsingDeclaration,y),this.next(),this.parseVarStatement(y,"await using");break;case 103:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?E||this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(M.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(y,"using");case 96:{if(this.state.containsEsc)break;let U=this.nextTokenStart(),oe=this.codePointAtPos(U);if(oe!==91&&(!E&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(oe,U)&&oe!==123))break}case 71:E||this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);case 70:{let U=this.state.value;return this.parseVarStatement(y,U)}case 88:return this.parseWhileStatement(y);case 72:return this.parseWithStatement(y);case 2:return this.parseBlock();case 9:return this.parseEmptyStatement(y);case 79:{let U=this.lookaheadCharCode();if(U===40||U===46)break}case 78:{!(this.optionFlags&8)&&!$&&this.raise(M.UnexpectedImportExport,this.state.startLoc),this.next();let U;return h===79?U=this.parseImport(y):U=this.parseExport(y,a),this.assertModuleNodeAllowed(U),U}default:if(this.isAsyncFunction())return E||this.raise(M.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(y,!0,!E&&w)}let _=this.state.value,H=this.parseExpression();return _e(h)&&H.type==="Identifier"&&this.eat(10)?this.parseLabeledStatement(y,_,H,l):this.parseExpressionStatement(y,H,a)}assertModuleNodeAllowed(l){!(this.optionFlags&8)&&!this.inModule&&this.raise(M.ImportOutsideModule,l)}maybeTakeDecorators(l,a,h){return l&&(a.decorators?.length?(this.raise(M.DecoratorsBeforeAfterExport,a.decorators[0]),a.decorators.unshift(...l)):a.decorators=l,this.resetStartLocationFromNode(a,l[0]),h&&this.resetStartLocationFromNode(h,a)),a}canHaveLeadingDecorator(){return this.match(76)}parseDecorators(l){let a=[];do a.push(this.parseDecorator());while(this.match(22));if(this.match(78))l||this.unexpected();else if(!this.canHaveLeadingDecorator())throw this.raise(M.UnexpectedLeadingDecorator,this.state.startLoc);return a}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let l=this.startNode();if(this.next(),this.hasPlugin("decorators")){let a=this.state.startLoc,h;if(this.match(6)){let y=this.state.startLoc;this.next(),h=this.parseExpression(),this.expect(7),h=this.wrapParenthesis(y,h);let E=this.state.startLoc;l.expression=this.parseMaybeDecoratorArguments(h,y),l.expression!==h&&this.raise(M.DecoratorArgumentsOutsideParentheses,E)}else{for(h=this.parseIdentifier(!1);this.eat(12);){let y=this.startNodeAt(a);y.object=h,this.match(134)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),y.property=this.parsePrivateName()):y.property=this.parseIdentifier(!0),y.computed=!1,h=this.finishNode(y,"MemberExpression")}l.expression=this.parseMaybeDecoratorArguments(h,a)}}else this.state.canStartArrow=!1,l.expression=this.parseExprSubscripts();return this.finishNode(l,"Decorator")}parseMaybeDecoratorArguments(l,a){if(this.eat(6)){let h=this.startNodeAt(a);return h.callee=l,h.arguments=this.parseCallExpressionArguments(),this.toReferencedList(h.arguments),this.finishNode(h,"CallExpression")}return l}parseBreakContinueStatement(l,a){return this.next(),this.isLineTerminator()?l.label=null:(l.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(l,a),this.finishNode(l,a?"BreakStatement":"ContinueStatement")}verifyBreakContinue(l,a){let h;for(h=0;h<this.state.labels.length;++h){let y=this.state.labels[h];if((l.label==null||y.name===l.label.name)&&(y.kind!=null&&(a||y.kind===1)||l.label&&a))break}if(h===this.state.labels.length){let y=a?"BreakStatement":"ContinueStatement";this.raise(M.IllegalBreakContinue,l,{type:y})}}parseDebuggerStatement(l){return this.next(),this.semicolon(),this.finishNode(l,"DebuggerStatement")}parseHeaderExpression(){this.expect(6);let l=this.parseExpression();return this.expect(7),l}parseDoWhileStatement(l){return this.next(),this.state.labels.push(mp),l.body=this.parseStatement(),this.state.labels.pop(),this.expect(88),l.test=this.parseHeaderExpression(),this.eat(9),this.finishNode(l,"DoWhileStatement")}parseForStatement(l){this.next(),this.state.labels.push(mp);let a=null;if(this.isContextual(92)&&this.recordAwaitIfAllowed()&&(a=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(6),this.match(9))return a!==null&&this.unexpected(a),this.parseFor(l,null);let h=this.isContextual(96);{let _=this.isAwaitUsing(),H=_||this.isForUsing(),U=h&&this.hasFollowingBindingAtom()||H;if(this.match(70)||this.match(71)||U){let oe=this.startNode(),De;_?(De="await using",this.recordAwaitIfAllowed()||this.raise(M.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):De=this.state.value,this.next(),this.parseVar(oe,!0,De);let Ie=this.finishNode(oe,"VariableDeclaration"),Ue=this.match(54);return Ue&&H&&this.raise(M.ForInUsing,Ie),(Ue||this.isContextual(98))&&Ie.declarations.length===1?this.parseForIn(l,Ie,a):(a!==null&&this.unexpected(a),this.parseFor(l,Ie))}}let y=this.isContextual(91),E=new Gu,w=this.parseExpression(!0,E),$=this.isContextual(98);if($&&(h&&this.raise(M.ForOfLet,w),a===null&&y&&w.type==="Identifier"&&this.raise(M.ForOfAsync,w)),$||this.match(54)){this.checkDestructuringPrivate(E),this.toAssignable(w,!0);let _=$?"ForOfStatement":"ForInStatement";return this.checkLVal(w,{type:_}),this.parseForIn(l,w,a)}else this.checkExpressionErrors(E,!0);return a!==null&&this.unexpected(a),this.parseFor(l,w)}parseFunctionStatement(l,a,h){return this.next(),this.parseFunction(l,1|(h?2:0)|(a?8:0))}parseIfStatement(l){return this.next(),l.test=this.parseHeaderExpression(),l.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),l.alternate=this.eat(62)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(l,"IfStatement")}parseReturnStatement(l){return this.prodParam.hasReturn||this.raise(M.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?l.argument=null:(l.argument=this.parseExpression(),this.semicolon()),this.finishNode(l,"ReturnStatement")}parseSwitchStatement(l){this.next(),l.discriminant=this.parseHeaderExpression();let a=l.cases=[];this.expect(2),this.state.labels.push(NF),this.scope.enter(256);let h;for(let y;!this.match(4);)if(this.match(57)||this.match(61)){let E=this.match(57);h&&this.finishNode(h,"SwitchCase"),a.push(h=this.startNode()),h.consequent=[],this.next(),E?h.test=this.parseExpression():(y&&this.raise(M.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),y=!0,h.test=null),this.expect(10)}else h?h.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(l,"SwitchStatement")}parseThrowStatement(l){return this.next(),this.hasPrecedingLineBreak()&&this.raise(M.NewlineAfterThrow,this.state.lastTokEndLoc),l.argument=this.parseExpression(),this.semicolon(),this.finishNode(l,"ThrowStatement")}parseCatchClauseParam(){let l=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&l.type==="Identifier"?8:0),this.checkLVal(l,{type:"CatchClause"},9),l}parseTryStatement(l){if(this.next(),l.block=this.parseBlock(),l.handler=null,this.match(58)){let a=this.startNode();this.next(),this.match(6)?(this.expect(6),a.param=this.parseCatchClauseParam(),this.expect(7)):(a.param=null,this.scope.enter(0)),a.body=this.parseBlock(!1,!1),this.scope.exit(),l.handler=this.finishNode(a,"CatchClause")}return l.finalizer=this.eat(63)?this.parseBlock():null,!l.handler&&!l.finalizer&&this.raise(M.NoCatchOrFinally,l),this.finishNode(l,"TryStatement")}parseVarStatement(l,a,h=!1){return this.next(),this.parseVar(l,!1,a,h),this.semicolon(),this.finishNode(l,"VariableDeclaration")}parseWhileStatement(l){return this.next(),l.test=this.parseHeaderExpression(),this.state.labels.push(mp),l.body=this.parseStatement(),this.state.labels.pop(),this.finishNode(l,"WhileStatement")}parseWithStatement(l){return this.state.strict&&this.raise(M.StrictWith,this.state.startLoc),this.next(),l.object=this.parseHeaderExpression(),l.body=this.parseStatement(),this.finishNode(l,"WithStatement")}parseEmptyStatement(l){return this.next(),this.finishNode(l,"EmptyStatement")}parseLabeledStatement(l,a,h,y){for(let w of this.state.labels)w.name===a&&this.raise(M.LabelRedeclaration,h,{labelName:a});let E=qe(this.state.type)?1:this.match(67)?2:null;for(let w=this.state.labels.length-1;w>=0;w--){let $=this.state.labels[w];if($.statementStart===l.start)$.statementStart=this.sourceToOffsetPos(this.state.start),$.kind=E;else break}return this.state.labels.push({name:a,kind:E,statementStart:this.sourceToOffsetPos(this.state.start)}),l.body=y&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),l.label=h,this.finishNode(l,"LabeledStatement")}parseExpressionStatement(l,a,h){return l.expression=a,this.semicolon(),this.finishNode(l,"ExpressionStatement")}parseBlock(l=!1,a=!0,h){let y=this.startNode();return l&&this.state.strictErrors.clear(),this.expect(2),a&&this.scope.enter(0),this.parseBlockBody(y,l,!1,4,h),a&&this.scope.exit(),this.finishNode(y,"BlockStatement")}isValidDirective(l){return l.type==="ExpressionStatement"&&l.expression.type==="StringLiteral"&&!l.expression.extra.parenthesized}parseBlockBody(l,a,h,y,E){let w=l.body=[],$=l.directives=[];this.parseBlockOrModuleBlockBody(w,a?$:void 0,h,y,E)}parseBlockOrModuleBlockBody(l,a,h,y,E){let w=this.state.strict,$=!1,_=!1;for(;!this.match(y);){let H=h?this.parseModuleItem():this.parseStatementListItem();if(a&&!_){if(this.isValidDirective(H)){let U=this.stmtToDirective(H);a.push(U),!$&&U.value.value==="use strict"&&($=!0,this.setStrict(!0));continue}_=!0,this.state.strictErrors.clear()}l.push(H)}E?.call(this,$),w||this.setStrict(!1),this.next()}parseFor(l,a){return l.init=a,this.semicolon(!1),l.test=this.match(9)?null:this.parseExpression(),this.semicolon(!1),l.update=this.match(7)?null:this.parseExpression(),this.expect(7),l.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(l,"ForStatement")}parseForIn(l,a,h){let y=this.match(54);return this.next(),y?h!==null&&this.unexpected(h):l.await=h!==null,a.type==="VariableDeclaration"&&a.declarations[0].init!=null&&(!y||!this.options.annexB||this.state.strict||a.kind!=="var"||a.declarations[0].id.type!=="Identifier")&&this.raise(M.ForInOfLoopInitializer,a,{type:y?"ForInStatement":"ForOfStatement"}),a.type==="AssignmentPattern"&&this.raise(M.InvalidLhs,a,{ancestor:{type:"ForStatement"}}),l.left=a,l.right=y?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(7),l.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(l,y?"ForInStatement":"ForOfStatement")}parseVar(l,a,h,y=!1){let E=l.declarations=[];for(l.kind=h;;){let w=this.startNode();if(this.parseVarId(w,h),w.init=this.eat(25)?a?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,w.init===null&&!y&&(w.id.type!=="Identifier"&&!(a&&(this.match(54)||this.isContextual(98)))?this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(h==="const"||h==="using"||h==="await using")&&!(this.match(54)||this.isContextual(98))&&this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:h})),E.push(this.finishNode(w,"VariableDeclarator")),!this.eat(8))break}return l}parseVarId(l,a){let h=this.parseBindingAtom();a==="using"||a==="await using"?(h.type==="ArrayPattern"||h.type==="ObjectPattern")&&this.raise(M.UsingDeclarationHasBindingPattern,h):h.type==="VoidPattern"&&this.raise(M.UnexpectedVoidPattern,h),this.checkLVal(h,{type:"VariableDeclarator"},a==="var"?5:8201),l.id=h}parseAsyncFunctionExpression(l){return this.parseFunction(l,8)}parseFunction(l,a=0){let h=a&2,y=!!(a&1),E=y&&!(a&4),w=!!(a&8);return this.initFunction(l,w),this.match(51)&&(h&&this.raise(M.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),l.generator=!0),y&&(l.id=this.parseFunctionId(E)),this.scope.enter(514),this.prodParam.enter(Ju(w,l.generator)),y||(l.id=this.parseFunctionId()),this.parseFunctionParams(l,!1),this.parseFunctionBodyAndFinish(l,y?"FunctionDeclaration":"FunctionExpression"),this.prodParam.exit(),this.scope.exit(),y&&!h&&this.registerFunctionStatementId(l),l}parseFunctionId(l){return l||_e(this.state.type)?this.parseIdentifier():null}parseFunctionParams(l,a){this.expect(6),this.expressionScope.enter(TF()),l.params=this.parseBindingList(7,41,2|(a?4:0)),this.expressionScope.exit()}registerFunctionStatementId(l){l.id&&this.scope.declareName(l.id.name,!this.options.annexB||this.state.strict||l.generator||l.async?this.scope.treatFunctionsAsVar?5:8201:17,l.id.start)}parseClass(l,a,h){this.next();let y=this.state.strict;return this.state.strict=!0,this.parseClassId(l,a,h),this.parseClassSuper(l),l.body=this.parseClassBody(!!l.superClass,y),this.finishNode(l,a?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(25)||this.match(9)||this.match(4)}isClassMethod(){return this.match(6)}nameIsConstructor(l){return l.type==="Identifier"&&l.name==="constructor"||l.type==="StringLiteral"&&l.value==="constructor"}isNonstaticConstructor(l){return!l.computed&&!l.static&&this.nameIsConstructor(l.key)}parseClassBody(l,a){this.classScope.enter();let h={hadConstructor:!1,hadSuperClass:l},y=[],E=this.startNode();for(E.body=[],this.expect(2);!this.match(4);){if(this.eat(9)){if(y.length>0)throw this.raise(M.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(22)){y.push(this.parseDecorator());continue}let w=this.startNode();y.length&&(w.decorators=y,this.resetStartLocationFromNode(w,y[0]),y=[]),this.parseClassMember(E,w,h)}if(this.state.strict=a,this.next(),y.length)throw this.raise(M.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(E,"ClassBody")}parseClassMemberFromModifier(l,a){let h=this.parseIdentifier(!0);if(this.isClassMethod()){let y=a;return y.kind="method",y.computed=!1,y.key=h,y.static=!1,this.pushClassMethod(l,y,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let y=a;return y.computed=!1,y.key=h,y.static=!1,l.body.push(this.parseClassProperty(y)),!0}return this.resetPreviousNodeTrailingComments(h),!1}parseClassMember(l,a,h){let y=this.isContextual(102);if(y){if(this.parseClassMemberFromModifier(l,a))return;if(this.eat(2)){this.parseClassStaticBlock(l,a);return}}this.parseClassMemberWithIsStatic(l,a,h,y)}parseClassMemberWithIsStatic(l,a,h,y){let E=a,w=a,$=a,_=a,H=a,U=E,oe=E;if(a.static=y,this.parsePropertyNamePrefixOperator(a),this.eat(51)){U.kind="method";let At=this.match(134);if(this.parseClassElementName(U),this.parsePostMemberNameModifiers(U),At){this.pushClassPrivateMethod(l,w,!0,!1);return}this.isNonstaticConstructor(E)&&this.raise(M.ConstructorIsGenerator,E.key),this.pushClassMethod(l,E,!0,!1,!1,!1);return}let De=!this.state.containsEsc&&_e(this.state.type),Ie=this.parseClassElementName(a),Ue=De?Ie.name:null,wt=this.isPrivateName(Ie),Wt=this.state.startLoc;if(this.parsePostMemberNameModifiers(oe),this.isClassMethod()){if(U.kind="method",wt){this.pushClassPrivateMethod(l,w,!1,!1);return}let At=this.isNonstaticConstructor(E),vt=!1;At&&(E.kind="constructor",E.decorators&&E.decorators.length>0&&this.raise(M.DecoratorConstructor,a),h.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(M.DuplicateConstructor,Ie),At&&this.hasPlugin("typescript")&&a.override&&this.raise(M.OverrideOnConstructor,Ie),h.hadConstructor=!0,vt=h.hadSuperClass),this.pushClassMethod(l,E,!1,!1,At,vt)}else if(this.isClassProperty())wt?this.pushClassPrivateProperty(l,_):this.pushClassProperty(l,$);else if(Ue==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Ie);let At=this.eat(51);oe.optional&&this.unexpected(Wt),U.kind="method";let vt=this.match(134);this.parseClassElementName(U),this.parsePostMemberNameModifiers(oe),vt?this.pushClassPrivateMethod(l,w,At,!0):(this.isNonstaticConstructor(E)&&this.raise(M.ConstructorIsAsync,E.key),this.pushClassMethod(l,E,At,!0,!1,!1))}else if((Ue==="get"||Ue==="set")&&!(this.match(51)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(Ie),U.kind=Ue;let At=this.match(134);this.parseClassElementName(E),At?this.pushClassPrivateMethod(l,w,!1,!1):(this.isNonstaticConstructor(E)&&this.raise(M.ConstructorIsAccessor,E.key),this.pushClassMethod(l,E,!1,!1,!1,!1)),this.checkGetterSetterParams(E)}else if(Ue==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Ie);let At=this.match(134);this.parseClassElementName($),this.pushClassAccessorProperty(l,H,At)}else this.isLineTerminator()?wt?this.pushClassPrivateProperty(l,_):this.pushClassProperty(l,$):this.unexpected()}parseClassElementName(l){let{type:a,value:h}=this.state;if((a===128||a===130)&&l.static&&h==="prototype"&&this.raise(M.StaticPrototype,this.state.startLoc),a===134){h==="constructor"&&this.raise(M.ConstructorClassPrivateField,this.state.startLoc);let y=this.parsePrivateName();return l.key=y,y}return this.parsePropertyName(l),l.key}parseClassStaticBlock(l,a){this.scope.enter(720);let h=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let y=a.body=[];this.parseBlockOrModuleBlockBody(y,void 0,!1,4),this.prodParam.exit(),this.scope.exit(),this.state.labels=h,l.body.push(this.finishNode(a,"StaticBlock")),a.decorators?.length&&this.raise(M.DecoratorStaticBlock,a)}pushClassProperty(l,a){!a.computed&&this.nameIsConstructor(a.key)&&this.raise(M.ConstructorClassField,a.key),l.body.push(this.parseClassProperty(a))}pushClassPrivateProperty(l,a){let h=this.parseClassPrivateProperty(a);l.body.push(h),this.classScope.declarePrivateName(this.getPrivateNameSV(h.key),0,h.key.start)}pushClassAccessorProperty(l,a,h){!h&&!a.computed&&this.nameIsConstructor(a.key)&&this.raise(M.ConstructorClassField,a.key);let y=this.parseClassAccessorProperty(a);l.body.push(y),h&&this.classScope.declarePrivateName(this.getPrivateNameSV(y.key),0,y.key.start)}pushClassMethod(l,a,h,y,E,w){l.body.push(this.parseMethod(a,h,y,E,w,"ClassMethod",!0))}pushClassPrivateMethod(l,a,h,y){let E=this.parseMethod(a,h,y,!1,!1,"ClassPrivateMethod",!0);l.body.push(E);let w=E.kind==="get"?E.static?6:2:E.kind==="set"?E.static?5:1:0;this.declareClassPrivateMethodInScope(E,w)}declareClassPrivateMethodInScope(l,a){this.classScope.declarePrivateName(this.getPrivateNameSV(l.key),a,l.key.start)}parsePostMemberNameModifiers(l){}parseClassPrivateProperty(l){return this.parseInitializer(l),this.semicolon(),this.finishNode(l,"ClassPrivateProperty")}parseClassProperty(l){return this.parseInitializer(l),this.semicolon(),this.finishNode(l,"ClassProperty")}parseClassAccessorProperty(l){return this.parseInitializer(l),this.semicolon(),this.finishNode(l,"ClassAccessorProperty")}parseInitializer(l){this.scope.enter(592),this.expressionScope.enter(y2()),this.prodParam.enter(0),l.value=this.eat(25)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(l,a,h,y=8331){if(_e(this.state.type))l.id=this.parseIdentifier(),a&&this.declareNameFromIdentifier(l.id,y);else if(h||!a)l.id=null;else throw this.raise(M.MissingClassName,this.state.startLoc)}parseClassSuper(l){this.eat(77)?(this.state.canStartArrow=!1,l.superClass=this.parseExprSubscripts()):l.superClass=null}parseExport(l,a){let h=this.parseMaybeImportPhase(l,!0),y=this.maybeParseExportDefaultSpecifier(l,h),E=!y||this.eat(8),w=E&&this.eatExportStar(l),$=w&&this.maybeParseExportNamespaceSpecifier(l),_=E&&(!$||this.eat(8)),H=y||w;if(w&&!$){if(y&&this.unexpected(),a)throw this.raise(M.UnsupportedDecoratorExport,l);return this.parseExportFrom(l,!0),this.sawUnambiguousESM=!0,this.finishNode(l,"ExportAllDeclaration")}let U=this.maybeParseExportNamedSpecifiers(l);y&&E&&!w&&!U&&this.unexpected(null,2),$&&_&&this.unexpected(null,94);let oe;if(H||U){if(oe=!1,a)throw this.raise(M.UnsupportedDecoratorExport,l);this.parseExportFrom(l,H)}else oe=this.maybeParseExportDeclaration(l);if(H||U||oe){let De=l;if(this.checkExport(De,!0,!1,!!De.source),De.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(a,De.declaration,De);else if(a)throw this.raise(M.UnsupportedDecoratorExport,l);return this.sawUnambiguousESM=!0,this.finishNode(De,"ExportNamedDeclaration")}if(this.eat(61)){let De=l,Ie=this.parseExportDefaultExpression();if(De.declaration=Ie,Ie.type==="ClassDeclaration")this.maybeTakeDecorators(a,Ie,De);else if(a)throw this.raise(M.UnsupportedDecoratorExport,l);return this.checkExport(De,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(De,"ExportDefaultDeclaration")}throw this.unexpected(null,2)}eatExportStar(l){return this.eat(51)}maybeParseExportDefaultSpecifier(l,a){if(a||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",a?.start);let h=a||this.parseIdentifier(!0),y=this.startNodeAtNode(h);return y.exported=h,l.specifiers=[this.finishNode(y,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(l){if(this.isContextual(89)){l.specifiers??(l.specifiers=[]);let a=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),a.exported=this.parseModuleExportName(),l.specifiers.push(this.finishNode(a,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(l){if(this.match(2)){let a=l;a.specifiers||(a.specifiers=[]);let h=a.exportKind==="type";return a.specifiers.push(...this.parseExportSpecifiers(h)),a.source=null,a.attributes=[],a.declaration=null,!0}return!1}maybeParseExportDeclaration(l){return this.shouldParseExportDeclaration()?(l.specifiers=[],l.source=null,l.attributes=[],l.declaration=this.parseExportDeclaration(l),!0):!1}isAsyncFunction(){if(!this.isContextual(91))return!1;let l=this.nextTokenInLineStart();return this.isUnparsedContextual(l,"function")}parseExportDefaultExpression(){let l=this.startNode();if(this.match(64))return this.next(),this.parseFunction(l,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(l,13);if(this.match(76))return this.parseClass(l,!0,!0);if(this.match(22))return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(71)||this.match(70)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(M.UnsupportedDefaultExport,this.state.startLoc);let a=this.parseMaybeAssignAllowIn();return this.semicolon(),a}parseExportDeclaration(l){return this.match(76)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:l}=this.state;if(_e(l)){if(l===91&&!this.state.containsEsc||l===96)return!1;if((l===126||l===125)&&!this.state.containsEsc){let y=this.nextTokenStart(),E=this.input.charCodeAt(y);if(E===123||this.chStartsBindingIdentifier(E,y)&&!this.input.startsWith("from",y))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(61))return!1;let a=this.nextTokenStart(),h=this.isUnparsedContextual(a,"from");if(this.input.charCodeAt(a)===44||_e(this.state.type)&&h)return!0;if(this.match(61)&&h){let y=this.input.charCodeAt(this.nextTokenStartSince(a+4));return y===34||y===39}return!1}parseExportFrom(l,a){this.eatContextual(94)?(l.source=this.parseImportSource(),this.checkExport(l),this.maybeParseImportAttributes(l)):a&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:l}=this.state;return l===22&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?!0:this.isUsing()?(this.raise(M.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(M.UsingDeclarationExport,this.state.startLoc),!0):l===70||l===71||l===64||l===76||this.isLet()||this.isAsyncFunction()}checkExport(l,a,h,y){if(a){if(h){if(this.checkDuplicateExports(l,"default"),this.hasPlugin("exportDefaultFrom")){let E=l.declaration;E.type==="Identifier"&&E.name==="from"&&E.end-E.start===4&&!E.extra?.parenthesized&&this.raise(M.ExportDefaultFromAsIdentifier,E)}}else if(l.specifiers?.length)for(let E of l.specifiers){let{exported:w}=E,$=w.type==="Identifier"?w.name:w.value;if(this.checkDuplicateExports(E,$),!y&&E.local){let{local:_}=E;_.type!=="Identifier"?this.raise(M.ExportBindingIsString,E,{localName:_.value,exportName:$}):(this.checkReservedWord(_.name,_.start,!0,!1),this.scope.checkLocalExport(_))}}else if(l.declaration){let E=l.declaration;if(E.type==="FunctionDeclaration"||E.type==="ClassDeclaration"){let{id:w}=E;if(!w)throw new Error("Assertion failure");this.checkDuplicateExports(l,w.name)}else if(E.type==="VariableDeclaration")for(let w of E.declarations)this.checkDeclaration(w.id)}}}checkDeclaration(l){if(l.type==="Identifier")this.checkDuplicateExports(l,l.name);else if(l.type==="ObjectPattern")for(let a of l.properties)this.checkDeclaration(a);else if(l.type==="ArrayPattern")for(let a of l.elements)a&&this.checkDeclaration(a);else l.type==="ObjectProperty"?this.checkDeclaration(l.value):l.type==="RestElement"?this.checkDeclaration(l.argument):l.type==="AssignmentPattern"&&this.checkDeclaration(l.left)}checkDuplicateExports(l,a){this.exportedIdentifiers.has(a)&&(a==="default"?this.raise(M.DuplicateDefaultExport,l):this.raise(M.DuplicateExport,l,{exportName:a})),this.exportedIdentifiers.add(a)}parseExportSpecifiers(l){let a=[],h=!0;for(this.expect(2);!this.eat(4);){if(h)h=!1;else if(this.expect(8),this.eat(4))break;let y=this.isContextual(126),E=this.match(130),w=this.startNode();w.local=this.parseModuleExportName(),a.push(this.parseExportSpecifier(w,E,l,y))}return a}parseExportSpecifier(l,a,h,y){return this.eatContextual(89)?l.exported=this.parseModuleExportName():a?l.exported=this.cloneStringLiteral(l.local):l.exported||(l.exported=this.cloneIdentifier(l.local)),this.finishNode(l,"ExportSpecifier")}parseModuleExportName(){if(this.match(130)){let l=this.parseStringLiteral(this.state.value),a=LF.exec(l.value);return a&&this.raise(M.ModuleExportNameHasLoneSurrogate,l,{surrogateCharCode:a[0].charCodeAt(0)}),l}return this.parseIdentifier(!0)}checkImportPhase(l){let{specifiers:a}=l,h=a.length===1?a[0].type:null;l.phase==="source"?h!=="ImportDefaultSpecifier"&&this.raise(M.SourcePhaseImportRequiresDefault,a[0]):l.phase==="defer"&&h!=="ImportNamespaceSpecifier"&&this.raise(M.DeferImportRequiresNamespace,a[0])}isPotentialImportPhase(l){return l?!1:this.isContextual(101)||this.isContextual(93)}applyImportPhase(l,a,h,y){a||(h==="source"?(this.expectPlugin("sourcePhaseImports",y),l.phase="source"):h==="defer"?(this.expectPlugin("deferredImportEvaluation",y),l.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(l.phase=null))}parseMaybeImportPhase(l,a){if(!this.isPotentialImportPhase(a))return this.applyImportPhase(l,a,null),null;let h=this.startNode(),y=this.parseIdentifierName(!0),{type:E}=this.state;return(tt(E)?E!==94||this.lookaheadCharCode()===102:E!==8)?(this.applyImportPhase(l,a,y,h.start),null):(this.applyImportPhase(l,a,null),this.createIdentifier(h,y))}isPrecedingIdImportPhase(l){let{type:a}=this.state;return _e(a)?a!==94||this.lookaheadCharCode()===102:a!==8}parseImport(l){return this.match(130)?this.parseImportSourceAndAttributes(l):this.parseImportSpecifiersAndAfter(l,this.parseMaybeImportPhase(l,!1))}parseImportSpecifiersAndAfter(l,a){l.specifiers=[];let h=!this.maybeParseDefaultImportSpecifier(l,a)||this.eat(8),y=h&&this.maybeParseStarImportSpecifier(l);return h&&!y&&this.parseNamedImportSpecifiers(l),this.expectContextual(94),this.parseImportSourceAndAttributes(l)}parseImportSourceAndAttributes(l){return l.specifiers??(l.specifiers=[]),l.source=this.parseImportSource(),this.maybeParseImportAttributes(l),this.checkImportPhase(l),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(l,"ImportDeclaration")}parseImportSource(){return this.match(130)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(l,a,h){a.local=this.parseIdentifier(),l.specifiers.push(this.finishImportSpecifier(a,h))}finishImportSpecifier(l,a,h=8201){return this.checkLVal(l.local,{type:a},h),this.finishNode(l,a)}parseImportAttributes(){this.expect(2);let l=[],a=new Set;do{if(this.match(4))break;let h=this.startNode(),y=this.state.value;if(a.has(y)&&this.raise(M.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:y}),a.add(y),this.match(130)?h.key=this.parseStringLiteral(y):h.key=this.parseIdentifier(!0),this.expect(10),!this.match(130))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);h.value=this.parseStringLiteral(this.state.value),l.push(this.finishNode(h,"ImportAttribute"))}while(this.eat(8));return this.expect(4),l}maybeParseImportAttributes(l){let a;if(this.match(72)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),a=this.parseImportAttributes()}else a=[];l.attributes=a}maybeParseDefaultImportSpecifier(l,a){if(a){let h=this.startNodeAtNode(a);return h.local=a,l.specifiers.push(this.finishImportSpecifier(h,"ImportDefaultSpecifier")),!0}else if(tt(this.state.type))return this.parseImportSpecifierLocal(l,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(l){if(this.match(51)){let a=this.startNode();return this.next(),this.expectContextual(89),this.parseImportSpecifierLocal(l,a,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(l){let a=!0;for(this.expect(2);!this.eat(4);){if(a)a=!1;else{if(this.eat(10))throw this.raise(M.DestructureNamedImport,this.state.startLoc);if(this.expect(8),this.eat(4))break}let h=this.startNode(),y=this.match(130),E=this.isContextual(126);h.imported=this.parseModuleExportName();let w=this.parseImportSpecifier(h,y,l.importKind==="type"||l.importKind==="typeof",E,void 0);l.specifiers.push(w)}}parseImportSpecifier(l,a,h,y,E){if(this.eatContextual(89))l.local=this.parseIdentifier();else{let{imported:w}=l;if(a)throw this.raise(M.ImportBindingIsString,l,{importName:w.value});this.checkReservedWord(w.name,l.start,!0,!0),l.local||(l.local=this.cloneIdentifier(w))}return this.finishImportSpecifier(l,"ImportSpecifier",E)}isThisParam(l){return l.type==="Identifier"&&l.name==="this"}},Dp=/in(?:stanceof)?|as|satisfies/y;function MF(l){if(l==null)throw new Error(`Unexpected ${l} value.`);return l}function x2(l){if(!l)throw new Error("Assert fail")}var OF={AbstractMethodHasImplementation:({methodName:l})=>`Method '${l}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:l})=>`Property '${l}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:l})=>`'declare' is not allowed in ${l}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DecoratorAbstractMethod:({kind:l})=>`Decorators can't be used with ${l.startsWith("a")?"an":"a"} ${l}.`,DuplicateAccessibilityModifier:({modifier:l})=>`Accessibility modifier already seen: '${l}'.`,DuplicateModifier:({modifier:l})=>`Duplicate modifier: '${l}'.`,EmptyHeritageClauseType:({token:l})=>`'${l}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ExportAssignmentInTSNamespace:"An export assignment cannot be used in a namespace.",ExportInTSNamespace:"Export declarations are not permitted in a namespace.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportInTSNamespace:"Import declarations in a namespace cannot reference a module.",IncompatibleModifiers:({modifiers:l})=>`'${l[0]}' modifier cannot be used with '${l[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:l})=>`Index signatures cannot have an accessibility modifier ('${l}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InlineModuleDeclarationMustUseString:"`module ... {}` declarations must have a string name. Use `namespace ... {}` instead.",InvalidHeritageClauseType:({token:l})=>`'${l}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:l=>`'${l}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:l})=>`'${l}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:l})=>`'${l}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:l})=>`'${l}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:l=>`'${l}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:l})=>`'${l[0]}' modifier must precede '${l[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NamespaceExportInTSNamespace:"Global module exports may only appear at top level.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:l})=>`Private elements cannot have an accessibility modifier ('${l}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:l})=>`Single type parameter ${l} should have a trailing comma. Example usage: <${l},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterInitializer:"A parameter initializer is only allowed in a function or constructor implementation.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnexpectedTypeDeclaration:l=>`'${l}' declarations can only be declared inside a block.`,UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:l})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${l}.`,UsingDeclarationInAmbientContext:l=>`'${l}' declarations are not allowed in ambient contexts.`},xe=z`typescript`(OF);function _F(l){switch(l){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function b2(l){return l==="private"||l==="public"||l==="protected"}function jF(l){return l==="in"||l==="out"}function gp(l){if(l.extra?.parenthesized)return!1;switch(l.type){case"Identifier":return!0;case"MemberExpression":return!l.computed&&gp(l.object);case"TSInstantiationExpression":return gp(l.expression);default:return!1}}var RF=l=>class extends l{getScopeHandler(){return pF}tsIsIdentifier(){return _e(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(2)||this.match(51)||this.match(17)||this.match(134)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(102)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(a,h,y){if(!_e(this.state.type)&&this.state.type!==54&&this.state.type!==71)return;let E=this.state.value;if(a.includes(E)){if(y&&this.match(102)||h&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return E}}tsParseModifiers({allowedModifiers:a,disallowedModifiers:h,stopOnStartOfClassStaticBlock:y,errorTemplate:E=xe.InvalidModifierOnTypeMember},w){let $=(H,U,oe,De)=>{U===oe&&w[De]&&this.raise(xe.InvalidModifiersOrder,H,{orderedModifiers:[oe,De]})},_=(H,U,oe,De)=>{(w[oe]&&U===De||w[De]&&U===oe)&&this.raise(xe.IncompatibleModifiers,H,{modifiers:[oe,De]})};for(;;){let{startLoc:H}=this.state,U=this.tsParseModifier(a.concat(h??[]),y,w.static);if(!U)break;b2(U)?w.accessibility?this.raise(xe.DuplicateAccessibilityModifier,H,{modifier:U}):($(H,U,U,"override"),$(H,U,U,"static"),$(H,U,U,"readonly"),w.accessibility=U):jF(U)?(w[U]&&this.raise(xe.DuplicateModifier,H,{modifier:U}),w[U]=!0,$(H,U,"in","out")):(b(w,U)?this.raise(xe.DuplicateModifier,H,{modifier:U}):($(H,U,"static","readonly"),$(H,U,"static","override"),$(H,U,"override","readonly"),$(H,U,"abstract","override"),_(H,U,"declare","override"),_(H,U,"static","abstract")),w[U]=!0),h?.includes(U)&&this.raise(E,H,{modifier:U})}}tsIsListTerminator(a){switch(a){case"EnumMembers":case"TypeMembers":return this.match(4);case"HeritageClauseElement":return this.match(2);case"TupleElementTypes":return this.match(1);case"TypeParametersOrArguments":return this.match(44)}}tsParseList(a,h){let y=[];for(;!this.tsIsListTerminator(a);)y.push(h());return y}tsParseDelimitedList(a,h,y){return MF(this.tsParseDelimitedListWorker(a,h,!0,y))}tsParseDelimitedListWorker(a,h,y,E){let w=[],$=-1;for(;!this.tsIsListTerminator(a);){$=-1;let _=h();if(_==null)return;if(w.push(_),this.eat(8)){$=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(a))break;y&&this.expect(8);return}return E&&(E.value=$),w}tsParseBracketedList(a,h,y,E,w){E||(y?this.expect(0):this.expect(43));let $=this.tsParseDelimitedList(a,h,w);return y?this.expect(1):this.expect(44),$}tsParseImportType(){let a=this.startNode();return this.expect(79),this.expect(6),this.match(130)?a.source=this.parseStringLiteral(this.state.value):(this.raise(xe.UnsupportedImportTypeArgument,this.state.startLoc),a.source=this.tsParseNonConditionalType()),this.eat(8)?a.options=this.tsParseImportTypeOptions():a.options=null,this.expect(7),this.eat(12)&&(a.qualifier=this.tsParseEntityName(3)),this.match(43)&&(a.typeArguments=this.tsParseTypeArguments()),this.finishNode(a,"TSImportType")}tsParseImportTypeOptions(){let a=this.startNode();this.expect(2);let h=this.startNode();return this.isContextual(72)?(h.method=!1,h.key=this.parseIdentifier(!0),h.computed=!1,h.shorthand=!1):this.unexpected(null,72),this.expect(10),h.value=this.tsParseImportTypeWithPropertyValue(),a.properties=[this.finishObjectProperty(h)],this.eat(8),this.expect(4),this.finishNode(a,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let a=this.startNode(),h=[];for(this.expect(2);!this.match(4);){let y=this.state.type;_e(y)||y===130?h.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(8)}return a.properties=h,this.next(),this.finishNode(a,"ObjectExpression")}tsParseEntityName(a){let h;if(a&1&&this.match(74))if(a&2)h=this.parseIdentifier(!0);else{let y=this.startNode();this.next(),h=this.finishNode(y,"ThisExpression")}else h=this.parseIdentifier(!!(a&1));for(;this.eat(12);){let y=this.startNodeAtNode(h);y.left=h,y.right=this.parseIdentifier(!!(a&1)),h=this.finishNode(y,"TSQualifiedName")}return h}tsParseTypeReference(){let a=this.startNode();return a.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(a.typeArguments=this.tsParseTypeArguments()),this.finishNode(a,"TSTypeReference")}tsParseThisTypePredicate(a){this.next();let h=this.startNodeAtNode(a);return h.parameterName=a,h.typeAnnotation=this.tsParseTypeAnnotation(!1),h.asserts=!1,this.finishNode(h,"TSTypePredicate")}tsParseThisTypeNode(){let a=this.startNode();return this.next(),this.finishNode(a,"TSThisType")}tsParseTypeQuery(){let a=this.startNode();return this.expect(83),this.match(79)?a.exprName=this.tsParseImportType():a.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(a.typeArguments=this.tsParseTypeArguments()),this.finishNode(a,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xe.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter});tsParseTypeParameter(a){let h=this.startNode();return a(h),h.name=this.tsParseTypeParameterName(),h.constraint=this.tsEatThenParseType(77),h.default=this.tsEatThenParseType(25),this.finishNode(h,"TSTypeParameter")}tsTryParseTypeParameters(a){if(this.match(43))return this.tsParseTypeParameters(a)}tsParseTypeParameters(a){let h=this.startNode();this.match(43)||this.match(138)?this.next():this.unexpected();let y={value:-1};return h.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,a),!1,!0,y),h.params.length===0&&this.raise(xe.EmptyTypeParameters,h),y.value!==-1&&this.addExtra(h,"trailingComma",y.value),this.finishNode(h,"TSTypeParameterDeclaration")}tsFillSignature(a,h){let y=a===15,E="params",w="returnType";h.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(6),h[E]=this.tsParseBindingListForSignature(),y?h[w]=this.tsParseTypeOrTypePredicateAnnotation(a):this.match(a)&&(h[w]=this.tsParseTypeOrTypePredicateAnnotation(a))}tsParseBindingListForSignature(){let a=super.parseBindingList(7,41,2);for(let h of a){let{type:y}=h;(y==="AssignmentPattern"||y==="TSParameterProperty")&&this.raise(xe.UnsupportedSignatureParameterKind,h,{type:y})}return a}tsParseTypeMemberSemicolon(){!this.eat(8)&&!this.isLineTerminator()&&this.expect(9)}tsParseSignatureMember(a,h){return this.tsFillSignature(10,h),this.tsParseTypeMemberSemicolon(),this.finishNode(h,a)}tsIsUnambiguouslyIndexSignature(){return this.next(),_e(this.state.type)?(this.next(),this.match(10)):!1}tsTryParseIndexSignature(a){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let h=this.parseIdentifier();h.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(h),this.expect(1),a.parameters=[h];let y=this.tsTryParseTypeAnnotation();return y&&(a.typeAnnotation=y),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSIndexSignature")}tsParsePropertyOrMethodSignature(a,h){if(this.eat(13)&&(a.optional=!0),this.match(6)||this.match(43)){h&&this.raise(xe.ReadonlyForMethodSignature,a);let y=a;if(y.kind&&this.match(43)&&this.raise(xe.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(10,y),this.tsParseTypeMemberSemicolon(),y.kind==="get")y.params.length>0&&(this.raise(M.BadGetterArity,this.state.curPosition()),this.isThisParam(y.params[0])&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(y.kind==="set"){if(y.params.length!==1)this.raise(M.BadSetterArity,this.state.curPosition());else{let E=y.params[0];this.isThisParam(E)&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()),E.type==="Identifier"&&E.optional&&this.raise(xe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),E.type==="RestElement"&&this.raise(xe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}y.returnType&&this.raise(xe.SetAccessorCannotHaveReturnType,y.returnType)}else y.kind="method";return this.finishNode(y,"TSMethodSignature")}else{let y=a;h&&(y.readonly=!0);let E=this.tsTryParseTypeAnnotation();return E&&(y.typeAnnotation=E),this.tsParseTypeMemberSemicolon(),this.finishNode(y,"TSPropertySignature")}}tsParseTypeMember(){let a=this.startNode();if(this.match(6)||this.match(43))return this.tsParseSignatureMember("TSCallSignatureDeclaration",a);if(this.match(73)){let y=this.startNode();return this.next(),this.match(6)||this.match(43)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",a):(a.key=this.createIdentifier(y,"new"),this.tsParsePropertyOrMethodSignature(a,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},a),this.tsTryParseIndexSignature(a)||(super.parsePropertyName(a),!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.tsTokenCanFollowModifier()&&(a.kind=a.key.name,super.parsePropertyName(a),!this.match(6)&&!this.match(43)&&this.unexpected(null,6)),this.tsParsePropertyOrMethodSignature(a,!!a.readonly))}tsParseTypeLiteral(){let a=this.startNode();return a.members=this.tsParseObjectTypeMembers(),this.finishNode(a,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(2);let a=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(4),a}tsIsStartOfMappedType(){return this.next(),this.eat(49)?this.isContextual(118):(this.isContextual(118)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(54)))}tsParseMappedType(){let a=this.startNode();return this.expect(2),this.match(49)?(a.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(a.readonly=!0),this.expect(0),a.key=this.tsParseTypeParameterName(),a.constraint=this.tsExpectThenParseType(54),a.nameType=this.eatContextual(89)?this.tsParseType():null,this.expect(1),this.match(49)?(a.optional=this.state.value,this.next(),this.expect(13)):this.eat(13)&&(a.optional=!0),a.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(4),this.finishNode(a,"TSMappedType")}tsParseTupleType(){let a=this.startNode();a.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let h=!1;return a.elementTypes.forEach(y=>{let{type:E}=y;h&&E!=="TSRestType"&&E!=="TSOptionalType"&&!(E==="TSNamedTupleMember"&&y.optional)&&this.raise(xe.OptionalTypeBeforeRequired,y),h||(h=E==="TSNamedTupleMember"&&y.optional||E==="TSOptionalType")}),this.finishNode(a,"TSTupleType")}tsParseTupleElementType(){let a=this.state.startLoc,h=this.eat(17),{startLoc:y}=this.state,E,w,$,_,H=tt(this.state.type)?this.lookaheadCharCode():null;if(H===58)E=!0,$=!1,w=this.parseIdentifier(!0),this.expect(10),_=this.tsParseType();else if(H===63){$=!0;let U=this.state.value,oe=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(E=!0,w=this.createIdentifier(this.startNodeAt(y),U),this.expect(13),this.expect(10),_=this.tsParseType()):(E=!1,_=oe,this.expect(13))}else _=this.tsParseType(),$=this.eat(13),E=this.eat(10);if(E){let U;w?(U=this.startNodeAt(y),U.optional=$,U.label=w,U.elementType=_,this.eat(13)&&(U.optional=!0,this.raise(xe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(U=this.startNodeAt(y),U.optional=$,this.raise(xe.InvalidTupleMemberLabel,_),U.label=_,U.elementType=this.tsParseType()),_=this.finishNode(U,"TSNamedTupleMember")}else if($){let U=this.startNodeAt(y);U.typeAnnotation=_,_=this.finishNode(U,"TSOptionalType")}if(h){let U=this.startNodeAt(a);U.typeAnnotation=_,_=this.finishNode(U,"TSRestType")}return _}tsParseParenthesizedType(){let a=this.startNode();return this.expect(6),a.typeAnnotation=this.tsParseType(),this.expect(7),this.finishNode(a,"TSParenthesizedType")}tsParseFunctionOrConstructorType(a,h){let y=this.startNode();return a==="TSConstructorType"&&(y.abstract=!!h,h&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(15,y)),this.finishNode(y,a)}tsParseLiteralTypeNode(){let a=this.startNode();switch(this.state.type){case 131:case 132:case 130:case 81:case 82:a.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(a,"TSLiteralType")}tsParseTemplateLiteralType(){let a=this.state.startLoc,h=this.parseTemplateElement(!1),y=[h];if(h.tail){let E=this.startNodeAt(a),w=this.startNodeAt(a);return w.expressions=[],w.quasis=y,E.literal=this.finishNode(w,"TemplateLiteral"),this.finishNode(E,"TSLiteralType")}else{let E=[];for(;!h.tail;)E.push(this.tsParseType()),this.readTemplateContinuation(),y.push(h=this.parseTemplateElement(!1));let w=this.startNodeAt(a);return w.types=E,w.quasis=y,this.finishNode(w,"TSTemplateLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let a=this.tsParseThisTypeNode();return this.isContextual(112)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(a):a}tsParseNonArrayType(){switch(this.state.type){case 130:case 131:case 132:case 81:case 82:return this.tsParseLiteralTypeNode();case 49:if(this.state.value==="-"){let a=this.startNode(),h=this.lookahead();return h.type!==131&&h.type!==132&&this.unexpected(),a.literal=this.parseMaybeUnary(),this.finishNode(a,"TSLiteralType")}break;case 74:return this.tsParseThisTypeOrThisTypePredicate();case 83:return this.tsParseTypeQuery();case 79:return this.tsParseImportType();case 2:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 6:if(!(this.optionFlags&2048)){let a=this.state.startLoc;this.next();let h=this.tsParseType();return this.expect(7),this.addExtra(h,"parenthesized",!0),this.addExtra(h,"parenStart",a.index),h}return this.tsParseParenthesizedType();case 21:case 20:return this.tsParseTemplateLiteralType();default:{let{type:a}=this.state;if(_e(a)||a===84||a===80){let h=a===84?"TSVoidKeyword":a===80?"TSNullKeyword":_F(this.state.value);if(h!==void 0&&this.lookaheadCharCode()!==46){let y=this.startNode();return this.next(),this.finishNode(y,h)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:a}=this.state,h=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(1)){let y=this.startNodeAt(a);y.elementType=h,this.expect(1),h=this.finishNode(y,"TSArrayType")}else{let y=this.startNodeAt(a);y.objectType=h,y.indexType=this.tsParseType(),this.expect(1),h=this.finishNode(y,"TSIndexedAccessType")}return h}tsParseTypeOperator(){let a=this.startNode(),h=this.state.value;return this.next(),a.operator=h,a.typeAnnotation=this.tsParseTypeOperatorOrHigher(),h==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(a),this.finishNode(a,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(a){switch(a.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xe.UnexpectedReadonly,a)}}tsParseInferType(){let a=this.startNode();this.expectContextual(111);let h=this.startNode();return h.name=this.tsParseTypeParameterName(),h.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),a.typeParameter=this.finishNode(h,"TSTypeParameter"),this.finishNode(a,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(77)){let a=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(13))return a}}tsParseTypeOperatorOrHigher(){return wr(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(111)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(a,h,y){let E=this.startNode(),w=this.eat(y),$=[];do $.push(h());while(this.eat(y));return $.length===1&&!w?$[0]:(E.types=$,this.finishNode(E,a))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),41)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),39)}tsIsStartOfFunctionType(){return this.match(43)?!0:this.match(6)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(_e(this.state.type)||this.match(74))return this.next(),!0;if(this.match(2)){let{errors:a}=this.state,h=a.length;try{return this.parseObjectLike(4,!0),a.length===h}catch{return!1}}if(this.match(0)){this.next();let{errors:a}=this.state,h=a.length;try{return super.parseBindingList(1,93,1),a.length===h}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(7)||this.match(17)||this.tsSkipParameterStart()&&(this.match(10)||this.match(8)||this.match(13)||this.match(25)||this.match(7)&&(this.next(),this.match(15))))}tsParseTypeOrTypePredicateAnnotation(a){return this.tsInType(()=>{let h=this.startNode();this.expect(a);let y=this.startNode(),E=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(E&&this.match(74)){let _=this.tsParseThisTypeOrThisTypePredicate();return _.type==="TSThisType"?(y.parameterName=_,y.asserts=!0,y.typeAnnotation=null,_=this.finishNode(y,"TSTypePredicate")):(this.resetStartLocationFromNode(_,y),_.asserts=!0),h.typeAnnotation=_,this.finishNode(h,"TSTypeAnnotation")}let w=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!w)return E?(y.parameterName=this.parseIdentifier(),y.asserts=E,y.typeAnnotation=null,h.typeAnnotation=this.finishNode(y,"TSTypePredicate"),this.finishNode(h,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,h);let $=this.tsParseTypeAnnotation(!1);return y.parameterName=w,y.typeAnnotation=$,y.asserts=E,h.typeAnnotation=this.finishNode(y,"TSTypePredicate"),this.finishNode(h,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(10))return this.tsParseTypeOrTypePredicateAnnotation(10)}tsTryParseTypeAnnotation(){if(this.match(10))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(10)}tsParseTypePredicatePrefix(){let a=this.parseIdentifier();if(this.isContextual(112)&&!this.hasPrecedingLineBreak())return this.next(),a}tsParseTypePredicateAsserts(){if(this.state.type!==105)return!1;let a=this.state.containsEsc;return this.next(),!_e(this.state.type)&&!this.match(74)?!1:(a&&this.raise(M.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(a=!0,h=this.startNode()){return this.tsInType(()=>{a&&this.expect(10),h.typeAnnotation=this.tsParseType()}),this.finishNode(h,"TSTypeAnnotation")}tsParseType(){x2(this.state.inType);let a=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(77))return a;let h=this.startNodeAtNode(a);return h.checkType=a,h.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(13),h.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(10),h.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(h,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(73)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xe.ReservedTypeAssertion,this.state.startLoc);let a=this.startNode();return a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71)?this.tsParseTypeReference():this.tsParseType())),this.expect(44),a.expression=this.parseMaybeUnary(),this.finishNode(a,"TSTypeAssertion")}tsParseHeritageClause(a){let h=this.state.startLoc,y=this.tsParseDelimitedList("HeritageClauseElement",()=>{let E=(this.state.canStartArrow=!1,super.parseExprSubscripts());gp(E)||this.raise(xe.InvalidHeritageClauseType,E.start,{token:a});let w=a==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(E.type==="TSInstantiationExpression")return E.type=w,E;let $=this.startNodeAtNode(E);return $.expression=E,(this.match(43)||this.match(47))&&($.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode($,w)});return y.length||this.raise(xe.EmptyHeritageClauseType,h,{token:a}),y}tsParseInterfaceDeclaration(a,h={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),h.declare&&(a.declare=!0),_e(this.state.type)?(a.id=this.parseIdentifier(),this.checkIdentifier(a.id,130)):(a.id=null,this.raise(xe.MissingInterfaceName,this.state.startLoc)),a.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(77)&&(a.extends=this.tsParseHeritageClause("extends"));let y=this.startNode();return y.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),a.body=this.finishNode(y,"TSInterfaceBody"),this.finishNode(a,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(a){return a.id=this.parseIdentifier(),this.checkIdentifier(a.id,2),a.typeAnnotation=this.tsInType(()=>{if(a.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(25),this.isContextual(110)&&this.lookaheadCharCode()!==46){let h=this.startNode();return this.next(),this.finishNode(h,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(a,"TSTypeAliasDeclaration")}tsInTopLevelContext(a){if(this.curContext()!==st.brace){let h=this.state.context;this.state.context=[h[0]];try{return a()}finally{this.state.context=h}}else return a()}tsInType(a){let h=this.state.inType;this.state.inType=!0;try{return a()}finally{this.state.inType=h}}tsInDisallowConditionalTypesContext(a){let h=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return a()}finally{this.state.inDisallowConditionalTypesContext=h}}tsInAllowConditionalTypesContext(a){let h=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return a()}finally{this.state.inDisallowConditionalTypesContext=h}}tsEatThenParseType(a){if(this.match(a))return this.tsNextThenParseType()}tsExpectThenParseType(a){return this.tsInType(()=>(this.expect(a),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let a=this.startNode();return a.id=this.match(130)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(25)&&(a.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(a,"TSEnumMember")}tsParseEnumDeclaration(a,h={}){return h.const&&(a.const=!0),h.declare&&(a.declare=!0),this.expectContextual(122),a.id=this.parseIdentifier(),this.checkIdentifier(a.id,a.const?8971:8459),a.body=this.tsParseEnumBody(),this.finishNode(a,"TSEnumDeclaration")}tsParseEnumBody(){let a=this.startNode();return this.expect(2),a.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(4),this.finishNode(a,"TSEnumBody")}tsParseModuleBlock(a){let h=this.startNode();return a||this.scope.enter(0),this.expect(2),super.parseBlockOrModuleBlockBody(h.body=[],void 0,!0,4),a||this.scope.exit(),this.finishNode(h,"TSModuleBlock")}tsParseNamespaceDeclaration(a){return a.id=this.tsParseEntityName(0),a.id.type==="Identifier"&&this.checkIdentifier(a.id,1024),this.scope.enter(2048),this.prodParam.enter(0),a.body=this.tsParseModuleBlock(!1),this.prodParam.exit(),this.scope.exit(),this.finishNode(a,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(a){let h=this.isContextual(108);return h?(a.kind="global",a.id=this.parseIdentifier()):(a.kind="module",a.id=super.parseStringLiteral(this.state.value)),this.match(2)?(h||this.scope.enter(1024),this.prodParam.enter(0),a.body=this.tsParseModuleBlock(h),this.prodParam.exit(),h||this.scope.exit()):this.semicolon(),this.finishNode(a,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(a,h){a.id=h||this.parseIdentifier(),this.checkIdentifier(a.id,4096),this.expect(25);let y=this.tsParseModuleReference();return a.importKind==="type"&&y.type!=="TSExternalModuleReference"&&this.raise(xe.ImportAliasHasImportType,y),a.moduleReference=y,this.semicolon(),this.finishNode(a,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(115)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let a=this.startNode();return this.expectContextual(115),this.expect(6),this.match(130)||this.unexpected(),a.expression=super.parseExprAtom(),this.expect(7),this.sawUnambiguousESM=!0,this.finishNode(a,"TSExternalModuleReference")}tsLookAhead(a){let h=this.state.clone(),y=a();return this.state=h,y}tsTryParseAndCatch(a){let h=this.tryParse(y=>a()||y());if(!(h.aborted||!h.node))return h.error&&(this.state=h.failState),h.node}tsTryParse(a){let h=this.state.clone(),y=a();if(y!==void 0&&y!==!1)return y;this.state=h}tsTryParseDeclare(a){if(this.isLineTerminator())return;let h=this.state.type;return this.tsInAmbientContext(()=>{switch(h){case 64:return a.declare=!0,super.parseFunctionStatement(a,!1,!1);case 76:return a.declare=!0,this.parseClass(a,!0,!1);case 122:return this.tsParseEnumDeclaration(a,{declare:!0});case 108:return this.tsParseAmbientExternalModuleDeclaration(a);case 96:if(this.state.containsEsc)return;case 71:case 70:return!this.match(71)||!this.isLookaheadContextual("enum")?(a.declare=!0,this.parseVarStatement(a,this.state.value,!0)):(this.expect(71),this.tsParseEnumDeclaration(a,{const:!0,declare:!0}));case 103:if(this.isUsing())return this.raise(xe.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),a.declare=!0,this.parseVarStatement(a,"using",!0);break;case 92:if(this.isAwaitUsing())return this.raise(xe.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),a.declare=!0,this.next(),this.parseVarStatement(a,"await using",!0);break;case 125:{let y=this.tsParseInterfaceDeclaration(a,{declare:!0});if(y)return y}default:if(_e(h))return this.tsParseDeclaration(a,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(a,h,y,E){switch(h){case 120:if(this.tsCheckLineTerminator(y)&&(this.match(76)||_e(this.state.type)))return this.tsParseAbstractDeclaration(a,E);break;case 123:if(this.tsCheckLineTerminator(y))return this.tsParseAmbientExternalModuleDeclaration(a);break;case 124:if(this.tsCheckLineTerminator(y)&&_e(this.state.type))return a.kind="namespace",this.tsParseNamespaceDeclaration(a);break;case 126:if(this.tsCheckLineTerminator(y)&&_e(this.state.type))return this.tsParseTypeAliasDeclaration(a);break}}tsCheckLineTerminator(a){return a?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(a){if(!this.match(43))return;let h=this.tsTryParseAndCatch(()=>{let y=this.startNodeAt(a);return y.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(y),y.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(15),y});if(h)return super.parseArrowExpression(h,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===43)return this.tsParseTypeArguments()}tsParseTypeArguments(){let a=this.startNode();return a.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(43),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),a.params.length===0?this.raise(xe.EmptyTypeArguments,a):!this.state.inType&&this.curContext()===st.brace&&this.reScan_lt_gt(),this.expect(44),this.finishNode(a,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Dt(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(a,h){let y=h.length?null:this.state.startLoc,E={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},E);let w=E.accessibility,$=E.override,_=E.readonly;!(a&4)&&(w||_||$)&&this.raise(xe.UnexpectedParameterModifier,y||h[0]);let H=this.state.startLoc,U=this.parseMaybeDefault(H);a&2&&this.parseFunctionParamType(U);let oe=this.parseMaybeDefault(H,U);if(w||_||$){let De=y?this.startNodeAt(y):this.startNodeAtNode(h[0]);return h.length?De.decorators=h:this.setLoc(y),w&&(De.accessibility=w),_&&(De.readonly=_),$&&(De.override=$),oe.type!=="Identifier"&&oe.type!=="AssignmentPattern"&&this.raise(xe.UnsupportedParameterPropertyKind,y||h[0]),De.parameter=oe,this.finishNode(De,"TSParameterProperty")}return h.length&&(U.decorators=h),oe}isSimpleParameter(a){return a.type==="TSParameterProperty"&&super.isSimpleParameter(a.parameter)||super.isSimpleParameter(a)}tsDisallowOptionalPattern(a){for(let h of a.params)h.type!=="Identifier"&&h.optional&&!this.state.isAmbientContext&&this.raise(xe.PatternIsOptional,h)}setArrowFunctionParameters(a,h,y){super.setArrowFunctionParameters(a,h,y),this.tsDisallowOptionalPattern(a)}parseFunctionBodyAndFinish(a,h,y=!1){this.match(10)&&(a.returnType=this.tsParseTypeOrTypePredicateAnnotation(10));let E=h==="FunctionDeclaration"?"TSDeclareFunction":h==="ClassMethod"||h==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(E&&!this.match(2)&&this.isLineTerminator()){if(E==="TSDeclareMethod"&&a.kind==="constructor")for(let w of a.params)w.type==="TSParameterProperty"?this.raise(xe.UnexpectedParameterModifier,w):w.type==="AssignmentPattern"&&this.raise(xe.UnexpectedParameterInitializer,w);else for(let w of a.params)w.type==="AssignmentPattern"&&this.raise(xe.UnexpectedParameterInitializer,w);return this.finishNode(a,E)}return E&&this.state.isAmbientContext&&(this.raise(xe.DeclareFunctionHasImplementation,this.state.startLoc),E==="TSDeclareFunction"&&a.declare)?super.parseFunctionBodyAndFinish(a,E,y):(this.tsDisallowOptionalPattern(a),super.parseFunctionBodyAndFinish(a,h,y))}registerFunctionStatementId(a){!a.body&&a.id?this.checkIdentifier(a.id,1024):super.registerFunctionStatementId(a)}tsCheckForInvalidTypeCasts(a){a.forEach(h=>{h?.type==="TSTypeCastExpression"&&this.raise(xe.UnexpectedTypeAnnotation,h.typeAnnotation)})}toReferencedList(a,h){return this.tsCheckForInvalidTypeCasts(a),a}parseArrayLike(a,h){let y=super.parseArrayLike(a,h);return y.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(y.elements),y}parseSubscript(a,h,y,E){if(!this.hasPrecedingLineBreak()&&this.match(31)){this.state.canStartJSXElement=!1,this.next();let $=this.startNodeAt(h);return $.expression=a,this.finishNode($,"TSNonNullExpression")}let w=!1;if(this.match(14)&&this.lookaheadCharCode()===60){if(y)return E.stop=!0,a;E.optionalChainMember=w=!0,this.next()}if(this.match(43)||this.match(47)){let $,_=this.tsTryParseAndCatch(()=>{if(!y&&this.atPossibleAsyncArrow(a)){let De=this.tsTryParseGenericAsyncArrowFunction(h);if(De)return E.stop=!0,De}let H=this.tsParseTypeArgumentsInExpression();if(!H)return;if(w&&!this.match(6)){$=this.state.curPosition();return}if(mn(this.state.type)){let De=super.parseTaggedTemplateExpression(a,h,E);return De.typeArguments=H,De}if(!y&&this.eat(6)){let De=this.startNodeAt(h);return De.callee=a,De.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(De.arguments),De.typeArguments=H,E.optionalChainMember&&(De.optional=w),this.finishCallExpression(De,E.optionalChainMember)}let U=this.state.type;if(U===44||U===48||U!==6&&U!==89&&U!==116&&le(U)&&!this.hasPrecedingLineBreak())return;let oe=this.startNodeAt(h);return oe.expression=a,oe.typeArguments=H,this.finishNode(oe,"TSInstantiationExpression")});if($&&this.unexpected($,6),_)return _.type==="TSInstantiationExpression"&&((this.match(12)||this.match(14)&&this.lookaheadCharCode()!==40)&&this.raise(xe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(12)&&!this.match(14)&&(_.expression=super.stopParseSubscript(a,E))),_}return super.parseSubscript(a,h,y,E)}parseNewCallee(a){super.parseNewCallee(a);let{callee:h}=a;h.type==="TSInstantiationExpression"&&!h.extra?.parenthesized&&(a.typeArguments=h.typeArguments,a.callee=h.expression)}parseExprOp(a,h,y){let E;if(Ht(54)>y&&!this.hasPrecedingLineBreak()&&(this.isContextual(89)||(E=this.isContextual(116)))){let w=this.startNodeAt(h);w.expression=a,w.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71)?(E&&this.raise(M.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()));let $=this.finishNode(w,E?"TSSatisfiesExpression":"TSAsExpression");return this.reScan_lt_gt(),this.parseExprOp($,h,y)}return super.parseExprOp(a,h,y)}checkReservedWord(a,h,y,E){this.state.isAmbientContext||super.checkReservedWord(a,h,y,E)}checkDuplicateExports(){}isPotentialImportPhase(a){if(super.isPotentialImportPhase(a))return!0;if(this.isContextual(126)){let h=this.lookaheadCharCode();return a?h===123||h===42:h!==61}return!a&&this.isContextual(83)}applyImportPhase(a,h,y,E){super.applyImportPhase(a,h,y,E),h?a.exportKind=y==="type"?"type":"value":a.importKind=y==="type"||y==="typeof"?y:"value"}parseImport(a){if(this.match(130))return a.importKind="value",this.scope.inTSNamespace&&this.raise(xe.ImportInTSNamespace,a),super.parseImport(a);let h;if(_e(this.state.type)&&this.lookaheadCharCode()===61){a.importKind="value";let y=this.tsParseImportEqualsDeclaration(a);return this.scope.inTSNamespace&&y.moduleReference.type==="TSExternalModuleReference"&&this.raise(xe.ImportInTSNamespace,a),y}else if(this.isContextual(126)){let y=this.parseMaybeImportPhase(a,!1);if(this.lookaheadCharCode()===61)return this.scope.inTSNamespace&&this.raise(xe.ImportInTSNamespace,a),this.tsParseImportEqualsDeclaration(a,y);h=super.parseImportSpecifiersAndAfter(a,y)}else h=super.parseImport(a);return h.importKind==="type"&&h.specifiers.length>1&&h.specifiers[0].type==="ImportDefaultSpecifier"?this.raise(xe.TypeImportCannotSpecifyDefaultAndNamed,h):this.scope.inTSNamespace&&this.raise(xe.ImportInTSNamespace,h),h}parseExport(a,h){if(this.match(79)){let y=this.startNode();this.next();let E=null;this.isContextual(126)&&this.isPotentialImportPhase(!1)?E=this.parseMaybeImportPhase(y,!1):y.importKind="value";let w=this.tsParseImportEqualsDeclaration(y,E);return a.attributes=[],a.declaration=w,a.exportKind="value",a.source=null,a.specifiers=[],this.finishNode(a,"ExportNamedDeclaration")}else if(this.eat(25)){let y=a;return y.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.scope.inTSNamespace&&this.raise(xe.ExportAssignmentInTSNamespace,y),this.finishNode(y,"TSExportAssignment")}else if(this.eatContextual(89)){let y=a;return this.expectContextual(124),y.id=this.parseIdentifier(),this.checkIdentifier(y.id,8201),this.semicolon(),this.scope.inTSNamespace&&this.raise(xe.NamespaceExportInTSNamespace,y),this.finishNode(y,"TSNamespaceExportDeclaration")}else{let y=super.parseExport(a,h);return this.scope.inTSNamespace&&(y.type!=="ExportNamedDeclaration"||y.source||!y.declaration&&!this.state.isAmbientContext)&&this.raise(xe.ExportInTSNamespace,y),y}}isAbstractClass(){return this.isContextual(120)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let a=this.startNode();return this.next(),a.abstract=!0,this.parseClass(a,!0,!0)}if(this.match(125)){let a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a}return super.parseExportDefaultExpression()}parseVarStatement(a,h,y=!1){let{isAmbientContext:E}=this.state,w=super.parseVarStatement(a,h,y||E);if(!E)return w;if(!a.declare&&(h==="using"||h==="await using"))return this.raiseOverwrite(xe.UsingDeclarationInAmbientContext,a,h),w;for(let{id:$,init:_}of w.declarations)_&&(h==="var"||h==="let"||$.typeAnnotation?this.raise(xe.InitializerNotAllowedInAmbientContext,_):UF(_,this.hasPlugin("estree"))||this.raise(xe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,_));return w}parseStatementContent(a,h){let y=!!(a&2);if(!this.state.containsEsc)switch(this.state.type){case 71:{if(this.isLookaheadContextual("enum")){let E=this.startNode();return this.next(),this.tsParseEnumDeclaration(E,{const:!0})}break}case 120:case 121:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let E=this.state.type,w=this.startNode();this.next();let $=E===121?this.tsTryParseDeclare(w):this.tsParseAbstractDeclaration(w,h);return $?(E===121&&($.declare=!0),$):(w.expression=this.createIdentifier(this.startNodeAtNode(w),E===121?"declare":"abstract"),this.semicolon(!1),this.finishNode(w,"ExpressionStatement"))}break}case 122:return this.tsParseEnumDeclaration(this.startNode());case 108:{if(this.lookaheadCharCode()===123){let E=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(E)}break}case 125:{let E=this.tsParseInterfaceDeclaration(this.startNode());if(E)return y||this.raise(xe.UnexpectedTypeDeclaration,E,"interface"),E;break}case 123:{if(this.nextTokenIsStringLiteralOnSameLine()){let E=this.startNode();return this.next(),this.tsParseDeclaration(E,123,!1,h)}else if(this.nextTokenIsIdentifierOnSameLine()){this.raise(xe.InlineModuleDeclarationMustUseString,this.state.startLoc);let E=this.startNode();return this.next(),this.tsParseDeclaration(E,124,!1,h)}break}case 124:{if(this.nextTokenIsIdentifierOnSameLine()){let E=this.startNode();return this.next(),this.tsParseDeclaration(E,124,!1,h)}break}case 126:{if(this.nextTokenIsIdentifierOnSameLine()){let E=this.startNode();return y||this.raise(xe.UnexpectedTypeDeclaration,E,"type"),this.next(),this.tsParseTypeAliasDeclaration(E)}break}}return super.parseStatementContent(a,h)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(a,h){return h.some(y=>b2(y)?a.accessibility===y:!!a[y])}tsIsStartOfStaticBlocks(){return this.isContextual(102)&&this.lookaheadCharCode()===123}parseClassMember(a,h,y){let E=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:E,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xe.InvalidModifierOnTypeParameterPositions},h);let w=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(h,E)&&this.raise(xe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(a,h)):this.parseClassMemberWithIsStatic(a,h,y,!!h.static)};h.declare?this.tsInAmbientContext(w):w(),h.decorators&&h.decorators.length>0&&!this.hasPlugin("decorators-legacy")&&(h.type==="TSAbstractMethodDefinition"||h.type==="TSDeclareMethod"?this.raise(xe.DecoratorAbstractMethod,h,{kind:"abstract method"}):(h.type==="ClassProperty"&&h.abstract||h.type==="ClassProperty"&&h.declare||h.type==="TSAbstractPropertyDefinition"||h.type==="PropertyDefinition"&&h.declare)&&this.raise(xe.DecoratorAbstractMethod,h,{kind:h.declare?"declare field":"abstract field"}))}parseClassMemberWithIsStatic(a,h,y,E){let w=this.tsTryParseIndexSignature(h);if(w){a.body.push(w),h.abstract&&this.raise(xe.IndexSignatureHasAbstract,h),h.accessibility&&this.raise(xe.IndexSignatureHasAccessibility,h,{modifier:h.accessibility}),h.declare&&this.raise(xe.IndexSignatureHasDeclare,h),h.override&&this.raise(xe.IndexSignatureHasOverride,h);return}!this.state.inAbstractClass&&h.abstract&&this.raise(xe.NonAbstractClassHasAbstractMethod,h),h.override&&(y.hadSuperClass||this.raise(xe.OverrideNotInSubClass,h)),super.parseClassMemberWithIsStatic(a,h,y,E)}parsePostMemberNameModifiers(a){this.eat(13)&&(a.optional=!0),a.readonly&&this.match(6)&&this.raise(xe.ClassMethodHasReadonly,a),a.declare&&this.match(6)&&this.raise(xe.ClassMethodHasDeclare,a)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(a,h,y){if(!this.match(13))return a;if(y!=null){let $=this.lookaheadCharCode();if($===44||$===61||$===58||$===41)return this.setOptionalParametersError(y),a}this.next();let E=this.startNodeAt(h);E.test=a;let w=this.state.inConditionalConsequent;return this.state.inConditionalConsequent=!0,E.consequent=this.parseMaybeAssignAllowIn(),this.state.inConditionalConsequent=w,this.expect(10),E.alternate=this.parseMaybeAssign(),this.finishNode(E,"ConditionalExpression")}parseParenItem(a,h){let y=super.parseParenItem(a,h);if(this.eat(13)&&(y.optional=!0,this.resetEndLocation(a)),this.match(10)){let E=this.startNodeAt(h);return E.expression=a,E.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(E,"TSTypeCastExpression")}return a}parseExportDeclaration(a){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(a));let h=this.state.startLoc,y=this.eatContextual(121);if(y&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(xe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let E=_e(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(a);return E?((E.type==="TSInterfaceDeclaration"||E.type==="TSTypeAliasDeclaration"||y)&&(a.exportKind="type"),y&&E.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(E,h),E.declare=!0),E):null}parseClassId(a,h,y,E){if((!h||y)&&this.isContextual(109)){a.id=null;return}super.parseClassId(a,h,y,a.declare?1024:8331);let w=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);w&&(a.typeParameters=w)}parseClassPropertyAnnotation(a){a.optional||(this.eat(31)?a.definite=!0:this.eat(13)&&(a.optional=!0));let h=this.tsTryParseTypeAnnotation();h&&(a.typeAnnotation=h)}parseClassProperty(a){if(this.parseClassPropertyAnnotation(a),this.state.isAmbientContext&&!(a.readonly&&!a.typeAnnotation)&&this.match(25)&&this.raise(xe.DeclareClassFieldHasInitializer,this.state.startLoc),a.abstract&&this.match(25)){let{key:h}=a;this.raise(xe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:h.type==="Identifier"&&!a.computed?h.name:`[${this.input.slice(this.offsetToSourcePos(h.start),this.offsetToSourcePos(h.end))}]`})}return super.parseClassProperty(a)}parseClassPrivateProperty(a){return a.abstract&&this.raise(xe.PrivateElementHasAbstract,a),a.accessibility&&this.raise(xe.PrivateElementHasAccessibility,a,{modifier:a.accessibility}),this.parseClassPropertyAnnotation(a),super.parseClassPrivateProperty(a)}parseClassAccessorProperty(a){return this.parseClassPropertyAnnotation(a),a.optional&&this.raise(xe.AccessorCannotBeOptional,a),super.parseClassAccessorProperty(a)}pushClassMethod(a,h,y,E,w,$){let _=this.tsTryParseTypeParameters(this.tsParseConstModifier);_&&w&&this.raise(xe.ConstructorHasTypeParameters,_);let{declare:H=!1,kind:U}=h;H&&(U==="get"||U==="set")&&this.raise(xe.DeclareAccessor,h,{kind:U}),_&&(h.typeParameters=_),super.pushClassMethod(a,h,y,E,w,$)}pushClassPrivateMethod(a,h,y,E){let w=this.tsTryParseTypeParameters(this.tsParseConstModifier);w&&(h.typeParameters=w),super.pushClassPrivateMethod(a,h,y,E)}declareClassPrivateMethodInScope(a,h){a.type!=="TSDeclareMethod"&&(a.type==="MethodDefinition"&&a.value.body==null||super.declareClassPrivateMethodInScope(a,h))}parseClassSuper(a){if(super.parseClassSuper(a),a.superClass)if(a.superClass.type==="TSInstantiationExpression"){let h=a.superClass,y=h.expression;this.takeSurroundingComments(y,y.start,y.end);let E=h.typeArguments;this.takeSurroundingComments(E,E.start,E.end),a.superClass=y,a.superTypeArguments=E}else(this.match(43)||this.match(47))&&(a.superTypeArguments=this.tsParseTypeArgumentsInExpression());this.eatContextual(109)&&(a.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(a,h,y,E,w,$,_){let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);return H&&(a.typeParameters=H),super.parseObjPropValue(a,h,y,E,w,$,_)}parseFunctionParams(a,h){let y=this.tsTryParseTypeParameters(this.tsParseConstModifier);y&&(a.typeParameters=y),super.parseFunctionParams(a,h)}parseVarId(a,h){super.parseVarId(a,h),a.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(31)&&(a.definite=!0);let y=this.tsTryParseTypeAnnotation();y&&(a.id.typeAnnotation=y,this.resetEndLocation(a.id))}parseAsyncArrowFromCallExpression(a,h){return this.match(10)&&(a.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(a,h)}parseMaybeAssign(a,h){let y,E,w;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(y=this.state.clone(),E=this.tryParse(()=>super.parseMaybeAssign(a,h),y),!E.error)return E.node;let{context:H}=this.state,U=H[H.length-1];(U===st.j_oTag||U===st.j_expr)&&H.pop()}if(!E?.error&&!this.match(43))return super.parseMaybeAssign(a,h);(!y||y===this.state)&&(y=this.state.clone());let $,_=this.tryParse(H=>{$=this.tsParseTypeParameters(this.tsParseConstModifier);let U=super.parseMaybeAssign(a,h);if((U.type!=="ArrowFunctionExpression"||U.extra?.parenthesized)&&H(),$?.params.length!==0&&this.resetStartLocationFromNode(U,$),U.typeParameters=$,this.hasPlugin("jsx")&&U.typeParameters.params.length===1&&!U.typeParameters.extra?.trailingComma){let oe=U.typeParameters.params[0];oe.constraint||this.raise(xe.SingleTypeParameterWithoutTrailingComma,this.optionFlags&256?v(oe.loc.end,1):oe,{typeParameterName:oe.name.name})}return U},y);if(!_.error&&!_.aborted)return $&&this.reportReservedArrowTypeParam($),_.node;if(!E&&(x2(!this.hasPlugin("jsx")),w=this.tryParse(()=>super.parseMaybeAssign(a,h),y),!w.error))return w.node;if(E?.node)return this.state=E.failState,E.node;if(_.node)return this.state=_.failState,$&&this.reportReservedArrowTypeParam($),_.node;if(w?.node)return this.state=w.failState,w.node;throw E?.error||_.error||w?.error}reportReservedArrowTypeParam(a){a.params.length===1&&!a.params[0].constraint&&!a.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xe.ReservedArrowTypeParam,a)}parseMaybeUnary(a,h){return!this.hasPlugin("jsx")&&this.match(43)?this.tsParseTypeAssertion():super.parseMaybeUnary(a,h)}parseArrow(a){if(this.match(10)){let h=this.tryParse(y=>{let E=this.tsParseTypeOrTypePredicateAnnotation(10);return(this.canInsertSemicolon()||!this.match(15))&&y(),E});if(h.aborted)return;h.thrown||(h.error&&(this.state=h.failState),a.returnType=h.node)}return super.parseArrow(a)}parseFunctionParamType(a){this.eat(13)&&(a.optional=!0);let h=this.tsTryParseTypeAnnotation();return h&&(a.typeAnnotation=h),this.resetEndLocation(a),a}isAssignable(a,h){switch(a.type){case"TSTypeCastExpression":return this.isAssignable(a.expression,h);case"TSParameterProperty":return!0;default:return super.isAssignable(a,h)}}toAssignable(a,h=!1){switch(a.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(a,h);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":h?this.expressionScope.recordArrowParameterBindingError(xe.UnexpectedTypeCastInParameter,a):this.raise(xe.UnexpectedTypeCastInParameter,a),this.toAssignable(a.expression,h);break;case"AssignmentExpression":!h&&a.left.type==="TSTypeCastExpression"&&(a.left=this.typeCastToParameter(a.left));default:super.toAssignable(a,h)}}toAssignableParenthesizedExpression(a,h){switch(a.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(a.expression,h);break;default:super.toAssignable(a,h)}}checkToRestConversion(a,h){switch(a.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(a.expression,!1);break;default:super.checkToRestConversion(a,h)}}isValidLVal(a,h,y,E){switch(a){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(E!==64||!y)&&["expression",!0];default:return super.isValidLVal(a,h,y,E)}}parseBindingAtom(){return this.state.type===74?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(a,h){if(this.match(43)||this.match(47)){let y=this.tsParseTypeArgumentsInExpression();if(this.match(6)){let E=super.parseMaybeDecoratorArguments(a,h);return E.typeArguments=y,E}this.unexpected(null,6)}return super.parseMaybeDecoratorArguments(a,h)}checkCommaAfterRest(a){return this.state.isAmbientContext&&this.match(8)&&this.lookaheadCharCode()===a?(this.next(),!1):super.checkCommaAfterRest(a)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(31)||this.match(10)||super.isClassProperty()}parseMaybeDefault(a,h){let y=super.parseMaybeDefault(a,h);return y.type==="AssignmentPattern"&&y.typeAnnotation&&y.right.start<y.typeAnnotation.start&&this.raise(xe.TypeAnnotationAfterAssign,y.typeAnnotation),y}getTokenFromCode(a){if(this.state.inType){if(a===62){this.finishOp(44,1);return}if(a===60){this.finishOp(43,1);return}}super.getTokenFromCode(a)}reScan_lt_gt(){let{type:a}=this.state;a===43?(this.state.pos-=1,this.readToken_lt()):a===44&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:a}=this.state;return a===47?(this.state.pos-=2,this.finishOp(43,1),43):a}toAssignableListItem(a,h,y){let E=a[h];E.type==="TSTypeCastExpression"&&(a[h]=this.typeCastToParameter(E)),super.toAssignableListItem(a,h,y)}typeCastToParameter(a){return a.expression.typeAnnotation=a.typeAnnotation,this.resetEndLocationFromNode(a.expression,a.typeAnnotation),a.expression}shouldParseArrow(a){return this.match(10)?a.every(h=>this.isAssignable(h,!0)):super.shouldParseArrow(a)}shouldParseAsyncArrow(){return this.match(10)?!this.state.inConditionalConsequent:super.shouldParseAsyncArrow()}parseParenAndDistinguishExpression(a){let h=this.state.inConditionalConsequent;this.state.inConditionalConsequent=!1;let y=super.parseParenAndDistinguishExpression(a);return this.state.inConditionalConsequent=h,y}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(a){if(this.match(43)||this.match(47)){let h=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());h&&(a.typeArguments=h)}return super.jsxParseOpeningElementAfterName(a)}getGetterSetterExpectedParamCount(a){let h=super.getGetterSetterExpectedParamCount(a),y=this.getObjectOrClassMethodParams(a)[0];return y&&this.isThisParam(y)?h+1:h}parseCatchClauseParam(){let a=super.parseCatchClauseParam(),h=this.tsTryParseTypeAnnotation();return h&&(a.typeAnnotation=h,this.resetEndLocation(a)),a}tsInAmbientContext(a){let{isAmbientContext:h,strict:y}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return a()}finally{this.state.isAmbientContext=h,this.state.strict=y}}parseClass(a,h,y){let E=this.state.inAbstractClass;this.state.inAbstractClass=!!a.abstract;try{return super.parseClass(a,h,y)}finally{this.state.inAbstractClass=E}}tsParseAbstractDeclaration(a,h){if(this.match(76))return a.abstract=!0,this.maybeTakeDecorators(h,this.parseClass(a,!0,!1));if(this.isContextual(125))return this.hasFollowingLineBreak()?null:(a.abstract=!0,this.raise(xe.NonClassMethodPropertyHasAbstractModifier,a),this.tsParseInterfaceDeclaration(a));throw this.unexpected(null,76)}parseMethod(a,h,y,E,w,$,_){let H=super.parseMethod(a,h,y,E,w,$,_);if((H.abstract||H.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?H.value:H).body){let{key:U}=H;this.raise(xe.AbstractMethodHasImplementation,H,{methodName:U.type==="Identifier"&&!H.computed?U.name:`[${this.input.slice(this.offsetToSourcePos(U.start),this.offsetToSourcePos(U.end))}]`})}return H}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(a,h,y,E){return!h&&E?(this.parseTypeOnlyImportExportSpecifier(a,!1,y),this.finishNode(a,"ExportSpecifier")):(a.exportKind="value",super.parseExportSpecifier(a,h,y,E))}parseImportSpecifier(a,h,y,E,w){return!h&&E?(this.parseTypeOnlyImportExportSpecifier(a,!0,y),this.finishNode(a,"ImportSpecifier")):(a.importKind="value",super.parseImportSpecifier(a,h,y,E,y?4098:4096))}parseTypeOnlyImportExportSpecifier(a,h,y){let E=h?"imported":"local",w=h?"local":"exported",$=a[E],_,H=!1,U=!0,oe=$.start;if(this.isContextual(89)){let Ie=this.parseIdentifier();if(this.isContextual(89)){let Ue=this.parseIdentifier();tt(this.state.type)?(H=!0,$=Ie,_=h?this.parseIdentifier():this.parseModuleExportName(),U=!1):(_=Ue,U=!1)}else tt(this.state.type)?(U=!1,_=h?this.parseIdentifier():this.parseModuleExportName()):(H=!0,$=Ie)}else tt(this.state.type)&&(H=!0,h?($=this.parseIdentifier(!0),this.isContextual(89)||this.checkReservedWord($.name,$.start,!0,!0)):$=this.parseModuleExportName());H&&y&&this.raise(h?xe.TypeModifierIsUsedInTypeImports:xe.TypeModifierIsUsedInTypeExports,oe),a[E]=$,a[w]=_;let De=h?"importKind":"exportKind";a[De]=H?"type":"value",U&&this.eatContextual(89)&&(a[w]=h?this.parseIdentifier():this.parseModuleExportName()),a[w]||(a[w]=this.cloneIdentifier(a[E])),h&&this.checkIdentifier(a[w],H?4098:4096)}fillOptionalPropertiesForTSESLint(a){switch(a.type){case"ExpressionStatement":a.directive??(a.directive=void 0);return;case"RestElement":a.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":a.decorators??(a.decorators=[]),a.optional??(a.optional=!1),a.typeAnnotation??(a.typeAnnotation=void 0);return;case"TSParameterProperty":a.accessibility??(a.accessibility=void 0),a.decorators??(a.decorators=[]),a.override??(a.override=!1),a.readonly??(a.readonly=!1),a.static??(a.static=!1);return;case"TSEmptyBodyFunctionExpression":a.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":a.declare??(a.declare=!1),a.returnType??(a.returnType=void 0),a.typeParameters??(a.typeParameters=void 0);return;case"Property":a.optional??(a.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":a.optional??(a.optional=!1);case"TSIndexSignature":a.accessibility??(a.accessibility=void 0),a.readonly??(a.readonly=!1),a.static??(a.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":a.declare??(a.declare=!1),a.definite??(a.definite=!1),a.readonly??(a.readonly=!1),a.typeAnnotation??(a.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":a.accessibility??(a.accessibility=void 0),a.decorators??(a.decorators=[]),a.override??(a.override=!1),a.optional??(a.optional=!1);return;case"ClassExpression":a.id??(a.id=null);case"ClassDeclaration":a.abstract??(a.abstract=!1),a.declare??(a.declare=!1),a.decorators??(a.decorators=[]),a.implements??(a.implements=[]),a.superTypeArguments??(a.superTypeArguments=void 0),a.typeParameters??(a.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":a.declare??(a.declare=!1);return;case"VariableDeclarator":a.definite??(a.definite=!1);return;case"TSEnumDeclaration":a.const??(a.const=!1),a.declare??(a.declare=!1);return;case"TSEnumMember":a.computed??(a.computed=!1);return;case"TSImportType":a.qualifier??(a.qualifier=null),a.options??(a.options=null),a.typeArguments??(a.typeArguments=null);return;case"TSInterfaceDeclaration":a.declare??(a.declare=!1),a.extends??(a.extends=[]);return;case"TSMappedType":a.optional??(a.optional=!1),a.readonly??(a.readonly=void 0);return;case"TSModuleDeclaration":a.declare??(a.declare=!1),a.global??(a.global=a.kind==="global");return;case"TSTypeParameter":a.const??(a.const=!1),a.in??(a.in=!1),a.out??(a.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(a,h){if(fs(a)){if(Dp.lastIndex=h,Dp.test(this.input)){let y=this.codePointAtPos(Dp.lastIndex);if(!Xn(y)&&y!==92)return!1}return!0}else return a===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let a=this.nextTokenInLineStart(),h=this.codePointAtPos(a);return this.chStartsBindingIdentifierAndNotRelationalOperator(h,a)}nextTokenIsStringLiteralOnSameLine(){let a=this.nextTokenInLineStart(),h=this.codePointAtPos(a);return h===34||h===39}};function qF(l){if(l.type!=="MemberExpression")return!1;let{computed:a,property:h}=l;return a&&h.type!=="StringLiteral"&&(h.type!=="TemplateLiteral"||h.expressions.length>0)?!1:C2(l.object)}function UF(l,a){let{type:h}=l;if(l.extra?.parenthesized)return!1;if(a){if(h==="Literal"){let{value:y}=l;if(typeof y=="string"||typeof y=="boolean")return!0}}else if(h==="StringLiteral"||h==="BooleanLiteral")return!0;return!!(E2(l,a)||zF(l,a)||h==="TemplateLiteral"&&l.expressions.length===0||qF(l))}function E2(l,a){return a?l.type==="Literal"&&(typeof l.value=="number"||"bigint"in l):l.type==="NumericLiteral"||l.type==="BigIntLiteral"}function zF(l,a){if(l.type==="UnaryExpression"){let{operator:h,argument:y}=l;if(h==="-"&&E2(y,a))return!0}return!1}function C2(l){return l.type==="Identifier"?!0:l.type!=="MemberExpression"||l.computed?!1:C2(l.object)}var VF={ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."},A2=z`placeholders`(VF),HF=l=>class extends l{parsePlaceholder(a){if(this.match(129)){let h=this.startNode();return this.next(),this.assertNoSpace(),h.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(129),this.finishPlaceholder(h,a)}}finishPlaceholder(a,h){let y=a;return(!y.expectedNode||!y.type)&&(y=this.finishNode(y,"Placeholder")),y.expectedNode=h,y}getTokenFromCode(a){a===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(129,2):super.getTokenFromCode(a)}parseExprAtom(a){return this.parsePlaceholder("Expression")||super.parseExprAtom(a)}parseIdentifier(a){return this.parsePlaceholder("Identifier")||super.parseIdentifier(a)}checkReservedWord(a,h,y,E){a!==void 0&&super.checkReservedWord(a,h,y,E)}cloneIdentifier(a){let h=super.cloneIdentifier(a);return h.type==="Placeholder"&&(h.expectedNode=a.expectedNode),h}cloneStringLiteral(a){return a.type==="Placeholder"?this.cloneIdentifier(a):super.cloneStringLiteral(a)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(a,h,y,E){return a==="Placeholder"||super.isValidLVal(a,h,y,E)}toAssignable(a,h){a&&a.type==="Placeholder"&&a.expectedNode==="Expression"?a.expectedNode="Pattern":super.toAssignable(a,h)}chStartsBindingIdentifier(a,h){if(super.chStartsBindingIdentifier(a,h))return!0;let y=this.nextTokenStart();return this.input.charCodeAt(y)===37&&this.input.charCodeAt(y+1)===37}verifyBreakContinue(a,h){a.label?.type!=="Placeholder"&&super.verifyBreakContinue(a,h)}parseExpressionStatement(a,h){if(h.type!=="Placeholder"||h.extra?.parenthesized)return super.parseExpressionStatement(a,h);if(this.match(10)){let E=a;return E.label=this.finishPlaceholder(h,"Identifier"),this.next(),E.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(E,"LabeledStatement")}this.semicolon();let y=a;return y.name=h.name,this.finishPlaceholder(y,"Statement")}parseBlock(a,h,y){return this.parsePlaceholder("BlockStatement")||super.parseBlock(a,h,y)}parseFunctionId(a){return this.parsePlaceholder("Identifier")||super.parseFunctionId(a)}parseClass(a,h,y){let E=h?"ClassDeclaration":"ClassExpression";this.next();let w=this.state.strict,$=this.parsePlaceholder("Identifier");if($)if(this.match(77)||this.match(129)||this.match(2))a.id=$;else{if(y||!h)return a.id=null,a.body=this.finishPlaceholder($,"ClassBody"),this.finishNode(a,E);throw this.raise(A2.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(a,h,y);return super.parseClassSuper(a),a.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!a.superClass,w),this.finishNode(a,E)}parseExport(a,h){let y=this.parsePlaceholder("Identifier");if(!y)return super.parseExport(a,h);let E=a;if(!this.isContextual(94)&&!this.match(8))return E.specifiers=[],E.source=null,E.declaration=this.finishPlaceholder(y,"Declaration"),this.finishNode(E,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let w=this.startNode();return w.exported=y,E.specifiers=[this.finishNode(w,"ExportDefaultSpecifier")],super.parseExport(E,h)}isExportDefaultSpecifier(){if(this.match(61)){let a=this.nextTokenStart();if(this.isUnparsedContextual(a,"from")&&this.input.startsWith(ft(129),this.nextTokenStartSince(a+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(a,h){return a.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(a,h)}checkExport(a){let{specifiers:h}=a;h?.length&&(a.specifiers=h.filter(y=>y.exported.type==="Placeholder")),super.checkExport(a),a.specifiers=h}parseImport(a){let h=this.parsePlaceholder("Identifier");if(!h)return super.parseImport(a);if(a.specifiers=[],!this.isContextual(94)&&!this.match(8))return a.source=this.finishPlaceholder(h,"StringLiteral"),this.semicolon(),this.finishNode(a,"ImportDeclaration");let y=this.startNodeAtNode(h);return y.local=h,a.specifiers.push(this.finishNode(y,"ImportDefaultSpecifier")),this.eat(8)&&(this.maybeParseStarImportSpecifier(a)||this.parseNamedImportSpecifiers(a)),this.expectContextual(94),a.source=this.parseImportSource(),this.semicolon(),this.finishNode(a,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(A2.UnexpectedSpace,this.state.lastTokEndLoc)}},WF=l=>class extends l{parseV8Intrinsic(){if(this.match(50)){let a=this.state.startLoc,h=this.startNode();if(this.next(),_e(this.state.type)){let y=this.parseIdentifierName(),E=this.createIdentifier(h,y);if(this.castNodeTo(E,"V8IntrinsicIdentifier"),this.match(6))return E}this.unexpected(a)}}parseExprAtom(a){return this.parseV8Intrinsic()||super.parseExprAtom(a)}},v2=["fsharp","hack"],T2=["^^","@@","^","%","#"];function JF(l){if(l.has("decorators")&&l.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");if(l.has("flow")&&l.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(l.has("placeholders")&&l.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(l.has("pipelineOperator")){let a=l.get("pipelineOperator").proposal;if(!v2.includes(a)){let h=v2.map(y=>`"${y}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${h}.`)}if(a==="hack"){if(l.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(l.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let h=l.get("pipelineOperator").topicToken;if(!T2.includes(h)){let y=T2.map(E=>`"${E}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${y}.`)}}}if(l.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(l.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead.");if(l.has("deprecatedImportAssert")?console.warn("`deprecatedImportAssert` has been removed in Babel 8, please use import attributes instead."):l.has("importAttributes")&&l.get("importAttributes").deprecatedAssertSyntax&&console.warn("The 'importAttributes' plugin has been removed in Babel 8. Please migrate any usage of `assert`-style attributes to `with`."),l.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(l.has("asyncDoExpressions")&&!l.has("doExpressions")){let a=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw a.missingPlugins="doExpressions",a}if(l.has("optionalChainingAssign")&&l.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(l.has("discardBinding")&&l.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");if(l.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(l.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}var F2={estree:te,jsx:lF,flow:iF,typescript:RF,v8intrinsic:WF,placeholders:HF},GF=Object.keys(F2),w2=class extends $F{constructor(l,a,h){let y=ce(l);super(y,a),this.options=y,this.initializeScopes(),this.plugins=h,this.filename=y.sourceFilename,this.startIndex=y.startIndex;let E=0;y.allowAwaitOutsideFunction&&(E|=1),y.allowReturnOutsideFunction&&(E|=2),y.allowImportExportEverywhere&&(E|=8),y.allowSuperOutsideMethod&&(E|=16),y.allowUndeclaredExports&&(E|=64),y.allowNewTargetOutsideFunction&&(E|=4),y.allowYieldOutsideFunction&&(E|=32),y.ranges&&(E|=128),y.locations===!0&&(E|=256),y.tokens&&(E|=512),y.createImportExpressions&&(E|=1024),y.createParenthesizedExpressions&&(E|=2048),y.errorRecovery&&(E|=4096),y.attachComment&&(E|=8192),y.annexB&&(E|=16384),this.optionFlags=E}getScopeHandler(){return cp}parse(){this.enterInitialScopes();let l=this.startNode(),a=this.startNode();this.nextToken(),l.errors=[];let h=this.parseTopLevel(l,a);return h.errors=this.state.errors,h.comments.length=this.state.commentsLen,h}};function S2(l,a){if(a?.sourceType==="unambiguous"){a={...a};try{a.sourceType="module";let h=Ha(a,l),y=h.parse();if(h.sawUnambiguousESM)return y;if(h.ambiguousScriptDifferentAst)try{return a.sourceType="script",Ha(a,l).parse()}catch{}else y.program.sourceType="script";return y}catch(h){try{return a.sourceType="script",Ha(a,l).parse()}catch{}throw h}}else return Ha(a,l).parse()}function k2(l,a){let h=Ha(a,l);return h.options.strictMode&&(h.state.strict=!0),h.getExpression()}function KF(l){let a={};for(let h of Object.keys(l))a[h]=Sr(l[h]);return a}KF(Vt);function Ha(l,a){let h=w2,y=new Map;if(l?.plugins){for(let E of l.plugins){let w,$;typeof E=="string"?w=E:[w,$]=E,y.has(w)||y.set(w,$||{})}JF(y),h=XF(y)}return new h(l,a,y)}var P2=new Map;function XF(l){let a=[];for(let E of GF)l.has(E)&&a.push(E);let h=a.join("|"),y=P2.get(h);if(!y){y=w2;for(let E of a)y=F2[E](y);P2.set(h,y)}return y}function I2(l){return(a,h,y)=>{if(h===!1)return!1;let E=!!y?.backwards,{length:w}=a,$=h;for(;$>=0&&$<w;){let _=a.charAt($);if(l instanceof RegExp){if(!l.test(_))return $}else if(!l.includes(_))return $;E?$--:$++}return $===-1||$===w?$:!1}}var YF=I2(" "),QF=I2(/[^\n\r]/);function ZF(l,a){if(a===!1)return!1;if(l.charAt(a)==="/"&&l.charAt(a+1)==="*"){for(let h=a+2;h<l.length;++h)if(l.charAt(h)==="*"&&l.charAt(h+1)==="/")return h+2}return a}var ew=ZF,B2=l=>l===`
|
|
249
|
-
`||l==="\r"||l==="\u2028"||l==="\u2029";function tw(l,a,h){if(a===!1)return!1;let y=!!h?.backwards,E=l.charAt(a);if(y){if(l.charAt(a-1)==="\r"&&E===`
|
|
250
|
-
`)return a-2;if(B2(E))return a-1}else{if(E==="\r"&&l.charAt(a+1)===`
|
|
251
|
-
`)return a+2;if(B2(E))return a+1}return a}var rw=tw;function sw(l,a){return a===!1?!1:l.charAt(a)==="/"&&l.charAt(a+1)==="/"?QF(l,a):a}var nw=sw;function iw(l,a){let h=null,y=a;for(;y!==h;)h=y,y=YF(l,y),y=ew(l,y),y=nw(l,y),y=rw(l,y);return y}var aw=iw;function ow(l){let a=[];for(let h of l)try{return h()}catch(y){a.push(y)}throw Object.assign(new Error("All combinations failed"),{errors:a})}function uw(l){if(!l.startsWith("#!"))return"";let a=l.indexOf(`
|
|
252
|
-
`);return a===-1?l:l.slice(0,a)}var N2=uw,lw=Array.prototype.findLast??function(l){for(let a=this.length-1;a>=0;a--){let h=this[a];if(l(h,a,this))return h}},cw=f("findLast",function(){if(Array.isArray(this))return lw}),pw=cw,L2=Symbol.for("comments");function hw(l){return this[l<0?this.length+l:l]}var dw=f("at",function(){if(Array.isArray(this)||typeof this=="string")return hw}),fw=dw;function Ku(l){let a=new Set(l);return h=>a.has(h?.type)}function xp(l){return l.range?.[1]??l.end}function zr(l){let a=l.range?.[0]??l.start,h=(l.declaration?.decorators??l.decorators)?.[0];return h?Math.min(zr(h),a):a}var mw=5,yw=8,Dw=8,$2=l=>a=>a.label?kr(a.label):zr(a)+l,gw=l=>l.__contentEnd??xp(l),M2=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],xw=new Map([["BreakStatement",$2(mw)],["ContinueStatement",$2(yw)],["DebuggerStatement",l=>zr(l)+Dw],["VariableDeclaration",l=>kr(fw(0,l.declarations,-1))],...M2.map(l=>[l,gw])]),bw=Ku(M2);function kr(l){let{type:a}=l;return a==="IfStatement"?kr(l.alternate??l.consequent):a==="ForInStatement"||a==="ForOfStatement"||a==="ForStatement"||a==="LabeledStatement"||a==="WithStatement"||a==="WhileStatement"?kr(l.body):xw.get(a)?.(l)??xp(l)}var bp=Ku(["Block","CommentBlock","MultiLine"]),Ew=Ku(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function Ep(l,a,h){if(!l.has(a)){let y=h(a);l.set(a,y)}return l.get(a)}var Cw=new WeakMap;function Aw(l){return Ep(Cw,l,a=>bp(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value))}function vw(l){return g(0,l,/[^\n]/g," ")}var Tw=vw;function Fw(l,a){for(let h of a){let y=zr(h),E=kr(h);l=l.slice(0,y)+Tw(l.slice(y,E))+l.slice(E)}return l}var ww=new WeakMap;function Sw(l){let a=l[L2];return Ep(ww,a,h=>Fw(l.originalText,h))}function kw(l){if(!bp(l))return[];if(!l.value.includes(`
|
|
253
|
-
`))return[];let a=[];for(let h of`*${l.value}*`.split(`
|
|
254
|
-
`)){if(h=h.trimStart(),!h.startsWith("*"))return[];a.push(h)}return a}var O2=new WeakMap;function Pw(l){return Ep(O2,l,kw)}function Iw(l){O2.delete(l)}function _2(l){return Pw(l).length>0}function Bw(l){if(l.length<2)return;let a;for(let h=l.length-1;h>=0;h--){let y=l[h];if(a&&kr(y)===zr(a)&&_2(y)&&_2(a)&&(l.splice(h+1,1),y.value+="*//*"+a.value,y.range=[zr(y),kr(a)],Iw(y)),!Ew(y)&&!bp(y))throw new TypeError(`Unknown comment type: "${y.type}".`);a=y}}function Nw(l){return l!==null&&typeof l=="object"}var Lw=Nw,Wa=null;function Ja(l){if(Wa!==null&&typeof Wa.property){let a=Wa;return Wa=Ja.prototype=null,a}return Wa=Ja.prototype=l??Object.create(null),new Ja}var $w=10;for(let l=0;l<=$w;l++)Ja();function Mw(l){return Ja(l)}function Ow(l,a="type"){Mw(l);function h(y){let E=y[a],w=l[E];if(!Array.isArray(w))throw Object.assign(new Error(`Missing visitor keys for '${E}'.`),{node:y});return w}return h}var _w=Ow,K=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],jw={ArrayExpression:K[0],AssignmentExpression:K[1],BinaryExpression:K[1],InterpreterDirective:[],Directive:K[2],DirectiveLiteral:[],BlockStatement:K[3],BreakStatement:K[4],CallExpression:K[5],CatchClause:["param","body"],ConditionalExpression:K[6],ContinueStatement:K[4],DebuggerStatement:[],DoWhileStatement:K[7],EmptyStatement:[],ExpressionStatement:K[8],File:["program"],ForInStatement:K[9],ForStatement:["init","test","update","body"],FunctionDeclaration:K[10],FunctionExpression:K[10],Identifier:["typeAnnotation","decorators"],IfStatement:K[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:K[1],MemberExpression:K[11],NewExpression:K[5],Program:K[3],ObjectExpression:K[12],ObjectMethod:K[13],ObjectProperty:K[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:K[15],SequenceExpression:K[16],ParenthesizedExpression:K[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:K[15],TryStatement:["block","handler","finalizer"],UnaryExpression:K[15],UpdateExpression:K[15],VariableDeclaration:["declarations"],VariableDeclarator:K[17],WhileStatement:K[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:K[18],ClassExpression:K[19],ClassDeclaration:K[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:K[20],ExportSpecifier:["local","exported"],ForOfStatement:K[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:K[21],ImportNamespaceSpecifier:K[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:K[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:K[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:K[15],AwaitExpression:K[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:K[22],OptionalMemberExpression:K[11],OptionalCallExpression:K[5],ClassProperty:K[23],ClassPrivateProperty:K[23],ClassPrivateMethod:K[13],PrivateName:K[24],StaticBlock:K[18],ImportAttribute:K[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:K[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:K[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:K[28],DeclareModule:K[29],DeclareModuleExports:K[30],DeclareTypeAlias:K[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:K[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:K[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:K[32],GenericTypeAnnotation:K[27],InferredPredicate:[],InterfaceExtends:K[27],InterfaceDeclaration:K[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:K[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:K[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:K[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:K[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:K[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:K[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:K[31],TypeAnnotation:K[30],TypeCastExpression:K[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:K[37],TypeParameterInstantiation:K[37],UnionTypeAnnotation:K[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:K[29],EnumBooleanBody:K[38],EnumNumberBody:K[38],EnumStringBody:K[38],EnumSymbolBody:K[38],EnumBooleanMember:K[17],EnumNumberMember:K[17],EnumStringMember:K[17],EnumDefaultedMember:K[24],IndexedAccessType:K[39],OptionalIndexedAccessType:K[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:K[8],JSXSpreadChild:K[8],JSXIdentifier:[],JSXMemberExpression:K[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:K[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:K[40],Decorator:K[8],DoExpression:K[18],ExportDefaultSpecifier:K[22],ModuleExpression:K[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:K[41],TSDeclareMethod:K[42],TSQualifiedName:K[1],TSCallSignatureDeclaration:K[43],TSConstructSignatureDeclaration:K[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:K[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:K[43],TSConstructorType:K[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:K[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:K[38],TSArrayType:K[26],TSTupleType:K[35],TSOptionalType:K[30],TSRestType:K[30],TSNamedTupleMember:["label","elementType"],TSUnionType:K[33],TSIntersectionType:K[33],TSConditionalType:K[45],TSInferType:K[46],TSParenthesizedType:K[30],TSTypeOperator:K[30],TSIndexedAccessType:K[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:K[47],TSClassImplements:K[48],TSInterfaceHeritage:K[48],TSInterfaceDeclaration:K[28],TSInterfaceBody:K[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:K[48],TSAsExpression:K[36],TSSatisfiesExpression:K[36],TSTypeAssertion:K[36],TSEnumBody:K[38],TSEnumDeclaration:K[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:K[29],TSModuleBlock:K[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:K[8],TSNonNullExpression:K[8],TSExportAssignment:K[8],TSNamespaceExportDeclaration:K[24],TSTypeAnnotation:K[30],TSTypeParameterInstantiation:K[37],TSTypeParameterDeclaration:K[37],TSTypeParameter:["name","constraint","default"],ChainExpression:K[8],Literal:[],MethodDefinition:K[14],PrivateIdentifier:[],Property:K[25],PropertyDefinition:K[23],AccessorProperty:K[40],TSAbstractAccessorProperty:K[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:K[25],TSAbstractPropertyDefinition:K[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:K[8],AsExpression:K[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:K[32],ConditionalTypeAnnotation:K[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:K[29],DeclareHook:K[24],DeclareNamespace:K[29],EnumBigIntBody:K[38],EnumBigIntMember:K[17],EnumBody:K[38],HookDeclaration:K[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:K[46],KeyofTypeAnnotation:K[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:K[24],MatchExpression:K[50],MatchExpressionCase:K[51],MatchIdentifierPattern:K[24],MatchInstanceObjectPattern:K[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:K[47],MatchMemberPattern:["base","property"],MatchObjectPattern:K[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:K[15],MatchStatement:K[50],MatchStatementCase:K[51],MatchUnaryPattern:K[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:K[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:K[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:K[12],SatisfiesExpression:K[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:K[30],TypePredicate:K[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:K[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:K[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:K[25],NGRoot:K[53],JsExpressionRoot:K[53],JsonRoot:K[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:K[30],TSJSDocNonNullableType:K[30]},Rw=_w(jw),qw=Rw;function Xu(l,a){if(!Lw(l))return l;if(Array.isArray(l)){for(let y=0;y<l.length;y++)l[y]=Xu(l[y],a);return l}if(a.onEnter){let y=a.onEnter(l)??l;if(y!==l)return Xu(y,a);l=y}let h=qw(l);for(let y=0;y<h.length;y++)l[h[y]]=Xu(l[h[y]],a);return a.onLeave&&(l=a.onLeave(l)||l),l}var Uw=Xu;Ku(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function zw(l,a){let{text:h,astType:y}=a,{comments:E}=l;Bw(E);let w=l.type==="File"?l.program:l;w.interpreter&&(E.unshift(w.interpreter),delete w.interpreter),l.hashbang&&((y==="oxc-ts"||y==="yuku-js"||y==="yuku-ts")&&E.unshift(l.hashbang),delete l.hashbang),l.type==="Program"&&(l.range=[0,h.length]);let $;return l=Uw(l,{onEnter(_){switch(Vw(_,E,h),_.type){case"ParenthesizedExpression":{let{expression:H}=_,U=zr(_);if(H.type==="TypeCastExpression")return H.range=[U,kr(_)],H;let oe=!1;if(y!=="oxc-ts"){if(!$){$=[];for(let Ie of E)Aw(Ie)&&$.push(kr(Ie))}let De=pw(0,$,Ie=>Ie<=U);oe=De&&h.slice(De,U).trim().length===0}return oe?void 0:(H.extra={...H.extra,parenthesized:!0},H)}case"TemplateLiteral":if(_.expressions.length!==_.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(y==="flow"||y==="hermes"||y==="espree"||y==="typescript"||y==="oxc-ts"||y==="yuku-ts"){let H=zr(_)+1,U=kr(_)-(_.tail?1:2);_.range=[H,U]}break;case"TSParenthesizedType":return _.typeAnnotation;case"TopicReference":l.extra={...l.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(_.types.length===1)return _.types[0];break;case"TupleTypeAnnotation":_.types&&!_.elementTypes&&(_.elementTypes=_.types);break;case"ImportDeclaration":y==="hermes"&&_.assertions&&!_.attributes&&(_.attributes=_.assertions,delete _.assertions);break}},onLeave(_){switch(_.type){case"LogicalExpression":if(j2(_))return Cp(_);break}}}),l}function j2(l){return l.type==="LogicalExpression"&&l.right.type==="LogicalExpression"&&l.operator===l.right.operator}function Cp(l){return j2(l)?Cp({type:"LogicalExpression",operator:l.operator,left:Cp({type:"LogicalExpression",operator:l.operator,left:l.left,right:l.right.left,range:[zr(l.left),kr(l.right.left)]}),right:l.right.right,range:[zr(l),kr(l)]}):l}function Vw(l,a,h){if(!bw(l))return;let y=xp(l);if(h[y-1]!==";")return;let E=Sw({[L2]:a,originalText:h});y-=1;let w=E.slice(zr(l),y),$=w.trimEnd();l.__contentEnd=y-(w.length-$.length)}var Hw=zw;function Ww(l,a){let h=new SyntaxError(l+" ("+a.loc.start.line+":"+a.loc.start.column+")");return Object.assign(h,a)}var R2=Ww,q2="Unexpected parseExpression() input: ";function Jw(l){let{message:a,loc:h,reasonCode:y}=l;if(!h)return l;let{line:E,column:w}=h,$=l;(y==="MissingPlugin"||y==="MissingOneOfPlugins")&&(a="Unexpected token.",$=void 0);let _=` (${E}:${w})`;return a.endsWith(_)&&(a=a.slice(0,-_.length)),a.startsWith(q2)&&(a=a.slice(q2.length)),R2(a,{loc:{start:{line:E,column:w+1}},cause:$})}var U2=Jw,Gw=/\*\/$/,Kw=/^\/\*\*?/,Xw=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Yw=/(^|\s+)\/\/([^\n\r]*)/g,z2=/^(\r?\n)+/,Qw=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,V2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Zw=/(\r?\n|^) *\* ?/g,eS=[];function tS(l){let a=l.match(Xw);return a?a[0].trimStart():""}function rS(l){l=g(0,l.replace(Kw,"").replace(Gw,""),Zw,"$1");let a="";for(;a!==l;)a=l,l=g(0,l,Qw,`
|
|
255
|
-
$1 $2
|
|
256
|
-
`);l=l.replace(z2,"").trimEnd();let h=Object.create(null),y=g(0,l,V2,"").replace(z2,"").trimEnd(),E;for(;E=V2.exec(l);){let w=g(0,E[2],Yw,"");if(typeof h[E[1]]=="string"||Array.isArray(h[E[1]])){let $=h[E[1]];h[E[1]]=[...eS,...Array.isArray($)?$:[$],w]}else h[E[1]]=w}return{comments:y,pragmas:h}}var sS=["noformat","noprettier"],nS=["format","prettier"];function H2(l){let a=N2(l);a&&(l=l.slice(a.length+1));let h=tS(l),{pragmas:y,comments:E}=rS(h);return{shebang:a,text:l,pragmas:y,comments:E}}function iS(l){let{pragmas:a}=H2(l);return nS.some(h=>b(a,h))}function aS(l){let{pragmas:a}=H2(l);return sS.some(h=>b(a,h))}function oS(l){return l=typeof l=="function"?{parse:l}:l,{astFormat:"estree",hasPragma:iS,hasIgnorePragma:aS,locStart:zr,locEnd:kr,...l}}var Ga=oS,Ap="module",W2="commonjs";function uS(l){if(typeof l=="string"){if(l=l.toLowerCase(),/\.(?:mjs|mts)$/i.test(l))return Ap;if(/\.(?:cjs|cts)$/i.test(l))return W2}}function lS(l){let{type:a="JsExpressionRoot",expression:h,comments:y=h?.comments??[],text:E,rootMarker:w}=l,$={type:a,comments:y,range:[0,E.length],rootMarker:w};return h&&(delete h.comments,$.node=h),$}var J2=lS,_i=l=>Ga(fS(l)),cS={sourceType:Ap,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions",["partialApplication",{version:"2018-07"}],"decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},G2="v8intrinsic",K2=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],js=(l,a=cS)=>({...a,plugins:[...a.plugins,...l]}),pS=/@(?:no)?flow\b/;function hS(l,a){if(a?.endsWith(".js.flow"))return!0;let h=N2(l);h&&(l=l.slice(h.length));let y=aw(l,0);return y!==!1&&(l=l.slice(0,y)),pS.test(l)}function dS(l,a,h){let y=l(a,h),E=y.errors.find(w=>!yS.has(w.reasonCode));if(E)throw E;return y}function fS({isExpression:l=!1,optionsCombinations:a}){return(h,y={})=>{let{filepath:E}=y;if(typeof E!="string"&&(E=void 0),(y.parser==="babel"||y.parser==="__babel_estree")&&hS(h,E))return y.parser="babel-flow",ty.parse(h,y);let w=a,$=y.__babelSourceType??uS(E);$&&$!==Ap&&(w=w.map(oe=>({...oe,sourceType:$,...$===W2?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let _=/%[A-Z]/.test(h);h.includes("|>")?w=(_?[...K2,G2]:K2).flatMap(oe=>w.map(De=>js([oe],De))):_&&(w=w.map(oe=>js([G2],oe)));let H=l?k2:S2,U;try{U=ow(w.map(oe=>()=>dS(H,h,oe)))}catch({errors:[oe]}){throw U2(oe)}return l&&(U=J2({expression:U,text:h,rootMarker:y.rootMarker})),Hw(U,{text:h})}}var mS=["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ParamDupe","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","PatternIsOptional","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","DeclarationMissingInitializer","DecoratorAbstractMethod"],yS=new Set(mS),X2=[js(["jsx"])],Y2=_i({optionsCombinations:X2}),Q2=_i({optionsCombinations:[js(["jsx","typescript"]),js(["typescript"])]}),Z2=_i({isExpression:!0,optionsCombinations:[js(["jsx"])]}),ey=_i({isExpression:!0,optionsCombinations:[js(["typescript"])]}),ty=_i({optionsCombinations:[js(["jsx",["flow",{all:!0}],"flowComments"])]}),DS=_i({optionsCombinations:X2.map(l=>js(["estree"],l))}),ry={};o(ry,{json:()=>bS,"json-stringify":()=>AS,json5:()=>ES,jsonc:()=>CS});function gS(l){return Array.isArray(l)&&l.length>0}var sy=gS,ny={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function xS(l){let a=S2(l,ny),{program:h}=a;if(h.body.length===0&&h.directives.length===0&&!h.interpreter)return{comments:a.comments}}function Yu(l,a={}){let{allowComments:h=!0,allowEmpty:y=!1}=a,E,w;try{E=k2(l,ny),w=E.comments}catch($){if(y&&$.code==="BABEL_PARSER_SYNTAX_ERROR"&&$.reasonCode==="ParseExpressionEmptyInput")try{({comments:w}=xS(l))}catch{}if(!w)throw U2($)}if(!h&&sy(w))throw gn(w[0],"Comment");return(!y||E)&&ji(E),E=J2({type:"JsonRoot",expression:E,comments:w,text:l}),E}function gn(l,a){let[h,y]=[l.loc.start,l.loc.end].map(({line:E,column:w})=>({line:E,column:w+1}));return R2(`${a} is not allowed in JSON.`,{loc:{start:h,end:y}})}function ji(l){switch(l.type){case"ArrayExpression":for(let a of l.elements)a!==null&&ji(a);return;case"ObjectExpression":for(let a of l.properties)ji(a);return;case"ObjectProperty":if(l.computed)throw gn(l.key,"Computed key");if(l.shorthand)throw gn(l.key,"Shorthand property");l.key.type!=="Identifier"&&ji(l.key),ji(l.value);return;case"UnaryExpression":{let{operator:a,argument:h}=l;if(a!=="+"&&a!=="-")throw gn(l,`Operator '${l.operator}'`);if(h.type==="NumericLiteral"||h.type==="Identifier"&&(h.name==="Infinity"||h.name==="NaN"))return;throw gn(h,`Operator '${a}' before '${h.type}'`)}case"Identifier":if(l.name!=="Infinity"&&l.name!=="NaN"&&l.name!=="undefined")throw gn(l,`Identifier '${l.name}'`);return;case"TemplateLiteral":if(sy(l.expressions))throw gn(l.expressions[0],"'TemplateLiteral' with expression");for(let a of l.quasis)ji(a);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw gn(l,`'${l.type}'`)}}var bS=Ga({parse:l=>Yu(l),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),ES=Ga(l=>Yu(l)),CS=Ga(l=>Yu(l,{allowEmpty:!0})),AS=Ga({parse:l=>Yu(l,{allowComments:!1}),astFormat:"estree-json"}),vS={...p,...ry};return c(d)})})(uh)),uh.exports}var MT=See();const kee=MS(MT),Pee=YS({__proto__:null,default:kee},[MT]),Iee=async(t,e)=>{switch(e){case"ts":return await Es(t,{parser:"typescript",plugins:[_p,ol]});case"js":return await Es(t,{parser:"babel",plugins:[_p,ol]});case"json":return await Es(t,{parser:"json",plugins:[Pee,ol]});case"vue":return await Es(t,{parser:"vue",plugins:[Yq,_p,ol,El]});case"less":return await Es(t,{parser:"less",plugins:[El]});case"scss":case"sass":return await Es(t,{parser:"scss",plugins:[El]});case"css":return await Es(t,{parser:"css",plugins:[El]});case"md":return await Es(t,{parser:"markdown",plugins:[vX]})}},Bee={class:"flex items-center gap-1 flex-1"},Nee=au({__name:"DirChangeTree",props:{resultTree:{type:Array,default:()=>[]}},setup(t){const e={children:"children",label:"name"},r={[Cs.NodeStatus.Added]:{tag:"success",color:"var(--el-color-success)"},[Cs.NodeStatus.Deleted]:{tag:"danger",color:"var(--el-color-danger)"},[Cs.NodeStatus.Unchanged]:{tag:"info",color:"var(--el-color-info)"},[Cs.NodeStatus.Changed]:{tag:"warning",color:"var(--el-color-warning)"}};function s(i){return r[i].tag??"primary"}function n(i){return r[i].color}return(i,o)=>(Gs(),cc(et(OS),SS({data:t.resultTree,props:e,"default-expand-all":"","highlight-current":""},i.$attrs),{default:Et(({data:u})=>[Br("div",Bee,[yt(et(go),{effect:"dark",disableTransitions:"",type:s(u.status),size:"small"},{default:Et(()=>[wn(Gr(u.status[0].toUpperCase()),1)]),_:2},1032,["type"]),u.status===et(Cs).NodeStatus.Deleted?(Gs(),Vo("del",{key:0,style:Al({color:n(u.status)})},Gr(u.name),5)):(Gs(),Vo("span",{key:1,style:Al({color:n(u.status)})},Gr(u.name),5)),Br("div",{class:"w-2 h-2 rounded-full ml-auto mr-2",style:Al({backgroundColor:n(u.status)})},null,4)])]),_:1},16,["data"]))}});var St;(function(t){t.INSERT="insert",t.DELETE="delete",t.CONTEXT="context"})(St||(St={}));const Lee={LINE_BY_LINE:"line-by-line"},$ee={NONE:"none"},Mee={WORD:"word"};var na;(function(t){t.AUTO="auto",t.DARK="dark",t.LIGHT="light"})(na||(na={}));const Oee=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],_ee=RegExp("["+Oee.join("\\")+"]","g");function jee(t){return t.replace(_ee,"\\$&")}function xg(t){return t&&t.replace(/\\/g,"/")}function Ree(t){let e,r,s,n=0;for(e=0,s=t.length;e<s;e++)r=t.charCodeAt(e),n=(n<<5)-n+r,n|=0;return n}function OT(t){const e=t.length;let r=-1/0;for(let s=0;s<e;s++)r=Math.max(r,t[s]);return r}function bg(t,e){const r=t.split(".");return r.length>1?r[r.length-1]:e}function Eg(t,e){return e.reduce((r,s)=>r||t.startsWith(s),!1)}const Cg=["a/","b/","i/","w/","c/","o/"];function Fn(t,e,r){const s=r!==void 0?[...Cg,r]:Cg,n=e?new RegExp(`^${jee(e)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,i=""]=n.exec(t)||[],o=s.find(c=>i.indexOf(c)===0);return(o?i.slice(o.length):i).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function qee(t,e){return Fn(t,"---",e)}function Uee(t,e){return Fn(t,"+++",e)}function zee(t,e={}){const r=[];let s=null,n=null,i=null,o=null,u=null,c=null,d=null;const p="--- ",f="+++ ",D="@@",m=/^old mode (\d{6})/,g=/^new mode (\d{6})/,x=/^deleted file mode (\d{6})/,b=/^new file mode (\d{6})/,A=/^copy from "?(.+)"?/,C=/^copy to "?(.+)"?/,v=/^rename from "?(.+)"?/,P=/^rename to "?(.+)"?/,T=/^similarity index (\d+)%/,F=/^dissimilarity index (\d+)%/,k=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,I=/^Binary files (.*) and (.*) differ/,L=/^GIT binary patch/,B=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,O=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,R=/^new file mode (\d{6})/,q=/^deleted file mode (\d{6}),(\d{6})/,V=t.replace(/\/g,"").replace(/\r\n?/g,`
|
|
257
|
-
`).split(`
|
|
258
|
-
`);function j(){n!==null&&s!==null&&(s.blocks.push(n),n=null)}function z(){s!==null&&(!s.oldName&&c!==null&&(s.oldName=c),!s.newName&&d!==null&&(s.newName=d),s.newName&&(r.push(s),s=null)),c=null,d=null}function M(){j(),z(),s={blocks:[],deletedLines:0,addedLines:0}}function ae(te){j();let Z;s!==null&&((Z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(te))?(s.isCombined=!1,i=parseInt(Z[1],10),u=parseInt(Z[2],10)):(Z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(te))?(s.isCombined=!0,i=parseInt(Z[1],10),o=parseInt(Z[2],10),u=parseInt(Z[3],10)):(te.startsWith(D)&&console.error("Failed to parse lines, starting in 0!"),i=0,u=0,s.isCombined=!1)),n={lines:[],oldStartLine:i,oldStartLine2:o,newStartLine:u,header:te}}function ce(te){if(s===null||n===null||i===null||u===null)return;const Z={content:te},N=s.isCombined?["+ "," +","++"]:["+"],se=s.isCombined?["- "," -","--"]:["-"];Eg(te,N)?(s.addedLines++,Z.type=St.INSERT,Z.oldNumber=void 0,Z.newNumber=u++):Eg(te,se)?(s.deletedLines++,Z.type=St.DELETE,Z.oldNumber=i++,Z.newNumber=void 0):(Z.type=St.CONTEXT,Z.oldNumber=i++,Z.newNumber=u++),n.lines.push(Z)}function S(te,Z){let N=Z;for(;N<V.length-3;){if(te.startsWith("diff"))return!1;if(V[N].startsWith(p)&&V[N+1].startsWith(f)&&V[N+2].startsWith(D))return!0;N++}return!1}return V.forEach((te,Z)=>{if(!te||te.startsWith("*"))return;let N;const se=V[Z-1],ye=V[Z+1],ne=V[Z+2];if(te.startsWith("diff --git")||te.startsWith("diff --combined")){if(M(),(N=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(te))&&(c=Fn(N[1],void 0,e.dstPrefix),d=Fn(N[2],void 0,e.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(te.startsWith("Binary files")&&!s?.isGitDiff){if(M(),(N=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(te))&&(c=Fn(N[1],void 0,e.dstPrefix),d=Fn(N[2],void 0,e.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&te.startsWith(p)&&ye.startsWith(f)&&ne.startsWith(D))&&M(),s?.isTooBig)return;if(s&&(typeof e.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>e.diffMaxChanges||typeof e.diffMaxLineLength=="number"&&te.length>e.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],n=null;const J=typeof e.diffTooBigMessage=="function"?e.diffTooBigMessage(r.length):"Diff too big to be displayed";ae(J);return}if(te.startsWith(p)&&ye.startsWith(f)||te.startsWith(f)&&se.startsWith(p)){if(s&&!s.oldName&&te.startsWith("--- ")&&(N=qee(te,e.srcPrefix))){s.oldName=N,s.language=bg(s.oldName,s.language);return}if(s&&!s.newName&&te.startsWith("+++ ")&&(N=Uee(te,e.dstPrefix))){s.newName=N,s.language=bg(s.newName,s.language);return}}if(s&&(te.startsWith(D)||s.isGitDiff&&s.oldName&&s.newName&&!n)){ae(te);return}if(n&&(te.startsWith("+")||te.startsWith("-")||te.startsWith(" "))){ce(te);return}const Q=!S(te,Z);if(s===null)throw new Error("Where is my file !!!");(N=m.exec(te))?s.oldMode=N[1]:(N=g.exec(te))?s.newMode=N[1]:(N=x.exec(te))?(s.deletedFileMode=N[1],s.isDeleted=!0):(N=b.exec(te))?(s.newFileMode=N[1],s.isNew=!0):(N=A.exec(te))?(Q&&(s.oldName=N[1]),s.isCopy=!0):(N=C.exec(te))?(Q&&(s.newName=N[1]),s.isCopy=!0):(N=v.exec(te))?(Q&&(s.oldName=N[1]),s.isRename=!0):(N=P.exec(te))?(Q&&(s.newName=N[1]),s.isRename=!0):(N=I.exec(te))?(s.isBinary=!0,s.oldName=Fn(N[1],void 0,e.srcPrefix),s.newName=Fn(N[2],void 0,e.dstPrefix),ae("Binary file")):L.test(te)?(s.isBinary=!0,ae(te)):(N=T.exec(te))?s.unchangedPercentage=parseInt(N[1],10):(N=F.exec(te))?s.changedPercentage=parseInt(N[1],10):(N=k.exec(te))?(s.checksumBefore=N[1],s.checksumAfter=N[2],N[3]&&(s.mode=N[3])):(N=B.exec(te))?(s.checksumBefore=[N[2],N[3]],s.checksumAfter=N[1]):(N=O.exec(te))?(s.oldMode=[N[2],N[3]],s.newMode=N[1]):(N=R.exec(te))?(s.newFileMode=N[1],s.isNew=!0):(N=q.exec(te))&&(s.deletedFileMode=N[1],s.isDeleted=!0)}),j(),z(),r}let _T=class{diff(e,r,s={}){let n;typeof s=="function"?(n=s,s={}):"callback"in s&&(n=s.callback);const i=this.castInput(e,s),o=this.castInput(r,s),u=this.removeEmpty(this.tokenize(i,s)),c=this.removeEmpty(this.tokenize(o,s));return this.diffWithOptionsObj(u,c,s,n)}diffWithOptionsObj(e,r,s,n){var i;const o=C=>{if(C=this.postProcess(C,s),n){setTimeout(function(){n(C)},0);return}else return C},u=r.length,c=e.length;let d=1,p=u+c;s.maxEditLength!=null&&(p=Math.min(p,s.maxEditLength));const f=(i=s.timeout)!==null&&i!==void 0?i:1/0,D=Date.now()+f,m=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(m[0],r,e,0,s);if(m[0].oldPos+1>=c&&g+1>=u)return o(this.buildValues(m[0].lastComponent,r,e));let x=-1/0,b=1/0;const A=()=>{for(let C=Math.max(x,-d);C<=Math.min(b,d);C+=2){let v;const P=m[C-1],T=m[C+1];P&&(m[C-1]=void 0);let F=!1;if(T){const I=T.oldPos-C;F=T&&0<=I&&I<u}const k=P&&P.oldPos+1<c;if(!F&&!k){m[C]=void 0;continue}if(!k||F&&P.oldPos<T.oldPos?v=this.addToPath(T,!0,!1,0,s):v=this.addToPath(P,!1,!0,1,s),g=this.extractCommon(v,r,e,C,s),v.oldPos+1>=c&&g+1>=u)return o(this.buildValues(v.lastComponent,r,e))||!0;m[C]=v,v.oldPos+1>=c&&(b=Math.min(b,C-1)),g+1>=u&&(x=Math.max(x,C+1))}d++};if(n)(function C(){setTimeout(function(){if(d>p||Date.now()>D)return n(void 0);A()||C()},0)})();else for(;d<=p&&Date.now()<=D;){const C=A();if(C)return C}}addToPath(e,r,s,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===r&&o.removed===s?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:r,removed:s,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:r,removed:s,previousComponent:o}}}extractCommon(e,r,s,n,i){const o=r.length,u=s.length;let c=e.oldPos,d=c-n,p=0;for(;d+1<o&&c+1<u&&this.equals(s[c+1],r[d+1],i);)d++,c++,p++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return p&&!i.oneChangePerToken&&(e.lastComponent={count:p,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=c,d}equals(e,r,s){return s.comparator?s.comparator(e,r):e===r||!!s.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){const r=[];for(let s=0;s<e.length;s++)e[s]&&r.push(e[s]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,s){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let u=0,c=0,d=0;for(;u<o;u++){const p=n[u];if(p.removed)p.value=this.join(s.slice(d,d+p.count)),d+=p.count;else{if(!p.added&&this.useLongestToken){let f=r.slice(c,c+p.count);f=f.map(function(D,m){const g=s[d+m];return g.length>D.length?g:D}),p.value=this.join(f)}else p.value=this.join(r.slice(c,c+p.count));c+=p.count,p.added||(d+=p.count)}}return n}};class Vee extends _T{}const Hee=new Vee;function Wee(t,e,r){return Hee.diff(t,e,r)}const Ag="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class Jee extends _T{tokenize(e){const r=new RegExp(`(\\r?\\n)|[${Ag}]+|[^\\S\\n\\r]+|[^${Ag}]`,"ug");return e.match(r)||[]}}const Gee=new Jee;function Kee(t,e,r){return Gee.diff(t,e,r)}function Xee(t,e){if(t.length===0)return e.length;if(e.length===0)return t.length;const r=[];let s;for(s=0;s<=e.length;s++)r[s]=[s];let n;for(n=0;n<=t.length;n++)r[0][n]=n;for(s=1;s<=e.length;s++)for(n=1;n<=t.length;n++)e.charAt(s-1)===t.charAt(n-1)?r[s][n]=r[s-1][n-1]:r[s][n]=Math.min(r[s-1][n-1]+1,Math.min(r[s][n-1]+1,r[s-1][n]+1));return r[e.length][t.length]}function Zm(t){return(e,r)=>{const s=t(e).trim(),n=t(r).trim();return Xee(s,n)/(s.length+n.length)}}function e2(t){function e(s,n,i=new Map){let o=1/0,u;for(let c=0;c<s.length;++c)for(let d=0;d<n.length;++d){const p=JSON.stringify([s[c],n[d]]);let f;i.has(p)&&(f=i.get(p))||(f=t(s[c],n[d]),i.set(p,f)),f<o&&(o=f,u={indexA:c,indexB:d,score:o})}return u}function r(s,n,i=0,o=new Map){const u=e(s,n,o);if(!u||s.length+n.length<3)return[[s,n]];const c=s.slice(0,u.indexA),d=n.slice(0,u.indexB),p=[s[u.indexA]],f=[n[u.indexB]],D=u.indexA+1,m=u.indexB+1,g=s.slice(D),x=n.slice(m),b=r(c,d,i+1,o),A=r(p,f,i+1,o),C=r(g,x,i+1,o);let v=A;return(u.indexA>0||u.indexB>0)&&(v=b.concat(v)),(s.length>D||n.length>m)&&(v=v.concat(C)),v}return r}const or={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},sp={matching:$ee.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:Mee.WORD,colorScheme:na.LIGHT},Ds="/",jT=Zm(t=>t.value),Yee=e2(jT);function lh(t){return t.indexOf("dev/null")!==-1}function Qee(t){return t.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function Zee(t){return t.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oc(t){switch(t){case St.CONTEXT:return or.CONTEXT;case St.INSERT:return or.INSERTS;case St.DELETE:return or.DELETES}}function t2(t){switch(t){case na.DARK:return"d2h-dark-color-scheme";case na.AUTO:return"d2h-auto-color-scheme";case na.LIGHT:default:return"d2h-light-color-scheme"}}function ete(t){return t?2:1}function ia(t){return t.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Fs(t,e,r=!0){const s=ete(e);return{prefix:t.substring(0,s),content:r?ia(t.substring(s)):t.substring(s)}}function np(t){const e=xg(t.oldName),r=xg(t.newName);if(e!==r&&!lh(e)&&!lh(r)){const s=[],n=[],i=e.split(Ds),o=r.split(Ds),u=i.length,c=o.length;let d=0,p=u-1,f=c-1;for(;d<p&&d<f&&i[d]===o[d];)s.push(o[d]),d+=1;for(;p>d&&f>d&&i[p]===o[f];)n.unshift(o[f]),p-=1,f-=1;const D=s.join(Ds),m=n.join(Ds),g=i.slice(d,p+1).join(Ds),x=o.slice(d,f+1).join(Ds);return D.length&&m.length?D+Ds+"{"+g+" → "+x+"}"+Ds+m:D.length?D+Ds+"{"+g+" → "+x+"}":m.length?"{"+g+" → "+x+"}"+Ds+m:e+" → "+r}else return lh(r)?e:r}function r2(t){return`d2h-${Ree(np(t)).toString().slice(-6)}`}function s2(t){let e="file-changed";return t.isRename||t.isCopy?e="file-renamed":t.isNew?e="file-added":t.isDeleted?e="file-deleted":t.newName!==t.oldName&&(e="file-renamed"),e}function RT(t,e,r,s={}){const{matching:n,maxLineLengthHighlight:i,matchWordsThreshold:o,diffStyle:u}=Object.assign(Object.assign({},sp),s),c=Fs(t,r,!1),d=Fs(e,r,!1);if(c.content.length>i||d.content.length>i)return{oldLine:{prefix:c.prefix,content:ia(c.content)},newLine:{prefix:d.prefix,content:ia(d.content)}};const p=u==="char"?Wee(c.content,d.content):Kee(c.content,d.content),f=[];if(u==="word"&&n==="words"){const m=p.filter(b=>b.removed),g=p.filter(b=>b.added);Yee(g,m).forEach(b=>{b[0].length===1&&b[1].length===1&&jT(b[0][0],b[1][0])<o&&(f.push(b[0][0]),f.push(b[1][0]))})}const D=p.reduce((m,g)=>{const x=g.added?"ins":g.removed?"del":null,b=f.indexOf(g)>-1?' class="d2h-change"':"",A=ia(g.value);return x!==null?`${m}<${x}${b}>${A}</${x}>`:`${m}${A}`},"");return{oldLine:{prefix:c.prefix,content:Qee(D)},newLine:{prefix:d.prefix,content:Zee(D)}}}const vg="file-summary",tte="icon",rte={colorScheme:sp.colorScheme};class ste{constructor(e,r={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},rte),r)}render(e){const r=e.map(s=>this.hoganUtils.render(vg,"line",{fileHtmlId:r2(s),oldName:s.oldName,newName:s.newName,fileName:np(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(tte,s2(s))})).join(`
|
|
259
|
-
`);return this.hoganUtils.render(vg,"wrapper",{colorScheme:t2(this.config.colorScheme),filesNumber:e.length,files:r})}}const qT=Object.assign(Object.assign({},sp),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),mo="generic",Tg="line-by-line",nte="icon",ite="tag";class ate{constructor(e,r={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},qT),r)}render(e){const r=e.map(s=>{let n;return s.blocks.length?n=this.generateFileHtml(s):n=this.generateEmptyDiff(),this.makeFileDiffHtml(s,n)}).join(`
|
|
260
|
-
`);return this.hoganUtils.render(mo,"wrapper",{colorScheme:t2(this.config.colorScheme),content:r})}makeFileDiffHtml(e,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&e.blocks.length===0)return"";const s=this.hoganUtils.template(Tg,"file-diff"),n=this.hoganUtils.template(mo,"file-path"),i=this.hoganUtils.template(nte,"file"),o=this.hoganUtils.template(ite,s2(e));return s.render({file:e,fileHtmlId:r2(e),diffs:r,filePath:n.render({fileDiffName:np(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(mo,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:or})}generateFileHtml(e){const r=e2(Zm(s=>Fs(s.content,e.isCombined).content));return e.blocks.map(s=>{let n=this.hoganUtils.render(mo,"block-header",{CSSLineClass:or,blockHeader:e.isTooBig?s.header:ia(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([i,o,u])=>{if(o.length&&u.length&&!i.length)this.applyRematchMatching(o,u,r).map(([c,d])=>{const{left:p,right:f}=this.processChangedLines(e,e.isCombined,c,d);n+=p,n+=f});else if(i.length)i.forEach(c=>{const{prefix:d,content:p}=Fs(c.content,e.isCombined);n+=this.generateSingleLineHtml(e,{type:or.CONTEXT,prefix:d,content:p,oldNumber:c.oldNumber,newNumber:c.newNumber})});else if(o.length||u.length){const{left:c,right:d}=this.processChangedLines(e,e.isCombined,o,u);n+=c,n+=d}else console.error("Unknown state reached while processing groups of lines",i,o,u)}),n}).join(`
|
|
261
|
-
`)}applyLineGroupping(e){const r=[];let s=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==St.INSERT&&n.length||o.type===St.CONTEXT&&s.length>0)&&(r.push([[],s,n]),s=[],n=[]),o.type===St.CONTEXT?r.push([[o],[],[]]):o.type===St.INSERT&&s.length===0?r.push([[],[],[o]]):o.type===St.INSERT&&s.length>0?n.push(o):o.type===St.DELETE&&s.push(o)}return(s.length||n.length)&&(r.push([[],s,n]),s=[],n=[]),r}applyRematchMatching(e,r,s){const n=e.length*r.length,i=OT(e.concat(r).map(u=>u.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(e,r):[[e,r]]}processChangedLines(e,r,s,n){const i={right:"",left:""},o=Math.max(s.length,n.length);for(let u=0;u<o;u++){const c=s[u],d=n[u],p=c!==void 0&&d!==void 0?RT(c.content,d.content,r,this.config):void 0,f=c!==void 0&&c.oldNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.oldLine.prefix,content:p.oldLine.content,type:or.DELETE_CHANGES}:Object.assign(Object.assign({},Fs(c.content,r)),{type:oc(c.type)})),{oldNumber:c.oldNumber,newNumber:c.newNumber}):void 0,D=d!==void 0&&d.newNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.newLine.prefix,content:p.newLine.content,type:or.INSERT_CHANGES}:Object.assign(Object.assign({},Fs(d.content,r)),{type:oc(d.type)})),{oldNumber:d.oldNumber,newNumber:d.newNumber}):void 0,{left:m,right:g}=this.generateLineHtml(e,f,D);i.left+=m,i.right+=g}return i}generateLineHtml(e,r,s){return{left:this.generateSingleLineHtml(e,r),right:this.generateSingleLineHtml(e,s)}}generateSingleLineHtml(e,r){if(r===void 0)return"";const s=this.hoganUtils.render(Tg,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(mo,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?" ":r.prefix,content:r.content,lineNumber:s,line:r,file:e})}}const UT=Object.assign(Object.assign({},sp),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),yo="generic",ote="side-by-side",ute="icon",lte="tag";class cte{constructor(e,r={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},UT),r)}render(e){const r=e.map(s=>{let n;return s.blocks.length?n=this.generateFileHtml(s):n=this.generateEmptyDiff(),this.makeFileDiffHtml(s,n)}).join(`
|
|
262
|
-
`);return this.hoganUtils.render(yo,"wrapper",{colorScheme:t2(this.config.colorScheme),content:r})}makeFileDiffHtml(e,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&e.blocks.length===0)return"";const s=this.hoganUtils.template(ote,"file-diff"),n=this.hoganUtils.template(yo,"file-path"),i=this.hoganUtils.template(ute,"file"),o=this.hoganUtils.template(lte,s2(e));return s.render({file:e,fileHtmlId:r2(e),diffs:r,filePath:n.render({fileDiffName:np(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(yo,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:or})}}generateFileHtml(e){const r=e2(Zm(s=>Fs(s.content,e.isCombined).content));return e.blocks.map(s=>{const n={left:this.makeHeaderHtml(s.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([i,o,u])=>{if(o.length&&u.length&&!i.length)this.applyRematchMatching(o,u,r).map(([c,d])=>{const{left:p,right:f}=this.processChangedLines(e.isCombined,c,d);n.left+=p,n.right+=f});else if(i.length)i.forEach(c=>{const{prefix:d,content:p}=Fs(c.content,e.isCombined),{left:f,right:D}=this.generateLineHtml({type:or.CONTEXT,prefix:d,content:p,number:c.oldNumber},{type:or.CONTEXT,prefix:d,content:p,number:c.newNumber});n.left+=f,n.right+=D});else if(o.length||u.length){const{left:c,right:d}=this.processChangedLines(e.isCombined,o,u);n.left+=c,n.right+=d}else console.error("Unknown state reached while processing groups of lines",i,o,u)}),n}).reduce((s,n)=>({left:s.left+n.left,right:s.right+n.right}),{left:"",right:""})}applyLineGroupping(e){const r=[];let s=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==St.INSERT&&n.length||o.type===St.CONTEXT&&s.length>0)&&(r.push([[],s,n]),s=[],n=[]),o.type===St.CONTEXT?r.push([[o],[],[]]):o.type===St.INSERT&&s.length===0?r.push([[],[],[o]]):o.type===St.INSERT&&s.length>0?n.push(o):o.type===St.DELETE&&s.push(o)}return(s.length||n.length)&&(r.push([[],s,n]),s=[],n=[]),r}applyRematchMatching(e,r,s){const n=e.length*r.length,i=OT(e.concat(r).map(u=>u.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(e,r):[[e,r]]}makeHeaderHtml(e,r){return this.hoganUtils.render(yo,"block-header",{CSSLineClass:or,blockHeader:r?.isTooBig?e:ia(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,r,s){const n={right:"",left:""},i=Math.max(r.length,s.length);for(let o=0;o<i;o++){const u=r[o],c=s[o],d=u!==void 0&&c!==void 0?RT(u.content,c.content,e,this.config):void 0,p=u!==void 0&&u.oldNumber!==void 0?Object.assign(Object.assign({},d!==void 0?{prefix:d.oldLine.prefix,content:d.oldLine.content,type:or.DELETE_CHANGES}:Object.assign(Object.assign({},Fs(u.content,e)),{type:oc(u.type)})),{number:u.oldNumber}):void 0,f=c!==void 0&&c.newNumber!==void 0?Object.assign(Object.assign({},d!==void 0?{prefix:d.newLine.prefix,content:d.newLine.content,type:or.INSERT_CHANGES}:Object.assign(Object.assign({},Fs(c.content,e)),{type:oc(c.type)})),{number:c.newNumber}):void 0,{left:D,right:m}=this.generateLineHtml(p,f);n.left+=D,n.right+=m}return n}generateLineHtml(e,r){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(r)}}generateSingleHtml(e){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(yo,"line",{type:e?.type||`${or.CONTEXT} d2h-emptyplaceholder`,lineClass:e!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:e!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:e?.prefix===" "?" ":e?.prefix,content:e?.content,lineNumber:e?.number})}}var ch={},Fg;function pte(){return Fg||(Fg=1,(function(t){(function(e){var r=/\S/,s=/\"/g,n=/\n/g,i=/\r/g,o=/\\/g,u=/\u2028/,c=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(L,B){var O=L.length,R=0,q=1,V=2,j=R,z=null,M=null,ae="",ce=[],S=!1,te=0,Z=0,N="{{",se="}}";function ye(){ae.length>0&&(ce.push({tag:"_t",text:new String(ae)}),ae="")}function ne(){for(var G=!0,ie=Z;ie<ce.length;ie++)if(G=e.tags[ce[ie].tag]<e.tags._v||ce[ie].tag=="_t"&&ce[ie].text.match(r)===null,!G)return!1;return G}function Q(G,ie){if(ye(),G&&ne())for(var de=Z,Pe;de<ce.length;de++)ce[de].text&&((Pe=ce[de+1])&&Pe.tag==">"&&(Pe.indent=ce[de].text.toString()),ce.splice(de,1));else ie||ce.push({tag:`
|
|
263
|
-
`});S=!1,Z=ce.length}function J(G,ie){var de="="+se,Pe=G.indexOf(de,ie),ve=p(G.substring(G.indexOf("=",ie)+1,Pe)).split(" ");return N=ve[0],se=ve[ve.length-1],Pe+de.length-1}for(B&&(B=B.split(" "),N=B[0],se=B[1]),te=0;te<O;te++)j==R?f(N,L,te)?(--te,ye(),j=q):L.charAt(te)==`
|
|
264
|
-
`?Q(S):ae+=L.charAt(te):j==q?(te+=N.length-1,M=e.tags[L.charAt(te+1)],z=M?L.charAt(te+1):"_v",z=="="?(te=J(L,te),j=R):(M&&te++,j=V),S=te):f(se,L,te)?(ce.push({tag:z,n:p(ae),otag:N,ctag:se,i:z=="/"?S-N.length:te+se.length}),ae="",te+=se.length-1,j=R,z=="{"&&(se=="}}"?te++:d(ce[ce.length-1]))):ae+=L.charAt(te);return Q(S,!0),ce};function d(I){I.n.substr(I.n.length-1)==="}"&&(I.n=I.n.substring(0,I.n.length-1))}function p(I){return I.trim?I.trim():I.replace(/^\s*|\s*$/g,"")}function f(I,L,B){if(L.charAt(B)!=I.charAt(0))return!1;for(var O=1,R=I.length;O<R;O++)if(L.charAt(B+O)!=I.charAt(O))return!1;return!0}var D={_t:!0,"\n":!0,$:!0,"/":!0};function m(I,L,B,O){var R=[],q=null,V=null,j=null;for(V=B[B.length-1];I.length>0;){if(j=I.shift(),V&&V.tag=="<"&&!(j.tag in D))throw new Error("Illegal content in < super tag.");if(e.tags[j.tag]<=e.tags.$||g(j,O))B.push(j),j.nodes=m(I,j.tag,B,O);else if(j.tag=="/"){if(B.length===0)throw new Error("Closing tag without opener: /"+j.n);if(q=B.pop(),j.n!=q.n&&!x(j.n,q.n,O))throw new Error("Nesting error: "+q.n+" vs. "+j.n);return q.end=j.i,R}else j.tag==`
|
|
265
|
-
`&&(j.last=I.length==0||I[0].tag==`
|
|
266
|
-
`);R.push(j)}if(B.length>0)throw new Error("missing closing tag: "+B.pop().n);return R}function g(I,L){for(var B=0,O=L.length;B<O;B++)if(L[B].o==I.n)return I.tag="#",!0}function x(I,L,B){for(var O=0,R=B.length;O<R;O++)if(B[O].c==I&&B[O].o==L)return!0}function b(I){var L=[];for(var B in I)L.push('"'+v(B)+'": function(c,p,t,i) {'+I[B]+"}");return"{ "+L.join(",")+" }"}function A(I){var L=[];for(var B in I.partials)L.push('"'+v(B)+'":{name:"'+v(I.partials[B].name)+'", '+A(I.partials[B])+"}");return"partials: {"+L.join(",")+"}, subs: "+b(I.subs)}e.stringify=function(I,L,B){return"{code: function (c,p,i) { "+e.wrapMain(I.code)+" },"+A(I)+"}"};var C=0;e.generate=function(I,L,B){C=0;var O={code:"",subs:{},partials:{}};return e.walk(I,O),B.asString?this.stringify(O,L,B):this.makeTemplate(O,L,B)},e.wrapMain=function(I){return'var t=this;t.b(i=i||"");'+I+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(I,L,B){var O=this.makePartials(I);return O.code=new Function("c","p","i",this.wrapMain(I.code)),new this.template(O,L,this,B)},e.makePartials=function(I){var L,B={subs:{},partials:I.partials,name:I.name};for(L in B.partials)B.partials[L]=this.makePartials(B.partials[L]);for(L in I.subs)B.subs[L]=new Function("c","p","t","i",I.subs[L]);return B};function v(I){return I.replace(o,"\\\\").replace(s,'\\"').replace(n,"\\n").replace(i,"\\r").replace(u,"\\u2028").replace(c,"\\u2029")}function P(I){return~I.indexOf(".")?"d":"f"}function T(I,L){var B="<"+(L.prefix||""),O=B+I.n+C++;return L.partials[O]={name:I.n,partials:{}},L.code+='t.b(t.rp("'+v(O)+'",c,p,"'+(I.indent||"")+'"));',O}e.codegen={"#":function(I,L){L.code+="if(t.s(t."+P(I.n)+'("'+v(I.n)+'",c,p,1),c,p,0,'+I.i+","+I.end+',"'+I.otag+" "+I.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(I.nodes,L),L.code+="});c.pop();}"},"^":function(I,L){L.code+="if(!t.s(t."+P(I.n)+'("'+v(I.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(I.nodes,L),L.code+="};"},">":T,"<":function(I,L){var B={partials:{},code:"",subs:{},inPartial:!0};e.walk(I.nodes,B);var O=L.partials[T(I,L)];O.subs=B.subs,O.partials=B.partials},$:function(I,L){var B={subs:{},code:"",partials:L.partials,prefix:I.n};e.walk(I.nodes,B),L.subs[I.n]=B.code,L.inPartial||(L.code+='t.sub("'+v(I.n)+'",c,p,i);')},"\n":function(I,L){L.code+=k('"\\n"'+(I.last?"":" + i"))},_v:function(I,L){L.code+="t.b(t.v(t."+P(I.n)+'("'+v(I.n)+'",c,p,0)));'},_t:function(I,L){L.code+=k('"'+v(I.text)+'"')},"{":F,"&":F};function F(I,L){L.code+="t.b(t.t(t."+P(I.n)+'("'+v(I.n)+'",c,p,0)));'}function k(I){return"t.b("+I+");"}e.walk=function(I,L){for(var B,O=0,R=I.length;O<R;O++)B=e.codegen[I[O].tag],B&&B(I[O],L);return L},e.parse=function(I,L,B){return B=B||{},m(I,"",[],B.sectionTags||[])},e.cache={},e.cacheKey=function(I,L){return[I,!!L.asString,!!L.disableLambda,L.delimiters,!!L.modelGet].join("||")},e.compile=function(I,L){L=L||{};var B=e.cacheKey(I,L),O=this.cache[B];if(O){var R=O.partials;for(var q in R)delete R[q].instance;return O}return O=this.generate(this.parse(this.scan(I,L.delimiters),I,L),I,L),this.cache[B]=O}})(t)})(ch)),ch}var ph={},wg;function hte(){return wg||(wg=1,(function(t){(function(e){e.Template=function(m,g,x,b){m=m||{},this.r=m.code||this.r,this.c=x,this.options=b||{},this.text=g||"",this.partials=m.partials||{},this.subs=m.subs||{},this.buf=""},e.Template.prototype={r:function(m,g,x){return""},v:f,t:p,render:function(g,x,b){return this.ri([g],x||{},b)},ri:function(m,g,x){return this.r(m,g,x)},ep:function(m,g){var x=this.partials[m],b=g[x.name];if(x.instance&&x.base==b)return x.instance;if(typeof b=="string"){if(!this.c)throw new Error("No compiler available.");b=this.c.compile(b,this.options)}if(!b)return null;if(this.partials[m].base=b,x.subs){g.stackText||(g.stackText={});for(key in x.subs)g.stackText[key]||(g.stackText[key]=this.activeSub!==void 0&&g.stackText[this.activeSub]?g.stackText[this.activeSub]:this.text);b=s(b,x.subs,x.partials,this.stackSubs,this.stackPartials,g.stackText)}return this.partials[m].instance=b,b},rp:function(m,g,x,b){var A=this.ep(m,x);return A?A.ri(g,x,b):""},rs:function(m,g,x){var b=m[m.length-1];if(!D(b)){x(m,g,this);return}for(var A=0;A<b.length;A++)m.push(b[A]),x(m,g,this),m.pop()},s:function(m,g,x,b,A,C,v){var P;return D(m)&&m.length===0?!1:(typeof m=="function"&&(m=this.ms(m,g,x,b,A,C,v)),P=!!m,!b&&P&&g&&g.push(typeof m=="object"?m:g[g.length-1]),P)},d:function(m,g,x,b){var A,C=m.split("."),v=this.f(C[0],g,x,b),P=this.options.modelGet,T=null;if(m==="."&&D(g[g.length-2]))v=g[g.length-1];else for(var F=1;F<C.length;F++)A=r(C[F],v,P),A!==void 0?(T=v,v=A):v="";return b&&!v?!1:(!b&&typeof v=="function"&&(g.push(T),v=this.mv(v,g,x),g.pop()),v)},f:function(m,g,x,b){for(var A=!1,C=null,v=!1,P=this.options.modelGet,T=g.length-1;T>=0;T--)if(C=g[T],A=r(m,C,P),A!==void 0){v=!0;break}return v?(!b&&typeof A=="function"&&(A=this.mv(A,g,x)),A):b?!1:""},ls:function(m,g,x,b,A,C){var v=this.options.delimiters;return this.options.delimiters=C,this.b(this.ct(p(m.call(g,A,x)),g,b)),this.options.delimiters=v,!1},ct:function(m,g,x){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(m,this.options).render(g,x)},b:function(m){this.buf+=m},fl:function(){var m=this.buf;return this.buf="",m},ms:function(m,g,x,b,A,C,v){var P,T=g[g.length-1],F=m.call(T);return typeof F=="function"?b?!0:(P=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(F,T,g,x,P.substring(A,C),v)):F},mv:function(m,g,x){var b=g[g.length-1],A=m.call(b);return typeof A=="function"?this.ct(p(A.call(b)),b,x):A},sub:function(m,g,x,b){var A=this.subs[m];A&&(this.activeSub=m,A(g,x,this,b),this.activeSub=!1)}};function r(m,g,x){var b;return g&&typeof g=="object"&&(g[m]!==void 0?b=g[m]:x&&g.get&&typeof g.get=="function"&&(b=g.get(m))),b}function s(m,g,x,b,A,C){function v(){}v.prototype=m;function P(){}P.prototype=m.subs;var T,F=new v;F.subs=new P,F.subsText={},F.buf="",b=b||{},F.stackSubs=b,F.subsText=C;for(T in g)b[T]||(b[T]=g[T]);for(T in b)F.subs[T]=b[T];A=A||{},F.stackPartials=A;for(T in x)A[T]||(A[T]=x[T]);for(T in A)F.partials[T]=A[T];return F}var n=/&/g,i=/</g,o=/>/g,u=/\'/g,c=/\"/g,d=/[&<>\"\']/;function p(m){return String(m??"")}function f(m){return m=p(m),d.test(m)?m.replace(n,"&").replace(i,"<").replace(o,">").replace(u,"'").replace(c,"""):m}var D=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"}})(t)})(ph)),ph}var hh,Sg;function dte(){if(Sg)return hh;Sg=1;var t=pte();return t.Template=hte().Template,t.template=t.Template,hh=t,hh}var Ft=dte();const Bt={};Bt["file-summary-line"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
|
|
267
|
-
`+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
|
|
268
|
-
`+r),s.b(s.rp("<fileIcon0",t,e," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",t,e,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",t,e,0))),s.b("</a>"),s.b(`
|
|
269
|
-
`+r),s.b(' <span class="d2h-file-stats">'),s.b(`
|
|
270
|
-
`+r),s.b(' <span class="d2h-lines-added">'),s.b(s.v(s.f("addedLines",t,e,0))),s.b("</span>"),s.b(`
|
|
271
|
-
`+r),s.b(' <span class="d2h-lines-deleted">'),s.b(s.v(s.f("deletedLines",t,e,0))),s.b("</span>"),s.b(`
|
|
272
|
-
`+r),s.b(" </span>"),s.b(`
|
|
273
|
-
`+r),s.b(" </span>"),s.b(`
|
|
274
|
-
`+r),s.b("</li>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});Bt["file-summary-wrapper"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-file-list-wrapper '),s.b(s.v(s.f("colorScheme",t,e,0))),s.b('">'),s.b(`
|
|
275
|
-
`+r),s.b(' <div class="d2h-file-list-header">'),s.b(`
|
|
276
|
-
`+r),s.b(' <span class="d2h-file-list-title">Files changed ('),s.b(s.v(s.f("filesNumber",t,e,0))),s.b(")</span>"),s.b(`
|
|
277
|
-
`+r),s.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),s.b(`
|
|
278
|
-
`+r),s.b(' <a class="d2h-file-switch d2h-show">show</a>'),s.b(`
|
|
279
|
-
`+r),s.b(" </div>"),s.b(`
|
|
280
|
-
`+r),s.b(' <ol class="d2h-file-list">'),s.b(`
|
|
281
|
-
`+r),s.b(" "),s.b(s.t(s.f("files",t,e,0))),s.b(`
|
|
282
|
-
`+r),s.b(" </ol>"),s.b(`
|
|
283
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Bt["generic-block-header"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
|
|
284
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",t,e,0))),s.b(" "),s.b(s.v(s.d("CSSLineClass.INFO",t,e,0))),s.b('"></td>'),s.b(`
|
|
285
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",t,e,0))),s.b('">'),s.b(`
|
|
286
|
-
`+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",t,e,0))),s.b('">'),s.s(s.f("blockHeader",t,e,1),t,e,0,156,173,"{{ }}")&&(s.rs(t,e,function(n,i,o){o.b(o.t(o.f("blockHeader",n,i,0)))}),t.pop()),s.s(s.f("blockHeader",t,e,1),t,e,1,0,0,"")||s.b(" "),s.b("</div>"),s.b(`
|
|
287
|
-
`+r),s.b(" </td>"),s.b(`
|
|
288
|
-
`+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});Bt["generic-empty-diff"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
|
|
289
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",t,e,0))),s.b('">'),s.b(`
|
|
290
|
-
`+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",t,e,0))),s.b('">'),s.b(`
|
|
291
|
-
`+r),s.b(" File without changes"),s.b(`
|
|
292
|
-
`+r),s.b(" </div>"),s.b(`
|
|
293
|
-
`+r),s.b(" </td>"),s.b(`
|
|
294
|
-
`+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});Bt["generic-file-path"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-file-name-wrapper">'),s.b(`
|
|
295
|
-
`+r),s.b(s.rp("<fileIcon0",t,e," ")),s.b(' <span class="d2h-file-name">'),s.b(s.v(s.f("fileDiffName",t,e,0))),s.b("</span>"),s.b(`
|
|
296
|
-
`+r),s.b(s.rp("<fileTag1",t,e," ")),s.b("</span>"),s.b(`
|
|
297
|
-
`+r),s.b('<label class="d2h-file-collapse">'),s.b(`
|
|
298
|
-
`+r),s.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),s.b(`
|
|
299
|
-
`+r),s.b(" Viewed"),s.b(`
|
|
300
|
-
`+r),s.b("</label>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});Bt["generic-line"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
|
|
301
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",t,e,0))),s.b(" "),s.b(s.v(s.f("type",t,e,0))),s.b('">'),s.b(`
|
|
302
|
-
`+r),s.b(" "),s.b(s.t(s.f("lineNumber",t,e,0))),s.b(`
|
|
303
|
-
`+r),s.b(" </td>"),s.b(`
|
|
304
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.f("type",t,e,0))),s.b('">'),s.b(`
|
|
305
|
-
`+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",t,e,0))),s.b('">'),s.b(`
|
|
306
|
-
`+r),s.s(s.f("prefix",t,e,1),t,e,0,162,238,"{{ }}")&&(s.rs(t,e,function(n,i,o){o.b(' <span class="d2h-code-line-prefix">'),o.b(o.t(o.f("prefix",n,i,0))),o.b("</span>"),o.b(`
|
|
307
|
-
`+r)}),t.pop()),s.s(s.f("prefix",t,e,1),t,e,1,0,0,"")||(s.b(' <span class="d2h-code-line-prefix"> </span>'),s.b(`
|
|
308
|
-
`+r)),s.s(s.f("content",t,e,1),t,e,0,371,445,"{{ }}")&&(s.rs(t,e,function(n,i,o){o.b(' <span class="d2h-code-line-ctn">'),o.b(o.t(o.f("content",n,i,0))),o.b("</span>"),o.b(`
|
|
309
|
-
`+r)}),t.pop()),s.s(s.f("content",t,e,1),t,e,1,0,0,"")||(s.b(' <span class="d2h-code-line-ctn"><br></span>'),s.b(`
|
|
310
|
-
`+r)),s.b(" </div>"),s.b(`
|
|
311
|
-
`+r),s.b(" </td>"),s.b(`
|
|
312
|
-
`+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});Bt["generic-wrapper"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-wrapper '),s.b(s.v(s.f("colorScheme",t,e,0))),s.b('">'),s.b(`
|
|
313
|
-
`+r),s.b(" "),s.b(s.t(s.f("content",t,e,0))),s.b(`
|
|
314
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Bt["icon-file-added"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),s.b(`
|
|
315
|
-
`+r),s.b(' width="14">'),s.b(`
|
|
316
|
-
`+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),s.b(`
|
|
317
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Bt["icon-file-changed"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),s.b(`
|
|
318
|
-
`+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
|
|
319
|
-
`+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),s.b(`
|
|
320
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Bt["icon-file-deleted"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),s.b(`
|
|
321
|
-
`+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
|
|
322
|
-
`+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),s.b(`
|
|
323
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Bt["icon-file-renamed"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),s.b(`
|
|
324
|
-
`+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
|
|
325
|
-
`+r),s.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),s.b(`
|
|
326
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Bt["icon-file"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),s.b(`
|
|
327
|
-
`+r),s.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),s.b(`
|
|
328
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Bt["line-by-line-file-diff"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",t,e,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",t,e,0))),s.b('">'),s.b(`
|
|
329
|
-
`+r),s.b(' <div class="d2h-file-header">'),s.b(`
|
|
330
|
-
`+r),s.b(" "),s.b(s.t(s.f("filePath",t,e,0))),s.b(`
|
|
331
|
-
`+r),s.b(" </div>"),s.b(`
|
|
332
|
-
`+r),s.b(' <div class="d2h-file-diff">'),s.b(`
|
|
333
|
-
`+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
|
|
334
|
-
`+r),s.b(' <table class="d2h-diff-table">'),s.b(`
|
|
335
|
-
`+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
|
|
336
|
-
`+r),s.b(" "),s.b(s.t(s.f("diffs",t,e,0))),s.b(`
|
|
337
|
-
`+r),s.b(" </tbody>"),s.b(`
|
|
338
|
-
`+r),s.b(" </table>"),s.b(`
|
|
339
|
-
`+r),s.b(" </div>"),s.b(`
|
|
340
|
-
`+r),s.b(" </div>"),s.b(`
|
|
341
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Bt["line-by-line-numbers"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div class="line-num1">'),s.b(s.v(s.f("oldNumber",t,e,0))),s.b("</div>"),s.b(`
|
|
342
|
-
`+r),s.b('<div class="line-num2">'),s.b(s.v(s.f("newNumber",t,e,0))),s.b("</div>"),s.fl()},partials:{},subs:{}});Bt["side-by-side-file-diff"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",t,e,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",t,e,0))),s.b('">'),s.b(`
|
|
343
|
-
`+r),s.b(' <div class="d2h-file-header">'),s.b(`
|
|
344
|
-
`+r),s.b(" "),s.b(s.t(s.f("filePath",t,e,0))),s.b(`
|
|
345
|
-
`+r),s.b(" </div>"),s.b(`
|
|
346
|
-
`+r),s.b(' <div class="d2h-files-diff">'),s.b(`
|
|
347
|
-
`+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
|
|
348
|
-
`+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
|
|
349
|
-
`+r),s.b(' <table class="d2h-diff-table">'),s.b(`
|
|
350
|
-
`+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
|
|
351
|
-
`+r),s.b(" "),s.b(s.t(s.d("diffs.left",t,e,0))),s.b(`
|
|
352
|
-
`+r),s.b(" </tbody>"),s.b(`
|
|
353
|
-
`+r),s.b(" </table>"),s.b(`
|
|
354
|
-
`+r),s.b(" </div>"),s.b(`
|
|
355
|
-
`+r),s.b(" </div>"),s.b(`
|
|
356
|
-
`+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
|
|
357
|
-
`+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
|
|
358
|
-
`+r),s.b(' <table class="d2h-diff-table">'),s.b(`
|
|
359
|
-
`+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
|
|
360
|
-
`+r),s.b(" "),s.b(s.t(s.d("diffs.right",t,e,0))),s.b(`
|
|
361
|
-
`+r),s.b(" </tbody>"),s.b(`
|
|
362
|
-
`+r),s.b(" </table>"),s.b(`
|
|
363
|
-
`+r),s.b(" </div>"),s.b(`
|
|
364
|
-
`+r),s.b(" </div>"),s.b(`
|
|
365
|
-
`+r),s.b(" </div>"),s.b(`
|
|
366
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Bt["tag-file-added"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});Bt["tag-file-changed"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});Bt["tag-file-deleted"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});Bt["tag-file-renamed"]=new Ft.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class fte{constructor({compiledTemplates:e={},rawTemplates:r={}}){const s=Object.entries(r).reduce((n,[i,o])=>{const u=Ft.compile(o,{asString:!1});return Object.assign(Object.assign({},n),{[i]:u})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Bt),e),s)}static compile(e){return Ft.compile(e,{asString:!1})}render(e,r,s,n,i){const o=this.templateKey(e,r);try{return this.preCompiledTemplates[o].render(s,n,i)}catch{throw new Error(`Could not find template to render '${o}'`)}}template(e,r){return this.preCompiledTemplates[this.templateKey(e,r)]}templateKey(e,r){return`${e}-${r}`}}const mte=Object.assign(Object.assign(Object.assign({},qT),UT),{outputFormat:Lee.LINE_BY_LINE,drawFileList:!0});function yte(t,e={}){const r=Object.assign(Object.assign({},mte),e),s=typeof t=="string"?zee(t,r):t,n=new fte(r),{colorScheme:i}=r,o={colorScheme:i},u=r.drawFileList?new ste(n,o).render(s):"",c=r.outputFormat==="side-by-side"?new cte(n,r).render(s):new ate(n,r).render(s);return u+c}function Os(){}Os.prototype={diff:function(e,r){var s,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={});var o=this;function u(P){return P=o.postProcess(P,n),i?(setTimeout(function(){i(P)},0),!0):P}e=this.castInput(e,n),r=this.castInput(r,n),e=this.removeEmpty(this.tokenize(e,n)),r=this.removeEmpty(this.tokenize(r,n));var c=r.length,d=e.length,p=1,f=c+d;n.maxEditLength!=null&&(f=Math.min(f,n.maxEditLength));var D=(s=n.timeout)!==null&&s!==void 0?s:1/0,m=Date.now()+D,g=[{oldPos:-1,lastComponent:void 0}],x=this.extractCommon(g[0],r,e,0,n);if(g[0].oldPos+1>=d&&x+1>=c)return u(kg(o,g[0].lastComponent,r,e,o.useLongestToken));var b=-1/0,A=1/0;function C(){for(var P=Math.max(b,-p);P<=Math.min(A,p);P+=2){var T=void 0,F=g[P-1],k=g[P+1];F&&(g[P-1]=void 0);var I=!1;if(k){var L=k.oldPos-P;I=k&&0<=L&&L<c}var B=F&&F.oldPos+1<d;if(!I&&!B){g[P]=void 0;continue}if(!B||I&&F.oldPos<k.oldPos?T=o.addToPath(k,!0,!1,0,n):T=o.addToPath(F,!1,!0,1,n),x=o.extractCommon(T,r,e,P,n),T.oldPos+1>=d&&x+1>=c)return u(kg(o,T.lastComponent,r,e,o.useLongestToken));g[P]=T,T.oldPos+1>=d&&(A=Math.min(A,P-1)),x+1>=c&&(b=Math.max(b,P+1))}p++}if(i)(function P(){setTimeout(function(){if(p>f||Date.now()>m)return i();C()||P()},0)})();else for(;p<=f&&Date.now()<=m;){var v=C();if(v)return v}},addToPath:function(e,r,s,n,i){var o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===r&&o.removed===s?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:r,removed:s,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:r,removed:s,previousComponent:o}}},extractCommon:function(e,r,s,n,i){for(var o=r.length,u=s.length,c=e.oldPos,d=c-n,p=0;d+1<o&&c+1<u&&this.equals(s[c+1],r[d+1],i);)d++,c++,p++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return p&&!i.oneChangePerToken&&(e.lastComponent={count:p,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=c,d},equals:function(e,r,s){return s.comparator?s.comparator(e,r):e===r||s.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],s=0;s<e.length;s++)e[s]&&r.push(e[s]);return r},castInput:function(e){return e},tokenize:function(e){return Array.from(e)},join:function(e){return e.join("")},postProcess:function(e){return e}};function kg(t,e,r,s,n){for(var i=[],o;e;)i.push(e),o=e.previousComponent,delete e.previousComponent,e=o;i.reverse();for(var u=0,c=i.length,d=0,p=0;u<c;u++){var f=i[u];if(f.removed)f.value=t.join(s.slice(p,p+f.count)),p+=f.count;else{if(!f.added&&n){var D=r.slice(d,d+f.count);D=D.map(function(m,g){var x=s[p+g];return x.length>m.length?x:m}),f.value=t.join(D)}else f.value=t.join(r.slice(d,d+f.count));d+=f.count,f.added||(p+=f.count)}}return i}function Pg(t,e){var r;for(r=0;r<t.length&&r<e.length;r++)if(t[r]!=e[r])return t.slice(0,r);return t.slice(0,r)}function Ig(t,e){var r;if(!t||!e||t[t.length-1]!=e[e.length-1])return"";for(r=0;r<t.length&&r<e.length;r++)if(t[t.length-(r+1)]!=e[e.length-(r+1)])return t.slice(-r);return t.slice(-r)}function dd(t,e,r){if(t.slice(0,e.length)!=e)throw Error("string ".concat(JSON.stringify(t)," doesn't start with prefix ").concat(JSON.stringify(e),"; this is a bug"));return r+t.slice(e.length)}function fd(t,e,r){if(!e)return t+r;if(t.slice(-e.length)!=e)throw Error("string ".concat(JSON.stringify(t)," doesn't end with suffix ").concat(JSON.stringify(e),"; this is a bug"));return t.slice(0,-e.length)+r}function Do(t,e){return dd(t,e,"")}function Cl(t,e){return fd(t,e,"")}function Bg(t,e){return e.slice(0,Dte(t,e))}function Dte(t,e){var r=0;t.length>e.length&&(r=t.length-e.length);var s=e.length;t.length<e.length&&(s=t.length);var n=Array(s),i=0;n[0]=0;for(var o=1;o<s;o++){for(e[o]==e[i]?n[o]=n[i]:n[o]=i;i>0&&e[o]!=e[i];)i=n[i];e[o]==e[i]&&i++}i=0;for(var u=r;u<t.length;u++){for(;i>0&&t[u]!=e[i];)i=n[i];t[u]==e[i]&&i++}return i}var uc="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",gte=new RegExp("[".concat(uc,"]+|\\s+|[^").concat(uc,"]"),"ug"),ip=new Os;ip.equals=function(t,e,r){return r.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t.trim()===e.trim()};ip.tokenize=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(e.intlSegmenter.segment(t),function(i){return i.segment})}else r=t.match(gte)||[];var s=[],n=null;return r.forEach(function(i){/\s/.test(i)?n==null?s.push(i):s.push(s.pop()+i):/\s/.test(n)?s[s.length-1]==n?s.push(s.pop()+i):s.push(n+i):s.push(i),n=i}),s};ip.join=function(t){return t.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};ip.postProcess=function(t,e){if(!t||e.oneChangePerToken)return t;var r=null,s=null,n=null;return t.forEach(function(i){i.added?s=i:i.removed?n=i:((s||n)&&Ng(r,n,s,i),r=i,s=null,n=null)}),(s||n)&&Ng(r,n,s,null),t};function Ng(t,e,r,s){if(e&&r){var n=e.value.match(/^\s*/)[0],i=e.value.match(/\s*$/)[0],o=r.value.match(/^\s*/)[0],u=r.value.match(/\s*$/)[0];if(t){var c=Pg(n,o);t.value=fd(t.value,o,c),e.value=Do(e.value,c),r.value=Do(r.value,c)}if(s){var d=Ig(i,u);s.value=dd(s.value,u,d),e.value=Cl(e.value,d),r.value=Cl(r.value,d)}}else if(r)t&&(r.value=r.value.replace(/^\s*/,"")),s&&(s.value=s.value.replace(/^\s*/,""));else if(t&&s){var p=s.value.match(/^\s*/)[0],f=e.value.match(/^\s*/)[0],D=e.value.match(/\s*$/)[0],m=Pg(p,f);e.value=Do(e.value,m);var g=Ig(Do(p,m),D);e.value=Cl(e.value,g),s.value=dd(s.value,p,g),t.value=fd(t.value,p,p.slice(0,p.length-g.length))}else if(s){var x=s.value.match(/^\s*/)[0],b=e.value.match(/\s*$/)[0],A=Bg(b,x);e.value=Cl(e.value,A)}else if(t){var C=t.value.match(/\s*$/)[0],v=e.value.match(/^\s*/)[0],P=Bg(C,v);e.value=Do(e.value,P)}}var xte=new Os;xte.tokenize=function(t){var e=new RegExp("(\\r?\\n)|[".concat(uc,"]+|[^\\S\\n\\r]+|[^").concat(uc,"]"),"ug");return t.match(e)||[]};var ap=new Os;ap.tokenize=function(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,`
|
|
367
|
-
`));var r=[],s=t.split(/(\n|\r\n)/);s[s.length-1]||s.pop();for(var n=0;n<s.length;n++){var i=s[n];n%2&&!e.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r};ap.equals=function(t,e,r){return r.ignoreWhitespace?((!r.newlineIsToken||!t.includes(`
|
|
368
|
-
`))&&(t=t.trim()),(!r.newlineIsToken||!e.includes(`
|
|
369
|
-
`))&&(e=e.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(t.endsWith(`
|
|
370
|
-
`)&&(t=t.slice(0,-1)),e.endsWith(`
|
|
371
|
-
`)&&(e=e.slice(0,-1))),Os.prototype.equals.call(this,t,e,r)};function Lg(t,e,r){return ap.diff(t,e,r)}var bte=new Os;bte.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var Ete=new Os;Ete.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function $g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,s)}return r}function lc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$g(Object(r),!0).forEach(function(s){vte(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function Cte(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ate(t){var e=Cte(t,"string");return typeof e=="symbol"?e:e+""}function md(t){"@babel/helpers - typeof";return md=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},md(t)}function vte(t,e,r){return e=Ate(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dh(t){return Tte(t)||Fte(t)||wte(t)||Ste()}function Tte(t){if(Array.isArray(t))return yd(t)}function Fte(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wte(t,e){if(t){if(typeof t=="string")return yd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yd(t,e)}}function yd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function Ste(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
372
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var iu=new Os;iu.useLongestToken=!0;iu.tokenize=ap.tokenize;iu.castInput=function(t,e){var r=e.undefinedReplacement,s=e.stringifyReplacer,n=s===void 0?function(i,o){return typeof o>"u"?r:o}:s;return typeof t=="string"?t:JSON.stringify(Dd(t,null,null,n),n," ")};iu.equals=function(t,e,r){return Os.prototype.equals.call(iu,t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"),r)};function Dd(t,e,r,s,n){e=e||[],r=r||[],s&&(t=s(n,t));var i;for(i=0;i<e.length;i+=1)if(e[i]===t)return r[i];var o;if(Object.prototype.toString.call(t)==="[object Array]"){for(e.push(t),o=new Array(t.length),r.push(o),i=0;i<t.length;i+=1)o[i]=Dd(t[i],e,r,s,n);return e.pop(),r.pop(),o}if(t&&t.toJSON&&(t=t.toJSON()),md(t)==="object"&&t!==null){e.push(t),o={},r.push(o);var u=[],c;for(c in t)Object.prototype.hasOwnProperty.call(t,c)&&u.push(c);for(u.sort(),i=0;i<u.length;i+=1)c=u[i],o[c]=Dd(t[c],e,r,s,c);e.pop(),r.pop()}else o=t;return o}var gd=new Os;gd.tokenize=function(t){return t.slice()};gd.join=gd.removeEmpty=function(t){return t};function Mg(t,e,r,s,n,i,o){if(o||(o={}),typeof o=="function"&&(o={callback:o}),typeof o.context>"u"&&(o.context=4),o.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(o.callback){var u=o,c=u.callback;Lg(r,s,lc(lc({},o),{},{callback:function(f){var D=d(f);c(D)}}))}else return d(Lg(r,s,o));function d(p){if(!p)return;p.push({value:"",lines:[]});function f(I){return I.map(function(L){return" "+L})}for(var D=[],m=0,g=0,x=[],b=1,A=1,C=function(){var L=p[v],B=L.lines||Ite(L.value);if(L.lines=B,L.added||L.removed){var O;if(!m){var R=p[v-1];m=b,g=A,R&&(x=o.context>0?f(R.lines.slice(-o.context)):[],m-=x.length,g-=x.length)}(O=x).push.apply(O,dh(B.map(function(M){return(L.added?"+":"-")+M}))),L.added?A+=B.length:b+=B.length}else{if(m)if(B.length<=o.context*2&&v<p.length-2){var q;(q=x).push.apply(q,dh(f(B)))}else{var V,j=Math.min(B.length,o.context);(V=x).push.apply(V,dh(f(B.slice(0,j))));var z={oldStart:m,oldLines:b-m+j,newStart:g,newLines:A-g+j,lines:x};D.push(z),m=0,g=0,x=[]}b+=B.length,A+=B.length}},v=0;v<p.length;v++)C();for(var P=0,T=D;P<T.length;P++)for(var F=T[P],k=0;k<F.lines.length;k++)F.lines[k].endsWith(`
|
|
373
|
-
`)?F.lines[k]=F.lines[k].slice(0,-1):(F.lines.splice(k+1,0,"\"),k++);return{oldFileName:t,newFileName:e,oldHeader:n,newHeader:i,hunks:D}}}function xd(t){if(Array.isArray(t))return t.map(xd).join(`
|
|
374
|
-
`);var e=[];t.oldFileName==t.newFileName&&e.push("Index: "+t.oldFileName),e.push("==================================================================="),e.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),e.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader));for(var r=0;r<t.hunks.length;r++){var s=t.hunks[r];s.oldLines===0&&(s.oldStart-=1),s.newLines===0&&(s.newStart-=1),e.push("@@ -"+s.oldStart+","+s.oldLines+" +"+s.newStart+","+s.newLines+" @@"),e.push.apply(e,s.lines)}return e.join(`
|
|
375
|
-
`)+`
|
|
376
|
-
`}function kte(t,e,r,s,n,i,o){var u;if((u=o)!==null&&u!==void 0&&u.callback){var d=o,p=d.callback;Mg(t,e,r,s,n,i,lc(lc({},o),{},{callback:function(D){D?p(xd(D)):p()}}))}else{var c=Mg(t,e,r,s,n,i,o);return c?xd(c):void 0}}function Pte(t,e,r,s,n,i){return kte(t,t,e,r,s,n,i)}function Ite(t){var e=t.endsWith(`
|
|
377
|
-
`),r=t.split(`
|
|
378
|
-
`).map(function(s){return s+`
|
|
379
|
-
`});return e?r.pop():r.push(r.pop().slice(0,-1)),r}const Bte={class:"relative"},Nte=["innerHTML"],Lte=au({__name:"DiffCode",props:NS({oldMeta:{default:()=>({version:""})},newMeta:{default:()=>({version:""})},formatCode:{type:Boolean,default:!1}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:e}){const r=t,s=kS(t,"modelValue"),n=JS(),{t:i}=bd(),o=ra(""),u=ra(),c=ra(!1),d=new Map;function p(k){try{return new URL(k,location.href).pathname.split(".").pop()}catch{return}}async function f(k){return k?await fetch(k).then(async L=>{if(L.ok){const B=await L.text();try{const O=JSON.parse(B);return O.code===500?"":JSON.stringify(O,null,2)}catch{return B}}return""}).catch(()=>"")??"":""}async function D(k,I){return!I||!r.formatCode?k:await Iee(k,I)??k}function m(k){return/^@@/m.test(k)}async function g(k){const I=k.content;if(!I)return null;const L=I.find(ce=>ce.type==="old"),B=I.find(ce=>ce.type==="new");if(!L?.accessPath&&!B?.accessPath)return null;const[O,R]=await Promise.all([f(L?.accessPath),f(B?.accessPath)]),q=p(L?.accessPath??""),V=p(B?.accessPath??""),[j,z]=await Promise.all([D(O,q),D(R,V)]),M=Pte(k.path,j,z),ae=m(M);return k.status!==Cs.NodeStatus.Added&&k.status!==Cs.NodeStatus.Deleted&&(k.status=ae?Cs.NodeStatus.Changed:Cs.NodeStatus.Unchanged),ae?M:null}async function x(k){const I=[];async function L(B){for(const O of B){O.children?.length&&await L(O.children);const R=await g(O);R&&I.push(R)}}return await L(k),{patches:I,updatedTree:_g(k)}}function b(k){if(k.length===0)return`<div class="no-diff">${i("comp.noChanges")}</div>`;const I=k.map(B=>B+`
|
|
380
|
-
`).join(""),L=n.value?"dark":"light";return yte(I,{outputFormat:"side-by-side",colorScheme:L})}function A(){if(!u.value)return;d.clear(),u.value.querySelectorAll(".d2h-file-wrapper").forEach((I,L)=>{const O=I.querySelector(".d2h-file-name")?.textContent??`file-${L}`,R=I.getAttribute("id");d.set(O,R??"")})}function C(){const k=window.location.hash.slice(1);if(!k||!u.value)return;const I=u.value.querySelector(`#${CSS.escape(k)}`);I&&(I.scrollIntoView({behavior:"smooth",block:"start"}),I.classList.add("highlight-file"),setTimeout(()=>{I.classList.remove("highlight-file")},1500))}function v(){C()}function P(k){const I=d.get(k);I&&(window.location.hash=I)}let T=!1;async function F(){if(!T){T=!0,await iy(),c.value=!0;try{const{patches:k,updatedTree:I}=await x(s.value);o.value=b(k),s.value=I,await iy(),A(),C()}finally{c.value=!1,T=!1}}}return fh(()=>JSON.stringify(s.value),()=>F(),{immediate:!0}),fh(()=>r.formatCode,()=>F()),GS(window,"hashchange",v),e({scrollToFile:P}),(k,I)=>(Gs(),Vo("div",Bte,[c.value?(Gs(),cc(et(t3),{key:0,class:"diff-code-loading",text:et(i)("common.loadingText")},null,8,["text"])):PS("",!0),IS(Br("div",{ref_key:"diffContainer",ref:u,innerHTML:o.value},null,8,Nte),[[BS,!c.value]])]))}}),$te=Ed(Lte,[["__scopeId","data-v-f0e08a0d"]]),Mte={class:"flex items-center gap-4"},Ote={class:"w-full h-full flex flex-col"},_te={class:"flex items-center gap-2 justify-start p-1 h-[30px] bg-[var(--el-fill-color-light)]"},jte={class:"flex items-center gap-2 justify-start p-1 h-[30px] bg-[var(--el-fill-color-light)] px-2"},Rte={class:"flex-1 overflow-auto"},qte=au({__name:"DiffDialog",props:{resultTree:{type:Array,default:()=>[]},oldMeta:{type:Object,default:()=>({version:"10.1.0"})},newMeta:{type:Object,default:()=>({version:"10.1.1"})}},emits:["refresh"],setup(t,{expose:e}){const{t:r}=bd(),s=t,n=LS("diffCode"),i=ra(!1),o=ra([]),u=ra(!1);function c(){u.value=!0}function d(){u.value=!1}function p(f){n.value?.scrollToFile(f.path)}return fh(()=>s.resultTree,()=>{o.value=_g(s.resultTree)},{immediate:!0}),e({open:c,close:d}),(f,D)=>(Gs(),cc(et(XS),{modelValue:u.value,"onUpdate:modelValue":D[3]||(D[3]=m=>u.value=m),class:"diff-container",title:"",width:"55%","show-close":"",fullscreen:""},{header:Et(()=>[Br("div",Mte,[yt(et(US),{type:"primary",size:"small",onClick:D[0]||(D[0]=m=>f.$emit("refresh"))},{default:Et(()=>[wn(Gr(et(r)("common.refresh")),1)]),_:1})])]),default:Et(()=>[yt(et(_S),{class:"w-full h-full card-no-padding"},{default:Et(()=>[yt(et(jS),{class:"w-full h-full"},{default:Et(()=>[yt(et(ay),{size:"20%",collapsible:""},{default:Et(()=>[Br("div",Ote,[Br("div",_te,[yt(et(go),{type:"warning",size:"small"},{default:Et(()=>[wn(Gr(et(r)("comp.diff.changed")),1)]),_:1}),yt(et(go),{type:"info",size:"small"},{default:Et(()=>[wn(Gr(et(r)("comp.diff.unchanged")),1)]),_:1}),yt(et(go),{type:"success",size:"small"},{default:Et(()=>[wn(Gr(et(r)("comp.diff.added")),1)]),_:1}),yt(et(go),{type:"danger",size:"small"},{default:Et(()=>[wn(Gr(et(r)("comp.diff.deleted")),1)]),_:1})]),yt(et(oy),{class:"flex-1 bg-[var(--el-fill-color-blank)]"},{default:Et(()=>[yt(et(Nee),{resultTree:o.value,onNodeClick:p},null,8,["resultTree"])]),_:1})])]),_:1}),yt(et(ay),{class:"w-full h-full overflow-hidden flex flex-col"},{default:Et(()=>[Br("div",jte,[yt(et(RS),{modelValue:i.value,"onUpdate:modelValue":D[1]||(D[1]=m=>i.value=m),"inactive-text":et(r)("comp.formatCode")},null,8,["modelValue","inactive-text"]),yt(et(qS),{effect:"dark",content:et(r)("comp.formatCodeTooltip"),placement:"right"},{default:Et(()=>[yt(et(vl),{icon:"material-symbols:question-mark-rounded"})]),_:1},8,["content"])]),Br("div",Rte,[yt(et(oy),null,{default:Et(()=>[yt(et($te),{ref:"diffCode",modelValue:o.value,"onUpdate:modelValue":D[2]||(D[2]=m=>o.value=m),oldMeta:t.oldMeta,newMeta:t.newMeta,formatCode:i.value},null,8,["modelValue","oldMeta","newMeta","formatCode"])]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),gse=Ed(qte,[["__scopeId","data-v-d0e0d42a"]]),xse=au({__name:"CompPathDropdown",props:{path:{},triggerText:{},linkClass:{}},emits:["command"],setup(t,{emit:e}){const r=e,{t:s}=bd();function n(i){r("command",i)}return(i,o)=>{const u=VS,c=WS,d=HS,p=zS;return Gs(),cc(p,{onCommand:n},{dropdown:Et(()=>[yt(d,null,{default:Et(()=>[yt(c,{command:"editor"},{default:Et(()=>[yt(et(vl),{icon:"material-symbols:edit",class:"mr-1"}),Br("span",null,Gr(et(s)("comp.openInVscode")),1)]),_:1}),yt(c,{command:"explorer"},{default:Et(()=>[yt(et(vl),{icon:"material-symbols:folder-open",class:"mr-1"}),Br("span",null,Gr(et(s)("comp.openInExplorer")),1)]),_:1})]),_:1})]),default:Et(()=>[yt(u,{href:"javascript:void(0)",type:"primary",underline:"always",title:t.path,class:Og(t.linkClass)},{default:Et(()=>[wn(Gr(t.triggerText||t.path)+" ",1),yt(et(vl),{icon:"material-symbols:keyboard-arrow-down",class:"ml-1",style:{"vertical-align":"middle"}})]),_:1},8,["title","class"])]),_:1})}}});function bse(){function t(e,r,s,n){const i=Cs.mergeAndMarkTree(r,e);function o(u){for(const c of u)c.type==="file"&&(c.path=KS.replaceBackslashWithSlash(c.path),c.content=[{type:"old",accessPath:s(c.path)},{type:"new",accessPath:n(c.path)}]),c.children?.length&&o(c.children)}return o(i),i}return{buildDiffTree:t}}function Ese(){const t=$S(),{teamId:e}=t.params;return{headers:{"team-id":e},teamId:e}}export{gse as D,xse as _,bse as a,Ese as u};
|