mongoku 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -12
- package/build/client/_app/immutable/chunks/3iRu_dUj.js +2 -0
- package/build/client/_app/immutable/chunks/3iRu_dUj.js.br +0 -0
- package/build/client/_app/immutable/chunks/3iRu_dUj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{myWOS8Ad.js → 5nAxkTTP.js} +1 -1
- package/build/client/_app/immutable/chunks/5nAxkTTP.js.br +5 -0
- package/build/client/_app/immutable/chunks/5nAxkTTP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BBg-V8FE.js +1 -0
- package/build/client/_app/immutable/chunks/BBg-V8FE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBg-V8FE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BLDrwdCC.js → BE8UzJuY.js} +1 -1
- package/build/client/_app/immutable/chunks/BE8UzJuY.js.br +0 -0
- package/build/client/_app/immutable/chunks/BE8UzJuY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{7rjwS0Fa.js → BUNgwIS0.js} +1 -1
- package/build/client/_app/immutable/chunks/BUNgwIS0.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUNgwIS0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdCk1gVw.js +2 -0
- package/build/client/_app/immutable/chunks/BdCk1gVw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdCk1gVw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DD3Ma7mI.js → Bsz507MG.js} +1 -1
- package/build/client/_app/immutable/chunks/Bsz507MG.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bsz507MG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvKY81hz.js +1 -0
- package/build/client/_app/immutable/chunks/BvKY81hz.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvKY81hz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{pwiEVMhR.js → C0PCwpqt.js} +1 -1
- package/build/client/_app/immutable/chunks/C0PCwpqt.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0PCwpqt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DzIzGsAN.js → C1XfxmRC.js} +1 -1
- package/build/client/_app/immutable/chunks/C1XfxmRC.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1XfxmRC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C82Rp5eQ.js +1 -0
- package/build/client/_app/immutable/chunks/C82Rp5eQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C82Rp5eQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKHNRODp.js +1 -0
- package/build/client/_app/immutable/chunks/CKHNRODp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKHNRODp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BtVcRw28.js → CM2Lsplc.js} +10 -10
- package/build/client/_app/immutable/chunks/CM2Lsplc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CM2Lsplc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cy5AtpEx.js → CRt_PE0j.js} +1 -1
- package/build/client/_app/immutable/chunks/CRt_PE0j.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRt_PE0j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CnRtsGt8.js +4 -0
- package/build/client/_app/immutable/chunks/CnRtsGt8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CnRtsGt8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dzn375RV.js → Cx2cA4gg.js} +1 -1
- package/build/client/_app/immutable/chunks/Cx2cA4gg.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cx2cA4gg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BsxVnnsB.js → D4QB_3_6.js} +1 -1
- package/build/client/_app/immutable/chunks/D4QB_3_6.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4QB_3_6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DkcM24tw.js → D5ccpaXt.js} +1 -1
- package/build/client/_app/immutable/chunks/D5ccpaXt.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5ccpaXt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CeUVbZ2h.js → D7E46CWw.js} +1 -1
- package/build/client/_app/immutable/chunks/D7E46CWw.js.br +0 -0
- package/build/client/_app/immutable/chunks/D7E46CWw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BNpv6iz_.js → DKR4gtrs.js} +1 -1
- package/build/client/_app/immutable/chunks/DKR4gtrs.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKR4gtrs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{hzkOq89z.js → DR9xdhsg.js} +1 -1
- package/build/client/_app/immutable/chunks/DR9xdhsg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DR9xdhsg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{woTmcqT7.js → lGcxg7CO.js} +1 -1
- package/build/client/_app/immutable/chunks/lGcxg7CO.js.br +0 -0
- package/build/client/_app/immutable/chunks/lGcxg7CO.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.CxQNYOR7.js → app.-1fKTnAu.js} +2 -2
- package/build/client/_app/immutable/entry/app.-1fKTnAu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.-1fKTnAu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BJmMjOs5.js +1 -0
- package/build/client/_app/immutable/entry/start.BJmMjOs5.js.br +2 -0
- package/build/client/_app/immutable/entry/start.BJmMjOs5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Cd4lrshe.js +5 -0
- package/build/client/_app/immutable/nodes/0.Cd4lrshe.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Cd4lrshe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B4faIcO5.js +1 -0
- package/build/client/_app/immutable/nodes/1.B4faIcO5.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B4faIcO5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.B1nM3dh3.js +2 -0
- package/build/client/_app/immutable/nodes/10.B1nM3dh3.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.B1nM3dh3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.MJ6Rv19p.js +1 -0
- package/build/client/_app/immutable/nodes/11.MJ6Rv19p.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.MJ6Rv19p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.Prhpx9Ma.js → 12.BMSZ742P.js} +1 -1
- package/build/client/_app/immutable/nodes/12.BMSZ742P.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BMSZ742P.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.C5mOzCii.js +66 -0
- package/build/client/_app/immutable/nodes/13.C5mOzCii.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.C5mOzCii.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.UoL1FlSn.js → 2.DwwrLLW4.js} +1 -1
- package/build/client/_app/immutable/nodes/2.DwwrLLW4.js.br +1 -0
- package/build/client/_app/immutable/nodes/2.DwwrLLW4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.oJ7_29Md.js → 3.t20GootO.js} +1 -1
- package/build/client/_app/immutable/nodes/3.t20GootO.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.t20GootO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.BbmkM0ZH.js → 4.CXHjkPtf.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CXHjkPtf.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CXHjkPtf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.CUeb6mKm.js → 5.C9tcr5B0.js} +1 -1
- package/build/client/_app/immutable/nodes/5.C9tcr5B0.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.C9tcr5B0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.BiyUd38g.js → 7.BV3eTGHn.js} +1 -1
- package/build/client/_app/immutable/nodes/7.BV3eTGHn.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BV3eTGHn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.DhezXfEp.js → 8.Dw_zZKYL.js} +1 -1
- package/build/client/_app/immutable/nodes/8.Dw_zZKYL.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.Dw_zZKYL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.tIbM6W_7.js → 9.BA65fyAm.js} +1 -1
- package/build/client/_app/immutable/nodes/9.BA65fyAm.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BA65fyAm.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-Xn_28PLT.js → 0-DhPAR6AN.js} +3 -3
- package/build/server/chunks/{0-Xn_28PLT.js.map → 0-DhPAR6AN.js.map} +1 -1
- package/build/server/chunks/1-B5Roc8lW.js +9 -0
- package/build/server/chunks/{1-CBgVE2FQ.js.map → 1-B5Roc8lW.js.map} +1 -1
- package/build/server/chunks/{10-nsD-CCn7.js → 10-BRaPMv4v.js} +13 -10
- package/build/server/chunks/10-BRaPMv4v.js.map +1 -0
- package/build/server/chunks/{11-BmqLuLNb.js → 11-D47Grqcs.js} +8 -5
- package/build/server/chunks/11-D47Grqcs.js.map +1 -0
- package/build/server/chunks/{12-PgTuaplb.js → 12-DYHC-SIK.js} +11 -8
- package/build/server/chunks/12-DYHC-SIK.js.map +1 -0
- package/build/server/chunks/{13-BSGYMCpC.js → 13-6jJDktOb.js} +7 -4
- package/build/server/chunks/{13-BSGYMCpC.js.map → 13-6jJDktOb.js.map} +1 -1
- package/build/server/chunks/{2-BJxJqjul.js → 2-ClkERMhY.js} +2 -2
- package/build/server/chunks/{2-BJxJqjul.js.map → 2-ClkERMhY.js.map} +1 -1
- package/build/server/chunks/{3-D2ftoQkX.js → 3-CTpqmxdo.js} +2 -2
- package/build/server/chunks/{3-D2ftoQkX.js.map → 3-CTpqmxdo.js.map} +1 -1
- package/build/server/chunks/{4-CdkZadEU.js → 4-CUH4fZn8.js} +2 -2
- package/build/server/chunks/{4-CdkZadEU.js.map → 4-CUH4fZn8.js.map} +1 -1
- package/build/server/chunks/{5-ClD9AjJX.js → 5-BSEdxfut.js} +2 -2
- package/build/server/chunks/{5-ClD9AjJX.js.map → 5-BSEdxfut.js.map} +1 -1
- package/build/server/chunks/{7-D0jTAIl_.js → 7-CEa921n2.js} +10 -7
- package/build/server/chunks/7-CEa921n2.js.map +1 -0
- package/build/server/chunks/{8-CgDL2fiA.js → 8-BJXi_u8p.js} +8 -5
- package/build/server/chunks/8-BJXi_u8p.js.map +1 -0
- package/build/server/chunks/{9-Dn6eMY6x.js → 9-DaOfuWT8.js} +7 -4
- package/build/server/chunks/9-DaOfuWT8.js.map +1 -0
- package/build/server/chunks/{JsonEncoder-jJ2OBaud.js → JsonEncoder-B8eJRYZ4.js} +12 -2
- package/build/server/chunks/JsonEncoder-B8eJRYZ4.js.map +1 -0
- package/build/server/chunks/{JsonValue-DjUulYwg.js → JsonValue-ClBHqVOS.js} +61 -52
- package/build/server/chunks/JsonValue-ClBHqVOS.js.map +1 -0
- package/build/server/chunks/{Panel-BM545RWK.js → Panel-yg5YKL4d.js} +2 -2
- package/build/server/chunks/{Panel-BM545RWK.js.map → Panel-yg5YKL4d.js.map} +1 -1
- package/build/server/chunks/{PrettyJson-CVemKT9n.js → PrettyJson-4GQa7qAU.js} +5 -5
- package/build/server/chunks/{PrettyJson-CVemKT9n.js.map → PrettyJson-4GQa7qAU.js.map} +1 -1
- package/build/server/chunks/{Tooltip-ByN2a8nn.js → Tooltip-DflJLumT.js} +2 -2
- package/build/server/chunks/{Tooltip-ByN2a8nn.js.map → Tooltip-DflJLumT.js.map} +1 -1
- package/build/server/chunks/{TooltipTable-CftpgkMV.js → TooltipTable-BPMzcmqQ.js} +3 -3
- package/build/server/chunks/{TooltipTable-CftpgkMV.js.map → TooltipTable-BPMzcmqQ.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-D8Erqrch.js → _layout.svelte-DMm1Ill8.js} +7 -2
- package/build/server/chunks/_layout.svelte-DMm1Ill8.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DI3cZxuK.js → _page.svelte-C-13GpOe.js} +12 -8
- package/build/server/chunks/_page.svelte-C-13GpOe.js.map +1 -0
- package/build/server/chunks/{_page.svelte-mO3b8YSb.js → _page.svelte-CCaM2a2k.js} +15 -12
- package/build/server/chunks/_page.svelte-CCaM2a2k.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DPUr13fG.js → _page.svelte-CGvzbG1F.js} +12 -9
- package/build/server/chunks/{_page.svelte-DPUr13fG.js.map → _page.svelte-CGvzbG1F.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BZL67-Tl.js → _page.svelte-CKLhszFj.js} +12 -9
- package/build/server/chunks/{_page.svelte-BZL67-Tl.js.map → _page.svelte-CKLhszFj.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BwdDcghe.js → _page.svelte-CiFj0j1b.js} +12 -9
- package/build/server/chunks/{_page.svelte-BwdDcghe.js.map → _page.svelte-CiFj0j1b.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-mPOsEew6.js → _page.svelte-DsOSf3up.js} +46 -37
- package/build/server/chunks/_page.svelte-DsOSf3up.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CwGhs70Z.js → _page.svelte-DzPMpozq.js} +5 -5
- package/build/server/chunks/{_page.svelte-CwGhs70Z.js.map → _page.svelte-DzPMpozq.js.map} +1 -1
- package/build/server/chunks/hooks.server-DRPXFQlL.js +53 -0
- package/build/server/chunks/hooks.server-DRPXFQlL.js.map +1 -0
- package/build/server/chunks/{index2-d4SCF7oA.js → index2-DBFlGzWV.js} +21 -14
- package/build/server/chunks/index2-DBFlGzWV.js.map +1 -0
- package/build/server/chunks/{jsonParser-CraFXJs8.js → jsonParser-C3QUcODD.js} +10 -2
- package/build/server/chunks/jsonParser-C3QUcODD.js.map +1 -0
- package/build/server/chunks/logger-KF6KpVP6.js +150 -0
- package/build/server/chunks/logger-KF6KpVP6.js.map +1 -0
- package/build/server/chunks/{mongo-DMG2RTBR.js → mongo-Db8Vgimy.js} +6 -5
- package/build/server/chunks/mongo-Db8Vgimy.js.map +1 -0
- package/build/server/chunks/remote-xxtqbu-AjxdDZZ_.js +19 -0
- package/build/server/chunks/remote-xxtqbu-AjxdDZZ_.js.map +1 -0
- package/build/server/chunks/{servers.remote-DKhy8wTJ.js → servers.remote-DrkuAWHP.js} +33 -8
- package/build/server/chunks/servers.remote-DrkuAWHP.js.map +1 -0
- package/build/server/index.js +3 -3
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +15 -15
- package/build/server/manifest.js.map +1 -1
- package/package.json +3 -3
- package/src/api/servers.remote.ts +33 -4
- package/src/app.d.ts +3 -1
- package/src/hooks.server.ts +41 -2
- package/src/lib/components/JsonValue.svelte +8 -0
- package/src/lib/server/JsonEncoder.ts +11 -1
- package/src/lib/server/contextStore.ts +4 -0
- package/src/lib/server/logger.ts +184 -0
- package/src/lib/server/mongo.ts +5 -4
- package/src/lib/utils/jsonParser.ts +11 -1
- package/src/routes/+layout.svelte +4 -0
- package/src/routes/servers/+page.server.ts +4 -3
- package/src/routes/servers/[server]/databases/+page.server.ts +2 -1
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/+page.server.ts +5 -4
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/+page.svelte +30 -26
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/[document]/+page.svelte +2 -2
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.server.ts +4 -3
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.svelte +1 -1
- package/build/client/_app/immutable/chunks/7rjwS0Fa.js.br +0 -0
- package/build/client/_app/immutable/chunks/7rjwS0Fa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BLDrwdCC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BLDrwdCC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNpv6iz_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNpv6iz_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BY7rCWFm.js +0 -1
- package/build/client/_app/immutable/chunks/BY7rCWFm.js.br +0 -0
- package/build/client/_app/immutable/chunks/BY7rCWFm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BirzSxMb.js +0 -2
- package/build/client/_app/immutable/chunks/BirzSxMb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BirzSxMb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BsxVnnsB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsxVnnsB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BtVcRw28.js.br +0 -0
- package/build/client/_app/immutable/chunks/BtVcRw28.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdQ4HxbR.js +0 -2
- package/build/client/_app/immutable/chunks/CdQ4HxbR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdQ4HxbR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeUVbZ2h.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeUVbZ2h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CsO4V9Pl.js +0 -1
- package/build/client/_app/immutable/chunks/CsO4V9Pl.js.br +0 -0
- package/build/client/_app/immutable/chunks/CsO4V9Pl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cy5AtpEx.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cy5AtpEx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DD3Ma7mI.js.br +0 -1
- package/build/client/_app/immutable/chunks/DD3Ma7mI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DDOxwa8G.js +0 -1
- package/build/client/_app/immutable/chunks/DDOxwa8G.js.br +0 -0
- package/build/client/_app/immutable/chunks/DDOxwa8G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPilZ31q.js +0 -4
- package/build/client/_app/immutable/chunks/DPilZ31q.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPilZ31q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkcM24tw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkcM24tw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DzIzGsAN.js.br +0 -0
- package/build/client/_app/immutable/chunks/DzIzGsAN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dzn375RV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dzn375RV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hzkOq89z.js.br +0 -0
- package/build/client/_app/immutable/chunks/hzkOq89z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/myWOS8Ad.js.br +0 -0
- package/build/client/_app/immutable/chunks/myWOS8Ad.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pwiEVMhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/pwiEVMhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/woTmcqT7.js.br +0 -0
- package/build/client/_app/immutable/chunks/woTmcqT7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zDi6mm3o.js +0 -1
- package/build/client/_app/immutable/chunks/zDi6mm3o.js.br +0 -0
- package/build/client/_app/immutable/chunks/zDi6mm3o.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CxQNYOR7.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CxQNYOR7.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CUo1ZpWZ.js +0 -1
- package/build/client/_app/immutable/entry/start.CUo1ZpWZ.js.br +0 -2
- package/build/client/_app/immutable/entry/start.CUo1ZpWZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.NM9sLghd.js +0 -5
- package/build/client/_app/immutable/nodes/0.NM9sLghd.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.NM9sLghd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DbC3260o.js +0 -1
- package/build/client/_app/immutable/nodes/1.DbC3260o.js.br +0 -2
- package/build/client/_app/immutable/nodes/1.DbC3260o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BVQvX3m0.js +0 -2
- package/build/client/_app/immutable/nodes/10.BVQvX3m0.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BVQvX3m0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Bxvf_-yk.js +0 -1
- package/build/client/_app/immutable/nodes/11.Bxvf_-yk.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Bxvf_-yk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.Prhpx9Ma.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Prhpx9Ma.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.Bgj5oOSN.js +0 -66
- package/build/client/_app/immutable/nodes/13.Bgj5oOSN.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.Bgj5oOSN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.UoL1FlSn.js.br +0 -1
- package/build/client/_app/immutable/nodes/2.UoL1FlSn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.oJ7_29Md.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.oJ7_29Md.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BbmkM0ZH.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BbmkM0ZH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CUeb6mKm.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CUeb6mKm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BiyUd38g.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BiyUd38g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DhezXfEp.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DhezXfEp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.tIbM6W_7.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.tIbM6W_7.js.gz +0 -0
- package/build/server/chunks/1-CBgVE2FQ.js +0 -9
- package/build/server/chunks/10-nsD-CCn7.js.map +0 -1
- package/build/server/chunks/11-BmqLuLNb.js.map +0 -1
- package/build/server/chunks/12-PgTuaplb.js.map +0 -1
- package/build/server/chunks/7-D0jTAIl_.js.map +0 -1
- package/build/server/chunks/8-CgDL2fiA.js.map +0 -1
- package/build/server/chunks/9-Dn6eMY6x.js.map +0 -1
- package/build/server/chunks/JsonEncoder-jJ2OBaud.js.map +0 -1
- package/build/server/chunks/JsonValue-DjUulYwg.js.map +0 -1
- package/build/server/chunks/_layout.svelte-D8Erqrch.js.map +0 -1
- package/build/server/chunks/_page.svelte-DI3cZxuK.js.map +0 -1
- package/build/server/chunks/_page.svelte-mO3b8YSb.js.map +0 -1
- package/build/server/chunks/_page.svelte-mPOsEew6.js.map +0 -1
- package/build/server/chunks/hooks.server-_TKfdzGA.js +0 -26
- package/build/server/chunks/hooks.server-_TKfdzGA.js.map +0 -1
- package/build/server/chunks/index2-d4SCF7oA.js.map +0 -1
- package/build/server/chunks/jsonParser-CraFXJs8.js.map +0 -1
- package/build/server/chunks/mongo-DMG2RTBR.js.map +0 -1
- package/build/server/chunks/remote-xxtqbu-BUzBKv3P.js +0 -16
- package/build/server/chunks/remote-xxtqbu-BUzBKv3P.js.map +0 -1
- package/build/server/chunks/servers.remote-DKhy8wTJ.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import"./
|
|
2
|
-
`,C-1)+1,h=y.substring(x,C).match(/^(\s*)/)?.[1]||"";if(h.length===0)return;let a=1;h.startsWith(" ")?a=1:h.startsWith(" ")?a=2:h.startsWith(" ")&&(a=1);const e=y.substring(0,x)+y.substring(x+a);w.value=e,w.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{w.setSelectionRange(C-a,C-a)});return}const
|
|
1
|
+
import"./BBg-V8FE.js";import{a3 as ce,w as Qe,x as Ze,N as et,bd as tt,p as it,K as rt,i as J,j as Q,f as _,d as U,r as z,s as O,ap as nt,k as j,t as ie,b as K,u as re,c as st,e as se,a as ae}from"./C82Rp5eQ.js";import{d as at,s as ue}from"./3iRu_dUj.js";import{i as V}from"./D7E46CWw.js";import{a as ut,r as oe,s as ot}from"./BdCk1gVw.js";import{s as ht}from"./DKR4gtrs.js";import{b as lt}from"./Cx2cA4gg.js";import{p as he,b as ct}from"./BE8UzJuY.js";import{j as pt}from"./D4QB_3_6.js";import{n as ne}from"./C0PCwpqt.js";import{J as ft}from"./CKHNRODp.js";import{P as dt}from"./Bsz507MG.js";function mt(w,y,C){ce(()=>{var u=Qe(()=>y(w,C?.())||{});if(C&&u?.update){var A=!1,l={};Ze(()=>{var m=C();et(m),A&&tt(l,m)&&(l=m,u.update(m))}),A=!0}if(u?.destroy)return()=>u.destroy()})}function xt(w){const y=w.match(/^(\s*)/);return y?y[1]:""}function Dt(w,y,C,u,A){return w.ctrlKey||w.altKey||w.metaKey||u!==A||!["}","]",")",'"',"'","`"].includes(w.key)||C[u]!==w.key?!1:(w.preventDefault(),requestAnimationFrame(()=>{y.setSelectionRange(u+1,u+1)}),!0)}function vt(w,y,C,u,A){if(w.ctrlKey||w.altKey||w.metaKey)return!1;const m={"{":"}","[":"]","(":")",'"':'"',"'":"'","`":"`"}[w.key];if(!m)return!1;if(w.preventDefault(),u!==A){const o=C.substring(u,A),F=C.substring(0,u)+w.key+o+m+C.substring(A);return y.value=F,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u+1,A+1)}),!0}const p=C.substring(0,u)+w.key+m+C.substring(A);return y.value=p,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u+1,u+1)}),!0}function Et(w,y,C,u){if(C===u){const x=y.lastIndexOf(`
|
|
2
|
+
`,C-1)+1,h=y.substring(x,C).match(/^(\s*)/)?.[1]||"";if(h.length===0)return;let a=1;h.startsWith(" ")?a=1:h.startsWith(" ")?a=2:h.startsWith(" ")&&(a=1);const e=y.substring(0,x)+y.substring(x+a);w.value=e,w.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{w.setSelectionRange(C-a,C-a)});return}const A=y.substring(0,C),l=y.substring(u),m=A.lastIndexOf(`
|
|
3
3
|
`)+1,F=y.substring(m,u).split(`
|
|
4
4
|
`).map(x=>{const s=x.match(/^(\s*)/)?.[1]||"";return s.length===0?x:s.startsWith(" ")?x.substring(1):s.startsWith(" ")?x.substring(2):s.startsWith(" ")?x.substring(1):x}),D=y.substring(0,m)+F.join(`
|
|
5
5
|
`)+l;w.value=D,w.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{const x=m,s=m+F.join(`
|
|
6
|
-
`).length;w.setSelectionRange(x,s)})}function yt(w,y,C,u){if(C===u){const x=y.substring(0,C)+" "+y.substring(u);w.value=x,w.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{w.setSelectionRange(C+1,C+1)});return}const
|
|
6
|
+
`).length;w.setSelectionRange(x,s)})}function yt(w,y,C,u){if(C===u){const x=y.substring(0,C)+" "+y.substring(u);w.value=x,w.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{w.setSelectionRange(C+1,C+1)});return}const A=y.substring(0,C),l=y.substring(u),m=A.lastIndexOf(`
|
|
7
7
|
`)+1,F=y.substring(m,u).split(`
|
|
8
8
|
`).map(x=>" "+x),D=y.substring(0,m)+F.join(`
|
|
9
9
|
`)+l;w.value=D,w.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{const x=m,s=m+F.join(`
|
|
10
|
-
`).length;w.setSelectionRange(x,s)})}function Ct(w,y,C,u,
|
|
10
|
+
`).length;w.setSelectionRange(x,s)})}function Ct(w,y,C,u,A){w.preventDefault();const l=C.lastIndexOf(`
|
|
11
11
|
`,u-1)+1,m=C.indexOf(`
|
|
12
12
|
`,u),p=C.substring(l,m===-1?C.length:m),o=xt(p),F=C[u-1],D=C[u];if(F!=="{"&&F!=="["){const e=`
|
|
13
|
-
`+o,t=C.substring(0,u)+e+C.substring(
|
|
13
|
+
`+o,t=C.substring(0,u)+e+C.substring(A);y.value=t,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u+e.length,u+e.length)});return}let s=`
|
|
14
14
|
`+o+" ";const h=s.length;(D==="}"||D==="]")&&(s+=`
|
|
15
|
-
`+o);const a=C.substring(0,u)+s+C.substring(
|
|
16
|
-
`,u-1)+1,m=C.substring(l,u);if(!/^\s*$/.test(m)||m.length===0)return;w.preventDefault();const p=w.key,o=m.match(/^(\s*)/),F=o?o[1]:"";if(F.length===0){const s=C.substring(0,u)+p+C.substring(S);y.value=s,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u+1,u+1)});return}let D=1;F.endsWith(" ")?D=1:F.length>=2&&F.endsWith(" ")?D=2:F.endsWith(" ")&&(D=1);const x=C.substring(0,u-D)+p+C.substring(S);y.value=x,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u-D+1,u-D+1)})}const St=(w,y)=>{function C(u){const S=u.target,{selectionStart:l,selectionEnd:m,value:p}=S;if(u.key==="Escape"){if(u.preventDefault(),y?.onescape){y.onescape();return}S.blur();const o=Array.from(document.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(x=>!x.hasAttribute("disabled")&&x.offsetParent!==null),F=o.indexOf(S),D=u.shiftKey?o[F-1]:o[F+1];D&&D.focus();return}if(u.ctrlKey&&u.key==="Enter"){u.preventDefault(),y?.onsubmit?.();return}if(!Dt(u,S,p,l,m)&&!vt(u,S,p,l,m)){if(u.key!=="Tab"||u.ctrlKey||u.altKey||u.metaKey){if(u.key==="Enter"&&!u.ctrlKey&&!u.shiftKey&&!u.altKey&&!u.metaKey){Ct(u,S,p,l,m);return}(u.key==="}"||u.key==="]")&&!u.ctrlKey&&!u.shiftKey&&!u.altKey&&!u.metaKey&&At(u,S,p,l,m);return}if(u.preventDefault(),u.shiftKey){Et(S,p,l,m);return}yt(S,p,l,m)}}return w.addEventListener("keydown",C),{destroy(){w.removeEventListener("keydown",C)}}};var Z={exports:{}},gt=Z.exports,le;function Ft(){return le||(le=1,(function(w,y){(function(u,S){w.exports=S()})(gt,function(){return(function(C){var u={};function S(l){if(u[l])return u[l].exports;var m=u[l]={exports:{},id:l,loaded:!1};return C[l].call(m.exports,m,m.exports,S),m.loaded=!0,m.exports}return S.m=C,S.c=u,S.p="",S(0)})([function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(1),m=S(3),p=S(8),o=S(15);function F(a,e,t){var i=null,r=function(B,I){t&&t(B,I),i&&i.visit(B,I)},n=typeof t=="function"?r:null,c=!1;if(e){c=typeof e.comment=="boolean"&&e.comment;var E=typeof e.attachComment=="boolean"&&e.attachComment;(c||E)&&(i=new l.CommentHandler,i.attach=E,e.comment=!0,n=r)}var v=!1;e&&typeof e.sourceType=="string"&&(v=e.sourceType==="module");var g;e&&typeof e.jsx=="boolean"&&e.jsx?g=new m.JSXParser(a,e,n):g=new p.Parser(a,e,n);var b=v?g.parseModule():g.parseScript(),k=b;return c&&i&&(k.comments=i.comments),g.config.tokens&&(k.tokens=g.tokens),g.config.tolerant&&(k.errors=g.errorHandler.errors),k}u.parse=F;function D(a,e,t){var i=e||{};return i.sourceType="module",F(a,i,t)}u.parseModule=D;function x(a,e,t){var i=e||{};return i.sourceType="script",F(a,i,t)}u.parseScript=x;function s(a,e,t){var i=new o.Tokenizer(a,e),r;r=[];try{for(;;){var n=i.getNextToken();if(!n)break;t&&(n=t(n)),r.push(n)}}catch(c){i.errorHandler.tolerate(c)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r}u.tokenize=s;var h=S(2);u.Syntax=h.Syntax,u.version="4.0.1"},function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(2),m=(function(){function p(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return p.prototype.insertInnerComments=function(o,F){if(o.type===l.Syntax.BlockStatement&&o.body.length===0){for(var D=[],x=this.leading.length-1;x>=0;--x){var s=this.leading[x];F.end.offset>=s.start&&(D.unshift(s.comment),this.leading.splice(x,1),this.trailing.splice(x,1))}D.length&&(o.innerComments=D)}},p.prototype.findTrailingComments=function(o){var F=[];if(this.trailing.length>0){for(var D=this.trailing.length-1;D>=0;--D){var x=this.trailing[D];x.start>=o.end.offset&&F.unshift(x.comment)}return this.trailing.length=0,F}var s=this.stack[this.stack.length-1];if(s&&s.node.trailingComments){var h=s.node.trailingComments[0];h&&h.range[0]>=o.end.offset&&(F=s.node.trailingComments,delete s.node.trailingComments)}return F},p.prototype.findLeadingComments=function(o){for(var F=[],D;this.stack.length>0;){var x=this.stack[this.stack.length-1];if(x&&x.start>=o.start.offset)D=x.node,this.stack.pop();else break}if(D){for(var s=D.leadingComments?D.leadingComments.length:0,h=s-1;h>=0;--h){var a=D.leadingComments[h];a.range[1]<=o.start.offset&&(F.unshift(a),D.leadingComments.splice(h,1))}return D.leadingComments&&D.leadingComments.length===0&&delete D.leadingComments,F}for(var h=this.leading.length-1;h>=0;--h){var x=this.leading[h];x.start<=o.start.offset&&(F.unshift(x.comment),this.leading.splice(h,1))}return F},p.prototype.visitNode=function(o,F){if(!(o.type===l.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,F);var D=this.findTrailingComments(F),x=this.findLeadingComments(F);x.length>0&&(o.leadingComments=x),D.length>0&&(o.trailingComments=D),this.stack.push({node:o,start:F.start.offset})}},p.prototype.visitComment=function(o,F){var D=o.type[0]==="L"?"Line":"Block",x={type:D,value:o.value};if(o.range&&(x.range=o.range),o.loc&&(x.loc=o.loc),this.comments.push(x),this.attach){var s={comment:{type:D,value:o.value,range:[F.start.offset,F.end.offset]},start:F.start.offset};o.loc&&(s.comment.loc=o.loc),o.type=D,this.leading.push(s),this.trailing.push(s)}},p.prototype.visit=function(o,F){o.type==="LineComment"?this.visitComment(o,F):o.type==="BlockComment"?this.visitComment(o,F):this.attach&&this.visitNode(o,F)},p})();u.CommentHandler=m},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(C,u,S){var l=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])};return function(t,i){e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}})();Object.defineProperty(u,"__esModule",{value:!0});var m=S(4),p=S(5),o=S(6),F=S(7),D=S(8),x=S(13),s=S(14);x.TokenName[100]="JSXIdentifier",x.TokenName[101]="JSXText";function h(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:var i=e;t=i.name;break;case o.JSXSyntax.JSXNamespacedName:var r=e;t=h(r.namespace)+":"+h(r.name);break;case o.JSXSyntax.JSXMemberExpression:var n=e;t=h(n.object)+"."+h(n.property);break}return t}var a=(function(e){l(t,e);function t(i,r,n){return e.call(this,i,r,n)||this}return t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(i){for(var r="&",n=!0,c=!1,E=!1,v=!1;!this.scanner.eof()&&n&&!c;){var g=this.scanner.source[this.scanner.index];if(g===i)break;if(c=g===";",r+=g,++this.scanner.index,!c)switch(r.length){case 2:E=g==="#";break;case 3:E&&(v=g==="x",n=v||m.Character.isDecimalDigit(g.charCodeAt(0)),E=E&&!v);break;default:n=n&&!(E&&!m.Character.isDecimalDigit(g.charCodeAt(0))),n=n&&!(v&&!m.Character.isHexDigit(g.charCodeAt(0)));break}}if(n&&c&&r.length>2){var b=r.substr(1,r.length-2);E&&b.length>1?r=String.fromCharCode(parseInt(b.substr(1),10)):v&&b.length>2?r=String.fromCharCode(parseInt("0"+b.substr(1),16)):!E&&!v&&s.XHTMLEntities[b]&&(r=s.XHTMLEntities[b])}return r},t.prototype.lexJSX=function(){var i=this.scanner.source.charCodeAt(this.scanner.index);if(i===60||i===62||i===47||i===58||i===61||i===123||i===125){var r=this.scanner.source[this.scanner.index++];return{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(i===34||i===39){for(var n=this.scanner.index,c=this.scanner.source[this.scanner.index++],E="";!this.scanner.eof();){var v=this.scanner.source[this.scanner.index++];if(v===c)break;v==="&"?E+=this.scanXHTMLEntity(c):E+=v}return{type:8,value:E,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(i===46){var g=this.scanner.source.charCodeAt(this.scanner.index+1),b=this.scanner.source.charCodeAt(this.scanner.index+2),r=g===46&&b===46?"...":".",n=this.scanner.index;return this.scanner.index+=r.length,{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(i===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(m.Character.isIdentifierStart(i)&&i!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var v=this.scanner.source.charCodeAt(this.scanner.index);if(m.Character.isIdentifierPart(v)&&v!==92)++this.scanner.index;else if(v===45)++this.scanner.index;else break}var k=this.scanner.source.slice(n,this.scanner.index);return{type:100,value:k,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var i=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var i=this.scanner.index,r="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n==="{"||n==="<")break;++this.scanner.index,r+=n,m.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
17
|
-
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var c={type:101,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:i,end:this.scanner.index};return r.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(c)),c},t.prototype.peekJSXToken=function(){var i=this.scanner.saveState();this.scanner.scanComments();var r=this.lexJSX();return this.scanner.restoreState(i),r},t.prototype.expectJSX=function(i){var r=this.nextJSXToken();(r.type!==7||r.value!==i)&&this.throwUnexpectedToken(r)},t.prototype.matchJSX=function(i){var r=this.peekJSXToken();return r.type===7&&r.value===i},t.prototype.parseJSXIdentifier=function(){var i=this.createJSXNode(),r=this.nextJSXToken();return r.type!==100&&this.throwUnexpectedToken(r),this.finalize(i,new p.JSXIdentifier(r.value))},t.prototype.parseJSXElementName=function(){var i=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var c=this.parseJSXIdentifier();r=this.finalize(i,new p.JSXNamespacedName(n,c))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var E=r;this.expectJSX(".");var v=this.parseJSXIdentifier();r=this.finalize(i,new p.JSXMemberExpression(E,v))}return r},t.prototype.parseJSXAttributeName=function(){var i=this.createJSXNode(),r,n=this.parseJSXIdentifier();if(this.matchJSX(":")){var c=n;this.expectJSX(":");var E=this.parseJSXIdentifier();r=this.finalize(i,new p.JSXNamespacedName(c,E))}else r=n;return r},t.prototype.parseJSXStringLiteralAttribute=function(){var i=this.createJSXNode(),r=this.nextJSXToken();r.type!==8&&this.throwUnexpectedToken(r);var n=this.getTokenRaw(r);return this.finalize(i,new F.Literal(r.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var r=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new p.JSXExpressionContainer(r))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var i=this.createJSXNode(),r=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(i,new p.JSXAttribute(r,n))},t.prototype.parseJSXSpreadAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var r=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new p.JSXSpreadAttribute(r))},t.prototype.parseJSXAttributes=function(){for(var i=[];!this.matchJSX("/")&&!this.matchJSX(">");){var r=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();i.push(r)}return i},t.prototype.parseJSXOpeningElement=function(){var i=this.createJSXNode();this.expectJSX("<");var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),c=this.matchJSX("/");return c&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new p.JSXOpeningElement(r,c,n))},t.prototype.parseJSXBoundaryElement=function(){var i=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var r=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(i,new p.JSXClosingElement(r))}var n=this.parseJSXElementName(),c=this.parseJSXAttributes(),E=this.matchJSX("/");return E&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new p.JSXOpeningElement(n,E,c))},t.prototype.parseJSXEmptyExpression=function(){var i=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(i,new p.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var i=this.createJSXNode();this.expectJSX("{");var r;return this.matchJSX("}")?(r=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),r=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(i,new p.JSXExpressionContainer(r))},t.prototype.parseJSXChildren=function(){for(var i=[];!this.scanner.eof();){var r=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var c=this.getTokenRaw(n),E=this.finalize(r,new p.JSXText(n.value,c));i.push(E)}if(this.scanner.source[this.scanner.index]==="{"){var v=this.parseJSXExpressionContainer();i.push(v)}else break}return i},t.prototype.parseComplexJSXElement=function(i){for(var r=[];!this.scanner.eof();){i.children=i.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),c=this.parseJSXBoundaryElement();if(c.type===o.JSXSyntax.JSXOpeningElement){var E=c;if(E.selfClosing){var v=this.finalize(n,new p.JSXElement(E,[],null));i.children.push(v)}else r.push(i),i={node:n,opening:E,closing:null,children:[]}}if(c.type===o.JSXSyntax.JSXClosingElement){i.closing=c;var g=h(i.opening.name),b=h(i.closing.name);if(g!==b&&this.tolerateError("Expected corresponding JSX closing tag for %0",g),r.length>0){var v=this.finalize(i.node,new p.JSXElement(i.opening,i.children,i.closing));i=r[r.length-1],i.children.push(v),r.pop()}else break}}return i},t.prototype.parseJSXElement=function(){var i=this.createJSXNode(),r=this.parseJSXOpeningElement(),n=[],c=null;if(!r.selfClosing){var E=this.parseComplexJSXElement({node:i,opening:r,closing:c,children:n});n=E.children,c=E.closing}return this.finalize(i,new p.JSXElement(r,n,c))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var i=this.parseJSXElement();return this.finishJSX(),i},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t})(D.Parser);u.JSXParser=a},function(C,u){Object.defineProperty(u,"__esModule",{value:!0});var S={NonAsciiIdentifierStart:/[\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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-\uA7AD\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\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\u0C81-\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\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};u.Character={fromCodePoint:function(l){return l<65536?String.fromCharCode(l):String.fromCharCode(55296+(l-65536>>10))+String.fromCharCode(56320+(l-65536&1023))},isWhiteSpace:function(l){return l===32||l===9||l===11||l===12||l===160||l>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(l)>=0},isLineTerminator:function(l){return l===10||l===13||l===8232||l===8233},isIdentifierStart:function(l){return l===36||l===95||l>=65&&l<=90||l>=97&&l<=122||l===92||l>=128&&S.NonAsciiIdentifierStart.test(u.Character.fromCodePoint(l))},isIdentifierPart:function(l){return l===36||l===95||l>=65&&l<=90||l>=97&&l<=122||l>=48&&l<=57||l===92||l>=128&&S.NonAsciiIdentifierPart.test(u.Character.fromCodePoint(l))},isDecimalDigit:function(l){return l>=48&&l<=57},isHexDigit:function(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102},isOctalDigit:function(l){return l>=48&&l<=55}}},function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(6),m=(function(){function i(r){this.type=l.JSXSyntax.JSXClosingElement,this.name=r}return i})();u.JSXClosingElement=m;var p=(function(){function i(r,n,c){this.type=l.JSXSyntax.JSXElement,this.openingElement=r,this.children=n,this.closingElement=c}return i})();u.JSXElement=p;var o=(function(){function i(){this.type=l.JSXSyntax.JSXEmptyExpression}return i})();u.JSXEmptyExpression=o;var F=(function(){function i(r){this.type=l.JSXSyntax.JSXExpressionContainer,this.expression=r}return i})();u.JSXExpressionContainer=F;var D=(function(){function i(r){this.type=l.JSXSyntax.JSXIdentifier,this.name=r}return i})();u.JSXIdentifier=D;var x=(function(){function i(r,n){this.type=l.JSXSyntax.JSXMemberExpression,this.object=r,this.property=n}return i})();u.JSXMemberExpression=x;var s=(function(){function i(r,n){this.type=l.JSXSyntax.JSXAttribute,this.name=r,this.value=n}return i})();u.JSXAttribute=s;var h=(function(){function i(r,n){this.type=l.JSXSyntax.JSXNamespacedName,this.namespace=r,this.name=n}return i})();u.JSXNamespacedName=h;var a=(function(){function i(r,n,c){this.type=l.JSXSyntax.JSXOpeningElement,this.name=r,this.selfClosing=n,this.attributes=c}return i})();u.JSXOpeningElement=a;var e=(function(){function i(r){this.type=l.JSXSyntax.JSXSpreadAttribute,this.argument=r}return i})();u.JSXSpreadAttribute=e;var t=(function(){function i(r,n){this.type=l.JSXSyntax.JSXText,this.value=r,this.raw=n}return i})();u.JSXText=t},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(2),m=(function(){function f(d){this.type=l.Syntax.ArrayExpression,this.elements=d}return f})();u.ArrayExpression=m;var p=(function(){function f(d){this.type=l.Syntax.ArrayPattern,this.elements=d}return f})();u.ArrayPattern=p;var o=(function(){function f(d,A,T){this.type=l.Syntax.ArrowFunctionExpression,this.id=null,this.params=d,this.body=A,this.generator=!1,this.expression=T,this.async=!1}return f})();u.ArrowFunctionExpression=o;var F=(function(){function f(d,A,T){this.type=l.Syntax.AssignmentExpression,this.operator=d,this.left=A,this.right=T}return f})();u.AssignmentExpression=F;var D=(function(){function f(d,A){this.type=l.Syntax.AssignmentPattern,this.left=d,this.right=A}return f})();u.AssignmentPattern=D;var x=(function(){function f(d,A,T){this.type=l.Syntax.ArrowFunctionExpression,this.id=null,this.params=d,this.body=A,this.generator=!1,this.expression=T,this.async=!0}return f})();u.AsyncArrowFunctionExpression=x;var s=(function(){function f(d,A,T){this.type=l.Syntax.FunctionDeclaration,this.id=d,this.params=A,this.body=T,this.generator=!1,this.expression=!1,this.async=!0}return f})();u.AsyncFunctionDeclaration=s;var h=(function(){function f(d,A,T){this.type=l.Syntax.FunctionExpression,this.id=d,this.params=A,this.body=T,this.generator=!1,this.expression=!1,this.async=!0}return f})();u.AsyncFunctionExpression=h;var a=(function(){function f(d){this.type=l.Syntax.AwaitExpression,this.argument=d}return f})();u.AwaitExpression=a;var e=(function(){function f(d,A,T){var L=d==="||"||d==="&&";this.type=L?l.Syntax.LogicalExpression:l.Syntax.BinaryExpression,this.operator=d,this.left=A,this.right=T}return f})();u.BinaryExpression=e;var t=(function(){function f(d){this.type=l.Syntax.BlockStatement,this.body=d}return f})();u.BlockStatement=t;var i=(function(){function f(d){this.type=l.Syntax.BreakStatement,this.label=d}return f})();u.BreakStatement=i;var r=(function(){function f(d,A){this.type=l.Syntax.CallExpression,this.callee=d,this.arguments=A}return f})();u.CallExpression=r;var n=(function(){function f(d,A){this.type=l.Syntax.CatchClause,this.param=d,this.body=A}return f})();u.CatchClause=n;var c=(function(){function f(d){this.type=l.Syntax.ClassBody,this.body=d}return f})();u.ClassBody=c;var E=(function(){function f(d,A,T){this.type=l.Syntax.ClassDeclaration,this.id=d,this.superClass=A,this.body=T}return f})();u.ClassDeclaration=E;var v=(function(){function f(d,A,T){this.type=l.Syntax.ClassExpression,this.id=d,this.superClass=A,this.body=T}return f})();u.ClassExpression=v;var g=(function(){function f(d,A){this.type=l.Syntax.MemberExpression,this.computed=!0,this.object=d,this.property=A}return f})();u.ComputedMemberExpression=g;var b=(function(){function f(d,A,T){this.type=l.Syntax.ConditionalExpression,this.test=d,this.consequent=A,this.alternate=T}return f})();u.ConditionalExpression=b;var k=(function(){function f(d){this.type=l.Syntax.ContinueStatement,this.label=d}return f})();u.ContinueStatement=k;var B=(function(){function f(){this.type=l.Syntax.DebuggerStatement}return f})();u.DebuggerStatement=B;var I=(function(){function f(d,A){this.type=l.Syntax.ExpressionStatement,this.expression=d,this.directive=A}return f})();u.Directive=I;var N=(function(){function f(d,A){this.type=l.Syntax.DoWhileStatement,this.body=d,this.test=A}return f})();u.DoWhileStatement=N;var M=(function(){function f(){this.type=l.Syntax.EmptyStatement}return f})();u.EmptyStatement=M;var P=(function(){function f(d){this.type=l.Syntax.ExportAllDeclaration,this.source=d}return f})();u.ExportAllDeclaration=P;var W=(function(){function f(d){this.type=l.Syntax.ExportDefaultDeclaration,this.declaration=d}return f})();u.ExportDefaultDeclaration=W;var Y=(function(){function f(d,A,T){this.type=l.Syntax.ExportNamedDeclaration,this.declaration=d,this.specifiers=A,this.source=T}return f})();u.ExportNamedDeclaration=Y;var X=(function(){function f(d,A){this.type=l.Syntax.ExportSpecifier,this.exported=A,this.local=d}return f})();u.ExportSpecifier=X;var R=(function(){function f(d){this.type=l.Syntax.ExpressionStatement,this.expression=d}return f})();u.ExpressionStatement=R;var H=(function(){function f(d,A,T){this.type=l.Syntax.ForInStatement,this.left=d,this.right=A,this.body=T,this.each=!1}return f})();u.ForInStatement=H;var G=(function(){function f(d,A,T){this.type=l.Syntax.ForOfStatement,this.left=d,this.right=A,this.body=T}return f})();u.ForOfStatement=G;var q=(function(){function f(d,A,T,L){this.type=l.Syntax.ForStatement,this.init=d,this.test=A,this.update=T,this.body=L}return f})();u.ForStatement=q;var ee=(function(){function f(d,A,T,L){this.type=l.Syntax.FunctionDeclaration,this.id=d,this.params=A,this.body=T,this.generator=L,this.expression=!1,this.async=!1}return f})();u.FunctionDeclaration=ee;var pe=(function(){function f(d,A,T,L){this.type=l.Syntax.FunctionExpression,this.id=d,this.params=A,this.body=T,this.generator=L,this.expression=!1,this.async=!1}return f})();u.FunctionExpression=pe;var fe=(function(){function f(d){this.type=l.Syntax.Identifier,this.name=d}return f})();u.Identifier=fe;var de=(function(){function f(d,A,T){this.type=l.Syntax.IfStatement,this.test=d,this.consequent=A,this.alternate=T}return f})();u.IfStatement=de;var me=(function(){function f(d,A){this.type=l.Syntax.ImportDeclaration,this.specifiers=d,this.source=A}return f})();u.ImportDeclaration=me;var xe=(function(){function f(d){this.type=l.Syntax.ImportDefaultSpecifier,this.local=d}return f})();u.ImportDefaultSpecifier=xe;var De=(function(){function f(d){this.type=l.Syntax.ImportNamespaceSpecifier,this.local=d}return f})();u.ImportNamespaceSpecifier=De;var ve=(function(){function f(d,A){this.type=l.Syntax.ImportSpecifier,this.local=d,this.imported=A}return f})();u.ImportSpecifier=ve;var Ee=(function(){function f(d,A){this.type=l.Syntax.LabeledStatement,this.label=d,this.body=A}return f})();u.LabeledStatement=Ee;var ye=(function(){function f(d,A){this.type=l.Syntax.Literal,this.value=d,this.raw=A}return f})();u.Literal=ye;var Ce=(function(){function f(d,A){this.type=l.Syntax.MetaProperty,this.meta=d,this.property=A}return f})();u.MetaProperty=Ce;var Ae=(function(){function f(d,A,T,L,te){this.type=l.Syntax.MethodDefinition,this.key=d,this.computed=A,this.value=T,this.kind=L,this.static=te}return f})();u.MethodDefinition=Ae;var Se=(function(){function f(d){this.type=l.Syntax.Program,this.body=d,this.sourceType="module"}return f})();u.Module=Se;var ge=(function(){function f(d,A){this.type=l.Syntax.NewExpression,this.callee=d,this.arguments=A}return f})();u.NewExpression=ge;var Fe=(function(){function f(d){this.type=l.Syntax.ObjectExpression,this.properties=d}return f})();u.ObjectExpression=Fe;var we=(function(){function f(d){this.type=l.Syntax.ObjectPattern,this.properties=d}return f})();u.ObjectPattern=we;var be=(function(){function f(d,A,T,L,te,$e){this.type=l.Syntax.Property,this.key=A,this.computed=T,this.value=L,this.kind=d,this.method=te,this.shorthand=$e}return f})();u.Property=be;var ke=(function(){function f(d,A,T,L){this.type=l.Syntax.Literal,this.value=d,this.raw=A,this.regex={pattern:T,flags:L}}return f})();u.RegexLiteral=ke;var Be=(function(){function f(d){this.type=l.Syntax.RestElement,this.argument=d}return f})();u.RestElement=Be;var Te=(function(){function f(d){this.type=l.Syntax.ReturnStatement,this.argument=d}return f})();u.ReturnStatement=Te;var Ie=(function(){function f(d){this.type=l.Syntax.Program,this.body=d,this.sourceType="script"}return f})();u.Script=Ie;var Ne=(function(){function f(d){this.type=l.Syntax.SequenceExpression,this.expressions=d}return f})();u.SequenceExpression=Ne;var Me=(function(){function f(d){this.type=l.Syntax.SpreadElement,this.argument=d}return f})();u.SpreadElement=Me;var Pe=(function(){function f(d,A){this.type=l.Syntax.MemberExpression,this.computed=!1,this.object=d,this.property=A}return f})();u.StaticMemberExpression=Pe;var Je=(function(){function f(){this.type=l.Syntax.Super}return f})();u.Super=Je;var Xe=(function(){function f(d,A){this.type=l.Syntax.SwitchCase,this.test=d,this.consequent=A}return f})();u.SwitchCase=Xe;var Le=(function(){function f(d,A){this.type=l.Syntax.SwitchStatement,this.discriminant=d,this.cases=A}return f})();u.SwitchStatement=Le;var Ue=(function(){function f(d,A){this.type=l.Syntax.TaggedTemplateExpression,this.tag=d,this.quasi=A}return f})();u.TaggedTemplateExpression=Ue;var ze=(function(){function f(d,A){this.type=l.Syntax.TemplateElement,this.value=d,this.tail=A}return f})();u.TemplateElement=ze;var Re=(function(){function f(d,A){this.type=l.Syntax.TemplateLiteral,this.quasis=d,this.expressions=A}return f})();u.TemplateLiteral=Re;var Oe=(function(){function f(){this.type=l.Syntax.ThisExpression}return f})();u.ThisExpression=Oe;var Ke=(function(){function f(d){this.type=l.Syntax.ThrowStatement,this.argument=d}return f})();u.ThrowStatement=Ke;var je=(function(){function f(d,A,T){this.type=l.Syntax.TryStatement,this.block=d,this.handler=A,this.finalizer=T}return f})();u.TryStatement=je;var We=(function(){function f(d,A){this.type=l.Syntax.UnaryExpression,this.operator=d,this.argument=A,this.prefix=!0}return f})();u.UnaryExpression=We;var He=(function(){function f(d,A,T){this.type=l.Syntax.UpdateExpression,this.operator=d,this.argument=A,this.prefix=T}return f})();u.UpdateExpression=He;var Ge=(function(){function f(d,A){this.type=l.Syntax.VariableDeclaration,this.declarations=d,this.kind=A}return f})();u.VariableDeclaration=Ge;var _e=(function(){function f(d,A){this.type=l.Syntax.VariableDeclarator,this.id=d,this.init=A}return f})();u.VariableDeclarator=_e;var Ye=(function(){function f(d,A){this.type=l.Syntax.WhileStatement,this.test=d,this.body=A}return f})();u.WhileStatement=Ye;var Ve=(function(){function f(d,A){this.type=l.Syntax.WithStatement,this.object=d,this.body=A}return f})();u.WithStatement=Ve;var qe=(function(){function f(d,A){this.type=l.Syntax.YieldExpression,this.argument=d,this.delegate=A}return f})();u.YieldExpression=qe},function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(9),m=S(10),p=S(11),o=S(7),F=S(12),D=S(2),x=S(13),s="ArrowParameterPlaceHolder",h=(function(){function a(e,t,i){t===void 0&&(t={}),this.config={range:typeof t.range=="boolean"&&t.range,loc:typeof t.loc=="boolean"&&t.loc,source:null,tokens:typeof t.tokens=="boolean"&&t.tokens,comment:typeof t.comment=="boolean"&&t.comment,tolerant:typeof t.tolerant=="boolean"&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=i,this.errorHandler=new m.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new F.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return a.prototype.throwError=function(e){var t=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(E,v){return l.assert(v<t.length,"Message reference must be in range"),t[v]}),r=this.lastMarker.index,n=this.lastMarker.line,c=this.lastMarker.column+1;throw this.errorHandler.createError(r,n,c,i)},a.prototype.tolerateError=function(e){var t=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(E,v){return l.assert(v<t.length,"Message reference must be in range"),t[v]}),r=this.lastMarker.index,n=this.scanner.lineNumber,c=this.lastMarker.column+1;this.errorHandler.tolerateError(r,n,c,i)},a.prototype.unexpectedTokenError=function(e,t){var i=t||p.Messages.UnexpectedToken,r;if(e?(t||(i=e.type===2?p.Messages.UnexpectedEOS:e.type===3?p.Messages.UnexpectedIdentifier:e.type===6?p.Messages.UnexpectedNumber:e.type===8?p.Messages.UnexpectedString:e.type===10?p.Messages.UnexpectedTemplate:p.Messages.UnexpectedToken,e.type===4&&(this.scanner.isFutureReservedWord(e.value)?i=p.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(i=p.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",i=i.replace("%0",r),e&&typeof e.lineNumber=="number"){var n=e.start,c=e.lineNumber,E=this.lastMarker.index-this.lastMarker.column,v=e.start-E+1;return this.errorHandler.createError(n,c,v,i)}else{var n=this.lastMarker.index,c=this.lastMarker.line,v=this.lastMarker.column+1;return this.errorHandler.createError(n,c,v,i)}},a.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},a.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},a.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var i=e[t],r=void 0;r={type:i.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(i.slice[0],i.slice[1])},this.config.range&&(r.range=i.range),this.config.loc&&(r.loc=i.loc);var n={start:{line:i.loc.start.line,column:i.loc.start.column,offset:i.range[0]},end:{line:i.loc.end.line,column:i.loc.end.column,offset:i.range[1]}};this.delegate(r,n)}}},a.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},a.prototype.convertToken=function(e){var t={type:x.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),e.type===9){var i=e.pattern,r=e.flags;t.regex={pattern:i,flags:r}}return t},a.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),e},a.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},a.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},a.prototype.startNode=function(e,t){t===void 0&&(t=0);var i=e.start-e.lineStart,r=e.lineNumber;return i<0&&(i+=t,r--),{index:e.start,line:r,column:i}},a.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var i={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,i)}return t},a.prototype.expect=function(e){var t=this.nextToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},a.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;e.type===7&&e.value===","?this.nextToken():e.type===7&&e.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,p.Messages.UnexpectedToken)}else this.expect(",")},a.prototype.expectKeyword=function(e){var t=this.nextToken();(t.type!==4||t.value!==e)&&this.throwUnexpectedToken(t)},a.prototype.match=function(e){return this.lookahead.type===7&&this.lookahead.value===e},a.prototype.matchKeyword=function(e){return this.lookahead.type===4&&this.lookahead.value===e},a.prototype.matchContextualKeyword=function(e){return this.lookahead.type===3&&this.lookahead.value===e},a.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var e=this.lookahead.value;return e==="="||e==="*="||e==="**="||e==="/="||e==="%="||e==="+="||e==="-="||e==="<<="||e===">>="||e===">>>="||e==="&="||e==="^="||e==="|="},a.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=i,this.context.firstCoverInitializedNameError=r,n},a.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&i,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,n},a.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},a.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,i,r;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,p.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(i.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(i.value==="true",r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,i=this.nextRegexToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.RegexLiteral(i.regex,r,i.pattern,i.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(e,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(e,new o.ThisExpression)):this.matchKeyword("class")?t=this.parseClassExpression():t=this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},a.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},a.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var i=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(i)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},a.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,i=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=i,r},a.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),i=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(t,new o.FunctionExpression(null,r.params,n,e))},a.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,i=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=i,this.finalize(e,new o.AsyncFunctionExpression(null,r.params,n))},a.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),i;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,p.Messages.StrictOctalLiteral);var r=this.getTokenRaw(t);i=this.finalize(e,new o.Literal(t.value,r));break;case 3:case 1:case 5:case 4:i=this.finalize(e,new o.Identifier(t.value));break;case 7:t.value==="["?(i=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):i=this.throwUnexpectedToken(t);break;default:i=this.throwUnexpectedToken(t)}return i},a.prototype.isPropertyKey=function(e,t){return e.type===D.Syntax.Identifier&&e.name===t||e.type===D.Syntax.Literal&&e.value===t},a.prototype.parseObjectProperty=function(e){var t=this.createNode(),i=this.lookahead,r,n=null,c=null,E=!1,v=!1,g=!1,b=!1;if(i.type===3){var k=i.value;this.nextToken(),E=this.match("["),b=!this.hasLineTerminator&&k==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),n=b?this.parseObjectPropertyKey():this.finalize(t,new o.Identifier(k))}else this.match("*")?this.nextToken():(E=this.match("["),n=this.parseObjectPropertyKey());var B=this.qualifiedPropertyName(this.lookahead);if(i.type===3&&!b&&i.value==="get"&&B)r="get",E=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(i.type===3&&!b&&i.value==="set"&&B)r="set",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(i.type===7&&i.value==="*"&&B)r="init",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),v=!0;else if(n||this.throwUnexpectedToken(this.lookahead),r="init",this.match(":")&&!b)!E&&this.isPropertyKey(n,"__proto__")&&(e.value&&this.tolerateError(p.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))c=b?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),v=!0;else if(i.type===3){var k=this.finalize(t,new o.Identifier(i.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),g=!0;var I=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(t,new o.AssignmentPattern(k,I))}else g=!0,c=k}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new o.Property(r,n,E,c,v,g))},a.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],i={value:!1};!this.match("}");)t.push(this.parseObjectProperty(i)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},a.prototype.parseTemplateHead=function(){l.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},a.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},a.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],i=[],r=this.parseTemplateHead();for(i.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),i.push(r);return this.finalize(e,new o.TemplateLiteral(i,t))},a.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case D.Syntax.Identifier:case D.Syntax.MemberExpression:case D.Syntax.RestElement:case D.Syntax.AssignmentPattern:break;case D.Syntax.SpreadElement:e.type=D.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case D.Syntax.ArrayExpression:e.type=D.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)e.elements[t]!==null&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case D.Syntax.ObjectExpression:e.type=D.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case D.Syntax.AssignmentExpression:e.type=D.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left);break}},a.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:s,params:[],async:!1};else{var t=this.lookahead,i=[];if(this.match("..."))e=this.parseRestElement(i),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:s,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var n=[];for(this.context.isAssignmentTarget=!1,n.push(e);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var c=0;c<n.length;c++)this.reinterpretExpressionAsPattern(n[c]);r=!0,e={type:s,params:n,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),n.push(this.parseRestElement(i)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var c=0;c<n.length;c++)this.reinterpretExpressionAsPattern(n[c]);r=!0,e={type:s,params:n,async:!1}}else n.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(e=this.finalize(this.startNode(t),new o.SequenceExpression(n)))}if(!r){if(this.expect(")"),this.match("=>")&&(e.type===D.Syntax.Identifier&&e.name==="yield"&&(r=!0,e={type:s,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===D.Syntax.SequenceExpression)for(var c=0;c<e.expressions.length;c++)this.reinterpretExpressionAsPattern(e.expressions[c]);else this.reinterpretExpressionAsPattern(e);var E=e.type===D.Syntax.SequenceExpression?e.expressions:[e];e={type:s,params:E,async:!1}}this.context.isBindingElement=!1}}}return e},a.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},a.prototype.isIdentifierName=function(e){return e.type===3||e.type===4||e.type===1||e.type===5},a.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new o.Identifier(t.value))},a.prototype.parseNewExpression=function(){var e=this.createNode(),t=this.parseIdentifierName();l.assert(t.name==="new","New expression must start with `new`");var i;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var r=this.parseIdentifierName();i=new o.MetaProperty(t,r)}else this.throwUnexpectedToken(this.lookahead);else{var n=this.isolateCoverGrammar(this.parseLeftHandSideExpression),c=this.match("(")?this.parseArguments():[];i=new o.NewExpression(n,c),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,i)},a.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},a.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},a.prototype.parseLeftHandSideExpressionAllowCall=function(){var e=this.lookahead,t=this.matchContextualKeyword("async"),i=this.context.allowIn;this.context.allowIn=!0;var r;for(this.matchKeyword("super")&&this.context.inFunctionBody?(r=this.createNode(),this.nextToken(),r=this.finalize(r,new o.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):r=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var n=this.parseIdentifierName();r=this.finalize(this.startNode(e),new o.StaticMemberExpression(r,n))}else if(this.match("(")){var c=t&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var E=c?this.parseAsyncArguments():this.parseArguments();if(r=this.finalize(this.startNode(e),new o.CallExpression(r,E)),c&&this.match("=>")){for(var v=0;v<E.length;++v)this.reinterpretExpressionAsPattern(E[v]);r={type:s,params:E,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),r=this.finalize(this.startNode(e),new o.ComputedMemberExpression(r,n))}else if(this.lookahead.type===10&&this.lookahead.head){var g=this.parseTemplateLiteral();r=this.finalize(this.startNode(e),new o.TaggedTemplateExpression(r,g))}else break;return this.context.allowIn=i,r},a.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(e,new o.Super)},a.prototype.parseLeftHandSideExpression=function(){l.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var i=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new o.ComputedMemberExpression(t,i))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();t=this.finalize(e,new o.StaticMemberExpression(t,i))}else if(this.lookahead.type===10&&this.lookahead.head){var r=this.parseTemplateLiteral();t=this.finalize(e,new o.TaggedTemplateExpression(t,r))}else break;return t},a.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var i=this.startNode(t),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(p.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment);var n=!0;e=this.finalize(i,new o.UpdateExpression(r.value,e,n)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(p.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var c=this.nextToken().value,n=!1;e=this.finalize(this.startNode(t),new o.UpdateExpression(c,e,n))}return e},a.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new o.AwaitExpression(t))},a.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),i=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new o.UnaryExpression(i.value,e)),this.context.strict&&e.operator==="delete"&&e.argument.type===D.Syntax.Identifier&&this.tolerateError(p.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?e=this.parseAwaitExpression():e=this.parseUpdateExpression();return e},a.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==D.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new o.BinaryExpression("**",i,r))}return t},a.prototype.binaryPrecedence=function(e){var t=e.value,i;return e.type===7?i=this.operatorPrecedence[t]||0:e.type===4?i=t==="instanceof"||this.context.allowIn&&t==="in"?7:0:i=0,i},a.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),i=this.lookahead,r=this.binaryPrecedence(i);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var n=[e,this.lookahead],c=t,E=this.isolateCoverGrammar(this.parseExponentiationExpression),v=[c,i.value,E],g=[r];r=this.binaryPrecedence(this.lookahead),!(r<=0);){for(;v.length>2&&r<=g[g.length-1];){E=v.pop();var b=v.pop();g.pop(),c=v.pop(),n.pop();var k=this.startNode(n[n.length-1]);v.push(this.finalize(k,new o.BinaryExpression(b,c,E)))}v.push(this.nextToken().value),g.push(r),n.push(this.lookahead),v.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var B=v.length-1;t=v[B];for(var I=n.pop();B>1;){var N=n.pop(),M=I&&I.lineStart,k=this.startNode(N,M),b=v[B-1];t=this.finalize(k,new o.BinaryExpression(b,v[B-2],t)),B-=2,I=N}}return t},a.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var i=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=i,this.expect(":");var n=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,r,n)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},a.prototype.checkPatternParam=function(e,t){switch(t.type){case D.Syntax.Identifier:this.validateParam(e,t,t.name);break;case D.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case D.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case D.Syntax.ArrayPattern:for(var i=0;i<t.elements.length;i++)t.elements[i]!==null&&this.checkPatternParam(e,t.elements[i]);break;case D.Syntax.ObjectPattern:for(var i=0;i<t.properties.length;i++)this.checkPatternParam(e,t.properties[i].value);break}e.simple=e.simple&&t instanceof o.Identifier},a.prototype.reinterpretAsCoverFormalsList=function(e){var t=[e],i,r=!1;switch(e.type){case D.Syntax.Identifier:break;case s:t=e.params,r=e.async;break;default:return null}i={simple:!0,paramSet:{}};for(var n=0;n<t.length;++n){var c=t[n];c.type===D.Syntax.AssignmentPattern?c.right.type===D.Syntax.YieldExpression&&(c.right.argument&&this.throwUnexpectedToken(this.lookahead),c.right.type=D.Syntax.Identifier,c.right.name="yield",delete c.right.argument,delete c.right.delegate):r&&c.type===D.Syntax.Identifier&&c.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(i,c),t[n]=c}if(this.context.strict||!this.context.allowYield)for(var n=0;n<t.length;++n){var c=t[n];c.type===D.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(i.message===p.Messages.StrictParamDupe){var E=this.context.strict?i.stricted:i.firstRestricted;this.throwUnexpectedToken(E,i.message)}return{simple:i.simple,params:t,stricted:i.stricted,firstRestricted:i.firstRestricted,message:i.message}},a.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,i=t;if(e=this.parseConditionalExpression(),i.type===3&&i.lineNumber===this.lookahead.lineNumber&&i.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),e={type:s,params:[r],async:!0}}if(e.type===s||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var E=this.context.strict,v=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var g=this.context.allowYield,b=this.context.await;this.context.allowYield=!0,this.context.await=n;var k=this.startNode(t);this.expect("=>");var B=void 0;if(this.match("{")){var I=this.context.allowIn;this.context.allowIn=!0,B=this.parseFunctionSourceElements(),this.context.allowIn=I}else B=this.isolateCoverGrammar(this.parseAssignmentExpression);var N=B.type!==D.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=n?this.finalize(k,new o.AsyncArrowFunctionExpression(c.params,B,N)):this.finalize(k,new o.ArrowFunctionExpression(c.params,B,N)),this.context.strict=E,this.context.allowStrictDirective=v,this.context.allowYield=g,this.context.await=b}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===D.Syntax.Identifier){var M=e;this.scanner.isRestrictedWord(M.name)&&this.tolerateUnexpectedToken(i,p.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(M.name)&&this.tolerateUnexpectedToken(i,p.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),i=this.nextToken();var P=i.value,W=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(P,e,W)),this.context.firstCoverInitializedNameError=null}}return e},a.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var i=[];for(i.push(t);this.lookahead.type!==2&&this.match(",");)this.nextToken(),i.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(i))}return t},a.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,p.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,p.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},a.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},a.prototype.parseLexicalBinding=function(e,t){var i=this.createNode(),r=[],n=this.parsePattern(r,e);this.context.strict&&n.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(p.Messages.StrictVarName);var c=null;return e==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),c=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(p.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&n.type!==D.Syntax.Identifier||this.match("="))&&(this.expect("="),c=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(i,new o.VariableDeclarator(n,c))},a.prototype.parseBindingList=function(e,t){for(var i=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),i.push(this.parseLexicalBinding(e,t));return i},a.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value==="["||t.type===7&&t.value==="{"||t.type===4&&t.value==="let"||t.type===4&&t.value==="yield"},a.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),i=this.nextToken().value;l.assert(i==="let"||i==="const","Lexical declaration must be either let or const");var r=this.parseBindingList(i,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(r,i))},a.prototype.parseBindingRestElement=function(e,t){var i=this.createNode();this.expect("...");var r=this.parsePattern(e,t);return this.finalize(i,new o.RestElement(r))},a.prototype.parseArrayPattern=function(e,t){var i=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(e,t));break}else r.push(this.parsePatternWithDefault(e,t));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(i,new o.ArrayPattern(r))},a.prototype.parsePropertyPattern=function(e,t){var i=this.createNode(),r=!1,n=!1,c=!1,E,v;if(this.lookahead.type===3){var g=this.lookahead;E=this.parseVariableIdentifier();var b=this.finalize(i,new o.Identifier(g.value));if(this.match("=")){e.push(g),n=!0,this.nextToken();var k=this.parseAssignmentExpression();v=this.finalize(this.startNode(g),new o.AssignmentPattern(b,k))}else this.match(":")?(this.expect(":"),v=this.parsePatternWithDefault(e,t)):(e.push(g),n=!0,v=b)}else r=this.match("["),E=this.parseObjectPropertyKey(),this.expect(":"),v=this.parsePatternWithDefault(e,t);return this.finalize(i,new o.Property("init",E,r,v,c,n))},a.prototype.parseObjectPattern=function(e,t){var i=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(i,new o.ObjectPattern(r))},a.prototype.parsePattern=function(e,t){var i;return this.match("[")?i=this.parseArrayPattern(e,t):this.match("{")?i=this.parseObjectPattern(e,t):(this.matchKeyword("let")&&(t==="const"||t==="let")&&this.tolerateUnexpectedToken(this.lookahead,p.Messages.LetInLexicalBinding),e.push(this.lookahead),i=this.parseVariableIdentifier(t)),i},a.prototype.parsePatternWithDefault=function(e,t){var i=this.lookahead,r=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var n=this.context.allowYield;this.context.allowYield=!0;var c=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=n,r=this.finalize(this.startNode(i),new o.AssignmentPattern(r,c))}return r},a.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),i=this.nextToken();return i.type===4&&i.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(i,p.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(i):i.type!==3?this.context.strict&&i.type===4&&this.scanner.isStrictModeReservedWord(i.value)?this.tolerateUnexpectedToken(i,p.Messages.StrictReservedWord):(this.context.strict||i.value!=="let"||e!=="var")&&this.throwUnexpectedToken(i):(this.context.isModule||this.context.await)&&i.type===3&&i.value==="await"&&this.tolerateUnexpectedToken(i),this.finalize(t,new o.Identifier(i.value))},a.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),i=[],r=this.parsePattern(i,"var");this.context.strict&&r.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(p.Messages.StrictVarName);var n=null;return this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type!==D.Syntax.Identifier&&!e.inFor&&this.expect("="),this.finalize(t,new o.VariableDeclarator(r,n))},a.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},i=[];for(i.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),i.push(this.parseVariableDeclaration(t));return i},a.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},a.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},a.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},a.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(p.Messages.StrictFunction),this.parseStatement()},a.prototype.parseIfStatement=function(){var e=this.createNode(),t,i=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),i=this.parseIfClause())),this.finalize(e,new o.IfStatement(r,t,i))},a.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var i=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(i,r))},a.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new o.WhileStatement(i,t))},a.prototype.parseForStatement=function(){var e=null,t=null,i=null,r=!0,n,c,E=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){e=this.createNode(),this.nextToken();var v=this.context.allowIn;this.context.allowIn=!1;var g=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=v,g.length===1&&this.matchKeyword("in")){var b=g[0];b.init&&(b.id.type===D.Syntax.ArrayPattern||b.id.type===D.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(p.Messages.ForInOfLoopInitializer,"for-in"),e=this.finalize(e,new o.VariableDeclaration(g,"var")),this.nextToken(),n=e,c=this.parseExpression(),e=null}else g.length===1&&g[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new o.VariableDeclaration(g,"var")),this.nextToken(),n=e,c=this.parseAssignmentExpression(),e=null,r=!1):(e=this.finalize(e,new o.VariableDeclaration(g,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){e=this.createNode();var k=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")e=this.finalize(e,new o.Identifier(k)),this.nextToken(),n=e,c=this.parseExpression(),e=null;else{var v=this.context.allowIn;this.context.allowIn=!1;var g=this.parseBindingList(k,{inFor:!0});this.context.allowIn=v,g.length===1&&g[0].init===null&&this.matchKeyword("in")?(e=this.finalize(e,new o.VariableDeclaration(g,k)),this.nextToken(),n=e,c=this.parseExpression(),e=null):g.length===1&&g[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new o.VariableDeclaration(g,k)),this.nextToken(),n=e,c=this.parseAssignmentExpression(),e=null,r=!1):(this.consumeSemicolon(),e=this.finalize(e,new o.VariableDeclaration(g,k)))}}else{var B=this.lookahead,v=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=v,this.matchKeyword("in"))(!this.context.isAssignmentTarget||e.type===D.Syntax.AssignmentExpression)&&this.tolerateError(p.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),n=e,c=this.parseExpression(),e=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||e.type===D.Syntax.AssignmentExpression)&&this.tolerateError(p.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),n=e,c=this.parseAssignmentExpression(),e=null,r=!1;else{if(this.match(",")){for(var I=[e];this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(B),new o.SequenceExpression(I))}this.expect(";")}}typeof n>"u"&&(this.match(";")||(t=this.parseExpression()),this.expect(";"),this.match(")")||(i=this.parseExpression()));var N;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),N=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var M=this.context.inIteration;this.context.inIteration=!0,N=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=M}return typeof n>"u"?this.finalize(E,new o.ForStatement(e,t,i,N)):r?this.finalize(E,new o.ForInStatement(n,c,N)):this.finalize(E,new o.ForOfStatement(n,c,N))},a.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var i=this.parseVariableIdentifier();t=i;var r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(p.Messages.UnknownLabel,i.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(p.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},a.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var i=this.parseVariableIdentifier(),r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(p.Messages.UnknownLabel,i.name),t=i}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(p.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},a.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(p.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,i=t?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(i))},a.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(p.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword("with"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new o.WithStatement(i,t))},a.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var i=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)i.push(this.parseStatementListItem());return this.finalize(e,new o.SwitchCase(t,i))},a.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var i=this.context.inSwitch;this.context.inSwitch=!0;var r=[],n=!1;for(this.expect("{");!this.match("}");){var c=this.parseSwitchCase();c.test===null&&(n&&this.throwError(p.Messages.MultipleDefaultsInSwitch),n=!0),r.push(c)}return this.expect("}"),this.context.inSwitch=i,this.finalize(e,new o.SwitchStatement(t,r))},a.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),i;if(t.type===D.Syntax.Identifier&&this.match(":")){this.nextToken();var r=t,n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)&&this.throwError(p.Messages.Redeclaration,"Label",r.name),this.context.labelSet[n]=!0;var c=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword("function")){var E=this.lookahead,v=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(E,p.Messages.StrictFunction):v.generator&&this.tolerateUnexpectedToken(E,p.Messages.GeneratorInLegacyContext),c=v}else c=this.parseStatement();delete this.context.labelSet[n],i=new o.LabeledStatement(r,c)}else this.consumeSemicolon(),i=new o.ExpressionStatement(t);return this.finalize(e,i)},a.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(p.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},a.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],i=this.parsePattern(t),r={},n=0;n<t.length;n++){var c="$"+t[n].value;Object.prototype.hasOwnProperty.call(r,c)&&this.tolerateError(p.Messages.DuplicateBinding,t[n].value),r[c]=!0}this.context.strict&&i.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(p.Messages.StrictCatchVariable),this.expect(")");var E=this.parseBlock();return this.finalize(e,new o.CatchClause(i,E))},a.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},a.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),i=this.matchKeyword("catch")?this.parseCatchClause():null,r=this.matchKeyword("finally")?this.parseFinallyClause():null;return!i&&!r&&this.throwError(p.Messages.NoCatchOrFinally),this.finalize(e,new o.TryStatement(t,i,r))},a.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new o.DebuggerStatement)},a.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;t==="{"?e=this.parseBlock():t==="("?e=this.parseExpressionStatement():t===";"?e=this.parseEmptyStatement():e=this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement();break}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},a.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),i=this.context.labelSet,r=this.context.inIteration,n=this.context.inSwitch,c=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=i,this.context.inIteration=r,this.context.inSwitch=n,this.context.inFunctionBody=c,this.finalize(e,new o.BlockStatement(t))},a.prototype.validateParam=function(e,t,i){var r="$"+i;this.context.strict?(this.scanner.isRestrictedWord(i)&&(e.stricted=t,e.message=p.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=p.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(i)?(e.firstRestricted=t,e.message=p.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(i)?(e.firstRestricted=t,e.message=p.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=p.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(e.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[r]=!0},a.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var i=this.parsePattern(e);return this.match("=")&&this.throwError(p.Messages.DefaultRestParameter),this.match(")")||this.throwError(p.Messages.ParameterAfterRestParameter),this.finalize(t,new o.RestElement(i))},a.prototype.parseFormalParameter=function(e){for(var t=[],i=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),r=0;r<t.length;r++)this.validateParam(e,t[r],t[r].value);e.simple=e.simple&&i instanceof o.Identifier,e.params.push(i)},a.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},a.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var i=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===i.lineNumber&&i.type===4&&i.value==="function"}return e},a.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),i=this.matchContextualKeyword("async");i&&this.nextToken(),this.expectKeyword("function");var r=i?!1:this.match("*");r&&this.nextToken();var n,c=null,E=null;if(!e||!this.match("(")){var v=this.lookahead;c=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(v.value)&&this.tolerateUnexpectedToken(v,p.Messages.StrictFunctionName):this.scanner.isRestrictedWord(v.value)?(E=v,n=p.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(v.value)&&(E=v,n=p.Messages.StrictReservedWord)}var g=this.context.await,b=this.context.allowYield;this.context.await=i,this.context.allowYield=!r;var k=this.parseFormalParameters(E),B=k.params,I=k.stricted;E=k.firstRestricted,k.message&&(n=k.message);var N=this.context.strict,M=this.context.allowStrictDirective;this.context.allowStrictDirective=k.simple;var P=this.parseFunctionSourceElements();return this.context.strict&&E&&this.throwUnexpectedToken(E,n),this.context.strict&&I&&this.tolerateUnexpectedToken(I,n),this.context.strict=N,this.context.allowStrictDirective=M,this.context.await=g,this.context.allowYield=b,i?this.finalize(t,new o.AsyncFunctionDeclaration(c,B,P)):this.finalize(t,new o.FunctionDeclaration(c,B,P,r))},a.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var i=t?!1:this.match("*");i&&this.nextToken();var r,n=null,c,E=this.context.await,v=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!i,!this.match("(")){var g=this.lookahead;n=!this.context.strict&&!i&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(g.value)&&this.tolerateUnexpectedToken(g,p.Messages.StrictFunctionName):this.scanner.isRestrictedWord(g.value)?(c=g,r=p.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(g.value)&&(c=g,r=p.Messages.StrictReservedWord)}var b=this.parseFormalParameters(c),k=b.params,B=b.stricted;c=b.firstRestricted,b.message&&(r=b.message);var I=this.context.strict,N=this.context.allowStrictDirective;this.context.allowStrictDirective=b.simple;var M=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,r),this.context.strict&&B&&this.tolerateUnexpectedToken(B,r),this.context.strict=I,this.context.allowStrictDirective=N,this.context.await=E,this.context.allowYield=v,t?this.finalize(e,new o.AsyncFunctionExpression(n,k,M)):this.finalize(e,new o.FunctionExpression(n,k,M,i))},a.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),i=this.parseExpression(),r=i.type===D.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,r?new o.Directive(i,r):new o.ExpressionStatement(i))},a.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var i=this.lookahead;if(i.type!==8)break;var r=this.parseDirective();t.push(r);var n=r.directive;if(typeof n!="string")break;n==="use strict"?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,p.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(i,p.Messages.IllegalLanguageModeDirective)):!e&&i.octal&&(e=i)}return t},a.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return e.value==="["}return!1},a.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,i=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(p.Messages.BadGetterArity);var n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,n,t))},a.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,i=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length!==1?this.tolerateError(p.Messages.BadSetterArity):r.params[0]instanceof o.RestElement&&this.tolerateError(p.Messages.BadSetterRestParameter);var n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,n,t))},a.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,i=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,n,t))},a.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t==="["||t==="("||t==="{"||t==="+"||t==="-"||t==="!"||t==="~"||t==="++"||t==="--"||t==="/"||t==="/=";break;case 4:e=t==="class"||t==="delete"||t==="function"||t==="let"||t==="new"||t==="super"||t==="this"||t==="typeof"||t==="void"||t==="yield";break}return e},a.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,i=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,i=this.match("*"),i?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new o.YieldExpression(t,i))},a.prototype.parseClassElement=function(e){var t=this.lookahead,i=this.createNode(),r="",n=null,c=null,E=!1,v=!1,g=!1,b=!1;if(this.match("*"))this.nextToken();else{E=this.match("["),n=this.parseObjectPropertyKey();var k=n;if(k.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,g=!0,E=this.match("["),this.match("*")?this.nextToken():n=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value==="async"){var B=this.lookahead.value;B!==":"&&B!=="("&&B!=="*"&&(b=!0,t=this.lookahead,n=this.parseObjectPropertyKey(),t.type===3&&t.value==="constructor"&&this.tolerateUnexpectedToken(t,p.Messages.ConstructorIsAsync))}}var I=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value==="get"&&I?(r="get",E=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):t.value==="set"&&I&&(r="set",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):t.type===7&&t.value==="*"&&I&&(r="init",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),v=!0),!r&&n&&this.match("(")&&(r="init",c=b?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),v=!0),r||this.throwUnexpectedToken(this.lookahead),r==="init"&&(r="method"),E||(g&&this.isPropertyKey(n,"prototype")&&this.throwUnexpectedToken(t,p.Messages.StaticPrototype),!g&&this.isPropertyKey(n,"constructor")&&((r!=="method"||!v||c&&c.generator)&&this.throwUnexpectedToken(t,p.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,p.Messages.DuplicateConstructor):e.value=!0,r="constructor")),this.finalize(i,new o.MethodDefinition(n,E,c,r,g))},a.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},a.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},a.prototype.parseClassDeclaration=function(e){var t=this.createNode(),i=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var c=this.parseClassBody();return this.context.strict=i,this.finalize(t,new o.ClassDeclaration(r,n,c))},a.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=this.lookahead.type===3?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var n=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(i,r,n))},a.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},a.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},a.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(p.Messages.InvalidModuleSpecifier);var t=this.nextToken(),i=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,i))},a.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,i;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),i=t,this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),i=t,this.matchContextualKeyword("as")?(this.nextToken(),i=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new o.ImportSpecifier(i,t))},a.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},a.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},a.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(p.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},a.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(p.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword("import");var t,i=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match("{")?i=i.concat(this.parseNamedImports()):this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(i.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.match("{")?i=i.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var r=this.lookahead.value?p.Messages.UnexpectedToken:p.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new o.ImportDeclaration(i,t))},a.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),i=t;return this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,i))},a.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(p.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword("export");var t;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var i=this.parseFunctionDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.matchKeyword("class")){var i=this.parseClassDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.matchContextualKeyword("async")){var i=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else{this.matchContextualKeyword("from")&&this.throwError(p.Messages.UnexpectedToken,this.lookahead.value);var i=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var r=this.lookahead.value?p.Messages.UnexpectedToken:p.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var n=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new o.ExportAllDeclaration(n))}else if(this.lookahead.type===4){var i=void 0;switch(this.lookahead.value){case"let":case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":i=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new o.ExportNamedDeclaration(i,[],null))}else if(this.matchAsyncFunction()){var i=this.parseFunctionDeclaration();t=this.finalize(e,new o.ExportNamedDeclaration(i,[],null))}else{var c=[],E=null,v=!1;for(this.expect("{");!this.match("}");)v=v||this.matchKeyword("default"),c.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),E=this.parseModuleSpecifier(),this.consumeSemicolon();else if(v){var r=this.lookahead.value?p.Messages.UnexpectedToken:p.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new o.ExportNamedDeclaration(null,c,E))}return t},a})();u.Parser=h},function(C,u){Object.defineProperty(u,"__esModule",{value:!0});function S(l,m){if(!l)throw new Error("ASSERT: "+m)}u.assert=S},function(C,u){Object.defineProperty(u,"__esModule",{value:!0});var S=(function(){function l(){this.errors=[],this.tolerant=!1}return l.prototype.recordError=function(m){this.errors.push(m)},l.prototype.tolerate=function(m){if(this.tolerant)this.recordError(m);else throw m},l.prototype.constructError=function(m,p){var o=new Error(m);try{throw o}catch(F){Object.create&&Object.defineProperty&&(o=Object.create(F),Object.defineProperty(o,"column",{value:p}))}return o},l.prototype.createError=function(m,p,o,F){var D="Line "+p+": "+F,x=this.constructError(D,o);return x.index=m,x.lineNumber=p,x.description=F,x},l.prototype.throwError=function(m,p,o,F){throw this.createError(m,p,o,F)},l.prototype.tolerateError=function(m,p,o,F){var D=this.createError(m,p,o,F);if(this.tolerant)this.recordError(D);else throw D},l})();u.ErrorHandler=S},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(9),m=S(4),p=S(11);function o(x){return"0123456789abcdef".indexOf(x.toLowerCase())}function F(x){return"01234567".indexOf(x)}var D=(function(){function x(s,h){this.source=s,this.errorHandler=h,this.trackComment=!1,this.isModule=!1,this.length=s.length,this.index=0,this.lineNumber=s.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return x.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},x.prototype.restoreState=function(s){this.index=s.index,this.lineNumber=s.lineNumber,this.lineStart=s.lineStart},x.prototype.eof=function(){return this.index>=this.length},x.prototype.throwUnexpectedToken=function(s){return s===void 0&&(s=p.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,s)},x.prototype.tolerateUnexpectedToken=function(s){s===void 0&&(s=p.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,s)},x.prototype.skipSingleLineComment=function(s){var h=[],a,e;for(this.trackComment&&(h=[],a=this.index-s,e={start:{line:this.lineNumber,column:this.index-this.lineStart-s},end:{}});!this.eof();){var t=this.source.charCodeAt(this.index);if(++this.index,m.Character.isLineTerminator(t)){if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart-1};var i={multiLine:!1,slice:[a+s,this.index-1],range:[a,this.index-1],loc:e};h.push(i)}return t===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,h}}if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!1,slice:[a+s,this.index],range:[a,this.index],loc:e};h.push(i)}return h},x.prototype.skipMultiLineComment=function(){var s=[],h,a;for(this.trackComment&&(s=[],h=this.index-2,a={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var e=this.source.charCodeAt(this.index);if(m.Character.isLineTerminator(e))e===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(e===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){a.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[h+2,this.index-2],range:[h,this.index],loc:a};s.push(t)}return s}++this.index}else++this.index}if(this.trackComment){a.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[h+2,this.index],range:[h,this.index],loc:a};s.push(t)}return this.tolerateUnexpectedToken(),s},x.prototype.scanComments=function(){var s;this.trackComment&&(s=[]);for(var h=this.index===0;!this.eof();){var a=this.source.charCodeAt(this.index);if(m.Character.isWhiteSpace(a))++this.index;else if(m.Character.isLineTerminator(a))++this.index,a===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,h=!0;else if(a===47)if(a=this.source.charCodeAt(this.index+1),a===47){this.index+=2;var e=this.skipSingleLineComment(2);this.trackComment&&(s=s.concat(e)),h=!0}else if(a===42){this.index+=2;var e=this.skipMultiLineComment();this.trackComment&&(s=s.concat(e))}else break;else if(h&&a===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var e=this.skipSingleLineComment(3);this.trackComment&&(s=s.concat(e))}else break;else if(a===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var e=this.skipSingleLineComment(4);this.trackComment&&(s=s.concat(e))}else break;else break}return s},x.prototype.isFutureReservedWord=function(s){switch(s){case"enum":case"export":case"import":case"super":return!0;default:return!1}},x.prototype.isStrictModeReservedWord=function(s){switch(s){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},x.prototype.isRestrictedWord=function(s){return s==="eval"||s==="arguments"},x.prototype.isKeyword=function(s){switch(s.length){case 2:return s==="if"||s==="in"||s==="do";case 3:return s==="var"||s==="for"||s==="new"||s==="try"||s==="let";case 4:return s==="this"||s==="else"||s==="case"||s==="void"||s==="with"||s==="enum";case 5:return s==="while"||s==="break"||s==="catch"||s==="throw"||s==="const"||s==="yield"||s==="class"||s==="super";case 6:return s==="return"||s==="typeof"||s==="delete"||s==="switch"||s==="export"||s==="import";case 7:return s==="default"||s==="finally"||s==="extends";case 8:return s==="function"||s==="continue"||s==="debugger";case 10:return s==="instanceof";default:return!1}},x.prototype.codePointAt=function(s){var h=this.source.charCodeAt(s);if(h>=55296&&h<=56319){var a=this.source.charCodeAt(s+1);if(a>=56320&&a<=57343){var e=h;h=(e-55296)*1024+a-56320+65536}}return h},x.prototype.scanHexEscape=function(s){for(var h=s==="u"?4:2,a=0,e=0;e<h;++e)if(!this.eof()&&m.Character.isHexDigit(this.source.charCodeAt(this.index)))a=a*16+o(this.source[this.index++]);else return null;return String.fromCharCode(a)},x.prototype.scanUnicodeCodePointEscape=function(){var s=this.source[this.index],h=0;for(s==="}"&&this.throwUnexpectedToken();!this.eof()&&(s=this.source[this.index++],!!m.Character.isHexDigit(s.charCodeAt(0)));)h=h*16+o(s);return(h>1114111||s!=="}")&&this.throwUnexpectedToken(),m.Character.fromCodePoint(h)},x.prototype.getIdentifier=function(){for(var s=this.index++;!this.eof();){var h=this.source.charCodeAt(this.index);if(h===92)return this.index=s,this.getComplexIdentifier();if(h>=55296&&h<57343)return this.index=s,this.getComplexIdentifier();if(m.Character.isIdentifierPart(h))++this.index;else break}return this.source.slice(s,this.index)},x.prototype.getComplexIdentifier=function(){var s=this.codePointAt(this.index),h=m.Character.fromCodePoint(s);this.index+=h.length;var a;for(s===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,a=this.scanUnicodeCodePointEscape()):(a=this.scanHexEscape("u"),(a===null||a==="\\"||!m.Character.isIdentifierStart(a.charCodeAt(0)))&&this.throwUnexpectedToken()),h=a);!this.eof()&&(s=this.codePointAt(this.index),!!m.Character.isIdentifierPart(s));)a=m.Character.fromCodePoint(s),h+=a,this.index+=a.length,s===92&&(h=h.substr(0,h.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,a=this.scanUnicodeCodePointEscape()):(a=this.scanHexEscape("u"),(a===null||a==="\\"||!m.Character.isIdentifierPart(a.charCodeAt(0)))&&this.throwUnexpectedToken()),h+=a);return h},x.prototype.octalToDecimal=function(s){var h=s!=="0",a=F(s);return!this.eof()&&m.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(h=!0,a=a*8+F(this.source[this.index++]),"0123".indexOf(s)>=0&&!this.eof()&&m.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(a=a*8+F(this.source[this.index++]))),{code:a,octal:h}},x.prototype.scanIdentifier=function(){var s,h=this.index,a=this.source.charCodeAt(h)===92?this.getComplexIdentifier():this.getIdentifier();if(a.length===1?s=3:this.isKeyword(a)?s=4:a==="null"?s=5:a==="true"||a==="false"?s=1:s=3,s!==3&&h+a.length!==this.index){var e=this.index;this.index=h,this.tolerateUnexpectedToken(p.Messages.InvalidEscapedReservedWord),this.index=e}return{type:s,value:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},x.prototype.scanPunctuator=function(){var s=this.index,h=this.source[this.index];switch(h){case"(":case"{":h==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,h="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:h=this.source.substr(this.index,4),h===">>>="?this.index+=4:(h=h.substr(0,3),h==="==="||h==="!=="||h===">>>"||h==="<<="||h===">>="||h==="**="?this.index+=3:(h=h.substr(0,2),h==="&&"||h==="||"||h==="=="||h==="!="||h==="+="||h==="-="||h==="*="||h==="/="||h==="++"||h==="--"||h==="<<"||h===">>"||h==="&="||h==="|="||h==="^="||h==="%="||h==="<="||h===">="||h==="=>"||h==="**"?this.index+=2:(h=this.source[this.index],"<>=!+-*%&|^/".indexOf(h)>=0&&++this.index)))}return this.index===s&&this.throwUnexpectedToken(),{type:7,value:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanHexLiteral=function(s){for(var h="";!this.eof()&&m.Character.isHexDigit(this.source.charCodeAt(this.index));)h+=this.source[this.index++];return h.length===0&&this.throwUnexpectedToken(),m.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+h,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanBinaryLiteral=function(s){for(var h="",a;!this.eof()&&(a=this.source[this.index],!(a!=="0"&&a!=="1"));)h+=this.source[this.index++];return h.length===0&&this.throwUnexpectedToken(),this.eof()||(a=this.source.charCodeAt(this.index),(m.Character.isIdentifierStart(a)||m.Character.isDecimalDigit(a))&&this.throwUnexpectedToken()),{type:6,value:parseInt(h,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanOctalLiteral=function(s,h){var a="",e=!1;for(m.Character.isOctalDigit(s.charCodeAt(0))?(e=!0,a="0"+this.source[this.index++]):++this.index;!this.eof()&&m.Character.isOctalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];return!e&&a.length===0&&this.throwUnexpectedToken(),(m.Character.isIdentifierStart(this.source.charCodeAt(this.index))||m.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(a,8),octal:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},x.prototype.isImplicitOctalLiteral=function(){for(var s=this.index+1;s<this.length;++s){var h=this.source[s];if(h==="8"||h==="9")return!1;if(!m.Character.isOctalDigit(h.charCodeAt(0)))return!0}return!0},x.prototype.scanNumericLiteral=function(){var s=this.index,h=this.source[s];l.assert(m.Character.isDecimalDigit(h.charCodeAt(0))||h===".","Numeric literal must start with a decimal digit or a decimal point");var a="";if(h!=="."){if(a=this.source[this.index++],h=this.source[this.index],a==="0"){if(h==="x"||h==="X")return++this.index,this.scanHexLiteral(s);if(h==="b"||h==="B")return++this.index,this.scanBinaryLiteral(s);if(h==="o"||h==="O")return this.scanOctalLiteral(h,s);if(h&&m.Character.isOctalDigit(h.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(h,s)}for(;m.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];h=this.source[this.index]}if(h==="."){for(a+=this.source[this.index++];m.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];h=this.source[this.index]}if(h==="e"||h==="E")if(a+=this.source[this.index++],h=this.source[this.index],(h==="+"||h==="-")&&(a+=this.source[this.index++]),m.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;m.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];else this.throwUnexpectedToken();return m.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(a),lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanStringLiteral=function(){var s=this.index,h=this.source[s];l.assert(h==="'"||h==='"',"String literal must starts with a quote"),++this.index;for(var a=!1,e="";!this.eof();){var t=this.source[this.index++];if(t===h){h="";break}else if(t==="\\")if(t=this.source[this.index++],!t||!m.Character.isLineTerminator(t.charCodeAt(0)))switch(t){case"u":if(this.source[this.index]==="{")++this.index,e+=this.scanUnicodeCodePointEscape();else{var i=this.scanHexEscape(t);i===null&&this.throwUnexpectedToken(),e+=i}break;case"x":var r=this.scanHexEscape(t);r===null&&this.throwUnexpectedToken(p.Messages.InvalidHexEscapeSequence),e+=r;break;case"n":e+=`
|
|
15
|
+
`+o);const a=C.substring(0,u)+s+C.substring(A);y.value=a,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u+h,u+h)})}function At(w,y,C,u,A){const l=C.lastIndexOf(`
|
|
16
|
+
`,u-1)+1,m=C.substring(l,u);if(!/^\s*$/.test(m)||m.length===0)return;w.preventDefault();const p=w.key,o=m.match(/^(\s*)/),F=o?o[1]:"";if(F.length===0){const s=C.substring(0,u)+p+C.substring(A);y.value=s,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u+1,u+1)});return}let D=1;F.endsWith(" ")?D=1:F.length>=2&&F.endsWith(" ")?D=2:F.endsWith(" ")&&(D=1);const x=C.substring(0,u-D)+p+C.substring(A);y.value=x,y.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{y.setSelectionRange(u-D+1,u-D+1)})}const St=(w,y)=>{function C(u){const A=u.target,{selectionStart:l,selectionEnd:m,value:p}=A;if(u.key==="Escape"){if(u.preventDefault(),y?.onescape){y.onescape();return}A.blur();const o=Array.from(document.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(x=>!x.hasAttribute("disabled")&&x.offsetParent!==null),F=o.indexOf(A),D=u.shiftKey?o[F-1]:o[F+1];D&&D.focus();return}if(u.ctrlKey&&u.key==="Enter"){u.preventDefault(),y?.onsubmit?.();return}if(!Dt(u,A,p,l,m)&&!vt(u,A,p,l,m)){if(u.key!=="Tab"||u.ctrlKey||u.altKey||u.metaKey){if(u.key==="Enter"&&!u.ctrlKey&&!u.shiftKey&&!u.altKey&&!u.metaKey){Ct(u,A,p,l,m);return}(u.key==="}"||u.key==="]")&&!u.ctrlKey&&!u.shiftKey&&!u.altKey&&!u.metaKey&&At(u,A,p,l,m);return}if(u.preventDefault(),u.shiftKey){Et(A,p,l,m);return}yt(A,p,l,m)}}return w.addEventListener("keydown",C),{destroy(){w.removeEventListener("keydown",C)}}};var Z={exports:{}},gt=Z.exports,le;function Ft(){return le||(le=1,(function(w,y){(function(u,A){w.exports=A()})(gt,function(){return(function(C){var u={};function A(l){if(u[l])return u[l].exports;var m=u[l]={exports:{},id:l,loaded:!1};return C[l].call(m.exports,m,m.exports,A),m.loaded=!0,m.exports}return A.m=C,A.c=u,A.p="",A(0)})([function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(1),m=A(3),p=A(8),o=A(15);function F(a,e,t){var i=null,r=function(B,I){t&&t(B,I),i&&i.visit(B,I)},n=typeof t=="function"?r:null,c=!1;if(e){c=typeof e.comment=="boolean"&&e.comment;var E=typeof e.attachComment=="boolean"&&e.attachComment;(c||E)&&(i=new l.CommentHandler,i.attach=E,e.comment=!0,n=r)}var v=!1;e&&typeof e.sourceType=="string"&&(v=e.sourceType==="module");var g;e&&typeof e.jsx=="boolean"&&e.jsx?g=new m.JSXParser(a,e,n):g=new p.Parser(a,e,n);var b=v?g.parseModule():g.parseScript(),k=b;return c&&i&&(k.comments=i.comments),g.config.tokens&&(k.tokens=g.tokens),g.config.tolerant&&(k.errors=g.errorHandler.errors),k}u.parse=F;function D(a,e,t){var i=e||{};return i.sourceType="module",F(a,i,t)}u.parseModule=D;function x(a,e,t){var i=e||{};return i.sourceType="script",F(a,i,t)}u.parseScript=x;function s(a,e,t){var i=new o.Tokenizer(a,e),r;r=[];try{for(;;){var n=i.getNextToken();if(!n)break;t&&(n=t(n)),r.push(n)}}catch(c){i.errorHandler.tolerate(c)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r}u.tokenize=s;var h=A(2);u.Syntax=h.Syntax,u.version="4.0.1"},function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(2),m=(function(){function p(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return p.prototype.insertInnerComments=function(o,F){if(o.type===l.Syntax.BlockStatement&&o.body.length===0){for(var D=[],x=this.leading.length-1;x>=0;--x){var s=this.leading[x];F.end.offset>=s.start&&(D.unshift(s.comment),this.leading.splice(x,1),this.trailing.splice(x,1))}D.length&&(o.innerComments=D)}},p.prototype.findTrailingComments=function(o){var F=[];if(this.trailing.length>0){for(var D=this.trailing.length-1;D>=0;--D){var x=this.trailing[D];x.start>=o.end.offset&&F.unshift(x.comment)}return this.trailing.length=0,F}var s=this.stack[this.stack.length-1];if(s&&s.node.trailingComments){var h=s.node.trailingComments[0];h&&h.range[0]>=o.end.offset&&(F=s.node.trailingComments,delete s.node.trailingComments)}return F},p.prototype.findLeadingComments=function(o){for(var F=[],D;this.stack.length>0;){var x=this.stack[this.stack.length-1];if(x&&x.start>=o.start.offset)D=x.node,this.stack.pop();else break}if(D){for(var s=D.leadingComments?D.leadingComments.length:0,h=s-1;h>=0;--h){var a=D.leadingComments[h];a.range[1]<=o.start.offset&&(F.unshift(a),D.leadingComments.splice(h,1))}return D.leadingComments&&D.leadingComments.length===0&&delete D.leadingComments,F}for(var h=this.leading.length-1;h>=0;--h){var x=this.leading[h];x.start<=o.start.offset&&(F.unshift(x.comment),this.leading.splice(h,1))}return F},p.prototype.visitNode=function(o,F){if(!(o.type===l.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,F);var D=this.findTrailingComments(F),x=this.findLeadingComments(F);x.length>0&&(o.leadingComments=x),D.length>0&&(o.trailingComments=D),this.stack.push({node:o,start:F.start.offset})}},p.prototype.visitComment=function(o,F){var D=o.type[0]==="L"?"Line":"Block",x={type:D,value:o.value};if(o.range&&(x.range=o.range),o.loc&&(x.loc=o.loc),this.comments.push(x),this.attach){var s={comment:{type:D,value:o.value,range:[F.start.offset,F.end.offset]},start:F.start.offset};o.loc&&(s.comment.loc=o.loc),o.type=D,this.leading.push(s),this.trailing.push(s)}},p.prototype.visit=function(o,F){o.type==="LineComment"?this.visitComment(o,F):o.type==="BlockComment"?this.visitComment(o,F):this.attach&&this.visitNode(o,F)},p})();u.CommentHandler=m},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(C,u,A){var l=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])};return function(t,i){e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}})();Object.defineProperty(u,"__esModule",{value:!0});var m=A(4),p=A(5),o=A(6),F=A(7),D=A(8),x=A(13),s=A(14);x.TokenName[100]="JSXIdentifier",x.TokenName[101]="JSXText";function h(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:var i=e;t=i.name;break;case o.JSXSyntax.JSXNamespacedName:var r=e;t=h(r.namespace)+":"+h(r.name);break;case o.JSXSyntax.JSXMemberExpression:var n=e;t=h(n.object)+"."+h(n.property);break}return t}var a=(function(e){l(t,e);function t(i,r,n){return e.call(this,i,r,n)||this}return t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(i){for(var r="&",n=!0,c=!1,E=!1,v=!1;!this.scanner.eof()&&n&&!c;){var g=this.scanner.source[this.scanner.index];if(g===i)break;if(c=g===";",r+=g,++this.scanner.index,!c)switch(r.length){case 2:E=g==="#";break;case 3:E&&(v=g==="x",n=v||m.Character.isDecimalDigit(g.charCodeAt(0)),E=E&&!v);break;default:n=n&&!(E&&!m.Character.isDecimalDigit(g.charCodeAt(0))),n=n&&!(v&&!m.Character.isHexDigit(g.charCodeAt(0)));break}}if(n&&c&&r.length>2){var b=r.substr(1,r.length-2);E&&b.length>1?r=String.fromCharCode(parseInt(b.substr(1),10)):v&&b.length>2?r=String.fromCharCode(parseInt("0"+b.substr(1),16)):!E&&!v&&s.XHTMLEntities[b]&&(r=s.XHTMLEntities[b])}return r},t.prototype.lexJSX=function(){var i=this.scanner.source.charCodeAt(this.scanner.index);if(i===60||i===62||i===47||i===58||i===61||i===123||i===125){var r=this.scanner.source[this.scanner.index++];return{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(i===34||i===39){for(var n=this.scanner.index,c=this.scanner.source[this.scanner.index++],E="";!this.scanner.eof();){var v=this.scanner.source[this.scanner.index++];if(v===c)break;v==="&"?E+=this.scanXHTMLEntity(c):E+=v}return{type:8,value:E,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(i===46){var g=this.scanner.source.charCodeAt(this.scanner.index+1),b=this.scanner.source.charCodeAt(this.scanner.index+2),r=g===46&&b===46?"...":".",n=this.scanner.index;return this.scanner.index+=r.length,{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(i===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(m.Character.isIdentifierStart(i)&&i!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var v=this.scanner.source.charCodeAt(this.scanner.index);if(m.Character.isIdentifierPart(v)&&v!==92)++this.scanner.index;else if(v===45)++this.scanner.index;else break}var k=this.scanner.source.slice(n,this.scanner.index);return{type:100,value:k,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var i=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var i=this.scanner.index,r="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n==="{"||n==="<")break;++this.scanner.index,r+=n,m.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
17
|
+
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var c={type:101,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:i,end:this.scanner.index};return r.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(c)),c},t.prototype.peekJSXToken=function(){var i=this.scanner.saveState();this.scanner.scanComments();var r=this.lexJSX();return this.scanner.restoreState(i),r},t.prototype.expectJSX=function(i){var r=this.nextJSXToken();(r.type!==7||r.value!==i)&&this.throwUnexpectedToken(r)},t.prototype.matchJSX=function(i){var r=this.peekJSXToken();return r.type===7&&r.value===i},t.prototype.parseJSXIdentifier=function(){var i=this.createJSXNode(),r=this.nextJSXToken();return r.type!==100&&this.throwUnexpectedToken(r),this.finalize(i,new p.JSXIdentifier(r.value))},t.prototype.parseJSXElementName=function(){var i=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var c=this.parseJSXIdentifier();r=this.finalize(i,new p.JSXNamespacedName(n,c))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var E=r;this.expectJSX(".");var v=this.parseJSXIdentifier();r=this.finalize(i,new p.JSXMemberExpression(E,v))}return r},t.prototype.parseJSXAttributeName=function(){var i=this.createJSXNode(),r,n=this.parseJSXIdentifier();if(this.matchJSX(":")){var c=n;this.expectJSX(":");var E=this.parseJSXIdentifier();r=this.finalize(i,new p.JSXNamespacedName(c,E))}else r=n;return r},t.prototype.parseJSXStringLiteralAttribute=function(){var i=this.createJSXNode(),r=this.nextJSXToken();r.type!==8&&this.throwUnexpectedToken(r);var n=this.getTokenRaw(r);return this.finalize(i,new F.Literal(r.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var r=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new p.JSXExpressionContainer(r))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var i=this.createJSXNode(),r=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(i,new p.JSXAttribute(r,n))},t.prototype.parseJSXSpreadAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var r=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new p.JSXSpreadAttribute(r))},t.prototype.parseJSXAttributes=function(){for(var i=[];!this.matchJSX("/")&&!this.matchJSX(">");){var r=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();i.push(r)}return i},t.prototype.parseJSXOpeningElement=function(){var i=this.createJSXNode();this.expectJSX("<");var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),c=this.matchJSX("/");return c&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new p.JSXOpeningElement(r,c,n))},t.prototype.parseJSXBoundaryElement=function(){var i=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var r=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(i,new p.JSXClosingElement(r))}var n=this.parseJSXElementName(),c=this.parseJSXAttributes(),E=this.matchJSX("/");return E&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new p.JSXOpeningElement(n,E,c))},t.prototype.parseJSXEmptyExpression=function(){var i=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(i,new p.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var i=this.createJSXNode();this.expectJSX("{");var r;return this.matchJSX("}")?(r=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),r=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(i,new p.JSXExpressionContainer(r))},t.prototype.parseJSXChildren=function(){for(var i=[];!this.scanner.eof();){var r=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var c=this.getTokenRaw(n),E=this.finalize(r,new p.JSXText(n.value,c));i.push(E)}if(this.scanner.source[this.scanner.index]==="{"){var v=this.parseJSXExpressionContainer();i.push(v)}else break}return i},t.prototype.parseComplexJSXElement=function(i){for(var r=[];!this.scanner.eof();){i.children=i.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),c=this.parseJSXBoundaryElement();if(c.type===o.JSXSyntax.JSXOpeningElement){var E=c;if(E.selfClosing){var v=this.finalize(n,new p.JSXElement(E,[],null));i.children.push(v)}else r.push(i),i={node:n,opening:E,closing:null,children:[]}}if(c.type===o.JSXSyntax.JSXClosingElement){i.closing=c;var g=h(i.opening.name),b=h(i.closing.name);if(g!==b&&this.tolerateError("Expected corresponding JSX closing tag for %0",g),r.length>0){var v=this.finalize(i.node,new p.JSXElement(i.opening,i.children,i.closing));i=r[r.length-1],i.children.push(v),r.pop()}else break}}return i},t.prototype.parseJSXElement=function(){var i=this.createJSXNode(),r=this.parseJSXOpeningElement(),n=[],c=null;if(!r.selfClosing){var E=this.parseComplexJSXElement({node:i,opening:r,closing:c,children:n});n=E.children,c=E.closing}return this.finalize(i,new p.JSXElement(r,n,c))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var i=this.parseJSXElement();return this.finishJSX(),i},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t})(D.Parser);u.JSXParser=a},function(C,u){Object.defineProperty(u,"__esModule",{value:!0});var A={NonAsciiIdentifierStart:/[\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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-\uA7AD\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\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\u0C81-\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\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};u.Character={fromCodePoint:function(l){return l<65536?String.fromCharCode(l):String.fromCharCode(55296+(l-65536>>10))+String.fromCharCode(56320+(l-65536&1023))},isWhiteSpace:function(l){return l===32||l===9||l===11||l===12||l===160||l>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(l)>=0},isLineTerminator:function(l){return l===10||l===13||l===8232||l===8233},isIdentifierStart:function(l){return l===36||l===95||l>=65&&l<=90||l>=97&&l<=122||l===92||l>=128&&A.NonAsciiIdentifierStart.test(u.Character.fromCodePoint(l))},isIdentifierPart:function(l){return l===36||l===95||l>=65&&l<=90||l>=97&&l<=122||l>=48&&l<=57||l===92||l>=128&&A.NonAsciiIdentifierPart.test(u.Character.fromCodePoint(l))},isDecimalDigit:function(l){return l>=48&&l<=57},isHexDigit:function(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102},isOctalDigit:function(l){return l>=48&&l<=55}}},function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(6),m=(function(){function i(r){this.type=l.JSXSyntax.JSXClosingElement,this.name=r}return i})();u.JSXClosingElement=m;var p=(function(){function i(r,n,c){this.type=l.JSXSyntax.JSXElement,this.openingElement=r,this.children=n,this.closingElement=c}return i})();u.JSXElement=p;var o=(function(){function i(){this.type=l.JSXSyntax.JSXEmptyExpression}return i})();u.JSXEmptyExpression=o;var F=(function(){function i(r){this.type=l.JSXSyntax.JSXExpressionContainer,this.expression=r}return i})();u.JSXExpressionContainer=F;var D=(function(){function i(r){this.type=l.JSXSyntax.JSXIdentifier,this.name=r}return i})();u.JSXIdentifier=D;var x=(function(){function i(r,n){this.type=l.JSXSyntax.JSXMemberExpression,this.object=r,this.property=n}return i})();u.JSXMemberExpression=x;var s=(function(){function i(r,n){this.type=l.JSXSyntax.JSXAttribute,this.name=r,this.value=n}return i})();u.JSXAttribute=s;var h=(function(){function i(r,n){this.type=l.JSXSyntax.JSXNamespacedName,this.namespace=r,this.name=n}return i})();u.JSXNamespacedName=h;var a=(function(){function i(r,n,c){this.type=l.JSXSyntax.JSXOpeningElement,this.name=r,this.selfClosing=n,this.attributes=c}return i})();u.JSXOpeningElement=a;var e=(function(){function i(r){this.type=l.JSXSyntax.JSXSpreadAttribute,this.argument=r}return i})();u.JSXSpreadAttribute=e;var t=(function(){function i(r,n){this.type=l.JSXSyntax.JSXText,this.value=r,this.raw=n}return i})();u.JSXText=t},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(2),m=(function(){function f(d){this.type=l.Syntax.ArrayExpression,this.elements=d}return f})();u.ArrayExpression=m;var p=(function(){function f(d){this.type=l.Syntax.ArrayPattern,this.elements=d}return f})();u.ArrayPattern=p;var o=(function(){function f(d,S,T){this.type=l.Syntax.ArrowFunctionExpression,this.id=null,this.params=d,this.body=S,this.generator=!1,this.expression=T,this.async=!1}return f})();u.ArrowFunctionExpression=o;var F=(function(){function f(d,S,T){this.type=l.Syntax.AssignmentExpression,this.operator=d,this.left=S,this.right=T}return f})();u.AssignmentExpression=F;var D=(function(){function f(d,S){this.type=l.Syntax.AssignmentPattern,this.left=d,this.right=S}return f})();u.AssignmentPattern=D;var x=(function(){function f(d,S,T){this.type=l.Syntax.ArrowFunctionExpression,this.id=null,this.params=d,this.body=S,this.generator=!1,this.expression=T,this.async=!0}return f})();u.AsyncArrowFunctionExpression=x;var s=(function(){function f(d,S,T){this.type=l.Syntax.FunctionDeclaration,this.id=d,this.params=S,this.body=T,this.generator=!1,this.expression=!1,this.async=!0}return f})();u.AsyncFunctionDeclaration=s;var h=(function(){function f(d,S,T){this.type=l.Syntax.FunctionExpression,this.id=d,this.params=S,this.body=T,this.generator=!1,this.expression=!1,this.async=!0}return f})();u.AsyncFunctionExpression=h;var a=(function(){function f(d){this.type=l.Syntax.AwaitExpression,this.argument=d}return f})();u.AwaitExpression=a;var e=(function(){function f(d,S,T){var L=d==="||"||d==="&&";this.type=L?l.Syntax.LogicalExpression:l.Syntax.BinaryExpression,this.operator=d,this.left=S,this.right=T}return f})();u.BinaryExpression=e;var t=(function(){function f(d){this.type=l.Syntax.BlockStatement,this.body=d}return f})();u.BlockStatement=t;var i=(function(){function f(d){this.type=l.Syntax.BreakStatement,this.label=d}return f})();u.BreakStatement=i;var r=(function(){function f(d,S){this.type=l.Syntax.CallExpression,this.callee=d,this.arguments=S}return f})();u.CallExpression=r;var n=(function(){function f(d,S){this.type=l.Syntax.CatchClause,this.param=d,this.body=S}return f})();u.CatchClause=n;var c=(function(){function f(d){this.type=l.Syntax.ClassBody,this.body=d}return f})();u.ClassBody=c;var E=(function(){function f(d,S,T){this.type=l.Syntax.ClassDeclaration,this.id=d,this.superClass=S,this.body=T}return f})();u.ClassDeclaration=E;var v=(function(){function f(d,S,T){this.type=l.Syntax.ClassExpression,this.id=d,this.superClass=S,this.body=T}return f})();u.ClassExpression=v;var g=(function(){function f(d,S){this.type=l.Syntax.MemberExpression,this.computed=!0,this.object=d,this.property=S}return f})();u.ComputedMemberExpression=g;var b=(function(){function f(d,S,T){this.type=l.Syntax.ConditionalExpression,this.test=d,this.consequent=S,this.alternate=T}return f})();u.ConditionalExpression=b;var k=(function(){function f(d){this.type=l.Syntax.ContinueStatement,this.label=d}return f})();u.ContinueStatement=k;var B=(function(){function f(){this.type=l.Syntax.DebuggerStatement}return f})();u.DebuggerStatement=B;var I=(function(){function f(d,S){this.type=l.Syntax.ExpressionStatement,this.expression=d,this.directive=S}return f})();u.Directive=I;var N=(function(){function f(d,S){this.type=l.Syntax.DoWhileStatement,this.body=d,this.test=S}return f})();u.DoWhileStatement=N;var M=(function(){function f(){this.type=l.Syntax.EmptyStatement}return f})();u.EmptyStatement=M;var P=(function(){function f(d){this.type=l.Syntax.ExportAllDeclaration,this.source=d}return f})();u.ExportAllDeclaration=P;var W=(function(){function f(d){this.type=l.Syntax.ExportDefaultDeclaration,this.declaration=d}return f})();u.ExportDefaultDeclaration=W;var Y=(function(){function f(d,S,T){this.type=l.Syntax.ExportNamedDeclaration,this.declaration=d,this.specifiers=S,this.source=T}return f})();u.ExportNamedDeclaration=Y;var X=(function(){function f(d,S){this.type=l.Syntax.ExportSpecifier,this.exported=S,this.local=d}return f})();u.ExportSpecifier=X;var R=(function(){function f(d){this.type=l.Syntax.ExpressionStatement,this.expression=d}return f})();u.ExpressionStatement=R;var H=(function(){function f(d,S,T){this.type=l.Syntax.ForInStatement,this.left=d,this.right=S,this.body=T,this.each=!1}return f})();u.ForInStatement=H;var G=(function(){function f(d,S,T){this.type=l.Syntax.ForOfStatement,this.left=d,this.right=S,this.body=T}return f})();u.ForOfStatement=G;var $=(function(){function f(d,S,T,L){this.type=l.Syntax.ForStatement,this.init=d,this.test=S,this.update=T,this.body=L}return f})();u.ForStatement=$;var ee=(function(){function f(d,S,T,L){this.type=l.Syntax.FunctionDeclaration,this.id=d,this.params=S,this.body=T,this.generator=L,this.expression=!1,this.async=!1}return f})();u.FunctionDeclaration=ee;var pe=(function(){function f(d,S,T,L){this.type=l.Syntax.FunctionExpression,this.id=d,this.params=S,this.body=T,this.generator=L,this.expression=!1,this.async=!1}return f})();u.FunctionExpression=pe;var fe=(function(){function f(d){this.type=l.Syntax.Identifier,this.name=d}return f})();u.Identifier=fe;var de=(function(){function f(d,S,T){this.type=l.Syntax.IfStatement,this.test=d,this.consequent=S,this.alternate=T}return f})();u.IfStatement=de;var me=(function(){function f(d,S){this.type=l.Syntax.ImportDeclaration,this.specifiers=d,this.source=S}return f})();u.ImportDeclaration=me;var xe=(function(){function f(d){this.type=l.Syntax.ImportDefaultSpecifier,this.local=d}return f})();u.ImportDefaultSpecifier=xe;var De=(function(){function f(d){this.type=l.Syntax.ImportNamespaceSpecifier,this.local=d}return f})();u.ImportNamespaceSpecifier=De;var ve=(function(){function f(d,S){this.type=l.Syntax.ImportSpecifier,this.local=d,this.imported=S}return f})();u.ImportSpecifier=ve;var Ee=(function(){function f(d,S){this.type=l.Syntax.LabeledStatement,this.label=d,this.body=S}return f})();u.LabeledStatement=Ee;var ye=(function(){function f(d,S){this.type=l.Syntax.Literal,this.value=d,this.raw=S}return f})();u.Literal=ye;var Ce=(function(){function f(d,S){this.type=l.Syntax.MetaProperty,this.meta=d,this.property=S}return f})();u.MetaProperty=Ce;var Ae=(function(){function f(d,S,T,L,te){this.type=l.Syntax.MethodDefinition,this.key=d,this.computed=S,this.value=T,this.kind=L,this.static=te}return f})();u.MethodDefinition=Ae;var Se=(function(){function f(d){this.type=l.Syntax.Program,this.body=d,this.sourceType="module"}return f})();u.Module=Se;var ge=(function(){function f(d,S){this.type=l.Syntax.NewExpression,this.callee=d,this.arguments=S}return f})();u.NewExpression=ge;var Fe=(function(){function f(d){this.type=l.Syntax.ObjectExpression,this.properties=d}return f})();u.ObjectExpression=Fe;var we=(function(){function f(d){this.type=l.Syntax.ObjectPattern,this.properties=d}return f})();u.ObjectPattern=we;var be=(function(){function f(d,S,T,L,te,$e){this.type=l.Syntax.Property,this.key=S,this.computed=T,this.value=L,this.kind=d,this.method=te,this.shorthand=$e}return f})();u.Property=be;var ke=(function(){function f(d,S,T,L){this.type=l.Syntax.Literal,this.value=d,this.raw=S,this.regex={pattern:T,flags:L}}return f})();u.RegexLiteral=ke;var Be=(function(){function f(d){this.type=l.Syntax.RestElement,this.argument=d}return f})();u.RestElement=Be;var Te=(function(){function f(d){this.type=l.Syntax.ReturnStatement,this.argument=d}return f})();u.ReturnStatement=Te;var Ie=(function(){function f(d){this.type=l.Syntax.Program,this.body=d,this.sourceType="script"}return f})();u.Script=Ie;var Ne=(function(){function f(d){this.type=l.Syntax.SequenceExpression,this.expressions=d}return f})();u.SequenceExpression=Ne;var Me=(function(){function f(d){this.type=l.Syntax.SpreadElement,this.argument=d}return f})();u.SpreadElement=Me;var Pe=(function(){function f(d,S){this.type=l.Syntax.MemberExpression,this.computed=!1,this.object=d,this.property=S}return f})();u.StaticMemberExpression=Pe;var Je=(function(){function f(){this.type=l.Syntax.Super}return f})();u.Super=Je;var Xe=(function(){function f(d,S){this.type=l.Syntax.SwitchCase,this.test=d,this.consequent=S}return f})();u.SwitchCase=Xe;var Le=(function(){function f(d,S){this.type=l.Syntax.SwitchStatement,this.discriminant=d,this.cases=S}return f})();u.SwitchStatement=Le;var Ue=(function(){function f(d,S){this.type=l.Syntax.TaggedTemplateExpression,this.tag=d,this.quasi=S}return f})();u.TaggedTemplateExpression=Ue;var ze=(function(){function f(d,S){this.type=l.Syntax.TemplateElement,this.value=d,this.tail=S}return f})();u.TemplateElement=ze;var Re=(function(){function f(d,S){this.type=l.Syntax.TemplateLiteral,this.quasis=d,this.expressions=S}return f})();u.TemplateLiteral=Re;var Oe=(function(){function f(){this.type=l.Syntax.ThisExpression}return f})();u.ThisExpression=Oe;var Ke=(function(){function f(d){this.type=l.Syntax.ThrowStatement,this.argument=d}return f})();u.ThrowStatement=Ke;var je=(function(){function f(d,S,T){this.type=l.Syntax.TryStatement,this.block=d,this.handler=S,this.finalizer=T}return f})();u.TryStatement=je;var We=(function(){function f(d,S){this.type=l.Syntax.UnaryExpression,this.operator=d,this.argument=S,this.prefix=!0}return f})();u.UnaryExpression=We;var He=(function(){function f(d,S,T){this.type=l.Syntax.UpdateExpression,this.operator=d,this.argument=S,this.prefix=T}return f})();u.UpdateExpression=He;var Ge=(function(){function f(d,S){this.type=l.Syntax.VariableDeclaration,this.declarations=d,this.kind=S}return f})();u.VariableDeclaration=Ge;var _e=(function(){function f(d,S){this.type=l.Syntax.VariableDeclarator,this.id=d,this.init=S}return f})();u.VariableDeclarator=_e;var Ye=(function(){function f(d,S){this.type=l.Syntax.WhileStatement,this.test=d,this.body=S}return f})();u.WhileStatement=Ye;var Ve=(function(){function f(d,S){this.type=l.Syntax.WithStatement,this.object=d,this.body=S}return f})();u.WithStatement=Ve;var qe=(function(){function f(d,S){this.type=l.Syntax.YieldExpression,this.argument=d,this.delegate=S}return f})();u.YieldExpression=qe},function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(9),m=A(10),p=A(11),o=A(7),F=A(12),D=A(2),x=A(13),s="ArrowParameterPlaceHolder",h=(function(){function a(e,t,i){t===void 0&&(t={}),this.config={range:typeof t.range=="boolean"&&t.range,loc:typeof t.loc=="boolean"&&t.loc,source:null,tokens:typeof t.tokens=="boolean"&&t.tokens,comment:typeof t.comment=="boolean"&&t.comment,tolerant:typeof t.tolerant=="boolean"&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=i,this.errorHandler=new m.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new F.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return a.prototype.throwError=function(e){var t=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(E,v){return l.assert(v<t.length,"Message reference must be in range"),t[v]}),r=this.lastMarker.index,n=this.lastMarker.line,c=this.lastMarker.column+1;throw this.errorHandler.createError(r,n,c,i)},a.prototype.tolerateError=function(e){var t=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(E,v){return l.assert(v<t.length,"Message reference must be in range"),t[v]}),r=this.lastMarker.index,n=this.scanner.lineNumber,c=this.lastMarker.column+1;this.errorHandler.tolerateError(r,n,c,i)},a.prototype.unexpectedTokenError=function(e,t){var i=t||p.Messages.UnexpectedToken,r;if(e?(t||(i=e.type===2?p.Messages.UnexpectedEOS:e.type===3?p.Messages.UnexpectedIdentifier:e.type===6?p.Messages.UnexpectedNumber:e.type===8?p.Messages.UnexpectedString:e.type===10?p.Messages.UnexpectedTemplate:p.Messages.UnexpectedToken,e.type===4&&(this.scanner.isFutureReservedWord(e.value)?i=p.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(i=p.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",i=i.replace("%0",r),e&&typeof e.lineNumber=="number"){var n=e.start,c=e.lineNumber,E=this.lastMarker.index-this.lastMarker.column,v=e.start-E+1;return this.errorHandler.createError(n,c,v,i)}else{var n=this.lastMarker.index,c=this.lastMarker.line,v=this.lastMarker.column+1;return this.errorHandler.createError(n,c,v,i)}},a.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},a.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},a.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var i=e[t],r=void 0;r={type:i.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(i.slice[0],i.slice[1])},this.config.range&&(r.range=i.range),this.config.loc&&(r.loc=i.loc);var n={start:{line:i.loc.start.line,column:i.loc.start.column,offset:i.range[0]},end:{line:i.loc.end.line,column:i.loc.end.column,offset:i.range[1]}};this.delegate(r,n)}}},a.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},a.prototype.convertToken=function(e){var t={type:x.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),e.type===9){var i=e.pattern,r=e.flags;t.regex={pattern:i,flags:r}}return t},a.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),e},a.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},a.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},a.prototype.startNode=function(e,t){t===void 0&&(t=0);var i=e.start-e.lineStart,r=e.lineNumber;return i<0&&(i+=t,r--),{index:e.start,line:r,column:i}},a.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var i={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,i)}return t},a.prototype.expect=function(e){var t=this.nextToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},a.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;e.type===7&&e.value===","?this.nextToken():e.type===7&&e.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,p.Messages.UnexpectedToken)}else this.expect(",")},a.prototype.expectKeyword=function(e){var t=this.nextToken();(t.type!==4||t.value!==e)&&this.throwUnexpectedToken(t)},a.prototype.match=function(e){return this.lookahead.type===7&&this.lookahead.value===e},a.prototype.matchKeyword=function(e){return this.lookahead.type===4&&this.lookahead.value===e},a.prototype.matchContextualKeyword=function(e){return this.lookahead.type===3&&this.lookahead.value===e},a.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var e=this.lookahead.value;return e==="="||e==="*="||e==="**="||e==="/="||e==="%="||e==="+="||e==="-="||e==="<<="||e===">>="||e===">>>="||e==="&="||e==="^="||e==="|="},a.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=i,this.context.firstCoverInitializedNameError=r,n},a.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&i,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,n},a.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},a.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,i,r;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,p.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(i.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(i.value==="true",r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,i=this.nextRegexToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.RegexLiteral(i.regex,r,i.pattern,i.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(e,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(e,new o.ThisExpression)):this.matchKeyword("class")?t=this.parseClassExpression():t=this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},a.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},a.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var i=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(i)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},a.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,i=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=i,r},a.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),i=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(t,new o.FunctionExpression(null,r.params,n,e))},a.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,i=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=i,this.finalize(e,new o.AsyncFunctionExpression(null,r.params,n))},a.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),i;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,p.Messages.StrictOctalLiteral);var r=this.getTokenRaw(t);i=this.finalize(e,new o.Literal(t.value,r));break;case 3:case 1:case 5:case 4:i=this.finalize(e,new o.Identifier(t.value));break;case 7:t.value==="["?(i=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):i=this.throwUnexpectedToken(t);break;default:i=this.throwUnexpectedToken(t)}return i},a.prototype.isPropertyKey=function(e,t){return e.type===D.Syntax.Identifier&&e.name===t||e.type===D.Syntax.Literal&&e.value===t},a.prototype.parseObjectProperty=function(e){var t=this.createNode(),i=this.lookahead,r,n=null,c=null,E=!1,v=!1,g=!1,b=!1;if(i.type===3){var k=i.value;this.nextToken(),E=this.match("["),b=!this.hasLineTerminator&&k==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),n=b?this.parseObjectPropertyKey():this.finalize(t,new o.Identifier(k))}else this.match("*")?this.nextToken():(E=this.match("["),n=this.parseObjectPropertyKey());var B=this.qualifiedPropertyName(this.lookahead);if(i.type===3&&!b&&i.value==="get"&&B)r="get",E=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(i.type===3&&!b&&i.value==="set"&&B)r="set",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(i.type===7&&i.value==="*"&&B)r="init",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),v=!0;else if(n||this.throwUnexpectedToken(this.lookahead),r="init",this.match(":")&&!b)!E&&this.isPropertyKey(n,"__proto__")&&(e.value&&this.tolerateError(p.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))c=b?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),v=!0;else if(i.type===3){var k=this.finalize(t,new o.Identifier(i.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),g=!0;var I=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(t,new o.AssignmentPattern(k,I))}else g=!0,c=k}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new o.Property(r,n,E,c,v,g))},a.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],i={value:!1};!this.match("}");)t.push(this.parseObjectProperty(i)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},a.prototype.parseTemplateHead=function(){l.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},a.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},a.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],i=[],r=this.parseTemplateHead();for(i.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),i.push(r);return this.finalize(e,new o.TemplateLiteral(i,t))},a.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case D.Syntax.Identifier:case D.Syntax.MemberExpression:case D.Syntax.RestElement:case D.Syntax.AssignmentPattern:break;case D.Syntax.SpreadElement:e.type=D.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case D.Syntax.ArrayExpression:e.type=D.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)e.elements[t]!==null&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case D.Syntax.ObjectExpression:e.type=D.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case D.Syntax.AssignmentExpression:e.type=D.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left);break}},a.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:s,params:[],async:!1};else{var t=this.lookahead,i=[];if(this.match("..."))e=this.parseRestElement(i),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:s,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var n=[];for(this.context.isAssignmentTarget=!1,n.push(e);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var c=0;c<n.length;c++)this.reinterpretExpressionAsPattern(n[c]);r=!0,e={type:s,params:n,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),n.push(this.parseRestElement(i)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var c=0;c<n.length;c++)this.reinterpretExpressionAsPattern(n[c]);r=!0,e={type:s,params:n,async:!1}}else n.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(e=this.finalize(this.startNode(t),new o.SequenceExpression(n)))}if(!r){if(this.expect(")"),this.match("=>")&&(e.type===D.Syntax.Identifier&&e.name==="yield"&&(r=!0,e={type:s,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===D.Syntax.SequenceExpression)for(var c=0;c<e.expressions.length;c++)this.reinterpretExpressionAsPattern(e.expressions[c]);else this.reinterpretExpressionAsPattern(e);var E=e.type===D.Syntax.SequenceExpression?e.expressions:[e];e={type:s,params:E,async:!1}}this.context.isBindingElement=!1}}}return e},a.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},a.prototype.isIdentifierName=function(e){return e.type===3||e.type===4||e.type===1||e.type===5},a.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new o.Identifier(t.value))},a.prototype.parseNewExpression=function(){var e=this.createNode(),t=this.parseIdentifierName();l.assert(t.name==="new","New expression must start with `new`");var i;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var r=this.parseIdentifierName();i=new o.MetaProperty(t,r)}else this.throwUnexpectedToken(this.lookahead);else{var n=this.isolateCoverGrammar(this.parseLeftHandSideExpression),c=this.match("(")?this.parseArguments():[];i=new o.NewExpression(n,c),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,i)},a.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},a.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},a.prototype.parseLeftHandSideExpressionAllowCall=function(){var e=this.lookahead,t=this.matchContextualKeyword("async"),i=this.context.allowIn;this.context.allowIn=!0;var r;for(this.matchKeyword("super")&&this.context.inFunctionBody?(r=this.createNode(),this.nextToken(),r=this.finalize(r,new o.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):r=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var n=this.parseIdentifierName();r=this.finalize(this.startNode(e),new o.StaticMemberExpression(r,n))}else if(this.match("(")){var c=t&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var E=c?this.parseAsyncArguments():this.parseArguments();if(r=this.finalize(this.startNode(e),new o.CallExpression(r,E)),c&&this.match("=>")){for(var v=0;v<E.length;++v)this.reinterpretExpressionAsPattern(E[v]);r={type:s,params:E,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),r=this.finalize(this.startNode(e),new o.ComputedMemberExpression(r,n))}else if(this.lookahead.type===10&&this.lookahead.head){var g=this.parseTemplateLiteral();r=this.finalize(this.startNode(e),new o.TaggedTemplateExpression(r,g))}else break;return this.context.allowIn=i,r},a.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(e,new o.Super)},a.prototype.parseLeftHandSideExpression=function(){l.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var i=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new o.ComputedMemberExpression(t,i))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();t=this.finalize(e,new o.StaticMemberExpression(t,i))}else if(this.lookahead.type===10&&this.lookahead.head){var r=this.parseTemplateLiteral();t=this.finalize(e,new o.TaggedTemplateExpression(t,r))}else break;return t},a.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var i=this.startNode(t),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(p.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment);var n=!0;e=this.finalize(i,new o.UpdateExpression(r.value,e,n)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(p.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var c=this.nextToken().value,n=!1;e=this.finalize(this.startNode(t),new o.UpdateExpression(c,e,n))}return e},a.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new o.AwaitExpression(t))},a.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),i=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new o.UnaryExpression(i.value,e)),this.context.strict&&e.operator==="delete"&&e.argument.type===D.Syntax.Identifier&&this.tolerateError(p.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?e=this.parseAwaitExpression():e=this.parseUpdateExpression();return e},a.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==D.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new o.BinaryExpression("**",i,r))}return t},a.prototype.binaryPrecedence=function(e){var t=e.value,i;return e.type===7?i=this.operatorPrecedence[t]||0:e.type===4?i=t==="instanceof"||this.context.allowIn&&t==="in"?7:0:i=0,i},a.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),i=this.lookahead,r=this.binaryPrecedence(i);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var n=[e,this.lookahead],c=t,E=this.isolateCoverGrammar(this.parseExponentiationExpression),v=[c,i.value,E],g=[r];r=this.binaryPrecedence(this.lookahead),!(r<=0);){for(;v.length>2&&r<=g[g.length-1];){E=v.pop();var b=v.pop();g.pop(),c=v.pop(),n.pop();var k=this.startNode(n[n.length-1]);v.push(this.finalize(k,new o.BinaryExpression(b,c,E)))}v.push(this.nextToken().value),g.push(r),n.push(this.lookahead),v.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var B=v.length-1;t=v[B];for(var I=n.pop();B>1;){var N=n.pop(),M=I&&I.lineStart,k=this.startNode(N,M),b=v[B-1];t=this.finalize(k,new o.BinaryExpression(b,v[B-2],t)),B-=2,I=N}}return t},a.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var i=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=i,this.expect(":");var n=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,r,n)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},a.prototype.checkPatternParam=function(e,t){switch(t.type){case D.Syntax.Identifier:this.validateParam(e,t,t.name);break;case D.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case D.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case D.Syntax.ArrayPattern:for(var i=0;i<t.elements.length;i++)t.elements[i]!==null&&this.checkPatternParam(e,t.elements[i]);break;case D.Syntax.ObjectPattern:for(var i=0;i<t.properties.length;i++)this.checkPatternParam(e,t.properties[i].value);break}e.simple=e.simple&&t instanceof o.Identifier},a.prototype.reinterpretAsCoverFormalsList=function(e){var t=[e],i,r=!1;switch(e.type){case D.Syntax.Identifier:break;case s:t=e.params,r=e.async;break;default:return null}i={simple:!0,paramSet:{}};for(var n=0;n<t.length;++n){var c=t[n];c.type===D.Syntax.AssignmentPattern?c.right.type===D.Syntax.YieldExpression&&(c.right.argument&&this.throwUnexpectedToken(this.lookahead),c.right.type=D.Syntax.Identifier,c.right.name="yield",delete c.right.argument,delete c.right.delegate):r&&c.type===D.Syntax.Identifier&&c.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(i,c),t[n]=c}if(this.context.strict||!this.context.allowYield)for(var n=0;n<t.length;++n){var c=t[n];c.type===D.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(i.message===p.Messages.StrictParamDupe){var E=this.context.strict?i.stricted:i.firstRestricted;this.throwUnexpectedToken(E,i.message)}return{simple:i.simple,params:t,stricted:i.stricted,firstRestricted:i.firstRestricted,message:i.message}},a.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,i=t;if(e=this.parseConditionalExpression(),i.type===3&&i.lineNumber===this.lookahead.lineNumber&&i.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),e={type:s,params:[r],async:!0}}if(e.type===s||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var E=this.context.strict,v=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var g=this.context.allowYield,b=this.context.await;this.context.allowYield=!0,this.context.await=n;var k=this.startNode(t);this.expect("=>");var B=void 0;if(this.match("{")){var I=this.context.allowIn;this.context.allowIn=!0,B=this.parseFunctionSourceElements(),this.context.allowIn=I}else B=this.isolateCoverGrammar(this.parseAssignmentExpression);var N=B.type!==D.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=n?this.finalize(k,new o.AsyncArrowFunctionExpression(c.params,B,N)):this.finalize(k,new o.ArrowFunctionExpression(c.params,B,N)),this.context.strict=E,this.context.allowStrictDirective=v,this.context.allowYield=g,this.context.await=b}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===D.Syntax.Identifier){var M=e;this.scanner.isRestrictedWord(M.name)&&this.tolerateUnexpectedToken(i,p.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(M.name)&&this.tolerateUnexpectedToken(i,p.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),i=this.nextToken();var P=i.value,W=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(P,e,W)),this.context.firstCoverInitializedNameError=null}}return e},a.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var i=[];for(i.push(t);this.lookahead.type!==2&&this.match(",");)this.nextToken(),i.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(i))}return t},a.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,p.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,p.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},a.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},a.prototype.parseLexicalBinding=function(e,t){var i=this.createNode(),r=[],n=this.parsePattern(r,e);this.context.strict&&n.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(p.Messages.StrictVarName);var c=null;return e==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),c=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(p.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&n.type!==D.Syntax.Identifier||this.match("="))&&(this.expect("="),c=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(i,new o.VariableDeclarator(n,c))},a.prototype.parseBindingList=function(e,t){for(var i=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),i.push(this.parseLexicalBinding(e,t));return i},a.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value==="["||t.type===7&&t.value==="{"||t.type===4&&t.value==="let"||t.type===4&&t.value==="yield"},a.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),i=this.nextToken().value;l.assert(i==="let"||i==="const","Lexical declaration must be either let or const");var r=this.parseBindingList(i,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(r,i))},a.prototype.parseBindingRestElement=function(e,t){var i=this.createNode();this.expect("...");var r=this.parsePattern(e,t);return this.finalize(i,new o.RestElement(r))},a.prototype.parseArrayPattern=function(e,t){var i=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(e,t));break}else r.push(this.parsePatternWithDefault(e,t));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(i,new o.ArrayPattern(r))},a.prototype.parsePropertyPattern=function(e,t){var i=this.createNode(),r=!1,n=!1,c=!1,E,v;if(this.lookahead.type===3){var g=this.lookahead;E=this.parseVariableIdentifier();var b=this.finalize(i,new o.Identifier(g.value));if(this.match("=")){e.push(g),n=!0,this.nextToken();var k=this.parseAssignmentExpression();v=this.finalize(this.startNode(g),new o.AssignmentPattern(b,k))}else this.match(":")?(this.expect(":"),v=this.parsePatternWithDefault(e,t)):(e.push(g),n=!0,v=b)}else r=this.match("["),E=this.parseObjectPropertyKey(),this.expect(":"),v=this.parsePatternWithDefault(e,t);return this.finalize(i,new o.Property("init",E,r,v,c,n))},a.prototype.parseObjectPattern=function(e,t){var i=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(i,new o.ObjectPattern(r))},a.prototype.parsePattern=function(e,t){var i;return this.match("[")?i=this.parseArrayPattern(e,t):this.match("{")?i=this.parseObjectPattern(e,t):(this.matchKeyword("let")&&(t==="const"||t==="let")&&this.tolerateUnexpectedToken(this.lookahead,p.Messages.LetInLexicalBinding),e.push(this.lookahead),i=this.parseVariableIdentifier(t)),i},a.prototype.parsePatternWithDefault=function(e,t){var i=this.lookahead,r=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var n=this.context.allowYield;this.context.allowYield=!0;var c=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=n,r=this.finalize(this.startNode(i),new o.AssignmentPattern(r,c))}return r},a.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),i=this.nextToken();return i.type===4&&i.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(i,p.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(i):i.type!==3?this.context.strict&&i.type===4&&this.scanner.isStrictModeReservedWord(i.value)?this.tolerateUnexpectedToken(i,p.Messages.StrictReservedWord):(this.context.strict||i.value!=="let"||e!=="var")&&this.throwUnexpectedToken(i):(this.context.isModule||this.context.await)&&i.type===3&&i.value==="await"&&this.tolerateUnexpectedToken(i),this.finalize(t,new o.Identifier(i.value))},a.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),i=[],r=this.parsePattern(i,"var");this.context.strict&&r.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(p.Messages.StrictVarName);var n=null;return this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type!==D.Syntax.Identifier&&!e.inFor&&this.expect("="),this.finalize(t,new o.VariableDeclarator(r,n))},a.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},i=[];for(i.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),i.push(this.parseVariableDeclaration(t));return i},a.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},a.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},a.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},a.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(p.Messages.StrictFunction),this.parseStatement()},a.prototype.parseIfStatement=function(){var e=this.createNode(),t,i=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),i=this.parseIfClause())),this.finalize(e,new o.IfStatement(r,t,i))},a.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var i=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(i,r))},a.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new o.WhileStatement(i,t))},a.prototype.parseForStatement=function(){var e=null,t=null,i=null,r=!0,n,c,E=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){e=this.createNode(),this.nextToken();var v=this.context.allowIn;this.context.allowIn=!1;var g=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=v,g.length===1&&this.matchKeyword("in")){var b=g[0];b.init&&(b.id.type===D.Syntax.ArrayPattern||b.id.type===D.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(p.Messages.ForInOfLoopInitializer,"for-in"),e=this.finalize(e,new o.VariableDeclaration(g,"var")),this.nextToken(),n=e,c=this.parseExpression(),e=null}else g.length===1&&g[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new o.VariableDeclaration(g,"var")),this.nextToken(),n=e,c=this.parseAssignmentExpression(),e=null,r=!1):(e=this.finalize(e,new o.VariableDeclaration(g,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){e=this.createNode();var k=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")e=this.finalize(e,new o.Identifier(k)),this.nextToken(),n=e,c=this.parseExpression(),e=null;else{var v=this.context.allowIn;this.context.allowIn=!1;var g=this.parseBindingList(k,{inFor:!0});this.context.allowIn=v,g.length===1&&g[0].init===null&&this.matchKeyword("in")?(e=this.finalize(e,new o.VariableDeclaration(g,k)),this.nextToken(),n=e,c=this.parseExpression(),e=null):g.length===1&&g[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new o.VariableDeclaration(g,k)),this.nextToken(),n=e,c=this.parseAssignmentExpression(),e=null,r=!1):(this.consumeSemicolon(),e=this.finalize(e,new o.VariableDeclaration(g,k)))}}else{var B=this.lookahead,v=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=v,this.matchKeyword("in"))(!this.context.isAssignmentTarget||e.type===D.Syntax.AssignmentExpression)&&this.tolerateError(p.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),n=e,c=this.parseExpression(),e=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||e.type===D.Syntax.AssignmentExpression)&&this.tolerateError(p.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),n=e,c=this.parseAssignmentExpression(),e=null,r=!1;else{if(this.match(",")){for(var I=[e];this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(B),new o.SequenceExpression(I))}this.expect(";")}}typeof n>"u"&&(this.match(";")||(t=this.parseExpression()),this.expect(";"),this.match(")")||(i=this.parseExpression()));var N;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),N=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var M=this.context.inIteration;this.context.inIteration=!0,N=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=M}return typeof n>"u"?this.finalize(E,new o.ForStatement(e,t,i,N)):r?this.finalize(E,new o.ForInStatement(n,c,N)):this.finalize(E,new o.ForOfStatement(n,c,N))},a.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var i=this.parseVariableIdentifier();t=i;var r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(p.Messages.UnknownLabel,i.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(p.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},a.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var i=this.parseVariableIdentifier(),r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(p.Messages.UnknownLabel,i.name),t=i}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(p.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},a.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(p.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,i=t?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(i))},a.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(p.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword("with"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new o.WithStatement(i,t))},a.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var i=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)i.push(this.parseStatementListItem());return this.finalize(e,new o.SwitchCase(t,i))},a.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var i=this.context.inSwitch;this.context.inSwitch=!0;var r=[],n=!1;for(this.expect("{");!this.match("}");){var c=this.parseSwitchCase();c.test===null&&(n&&this.throwError(p.Messages.MultipleDefaultsInSwitch),n=!0),r.push(c)}return this.expect("}"),this.context.inSwitch=i,this.finalize(e,new o.SwitchStatement(t,r))},a.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),i;if(t.type===D.Syntax.Identifier&&this.match(":")){this.nextToken();var r=t,n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)&&this.throwError(p.Messages.Redeclaration,"Label",r.name),this.context.labelSet[n]=!0;var c=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword("function")){var E=this.lookahead,v=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(E,p.Messages.StrictFunction):v.generator&&this.tolerateUnexpectedToken(E,p.Messages.GeneratorInLegacyContext),c=v}else c=this.parseStatement();delete this.context.labelSet[n],i=new o.LabeledStatement(r,c)}else this.consumeSemicolon(),i=new o.ExpressionStatement(t);return this.finalize(e,i)},a.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(p.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},a.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],i=this.parsePattern(t),r={},n=0;n<t.length;n++){var c="$"+t[n].value;Object.prototype.hasOwnProperty.call(r,c)&&this.tolerateError(p.Messages.DuplicateBinding,t[n].value),r[c]=!0}this.context.strict&&i.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(p.Messages.StrictCatchVariable),this.expect(")");var E=this.parseBlock();return this.finalize(e,new o.CatchClause(i,E))},a.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},a.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),i=this.matchKeyword("catch")?this.parseCatchClause():null,r=this.matchKeyword("finally")?this.parseFinallyClause():null;return!i&&!r&&this.throwError(p.Messages.NoCatchOrFinally),this.finalize(e,new o.TryStatement(t,i,r))},a.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new o.DebuggerStatement)},a.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;t==="{"?e=this.parseBlock():t==="("?e=this.parseExpressionStatement():t===";"?e=this.parseEmptyStatement():e=this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement();break}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},a.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),i=this.context.labelSet,r=this.context.inIteration,n=this.context.inSwitch,c=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=i,this.context.inIteration=r,this.context.inSwitch=n,this.context.inFunctionBody=c,this.finalize(e,new o.BlockStatement(t))},a.prototype.validateParam=function(e,t,i){var r="$"+i;this.context.strict?(this.scanner.isRestrictedWord(i)&&(e.stricted=t,e.message=p.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=p.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(i)?(e.firstRestricted=t,e.message=p.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(i)?(e.firstRestricted=t,e.message=p.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=p.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(e.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[r]=!0},a.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var i=this.parsePattern(e);return this.match("=")&&this.throwError(p.Messages.DefaultRestParameter),this.match(")")||this.throwError(p.Messages.ParameterAfterRestParameter),this.finalize(t,new o.RestElement(i))},a.prototype.parseFormalParameter=function(e){for(var t=[],i=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),r=0;r<t.length;r++)this.validateParam(e,t[r],t[r].value);e.simple=e.simple&&i instanceof o.Identifier,e.params.push(i)},a.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},a.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var i=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===i.lineNumber&&i.type===4&&i.value==="function"}return e},a.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),i=this.matchContextualKeyword("async");i&&this.nextToken(),this.expectKeyword("function");var r=i?!1:this.match("*");r&&this.nextToken();var n,c=null,E=null;if(!e||!this.match("(")){var v=this.lookahead;c=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(v.value)&&this.tolerateUnexpectedToken(v,p.Messages.StrictFunctionName):this.scanner.isRestrictedWord(v.value)?(E=v,n=p.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(v.value)&&(E=v,n=p.Messages.StrictReservedWord)}var g=this.context.await,b=this.context.allowYield;this.context.await=i,this.context.allowYield=!r;var k=this.parseFormalParameters(E),B=k.params,I=k.stricted;E=k.firstRestricted,k.message&&(n=k.message);var N=this.context.strict,M=this.context.allowStrictDirective;this.context.allowStrictDirective=k.simple;var P=this.parseFunctionSourceElements();return this.context.strict&&E&&this.throwUnexpectedToken(E,n),this.context.strict&&I&&this.tolerateUnexpectedToken(I,n),this.context.strict=N,this.context.allowStrictDirective=M,this.context.await=g,this.context.allowYield=b,i?this.finalize(t,new o.AsyncFunctionDeclaration(c,B,P)):this.finalize(t,new o.FunctionDeclaration(c,B,P,r))},a.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var i=t?!1:this.match("*");i&&this.nextToken();var r,n=null,c,E=this.context.await,v=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!i,!this.match("(")){var g=this.lookahead;n=!this.context.strict&&!i&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(g.value)&&this.tolerateUnexpectedToken(g,p.Messages.StrictFunctionName):this.scanner.isRestrictedWord(g.value)?(c=g,r=p.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(g.value)&&(c=g,r=p.Messages.StrictReservedWord)}var b=this.parseFormalParameters(c),k=b.params,B=b.stricted;c=b.firstRestricted,b.message&&(r=b.message);var I=this.context.strict,N=this.context.allowStrictDirective;this.context.allowStrictDirective=b.simple;var M=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,r),this.context.strict&&B&&this.tolerateUnexpectedToken(B,r),this.context.strict=I,this.context.allowStrictDirective=N,this.context.await=E,this.context.allowYield=v,t?this.finalize(e,new o.AsyncFunctionExpression(n,k,M)):this.finalize(e,new o.FunctionExpression(n,k,M,i))},a.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),i=this.parseExpression(),r=i.type===D.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,r?new o.Directive(i,r):new o.ExpressionStatement(i))},a.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var i=this.lookahead;if(i.type!==8)break;var r=this.parseDirective();t.push(r);var n=r.directive;if(typeof n!="string")break;n==="use strict"?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,p.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(i,p.Messages.IllegalLanguageModeDirective)):!e&&i.octal&&(e=i)}return t},a.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return e.value==="["}return!1},a.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,i=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(p.Messages.BadGetterArity);var n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,n,t))},a.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,i=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length!==1?this.tolerateError(p.Messages.BadSetterArity):r.params[0]instanceof o.RestElement&&this.tolerateError(p.Messages.BadSetterRestParameter);var n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,n,t))},a.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,i=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var n=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,n,t))},a.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t==="["||t==="("||t==="{"||t==="+"||t==="-"||t==="!"||t==="~"||t==="++"||t==="--"||t==="/"||t==="/=";break;case 4:e=t==="class"||t==="delete"||t==="function"||t==="let"||t==="new"||t==="super"||t==="this"||t==="typeof"||t==="void"||t==="yield";break}return e},a.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,i=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,i=this.match("*"),i?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new o.YieldExpression(t,i))},a.prototype.parseClassElement=function(e){var t=this.lookahead,i=this.createNode(),r="",n=null,c=null,E=!1,v=!1,g=!1,b=!1;if(this.match("*"))this.nextToken();else{E=this.match("["),n=this.parseObjectPropertyKey();var k=n;if(k.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,g=!0,E=this.match("["),this.match("*")?this.nextToken():n=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value==="async"){var B=this.lookahead.value;B!==":"&&B!=="("&&B!=="*"&&(b=!0,t=this.lookahead,n=this.parseObjectPropertyKey(),t.type===3&&t.value==="constructor"&&this.tolerateUnexpectedToken(t,p.Messages.ConstructorIsAsync))}}var I=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value==="get"&&I?(r="get",E=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):t.value==="set"&&I&&(r="set",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):t.type===7&&t.value==="*"&&I&&(r="init",E=this.match("["),n=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),v=!0),!r&&n&&this.match("(")&&(r="init",c=b?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),v=!0),r||this.throwUnexpectedToken(this.lookahead),r==="init"&&(r="method"),E||(g&&this.isPropertyKey(n,"prototype")&&this.throwUnexpectedToken(t,p.Messages.StaticPrototype),!g&&this.isPropertyKey(n,"constructor")&&((r!=="method"||!v||c&&c.generator)&&this.throwUnexpectedToken(t,p.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,p.Messages.DuplicateConstructor):e.value=!0,r="constructor")),this.finalize(i,new o.MethodDefinition(n,E,c,r,g))},a.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},a.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},a.prototype.parseClassDeclaration=function(e){var t=this.createNode(),i=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var c=this.parseClassBody();return this.context.strict=i,this.finalize(t,new o.ClassDeclaration(r,n,c))},a.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=this.lookahead.type===3?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var n=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(i,r,n))},a.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},a.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},a.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(p.Messages.InvalidModuleSpecifier);var t=this.nextToken(),i=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,i))},a.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,i;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),i=t,this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),i=t,this.matchContextualKeyword("as")?(this.nextToken(),i=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new o.ImportSpecifier(i,t))},a.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},a.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},a.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(p.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},a.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(p.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword("import");var t,i=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match("{")?i=i.concat(this.parseNamedImports()):this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(i.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.match("{")?i=i.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var r=this.lookahead.value?p.Messages.UnexpectedToken:p.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new o.ImportDeclaration(i,t))},a.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),i=t;return this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,i))},a.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(p.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword("export");var t;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var i=this.parseFunctionDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.matchKeyword("class")){var i=this.parseClassDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.matchContextualKeyword("async")){var i=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else{this.matchContextualKeyword("from")&&this.throwError(p.Messages.UnexpectedToken,this.lookahead.value);var i=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var r=this.lookahead.value?p.Messages.UnexpectedToken:p.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var n=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new o.ExportAllDeclaration(n))}else if(this.lookahead.type===4){var i=void 0;switch(this.lookahead.value){case"let":case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":i=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new o.ExportNamedDeclaration(i,[],null))}else if(this.matchAsyncFunction()){var i=this.parseFunctionDeclaration();t=this.finalize(e,new o.ExportNamedDeclaration(i,[],null))}else{var c=[],E=null,v=!1;for(this.expect("{");!this.match("}");)v=v||this.matchKeyword("default"),c.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),E=this.parseModuleSpecifier(),this.consumeSemicolon();else if(v){var r=this.lookahead.value?p.Messages.UnexpectedToken:p.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new o.ExportNamedDeclaration(null,c,E))}return t},a})();u.Parser=h},function(C,u){Object.defineProperty(u,"__esModule",{value:!0});function A(l,m){if(!l)throw new Error("ASSERT: "+m)}u.assert=A},function(C,u){Object.defineProperty(u,"__esModule",{value:!0});var A=(function(){function l(){this.errors=[],this.tolerant=!1}return l.prototype.recordError=function(m){this.errors.push(m)},l.prototype.tolerate=function(m){if(this.tolerant)this.recordError(m);else throw m},l.prototype.constructError=function(m,p){var o=new Error(m);try{throw o}catch(F){Object.create&&Object.defineProperty&&(o=Object.create(F),Object.defineProperty(o,"column",{value:p}))}return o},l.prototype.createError=function(m,p,o,F){var D="Line "+p+": "+F,x=this.constructError(D,o);return x.index=m,x.lineNumber=p,x.description=F,x},l.prototype.throwError=function(m,p,o,F){throw this.createError(m,p,o,F)},l.prototype.tolerateError=function(m,p,o,F){var D=this.createError(m,p,o,F);if(this.tolerant)this.recordError(D);else throw D},l})();u.ErrorHandler=A},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(9),m=A(4),p=A(11);function o(x){return"0123456789abcdef".indexOf(x.toLowerCase())}function F(x){return"01234567".indexOf(x)}var D=(function(){function x(s,h){this.source=s,this.errorHandler=h,this.trackComment=!1,this.isModule=!1,this.length=s.length,this.index=0,this.lineNumber=s.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return x.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},x.prototype.restoreState=function(s){this.index=s.index,this.lineNumber=s.lineNumber,this.lineStart=s.lineStart},x.prototype.eof=function(){return this.index>=this.length},x.prototype.throwUnexpectedToken=function(s){return s===void 0&&(s=p.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,s)},x.prototype.tolerateUnexpectedToken=function(s){s===void 0&&(s=p.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,s)},x.prototype.skipSingleLineComment=function(s){var h=[],a,e;for(this.trackComment&&(h=[],a=this.index-s,e={start:{line:this.lineNumber,column:this.index-this.lineStart-s},end:{}});!this.eof();){var t=this.source.charCodeAt(this.index);if(++this.index,m.Character.isLineTerminator(t)){if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart-1};var i={multiLine:!1,slice:[a+s,this.index-1],range:[a,this.index-1],loc:e};h.push(i)}return t===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,h}}if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!1,slice:[a+s,this.index],range:[a,this.index],loc:e};h.push(i)}return h},x.prototype.skipMultiLineComment=function(){var s=[],h,a;for(this.trackComment&&(s=[],h=this.index-2,a={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var e=this.source.charCodeAt(this.index);if(m.Character.isLineTerminator(e))e===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(e===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){a.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[h+2,this.index-2],range:[h,this.index],loc:a};s.push(t)}return s}++this.index}else++this.index}if(this.trackComment){a.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[h+2,this.index],range:[h,this.index],loc:a};s.push(t)}return this.tolerateUnexpectedToken(),s},x.prototype.scanComments=function(){var s;this.trackComment&&(s=[]);for(var h=this.index===0;!this.eof();){var a=this.source.charCodeAt(this.index);if(m.Character.isWhiteSpace(a))++this.index;else if(m.Character.isLineTerminator(a))++this.index,a===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,h=!0;else if(a===47)if(a=this.source.charCodeAt(this.index+1),a===47){this.index+=2;var e=this.skipSingleLineComment(2);this.trackComment&&(s=s.concat(e)),h=!0}else if(a===42){this.index+=2;var e=this.skipMultiLineComment();this.trackComment&&(s=s.concat(e))}else break;else if(h&&a===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var e=this.skipSingleLineComment(3);this.trackComment&&(s=s.concat(e))}else break;else if(a===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var e=this.skipSingleLineComment(4);this.trackComment&&(s=s.concat(e))}else break;else break}return s},x.prototype.isFutureReservedWord=function(s){switch(s){case"enum":case"export":case"import":case"super":return!0;default:return!1}},x.prototype.isStrictModeReservedWord=function(s){switch(s){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},x.prototype.isRestrictedWord=function(s){return s==="eval"||s==="arguments"},x.prototype.isKeyword=function(s){switch(s.length){case 2:return s==="if"||s==="in"||s==="do";case 3:return s==="var"||s==="for"||s==="new"||s==="try"||s==="let";case 4:return s==="this"||s==="else"||s==="case"||s==="void"||s==="with"||s==="enum";case 5:return s==="while"||s==="break"||s==="catch"||s==="throw"||s==="const"||s==="yield"||s==="class"||s==="super";case 6:return s==="return"||s==="typeof"||s==="delete"||s==="switch"||s==="export"||s==="import";case 7:return s==="default"||s==="finally"||s==="extends";case 8:return s==="function"||s==="continue"||s==="debugger";case 10:return s==="instanceof";default:return!1}},x.prototype.codePointAt=function(s){var h=this.source.charCodeAt(s);if(h>=55296&&h<=56319){var a=this.source.charCodeAt(s+1);if(a>=56320&&a<=57343){var e=h;h=(e-55296)*1024+a-56320+65536}}return h},x.prototype.scanHexEscape=function(s){for(var h=s==="u"?4:2,a=0,e=0;e<h;++e)if(!this.eof()&&m.Character.isHexDigit(this.source.charCodeAt(this.index)))a=a*16+o(this.source[this.index++]);else return null;return String.fromCharCode(a)},x.prototype.scanUnicodeCodePointEscape=function(){var s=this.source[this.index],h=0;for(s==="}"&&this.throwUnexpectedToken();!this.eof()&&(s=this.source[this.index++],!!m.Character.isHexDigit(s.charCodeAt(0)));)h=h*16+o(s);return(h>1114111||s!=="}")&&this.throwUnexpectedToken(),m.Character.fromCodePoint(h)},x.prototype.getIdentifier=function(){for(var s=this.index++;!this.eof();){var h=this.source.charCodeAt(this.index);if(h===92)return this.index=s,this.getComplexIdentifier();if(h>=55296&&h<57343)return this.index=s,this.getComplexIdentifier();if(m.Character.isIdentifierPart(h))++this.index;else break}return this.source.slice(s,this.index)},x.prototype.getComplexIdentifier=function(){var s=this.codePointAt(this.index),h=m.Character.fromCodePoint(s);this.index+=h.length;var a;for(s===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,a=this.scanUnicodeCodePointEscape()):(a=this.scanHexEscape("u"),(a===null||a==="\\"||!m.Character.isIdentifierStart(a.charCodeAt(0)))&&this.throwUnexpectedToken()),h=a);!this.eof()&&(s=this.codePointAt(this.index),!!m.Character.isIdentifierPart(s));)a=m.Character.fromCodePoint(s),h+=a,this.index+=a.length,s===92&&(h=h.substr(0,h.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,a=this.scanUnicodeCodePointEscape()):(a=this.scanHexEscape("u"),(a===null||a==="\\"||!m.Character.isIdentifierPart(a.charCodeAt(0)))&&this.throwUnexpectedToken()),h+=a);return h},x.prototype.octalToDecimal=function(s){var h=s!=="0",a=F(s);return!this.eof()&&m.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(h=!0,a=a*8+F(this.source[this.index++]),"0123".indexOf(s)>=0&&!this.eof()&&m.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(a=a*8+F(this.source[this.index++]))),{code:a,octal:h}},x.prototype.scanIdentifier=function(){var s,h=this.index,a=this.source.charCodeAt(h)===92?this.getComplexIdentifier():this.getIdentifier();if(a.length===1?s=3:this.isKeyword(a)?s=4:a==="null"?s=5:a==="true"||a==="false"?s=1:s=3,s!==3&&h+a.length!==this.index){var e=this.index;this.index=h,this.tolerateUnexpectedToken(p.Messages.InvalidEscapedReservedWord),this.index=e}return{type:s,value:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},x.prototype.scanPunctuator=function(){var s=this.index,h=this.source[this.index];switch(h){case"(":case"{":h==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,h="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:h=this.source.substr(this.index,4),h===">>>="?this.index+=4:(h=h.substr(0,3),h==="==="||h==="!=="||h===">>>"||h==="<<="||h===">>="||h==="**="?this.index+=3:(h=h.substr(0,2),h==="&&"||h==="||"||h==="=="||h==="!="||h==="+="||h==="-="||h==="*="||h==="/="||h==="++"||h==="--"||h==="<<"||h===">>"||h==="&="||h==="|="||h==="^="||h==="%="||h==="<="||h===">="||h==="=>"||h==="**"?this.index+=2:(h=this.source[this.index],"<>=!+-*%&|^/".indexOf(h)>=0&&++this.index)))}return this.index===s&&this.throwUnexpectedToken(),{type:7,value:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanHexLiteral=function(s){for(var h="";!this.eof()&&m.Character.isHexDigit(this.source.charCodeAt(this.index));)h+=this.source[this.index++];return h.length===0&&this.throwUnexpectedToken(),m.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+h,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanBinaryLiteral=function(s){for(var h="",a;!this.eof()&&(a=this.source[this.index],!(a!=="0"&&a!=="1"));)h+=this.source[this.index++];return h.length===0&&this.throwUnexpectedToken(),this.eof()||(a=this.source.charCodeAt(this.index),(m.Character.isIdentifierStart(a)||m.Character.isDecimalDigit(a))&&this.throwUnexpectedToken()),{type:6,value:parseInt(h,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanOctalLiteral=function(s,h){var a="",e=!1;for(m.Character.isOctalDigit(s.charCodeAt(0))?(e=!0,a="0"+this.source[this.index++]):++this.index;!this.eof()&&m.Character.isOctalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];return!e&&a.length===0&&this.throwUnexpectedToken(),(m.Character.isIdentifierStart(this.source.charCodeAt(this.index))||m.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(a,8),octal:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},x.prototype.isImplicitOctalLiteral=function(){for(var s=this.index+1;s<this.length;++s){var h=this.source[s];if(h==="8"||h==="9")return!1;if(!m.Character.isOctalDigit(h.charCodeAt(0)))return!0}return!0},x.prototype.scanNumericLiteral=function(){var s=this.index,h=this.source[s];l.assert(m.Character.isDecimalDigit(h.charCodeAt(0))||h===".","Numeric literal must start with a decimal digit or a decimal point");var a="";if(h!=="."){if(a=this.source[this.index++],h=this.source[this.index],a==="0"){if(h==="x"||h==="X")return++this.index,this.scanHexLiteral(s);if(h==="b"||h==="B")return++this.index,this.scanBinaryLiteral(s);if(h==="o"||h==="O")return this.scanOctalLiteral(h,s);if(h&&m.Character.isOctalDigit(h.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(h,s)}for(;m.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];h=this.source[this.index]}if(h==="."){for(a+=this.source[this.index++];m.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];h=this.source[this.index]}if(h==="e"||h==="E")if(a+=this.source[this.index++],h=this.source[this.index],(h==="+"||h==="-")&&(a+=this.source[this.index++]),m.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;m.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];else this.throwUnexpectedToken();return m.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(a),lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanStringLiteral=function(){var s=this.index,h=this.source[s];l.assert(h==="'"||h==='"',"String literal must starts with a quote"),++this.index;for(var a=!1,e="";!this.eof();){var t=this.source[this.index++];if(t===h){h="";break}else if(t==="\\")if(t=this.source[this.index++],!t||!m.Character.isLineTerminator(t.charCodeAt(0)))switch(t){case"u":if(this.source[this.index]==="{")++this.index,e+=this.scanUnicodeCodePointEscape();else{var i=this.scanHexEscape(t);i===null&&this.throwUnexpectedToken(),e+=i}break;case"x":var r=this.scanHexEscape(t);r===null&&this.throwUnexpectedToken(p.Messages.InvalidHexEscapeSequence),e+=r;break;case"n":e+=`
|
|
18
18
|
`;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;case"8":case"9":e+=t,this.tolerateUnexpectedToken();break;default:if(t&&m.Character.isOctalDigit(t.charCodeAt(0))){var n=this.octalToDecimal(t);a=n.octal||a,e+=String.fromCharCode(n.code)}else e+=t;break}else++this.lineNumber,t==="\r"&&this.source[this.index]===`
|
|
19
19
|
`&&++this.index,this.lineStart=this.index;else{if(m.Character.isLineTerminator(t.charCodeAt(0)))break;e+=t}}return h!==""&&(this.index=s,this.throwUnexpectedToken()),{type:8,value:e,octal:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.scanTemplate=function(){var s="",h=!1,a=this.index,e=this.source[a]==="`",t=!1,i=2;for(++this.index;!this.eof();){var r=this.source[this.index++];if(r==="`"){i=1,t=!0,h=!0;break}else if(r==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,h=!0;break}s+=r}else if(r==="\\")if(r=this.source[this.index++],m.Character.isLineTerminator(r.charCodeAt(0)))++this.lineNumber,r==="\r"&&this.source[this.index]===`
|
|
20
20
|
`&&++this.index,this.lineStart=this.index;else switch(r){case"n":s+=`
|
|
21
21
|
`;break;case"r":s+="\r";break;case"t":s+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,s+=this.scanUnicodeCodePointEscape();else{var n=this.index,c=this.scanHexEscape(r);c!==null?s+=c:(this.index=n,s+=r)}break;case"x":var E=this.scanHexEscape(r);E===null&&this.throwUnexpectedToken(p.Messages.InvalidHexEscapeSequence),s+=E;break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;default:r==="0"?(m.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(p.Messages.TemplateOctalLiteral),s+="\0"):m.Character.isOctalDigit(r.charCodeAt(0))?this.throwUnexpectedToken(p.Messages.TemplateOctalLiteral):s+=r;break}else m.Character.isLineTerminator(r.charCodeAt(0))?(++this.lineNumber,r==="\r"&&this.source[this.index]===`
|
|
22
22
|
`&&++this.index,this.lineStart=this.index,s+=`
|
|
23
|
-
`):s+=r}return h||this.throwUnexpectedToken(),e||this.curlyStack.pop(),{type:10,value:this.source.slice(a+1,this.index-i),cooked:s,head:e,tail:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}},x.prototype.testRegExp=function(s,h){var a="",e=s,t=this;h.indexOf("u")>=0&&(e=e.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(i,r,n){var c=parseInt(r||n,16);return c>1114111&&t.throwUnexpectedToken(p.Messages.InvalidRegExp),c<=65535?String.fromCharCode(c):a}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a));try{RegExp(e)}catch{this.throwUnexpectedToken(p.Messages.InvalidRegExp)}try{return new RegExp(s,h)}catch{return null}},x.prototype.scanRegExpBody=function(){var s=this.source[this.index];l.assert(s==="/","Regular expression literal must start with a slash");for(var h=this.source[this.index++],a=!1,e=!1;!this.eof();)if(s=this.source[this.index++],h+=s,s==="\\")s=this.source[this.index++],m.Character.isLineTerminator(s.charCodeAt(0))&&this.throwUnexpectedToken(p.Messages.UnterminatedRegExp),h+=s;else if(m.Character.isLineTerminator(s.charCodeAt(0)))this.throwUnexpectedToken(p.Messages.UnterminatedRegExp);else if(a)s==="]"&&(a=!1);else if(s==="/"){e=!0;break}else s==="["&&(a=!0);return e||this.throwUnexpectedToken(p.Messages.UnterminatedRegExp),h.substr(1,h.length-2)},x.prototype.scanRegExpFlags=function(){for(var s="",h="";!this.eof();){var a=this.source[this.index];if(!m.Character.isIdentifierPart(a.charCodeAt(0)))break;if(++this.index,a==="\\"&&!this.eof())if(a=this.source[this.index],a==="u"){++this.index;var e=this.index,t=this.scanHexEscape("u");if(t!==null)for(h+=t,s+="\\u";e<this.index;++e)s+=this.source[e];else this.index=e,h+="u",s+="\\u";this.tolerateUnexpectedToken()}else s+="\\",this.tolerateUnexpectedToken();else h+=a,s+=a}return h},x.prototype.scanRegExp=function(){var s=this.index,h=this.scanRegExpBody(),a=this.scanRegExpFlags(),e=this.testRegExp(h,a);return{type:9,value:"",pattern:h,flags:a,regex:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var s=this.source.charCodeAt(this.index);return m.Character.isIdentifierStart(s)?this.scanIdentifier():s===40||s===41||s===59?this.scanPunctuator():s===39||s===34?this.scanStringLiteral():s===46?m.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():m.Character.isDecimalDigit(s)?this.scanNumericLiteral():s===96||s===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():s>=55296&&s<57343&&m.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},x})();u.Scanner=D},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenName={},u.TokenName[1]="Boolean",u.TokenName[2]="<end>",u.TokenName[3]="Identifier",u.TokenName[4]="Keyword",u.TokenName[5]="Null",u.TokenName[6]="Numeric",u.TokenName[7]="Punctuator",u.TokenName[8]="String",u.TokenName[9]="RegularExpression",u.TokenName[10]="Template"},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(C,u,S){Object.defineProperty(u,"__esModule",{value:!0});var l=S(10),m=S(12),p=S(13),o=(function(){function D(){this.values=[],this.curly=this.paren=-1}return D.prototype.beforeFunctionExpression=function(x){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(x)>=0},D.prototype.isRegexStart=function(){var x=this.values[this.values.length-1],s=x!==null;switch(x){case"this":case"]":s=!1;break;case")":var h=this.values[this.paren-1];s=h==="if"||h==="while"||h==="for"||h==="with";break;case"}":if(s=!1,this.values[this.curly-3]==="function"){var a=this.values[this.curly-4];s=a?!this.beforeFunctionExpression(a):!1}else if(this.values[this.curly-4]==="function"){var a=this.values[this.curly-5];s=a?!this.beforeFunctionExpression(a):!0}break}return s},D.prototype.push=function(x){x.type===7||x.type===4?(x.value==="{"?this.curly=this.values.length:x.value==="("&&(this.paren=this.values.length),this.values.push(x.value)):this.values.push(null)},D})(),F=(function(){function D(x,s){this.errorHandler=new l.ErrorHandler,this.errorHandler.tolerant=s?typeof s.tolerant=="boolean"&&s.tolerant:!1,this.scanner=new m.Scanner(x,this.errorHandler),this.scanner.trackComment=s?typeof s.comment=="boolean"&&s.comment:!1,this.trackRange=s?typeof s.range=="boolean"&&s.range:!1,this.trackLoc=s?typeof s.loc=="boolean"&&s.loc:!1,this.buffer=[],this.reader=new o}return D.prototype.errors=function(){return this.errorHandler.errors},D.prototype.getNextToken=function(){if(this.buffer.length===0){var x=this.scanner.scanComments();if(this.scanner.trackComment)for(var s=0;s<x.length;++s){var h=x[s],a=this.scanner.source.slice(h.slice[0],h.slice[1]),e={type:h.multiLine?"BlockComment":"LineComment",value:a};this.trackRange&&(e.range=h.range),this.trackLoc&&(e.loc=h.loc),this.buffer.push(e)}if(!this.scanner.eof()){var t=void 0;this.trackLoc&&(t={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var i=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),r=i?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(r);var n={type:p.TokenName[r.type],value:this.scanner.source.slice(r.start,r.end)};if(this.trackRange&&(n.range=[r.start,r.end]),this.trackLoc&&(t.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},n.loc=t),r.type===9){var c=r.pattern,E=r.flags;n.regex={pattern:c,flags:E}}this.buffer.push(n)}}return this.buffer.shift()},D})();u.Tokenizer=F}])})})(Z)),Z.exports}var wt=Ft();function Q(w){switch(w.type){case"ObjectExpression":{const y={};for(const C of w.properties){let u;if(C.type==="SpreadElement")throw new Error(`Expected "Property" but received: ${C.type}`);if(C.key.type==="Identifier")u=C.key.name;else if(C.key.type==="Literal"){if(C.key.value instanceof RegExp||typeof C.key.value=="bigint"||C.key.value===!1||C.key.value===null||C.key.value===!0||C.key.value===void 0)throw new Error(`Expected "Identifier" for object key but received: ${C.key.type}`);u=C.key.value}else throw new Error(`Expected "Identifier" but received: ${C.key.type}`);y[u]=Q(C.value)}return y}case"ArrayExpression":{const y=[];for(const C of w.elements){if(C===null)throw new Error(`Expected "Expression" but received: ${C}`);y.push(Q(C))}return y}case"Literal":return w.value instanceof RegExp?{$type:"RegExp",$value:{$pattern:w.value.source,$flags:w.value.flags}}:w.value;case"UnaryExpression":{if(w.operator==="-"&&w.argument.type==="Literal"&&typeof w.argument.value=="number")return-w.argument.value;throw new Error(`${w.type} are not authorized`)}case"NewExpression":case"CallExpression":{const y=["ObjectId","Date","RegExp"],C=w.callee.type==="Identifier"?w.callee.name:null;if(C&&y.includes(C)){if(C==="RegExp"){const[u,S]=w.arguments.map(l=>Q(l));return{$type:"RegExp",$value:{$pattern:u,$flags:S}}}return{$type:C,$value:Q(w.arguments[0])}}else throw new Error(`Unknown ${w.type}: ${C}`)}case"Identifier":{if(w.name==="undefined")return;if(w.name==="Infinity")return 1/0;throw`Unknown identifier: ${w.name}`}default:throw new Error(`Sorry but ${w.type} are not authorized`)}}function bt(w,y){const u=wt.parseScript(`var __JSON__ = ${w};`,{tolerant:!0}).body[0];if(u.type!=="VariableDeclaration")throw new Error("Expected VariableDeclaration but received: "+u.type);const S=u.declarations[0].init;if(S?.type!=="ObjectExpression")throw new Error("Expected ObjectExpression but received: "+S?.type);return Q(S)}function kt(w,y){j(y,!0)}function Bt(w,y){j(y,!1)}function Tt(w,y){y.onremove?.()}async function It(w,y,C){try{const u=y(C.json);await navigator.clipboard.writeText(u),ne.notifySuccess("Document copied to clipboard")}catch(u){ne.notifyError(u,"Failed to copy to clipboard")}}var Nt=_('<span class="ml-2 text-md text-[var(--text-secondary,#888)]"> </span>'),Mt=_('<div><a type="button" class="bg-transparent border-none text-[var(--text)] no-underline cursor-pointer text-xl font-inherit p-0 hover:underline normal-case"> </a> <!></div>'),Pt=_('<button class="btn btn-outline-light btn-sm ml-2 -my-2">Edit</button>'),Jt=_('<button class="btn btn-outline-danger btn-sm ml-2 -my-2">Remove</button>'),Xt=_('<div class="hidden group-hover:block"><button class="btn btn-outline-light btn-sm ml-2 -my-2">Copy</button> <!> <!></div>'),Lt=_('<div class="absolute z-10 top-0 left-0 w-full h-full rounded bg-[var(--text-inverse)] opacity-70"><p class="text-[var(--text)] text-center mt-5 text-2xl">Are you sure?</p> <div class="absolute w-full h-full top-0 flex justify-center items-center"><button class="btn btn-danger m-5">Yes - Remove</button> <button class="btn btn-success m-5">No - Cancel</button></div></div>'),Ut=_('<div class="p-4 relative border-t border-[var(--border-color)]"><div class="font-mono text-sm leading-tight whitespace-pre-wrap break-words relative"><!></div> <div><div class="absolute z-10 right-5 top-4"><button class="btn btn-success ml-2">Save</button> <button class="btn btn-default ml-2">Cancel</button></div> <textarea class="w-full font-mono text-sm leading-relaxed p-2.5 bg-[var(--color-1)] text-[var(--text)] border border-[var(--border-color)] rounded resize-y"></textarea></div> <!></div>');function $t(w,y){it(y,!0);const C=n=>{var c=se(),E=ae(c);{var v=g=>{const b=re(()=>y.json._id.$value??y.json._id);var k=Mt(),B=U(k),I=U(B,!0);z(B);var N=O(B,2);{var M=P=>{const W=re(()=>a(y.json._id.$value));var Y=se(),X=ae(Y);{var R=H=>{var G=Nt(),q=U(G,!0);z(G),ie(ee=>ue(q,ee),[()=>J(W).toLocaleString()]),K(H,G)};V(X,H=>{J(W)&&H(R)})}K(P,Y)};V(N,P=>{y.json._id.$value&&P(M)})}z(k),ie(P=>{ot(B,"href",P),ue(I,J(b))},[()=>oe(`/servers/${encodeURIComponent(y.server)}/databases/${encodeURIComponent(y.database)}/collections/${encodeURIComponent(y.collection)}/documents/${J(b)}`)]),K(g,k)};V(E,g=>{y.json._id&&g(v)})}K(n,c)},u=n=>{var c=Xt(),E=U(c);E.__click=[It,e,y];var v=O(E,2);{var g=B=>{var I=Pt();I.__click=t,K(B,I)};V(v,B=>{y.onedit&&B(g)})}var b=O(v,2);{var k=B=>{var I=Jt();I.__click=[kt,x],K(B,I)};V(b,B=>{y.onremove&&B(k)})}z(c),K(n,c)};let S=he(y,"autoCollapse",3,!1),l=he(y,"startInEditMode",3,!1);function m(n){return n==null?null:typeof n=="string"||typeof n=="number"?String(n):n.$type==="ObjectId"&&n.$value?n.$value:null}function p(n){return!!y.mappings?.[n]&&(Array.isArray(y.mappings[n])?y.mappings[n].length>0:!0)}async function o(n,c){if(!y.mappings||!y.mappings[n]||Array.isArray(y.mappings[n])&&y.mappings[n].length===0)return{document:null,url:null,collection:null};const E=m(c);if(!E)return{document:null,url:null,collection:null};try{const v=await pt({server:y.server,database:y.database,mappings:Array.isArray(y.mappings[n])?y.mappings[n]:[y.mappings[n]],value:c});if(v.error||!v.data||!v.collection)return{document:null,url:null,collection:null};const g=oe(`/servers/${encodeURIComponent(y.server)}/databases/${encodeURIComponent(y.database)}/collections/${encodeURIComponent(v.collection)}/documents/${encodeURIComponent(E)}`);return{document:v.data,url:g,collection:v.collection}}catch{return{document:null,url:null,collection:null}}}let F=$(!1),D=$(""),x=$(!1),s=$(void 0),h=$("300px");function a(n){try{const c=parseInt(n.substring(0,8),16);return new Date(c*1e3)}catch{return null}}function e(n,c=0){const E=" ".repeat(c),v=" ".repeat(c+1);if(n===null)return"null";if(n===void 0)return"undefined";if(typeof n=="string")return JSON.stringify(n);if(typeof n=="number"||typeof n=="boolean")return n.toString();if(Array.isArray(n))return n.length===0?"[]":`[
|
|
23
|
+
`):s+=r}return h||this.throwUnexpectedToken(),e||this.curlyStack.pop(),{type:10,value:this.source.slice(a+1,this.index-i),cooked:s,head:e,tail:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}},x.prototype.testRegExp=function(s,h){var a="",e=s,t=this;h.indexOf("u")>=0&&(e=e.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(i,r,n){var c=parseInt(r||n,16);return c>1114111&&t.throwUnexpectedToken(p.Messages.InvalidRegExp),c<=65535?String.fromCharCode(c):a}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a));try{RegExp(e)}catch{this.throwUnexpectedToken(p.Messages.InvalidRegExp)}try{return new RegExp(s,h)}catch{return null}},x.prototype.scanRegExpBody=function(){var s=this.source[this.index];l.assert(s==="/","Regular expression literal must start with a slash");for(var h=this.source[this.index++],a=!1,e=!1;!this.eof();)if(s=this.source[this.index++],h+=s,s==="\\")s=this.source[this.index++],m.Character.isLineTerminator(s.charCodeAt(0))&&this.throwUnexpectedToken(p.Messages.UnterminatedRegExp),h+=s;else if(m.Character.isLineTerminator(s.charCodeAt(0)))this.throwUnexpectedToken(p.Messages.UnterminatedRegExp);else if(a)s==="]"&&(a=!1);else if(s==="/"){e=!0;break}else s==="["&&(a=!0);return e||this.throwUnexpectedToken(p.Messages.UnterminatedRegExp),h.substr(1,h.length-2)},x.prototype.scanRegExpFlags=function(){for(var s="",h="";!this.eof();){var a=this.source[this.index];if(!m.Character.isIdentifierPart(a.charCodeAt(0)))break;if(++this.index,a==="\\"&&!this.eof())if(a=this.source[this.index],a==="u"){++this.index;var e=this.index,t=this.scanHexEscape("u");if(t!==null)for(h+=t,s+="\\u";e<this.index;++e)s+=this.source[e];else this.index=e,h+="u",s+="\\u";this.tolerateUnexpectedToken()}else s+="\\",this.tolerateUnexpectedToken();else h+=a,s+=a}return h},x.prototype.scanRegExp=function(){var s=this.index,h=this.scanRegExpBody(),a=this.scanRegExpFlags(),e=this.testRegExp(h,a);return{type:9,value:"",pattern:h,flags:a,regex:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},x.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var s=this.source.charCodeAt(this.index);return m.Character.isIdentifierStart(s)?this.scanIdentifier():s===40||s===41||s===59?this.scanPunctuator():s===39||s===34?this.scanStringLiteral():s===46?m.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():m.Character.isDecimalDigit(s)?this.scanNumericLiteral():s===96||s===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():s>=55296&&s<57343&&m.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},x})();u.Scanner=D},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenName={},u.TokenName[1]="Boolean",u.TokenName[2]="<end>",u.TokenName[3]="Identifier",u.TokenName[4]="Keyword",u.TokenName[5]="Null",u.TokenName[6]="Numeric",u.TokenName[7]="Punctuator",u.TokenName[8]="String",u.TokenName[9]="RegularExpression",u.TokenName[10]="Template"},function(C,u){Object.defineProperty(u,"__esModule",{value:!0}),u.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(C,u,A){Object.defineProperty(u,"__esModule",{value:!0});var l=A(10),m=A(12),p=A(13),o=(function(){function D(){this.values=[],this.curly=this.paren=-1}return D.prototype.beforeFunctionExpression=function(x){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(x)>=0},D.prototype.isRegexStart=function(){var x=this.values[this.values.length-1],s=x!==null;switch(x){case"this":case"]":s=!1;break;case")":var h=this.values[this.paren-1];s=h==="if"||h==="while"||h==="for"||h==="with";break;case"}":if(s=!1,this.values[this.curly-3]==="function"){var a=this.values[this.curly-4];s=a?!this.beforeFunctionExpression(a):!1}else if(this.values[this.curly-4]==="function"){var a=this.values[this.curly-5];s=a?!this.beforeFunctionExpression(a):!0}break}return s},D.prototype.push=function(x){x.type===7||x.type===4?(x.value==="{"?this.curly=this.values.length:x.value==="("&&(this.paren=this.values.length),this.values.push(x.value)):this.values.push(null)},D})(),F=(function(){function D(x,s){this.errorHandler=new l.ErrorHandler,this.errorHandler.tolerant=s?typeof s.tolerant=="boolean"&&s.tolerant:!1,this.scanner=new m.Scanner(x,this.errorHandler),this.scanner.trackComment=s?typeof s.comment=="boolean"&&s.comment:!1,this.trackRange=s?typeof s.range=="boolean"&&s.range:!1,this.trackLoc=s?typeof s.loc=="boolean"&&s.loc:!1,this.buffer=[],this.reader=new o}return D.prototype.errors=function(){return this.errorHandler.errors},D.prototype.getNextToken=function(){if(this.buffer.length===0){var x=this.scanner.scanComments();if(this.scanner.trackComment)for(var s=0;s<x.length;++s){var h=x[s],a=this.scanner.source.slice(h.slice[0],h.slice[1]),e={type:h.multiLine?"BlockComment":"LineComment",value:a};this.trackRange&&(e.range=h.range),this.trackLoc&&(e.loc=h.loc),this.buffer.push(e)}if(!this.scanner.eof()){var t=void 0;this.trackLoc&&(t={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var i=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),r=i?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(r);var n={type:p.TokenName[r.type],value:this.scanner.source.slice(r.start,r.end)};if(this.trackRange&&(n.range=[r.start,r.end]),this.trackLoc&&(t.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},n.loc=t),r.type===9){var c=r.pattern,E=r.flags;n.regex={pattern:c,flags:E}}this.buffer.push(n)}}return this.buffer.shift()},D})();u.Tokenizer=F}])})})(Z)),Z.exports}var wt=Ft();function q(w){switch(w.type){case"ObjectExpression":{const y={};for(const C of w.properties){let u;if(C.type==="SpreadElement")throw new Error(`Expected "Property" but received: ${C.type}`);if(C.key.type==="Identifier")u=C.key.name;else if(C.key.type==="Literal"){if(C.key.value instanceof RegExp||typeof C.key.value=="bigint"||C.key.value===!1||C.key.value===null||C.key.value===!0||C.key.value===void 0)throw new Error(`Expected "Identifier" for object key but received: ${C.key.type}`);u=C.key.value}else throw new Error(`Expected "Identifier" but received: ${C.key.type}`);y[u]=q(C.value)}return y}case"ArrayExpression":{const y=[];for(const C of w.elements){if(C===null)throw new Error(`Expected "Expression" but received: ${C}`);y.push(q(C))}return y}case"Literal":return w.value instanceof RegExp?{$type:"RegExp",$value:{$pattern:w.value.source,$flags:w.value.flags}}:w.value;case"UnaryExpression":{if(w.operator==="-"&&w.argument.type==="Literal"&&typeof w.argument.value=="number")return-w.argument.value;throw new Error(`${w.type} are not authorized`)}case"NewExpression":case"CallExpression":{const y=["ObjectId","Date","RegExp","BinData"],C=w.callee.type==="Identifier"?w.callee.name:null;if(C&&y.includes(C)){if(C==="RegExp"){const[u,A]=w.arguments.map(l=>q(l));return{$type:"RegExp",$value:{$pattern:u,$flags:A}}}if(C==="BinData"){const[u,A]=w.arguments.map(l=>q(l));return{$type:"Binary",$value:A,$subType:u}}return{$type:C,$value:q(w.arguments[0])}}else throw new Error(`Unknown ${w.type}: ${C}`)}case"Identifier":{if(w.name==="undefined")return;if(w.name==="Infinity")return 1/0;throw`Unknown identifier: ${w.name}`}default:throw new Error(`Sorry but ${w.type} are not authorized`)}}function bt(w,y){const u=wt.parseScript(`var __JSON__ = ${w};`,{tolerant:!0}).body[0];if(u.type!=="VariableDeclaration")throw new Error("Expected VariableDeclaration but received: "+u.type);const A=u.declarations[0].init;if(A?.type!=="ObjectExpression")throw new Error("Expected ObjectExpression but received: "+A?.type);return q(A)}function kt(w,y){j(y,!0)}function Bt(w,y){j(y,!1)}function Tt(w,y){y.onremove?.()}async function It(w,y,C){try{const u=y(C.json);await navigator.clipboard.writeText(u),ne.notifySuccess("Document copied to clipboard")}catch(u){ne.notifyError(u,"Failed to copy to clipboard")}}var Nt=_('<span class="ml-2 text-md text-[var(--text-secondary,#888)]"> </span>'),Mt=_('<div><a type="button" class="bg-transparent border-none text-[var(--text)] no-underline cursor-pointer text-xl font-inherit p-0 hover:underline normal-case"> </a> <!></div>'),Pt=_('<button class="btn btn-outline-light btn-sm ml-2 -my-2">Edit</button>'),Jt=_('<button class="btn btn-outline-danger btn-sm ml-2 -my-2">Remove</button>'),Xt=_('<div class="hidden group-hover:block"><button class="btn btn-outline-light btn-sm ml-2 -my-2">Copy</button> <!> <!></div>'),Lt=_('<div class="absolute z-10 top-0 left-0 w-full h-full rounded bg-[var(--text-inverse)] opacity-70"><p class="text-[var(--text)] text-center mt-5 text-2xl">Are you sure?</p> <div class="absolute w-full h-full top-0 flex justify-center items-center"><button class="btn btn-danger m-5">Yes - Remove</button> <button class="btn btn-success m-5">No - Cancel</button></div></div>'),Ut=_('<div class="p-4 relative border-t border-[var(--border-color)]"><div class="font-mono text-sm leading-tight whitespace-pre-wrap break-words relative"><!></div> <div><div class="absolute z-10 right-5 top-4"><button class="btn btn-success ml-2">Save</button> <button class="btn btn-default ml-2">Cancel</button></div> <textarea class="w-full font-mono text-sm leading-relaxed p-2.5 bg-[var(--color-1)] text-[var(--text)] border border-[var(--border-color)] rounded resize-y"></textarea></div> <!></div>');function $t(w,y){it(y,!0);const C=n=>{var c=se(),E=ae(c);{var v=g=>{const b=re(()=>y.json._id.$value??y.json._id);var k=Mt(),B=U(k),I=U(B,!0);z(B);var N=O(B,2);{var M=P=>{const W=re(()=>a(y.json._id.$value));var Y=se(),X=ae(Y);{var R=H=>{var G=Nt(),$=U(G,!0);z(G),ie(ee=>ue($,ee),[()=>J(W).toLocaleString()]),K(H,G)};V(X,H=>{J(W)&&H(R)})}K(P,Y)};V(N,P=>{y.json._id.$value&&P(M)})}z(k),ie(P=>{ot(B,"href",P),ue(I,J(b))},[()=>oe(`/servers/${encodeURIComponent(y.server)}/databases/${encodeURIComponent(y.database)}/collections/${encodeURIComponent(y.collection)}/documents/${J(b)}`)]),K(g,k)};V(E,g=>{y.json._id&&g(v)})}K(n,c)},u=n=>{var c=Xt(),E=U(c);E.__click=[It,e,y];var v=O(E,2);{var g=B=>{var I=Pt();I.__click=t,K(B,I)};V(v,B=>{y.onedit&&B(g)})}var b=O(v,2);{var k=B=>{var I=Jt();I.__click=[kt,x],K(B,I)};V(b,B=>{y.onremove&&B(k)})}z(c),K(n,c)};let A=he(y,"autoCollapse",3,!1),l=he(y,"startInEditMode",3,!1);function m(n){return n==null?null:typeof n=="string"||typeof n=="number"?String(n):n.$type==="ObjectId"&&n.$value?n.$value:null}function p(n){return!!y.mappings?.[n]&&(Array.isArray(y.mappings[n])?y.mappings[n].length>0:!0)}async function o(n,c){if(!y.mappings||!y.mappings[n]||Array.isArray(y.mappings[n])&&y.mappings[n].length===0)return{document:null,url:null,collection:null};const E=m(c);if(!E)return{document:null,url:null,collection:null};try{const v=await pt({server:y.server,database:y.database,mappings:Array.isArray(y.mappings[n])?y.mappings[n]:[y.mappings[n]],value:c});if(v.error||!v.data||!v.collection)return{document:null,url:null,collection:null};const g=oe(`/servers/${encodeURIComponent(y.server)}/databases/${encodeURIComponent(y.database)}/collections/${encodeURIComponent(v.collection)}/documents/${encodeURIComponent(E)}`);return{document:v.data,url:g,collection:v.collection}}catch{return{document:null,url:null,collection:null}}}let F=Q(!1),D=Q(""),x=Q(!1),s=Q(void 0),h=Q("300px");function a(n){try{const c=parseInt(n.substring(0,8),16);return new Date(c*1e3)}catch{return null}}function e(n,c=0){const E=" ".repeat(c),v=" ".repeat(c+1);if(n===null)return"null";if(n===void 0)return"undefined";if(typeof n=="string")return JSON.stringify(n);if(typeof n=="number"||typeof n=="boolean")return n.toString();if(Array.isArray(n))return n.length===0?"[]":`[
|
|
24
24
|
${n.map(b=>`${v}${e(b,c+1)}`).join(`,
|
|
25
25
|
`)}
|
|
26
26
|
${E}]`;if(typeof n=="object"){if(n.$type==="ObjectId")return`new ObjectId("${n.$value}")`;if(n.$type==="Date")return`new Date("${n.$value}")`;if(n.$type==="RegExp")return`new RegExp("${n.$value.$pattern}", "${n.$value.$flags}")`;const g=Object.keys(n);return g.length===0?"{}":`{
|
|
27
27
|
${g.map(k=>{const B=e(n[k],c+1);return`${v}${JSON.stringify(k)}: ${B}`}).join(`,
|
|
28
28
|
`)}
|
|
29
|
-
${E}}`}return JSON.stringify(n)}function t(){if(j(D,e(y.json),!0),J(s)){const n=J(s).offsetHeight;j(h,`${Math.max(n,300)}px`)}j(F,!0)}rt(()=>{l()&&!J(F)&&J(s)&&t()});function i(){j(F,!1),j(D,"")}function r(){try{const n=bt(J(D));i(),y.onedit?.(n)}catch(n){ne.notifyError(n,"Invalid JSON")}}{let n=re(()=>y.json._id?C:void 0);dt(w,{class:"group",get title(){return J(n)},get actions(){return u},children:(c,E)=>{var v=Ut(),g=U(v),b=U(g);ft(b,{get value(){return y.json},get autoCollapse(){return
|
|
29
|
+
${E}}`}return JSON.stringify(n)}function t(){if(j(D,e(y.json),!0),J(s)){const n=J(s).offsetHeight;j(h,`${Math.max(n,300)}px`)}j(F,!0)}rt(()=>{l()&&!J(F)&&J(s)&&t()});function i(){j(F,!1),j(D,"")}function r(){try{const n=bt(J(D));i(),y.onedit?.(n)}catch(n){ne.notifyError(n,"Invalid JSON")}}{let n=re(()=>y.json._id?C:void 0);dt(w,{class:"group",get title(){return J(n)},get actions(){return u},children:(c,E)=>{var v=Ut(),g=U(v),b=U(g);ft(b,{get value(){return y.json},get autoCollapse(){return A()},collapsed:!1,isKeyMapped:p,fetchMappedDocument:o}),z(g);var k=O(g,2);let B;var I=U(k),N=U(I);N.__click=r;var M=O(N,2);M.__click=i,z(I);var P=O(I,2);nt(P),ce(()=>lt(P,()=>J(D),X=>j(D,X))),mt(P,(X,R)=>St?.(X,R),()=>({onsubmit:r,onescape:i})),z(k);var W=O(k,2);{var Y=X=>{var R=Lt(),H=O(U(R),2),G=U(H);G.__click=[Tt,y];var $=O(G,2);$.__click=[Bt,x],z(H),z(R),K(X,R)};V(W,X=>{J(x)&&X(Y)})}z(v),ct(v,X=>j(s,X),()=>J(s)),ie(X=>{B=ut(k,1,"absolute h-full z-[100] w-full top-0 left-0",null,B,X),ht(P,`height: ${J(h)??""};`)},[()=>({hidden:!J(F),block:J(F)})]),K(c,v)}})}st()}at(["click"]);export{$t as P,mt as a,St as j};
|