@wirecat/drive-cli 0.71.0 → 0.72.1
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 +150 -71
- package/contracts/wirecat.json +77 -8
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-GOCD4ZW2.js +46 -0
- package/dist/bundle/{all-profiles-3QJG2NAN.js → all-profiles-PZVP3G73.js} +67 -25
- package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-PUOTKSYV.js} +9 -9
- package/dist/bundle/{app-server-PVTA6ABR.js → app-server-MKDCXRZM.js} +97 -79
- package/dist/bundle/{bun-LU5LP3JI.js → bun-NS5YLOQT.js} +2 -2
- package/dist/bundle/{bun-sqlite-PYMKLBRU.js → bun-sqlite-KSKWRLLO.js} +9 -9
- package/dist/bundle/{chunk-COOOO5B3.js → chunk-2CG3LUQS.js} +4 -4
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-2TVHFJKV.js} +1 -1
- package/dist/bundle/chunk-35FIJGTT.js +52 -0
- package/dist/bundle/chunk-35GROSBS.js +3233 -0
- package/dist/bundle/{chunk-D5TGYUVU.js → chunk-3CH7I452.js} +9 -60
- package/dist/bundle/{chunk-ICDCAQ6K.js → chunk-3QBRS3JT.js} +13 -9
- package/dist/bundle/chunk-3T7JIHSO.js +353 -0
- package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-3VIEGRBA.js} +6 -6
- package/dist/bundle/chunk-3YCUYFTD.js +2159 -0
- package/dist/bundle/{chunk-CJLVYIOP.js → chunk-3ZGWJYSG.js} +30 -21
- package/dist/bundle/{chunk-YPFWNVHV.js → chunk-43PCMVTZ.js} +2 -100
- package/dist/bundle/{chunk-OF422U5D.js → chunk-4DK55MLP.js} +402 -402
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/chunk-4P6D6CUS.js +282 -0
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-6W763DZN.js → chunk-54O5NJRC.js} +14 -13
- package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5BHP4FVM.js} +2 -2
- package/dist/bundle/{chunk-ACUAV6VX.js → chunk-6JU4KLAZ.js} +108 -72
- package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-6KND2DYT.js} +38 -8
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-7YPZPJTB.js} +1 -1
- package/dist/bundle/chunk-A5XNUMW7.js +108 -0
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-AG34MPVN.js} +1 -1
- package/dist/bundle/chunk-B5V2U7IS.js +221 -0
- package/dist/bundle/chunk-B6JC5RS3.js +696 -0
- package/dist/bundle/chunk-BDZXGDGI.js +80 -0
- package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-BMTMGMGE.js} +1 -1
- package/dist/bundle/{chunk-ZCR3IRZ2.js → chunk-CP2TZXAG.js} +16 -9
- package/dist/bundle/{chunk-TAUBRNC5.js → chunk-DOEP4EPW.js} +72 -59
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-QETR5HIZ.js → chunk-E2TMWONO.js} +4385 -2684
- package/dist/bundle/chunk-E5EYJU5R.js +7 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-EXHTGQR2.js} +3 -4
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-ASMMG72J.js → chunk-FJQO5OHR.js} +261 -565
- package/dist/bundle/{chunk-RJOQH5YY.js → chunk-FKP4T7A4.js} +111 -859
- package/dist/bundle/{chunk-JDV7HNNQ.js → chunk-FTL3WXZB.js} +13 -26
- package/dist/bundle/{chunk-FP54WSIR.js → chunk-G2CH4FRW.js} +4 -4
- package/dist/bundle/chunk-G2KKMQRN.js +30 -0
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-G7SKXAVZ.js} +5 -5
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-GFI3UUIU.js} +1 -1
- package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
- package/dist/bundle/{chunk-QFR2PNJN.js → chunk-GTROGY74.js} +12 -12
- package/dist/bundle/{chunk-UTO2GO4P.js → chunk-GYAPDUF5.js} +45 -66
- package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-HCMEU7AF.js} +8 -8
- package/dist/bundle/{chunk-FJH7DJWK.js → chunk-HDGJ7IDE.js} +6 -6
- package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-HMN26CVU.js} +2 -2
- package/dist/bundle/{chunk-I4RWW3UD.js → chunk-HOICQNJX.js} +20 -5
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-HPS2YGSZ.js} +1 -1
- package/dist/bundle/{chunk-HMS6EEQL.js → chunk-HSASPXRW.js} +3 -3
- package/dist/bundle/{chunk-KGYVHPGE.js → chunk-IABPGOMT.js} +2 -2
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-IBQZT2YD.js} +1 -1
- package/dist/bundle/{chunk-PRW6SYA3.js → chunk-IE3R46YN.js} +313 -257
- package/dist/bundle/{chunk-7PDHGZN4.js → chunk-IE6O7463.js} +4 -4
- package/dist/bundle/{chunk-3UGYFXH6.js → chunk-IPBYU43F.js} +192 -379
- package/dist/bundle/{chunk-RWDKMU74.js → chunk-IS7STZEB.js} +3 -3
- package/dist/bundle/{chunk-GOWXXYEF.js → chunk-IV77ZFF4.js} +4 -4
- package/dist/bundle/{chunk-6XFIITOG.js → chunk-JDGF3YYS.js} +4811 -3486
- package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-JHAACT4I.js} +2 -2
- package/dist/bundle/{chunk-SERXSCN3.js → chunk-JRED7BNX.js} +337 -390
- package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-JSYUB4SM.js} +6 -6
- package/dist/bundle/{chunk-RESDD3Q4.js → chunk-JVM75M4H.js} +16 -3
- package/dist/bundle/{chunk-XF4EXO2C.js → chunk-JZ65CQWK.js} +6 -6
- package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KBR7OC5S.js} +2 -2
- package/dist/bundle/chunk-KI6OOW6D.js +123 -0
- package/dist/bundle/chunk-KOI5G7NM.js +388 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-KPBUJQKT.js} +1 -1
- package/dist/bundle/{chunk-2LHAVY4U.js → chunk-KVBGIZ2C.js} +1 -1
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-SAKO3P4H.js → chunk-LKUWH6KU.js} +1 -1
- package/dist/bundle/chunk-MA6U4XH2.js +36 -0
- package/dist/bundle/{chunk-TAFHYHKA.js → chunk-MA7ETVTZ.js} +43 -186
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-MDJUYCHT.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-MGC2BAD2.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
- package/dist/bundle/{chunk-OJSBWP3F.js → chunk-OBDPKDGB.js} +69 -7
- package/dist/bundle/{chunk-WVDCCYS3.js → chunk-ODTBJGWQ.js} +17 -17
- package/dist/bundle/chunk-PB6ACIME.js +80 -0
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-72C4YOCH.js → chunk-PMAV3RNP.js} +7 -7
- package/dist/bundle/chunk-PSY67L73.js +783 -0
- package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-PUVQOZ2N.js} +483 -176
- package/dist/bundle/{chunk-SDKQNOL5.js → chunk-QB7K6PIP.js} +6 -6
- package/dist/bundle/chunk-QK7GKFKB.js +188 -0
- package/dist/bundle/{chunk-4PA4DHYV.js → chunk-QMUWHKP5.js} +6 -6
- package/dist/bundle/chunk-QURQ2OU2.js +250 -0
- package/dist/bundle/{chunk-LXKYKRHD.js → chunk-R3EDZWXF.js} +8 -227
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-RM4DO2WZ.js} +1 -1
- package/dist/bundle/chunk-S27UKJVL.js +730 -0
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-S3SLDYTU.js} +1 -1
- package/dist/bundle/{chunk-FCS26CYQ.js → chunk-SAEBHENE.js} +4 -4
- package/dist/bundle/chunk-SM7Z2BQF.js +561 -0
- package/dist/bundle/{chunk-QXC6IEH6.js → chunk-SODB63MR.js} +201 -423
- package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-SSFGSY77.js} +10320 -9907
- package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
- package/dist/bundle/{chunk-BKSQBBYG.js → chunk-SUQT4KI2.js} +9 -9
- package/dist/bundle/{chunk-YPNWIB6H.js → chunk-SWQDKO6D.js} +3 -3
- package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
- package/dist/bundle/{chunk-3N2OFXB5.js → chunk-T3OK6AYZ.js} +5 -5
- package/dist/bundle/{chunk-HKY7X6NY.js → chunk-TFIAD57H.js} +4 -4
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-XMMFBPGC.js → chunk-TUL6MCTY.js} +3 -3
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-UL5HSHFU.js} +4 -4
- package/dist/bundle/{chunk-3EBBLKIT.js → chunk-UT64BBEP.js} +4 -4
- package/dist/bundle/{chunk-26DHFMGZ.js → chunk-VBIZD5V5.js} +2 -2
- package/dist/bundle/chunk-VHTELRUA.js +50 -0
- package/dist/bundle/chunk-VOQICE3G.js +340 -0
- package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-WDJRUNQN.js} +35 -12
- package/dist/bundle/{chunk-2UUWXPOB.js → chunk-X5CXANSA.js} +3 -3
- package/dist/bundle/{chunk-35SCQ4VI.js → chunk-X6HPQKAI.js} +43 -35
- package/dist/bundle/{chunk-COJSWDNU.js → chunk-XKWQDQ4B.js} +3 -3
- package/dist/bundle/{chunk-6SJOTNHF.js → chunk-XZEVHUKI.js} +6 -28
- package/dist/bundle/{chunk-JZHBZOJR.js → chunk-YE7DJB3F.js} +3 -3
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-2BVVU7GG.js → chunk-YJVQ5GST.js} +1 -1
- package/dist/bundle/{chunk-ZM63SUHG.js → chunk-YRCGFSRR.js} +2 -2
- package/dist/bundle/{chunk-EOEU3AZN.js → chunk-ZNFXKFGF.js} +13 -13
- package/dist/bundle/{cli-556DERZL.js → cli-KXRWXGTS.js} +217 -114
- package/dist/bundle/command-contract-BGNT7MTQ.js +45 -0
- package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-7FZX74T6.js} +36 -34
- package/dist/bundle/{decode-QU24MWMN.js → decode-SZ6W34U3.js} +10 -10
- package/dist/bundle/{dispatch-4KODNOXV.js → dispatch-4KNSZ3PI.js} +10 -10
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ISH62J4E.js} +2 -2
- package/dist/bundle/{embed-KG27KG3D.js → embed-6ODGTZPK.js} +10 -10
- package/dist/bundle/{embedder-IPAVUQUV.js → embedder-6FY67FTQ.js} +15 -15
- package/dist/bundle/entry-2SA6ZX7E.js +25 -0
- package/dist/bundle/{failure-ESL7ETL4.js → failure-V3ILKUTX.js} +4 -4
- package/dist/bundle/first-run-ZNKPPD6M.js +31 -0
- package/dist/bundle/first-screen-WF6GYLPN.js +45 -0
- package/dist/bundle/google-QCADNPCQ.js +46 -0
- package/dist/bundle/{google-api-VCDBSNOW.js → google-api-ZTI3NKZX.js} +88 -73
- package/dist/bundle/grants-BPN5AGDK.js +133 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-VP6XLPKJ.js +998 -0
- package/dist/bundle/hast-util-to-mdast-IZ5PRX72.js +2272 -0
- package/dist/bundle/{identity-LOWMVGZY.js → identity-YX4IPGOO.js} +7 -6
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-G5ZGHVFB.js} +1 -1
- package/dist/bundle/{login-7GBONT7V.js → login-CVX5VJX6.js} +96 -81
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MQ2L5IIM.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js} +137 -195
- package/dist/bundle/mdast-util-gfm-AQW6R6MG.js +925 -0
- package/dist/bundle/mdast-util-to-hast-DF2QVIRV.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-XYLXB3Z3.js +18 -0
- package/dist/bundle/meeting-combined-HKZJMJ6Q.js +28 -0
- package/dist/bundle/meeting-model-DSE4GRVE.js +29 -0
- package/dist/bundle/{meeting-semantic-G7PFOKU7.js → meeting-semantic-OHG2QN2G.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-GRL24TU6.js → micromark-extension-gfm-OE2GBORZ.js} +11 -78
- package/dist/bundle/{node-MPEQSFI3.js → node-NLJINXVQ.js} +2 -2
- package/dist/bundle/{node-sqlite-OLQMAYB4.js → node-sqlite-KDFQDYVZ.js} +10 -10
- package/dist/bundle/notes-search-3VBVSQ3R.js +70 -0
- package/dist/bundle/oauth-M3E62ZHC.js +22 -0
- package/dist/bundle/{open-OXTE672W.js → open-WVRUVBIZ.js} +8 -8
- package/dist/bundle/{openai-EB3TPIZY.js → openai-JJWOSJMV.js} +22 -21
- package/dist/bundle/{process-F6TKXWWA.js → process-LPVAYRO7.js} +1 -1
- package/dist/bundle/{program-4IFDZ7FM.js → program-ZJRIP25J.js} +276 -1149
- package/dist/bundle/{prompt-F5RRHPN2.js → prompt-XCDHTEAO.js} +8 -8
- package/dist/bundle/{reasons-UORHJDHK.js → reasons-REEEQDAZ.js} +6 -5
- package/dist/bundle/{recognize-DAVNZND3.js → recognize-OZLFDJAT.js} +7 -7
- package/dist/bundle/remote-MDPYVCZB.js +35 -0
- package/dist/bundle/{rerank-CND2GVLZ.js → rerank-FLZWJNHA.js} +11 -11
- package/dist/bundle/{serve-ZHSPUIGX.js → serve-5UV5VLRV.js} +19 -19
- package/dist/bundle/{server-YMAK4LHC.js → server-53A2X2MK.js} +89 -70
- package/dist/bundle/server-5GMURMDE.js +97 -0
- package/dist/bundle/{services-ZILSFJ6E.js → services-XSMH7BXB.js} +109 -89
- package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-E3L7ENFU.js} +9 -9
- package/dist/bundle/{start-CR6X25RT.js → start-4S2VNR4J.js} +7 -7
- package/dist/bundle/{state-YFPHVIIJ.js → state-TQI4JSH7.js} +9 -9
- package/dist/bundle/{store-CL4ZJZRI.js → store-GS7PU6PJ.js} +38 -23
- package/dist/bundle/{store-UODRT6X4.js → store-VYJPL7MW.js} +36 -25
- package/dist/bundle/store-maintenance-command-JJVYUZMG.js +85 -0
- package/dist/bundle/surface-JC4XVMZR.js +83 -0
- package/dist/bundle/tokens-KJQ5EAPW.js +133 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +8 -22
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +14 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +2 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/generated/manifest.d.ts +2 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +782 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +262 -58
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +5 -5
- package/dist/google.js.map +1 -1
- package/dist/model.d.ts +5 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/policy-keys.js +1 -1
- package/dist/policy-keys.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -4
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +6 -1
- package/dist/state.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -7
- package/dist/store.js.map +1 -1
- package/dist/supported.d.ts +2 -2
- package/dist/supported.d.ts.map +1 -1
- package/dist/supported.js +2 -3
- package/dist/supported.js.map +1 -1
- package/dist/sync.d.ts +2 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -2
- package/dist/sync.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/find-decision.md +1 -1
- package/skills/drive-cli/SKILL.md +4 -2
- package/dist/bundle/chunk-J5Q5FS2N.js +0 -593
- package/dist/bundle/chunk-L46C6HQ7.js +0 -729
- package/dist/bundle/chunk-UDMNY63V.js +0 -899
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-VRTOAV6W.js +0 -43
- package/dist/bundle/entry-MVXQETWS.js +0 -25
- package/dist/bundle/first-run-4UVLW2WR.js +0 -31
- package/dist/bundle/first-screen-JAKAIINI.js +0 -41
- package/dist/bundle/google-22NXXJX5.js +0 -45
- package/dist/bundle/grants-MQMTVCRQ.js +0 -118
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
- package/dist/bundle/meeting-combined-LVP4AZKA.js +0 -27
- package/dist/bundle/meeting-model-RAY5XDXZ.js +0 -29
- package/dist/bundle/oauth-SGH2I2BY.js +0 -22
- package/dist/bundle/remote-D5EYYIAU.js +0 -35
- package/dist/bundle/server-DUVJWP3Q.js +0 -80
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +0 -72
- package/dist/bundle/tokens-AF7QOFOF.js +0 -118
package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js}
RENAMED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
toString
|
|
5
|
-
} from "./chunk-XFLCVHSQ.js";
|
|
6
3
|
import {
|
|
7
4
|
EditMap,
|
|
8
5
|
attention,
|
|
@@ -16,7 +13,6 @@ import {
|
|
|
16
13
|
codeText,
|
|
17
14
|
combineExtensions,
|
|
18
15
|
content,
|
|
19
|
-
decodeNamedCharacterReference,
|
|
20
16
|
definition,
|
|
21
17
|
factorySpace,
|
|
22
18
|
hardBreakEscape,
|
|
@@ -34,35 +30,31 @@ import {
|
|
|
34
30
|
splice,
|
|
35
31
|
subtokenize,
|
|
36
32
|
thematicBreak
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-STUPCKAA.js";
|
|
34
|
+
import {
|
|
35
|
+
stringifyPosition
|
|
36
|
+
} from "./chunk-YHWFF6DN.js";
|
|
38
37
|
import {
|
|
39
|
-
markdownLineEnding,
|
|
40
38
|
normalizeIdentifier
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-F4BX7TH2.js";
|
|
40
|
+
import {
|
|
41
|
+
decodeNumericCharacterReference,
|
|
42
|
+
decodeString
|
|
43
|
+
} from "./chunk-35FIJGTT.js";
|
|
44
|
+
import {
|
|
45
|
+
decodeNamedCharacterReference
|
|
46
|
+
} from "./chunk-SZ7XJZGH.js";
|
|
47
|
+
import {
|
|
48
|
+
toString
|
|
49
|
+
} from "./chunk-XFLCVHSQ.js";
|
|
50
|
+
import {
|
|
51
|
+
markdownLineEnding
|
|
52
|
+
} from "./chunk-UC7JLE6J.js";
|
|
42
53
|
import {
|
|
43
54
|
__export,
|
|
44
55
|
__name
|
|
45
56
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
57
|
|
|
47
|
-
// node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.js
|
|
48
|
-
function decodeNumericCharacterReference(value, base) {
|
|
49
|
-
const code = Number.parseInt(value, base);
|
|
50
|
-
if (
|
|
51
|
-
// C0 except for HT, LF, FF, CR, space.
|
|
52
|
-
code < 9 || code === 11 || code > 13 && code < 32 || // Control character (DEL) of C0, and C1 controls.
|
|
53
|
-
code > 126 && code < 160 || // Lone high surrogates and low surrogates.
|
|
54
|
-
code > 55295 && code < 57344 || // Noncharacters.
|
|
55
|
-
code > 64975 && code < 65008 || /* eslint-disable no-bitwise */
|
|
56
|
-
(code & 65535) === 65535 || (code & 65535) === 65534 || /* eslint-enable no-bitwise */
|
|
57
|
-
// Out of range
|
|
58
|
-
code > 1114111
|
|
59
|
-
) {
|
|
60
|
-
return "\uFFFD";
|
|
61
|
-
}
|
|
62
|
-
return String.fromCodePoint(code);
|
|
63
|
-
}
|
|
64
|
-
__name(decodeNumericCharacterReference, "decodeNumericCharacterReference");
|
|
65
|
-
|
|
66
58
|
// node_modules/.pnpm/micromark@4.0.3/node_modules/micromark/lib/initialize/content.js
|
|
67
59
|
var content2 = {
|
|
68
60
|
tokenize: initializeContent
|
|
@@ -151,24 +143,24 @@ function initializeDocument(effects) {
|
|
|
151
143
|
}
|
|
152
144
|
const indexBeforeExits = self.events.length;
|
|
153
145
|
let indexBeforeFlow = indexBeforeExits;
|
|
154
|
-
let
|
|
146
|
+
let point2;
|
|
155
147
|
while (indexBeforeFlow--) {
|
|
156
148
|
if (self.events[indexBeforeFlow][0] === "exit" && self.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
157
|
-
|
|
149
|
+
point2 = self.events[indexBeforeFlow][1].end;
|
|
158
150
|
break;
|
|
159
151
|
}
|
|
160
152
|
}
|
|
161
153
|
exitContainers(continued);
|
|
162
|
-
let
|
|
163
|
-
while (
|
|
164
|
-
self.events[
|
|
165
|
-
...
|
|
154
|
+
let index = indexBeforeExits;
|
|
155
|
+
while (index < self.events.length) {
|
|
156
|
+
self.events[index][1].end = {
|
|
157
|
+
...point2
|
|
166
158
|
};
|
|
167
|
-
|
|
159
|
+
index++;
|
|
168
160
|
}
|
|
169
161
|
const editMap = new EditMap();
|
|
170
162
|
editMap.add(indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
|
|
171
|
-
editMap.add(indexBeforeExits,
|
|
163
|
+
editMap.add(indexBeforeExits, index - indexBeforeExits, []);
|
|
172
164
|
editMap.consume(self.events);
|
|
173
165
|
return checkNewContainers(code);
|
|
174
166
|
}
|
|
@@ -263,13 +255,13 @@ function initializeDocument(effects) {
|
|
|
263
255
|
childFlow.defineSkip(token.start);
|
|
264
256
|
childFlow.write(stream);
|
|
265
257
|
if (self.parser.lazy[token.start.line]) {
|
|
266
|
-
let
|
|
267
|
-
while (
|
|
258
|
+
let index = childFlow.events.length;
|
|
259
|
+
while (index--) {
|
|
268
260
|
if (
|
|
269
261
|
// The token starts before the line ending…
|
|
270
|
-
childFlow.events[
|
|
271
|
-
(!childFlow.events[
|
|
272
|
-
childFlow.events[
|
|
262
|
+
childFlow.events[index][1].start.offset < lineStartOffset && // …and either is not ended yet…
|
|
263
|
+
(!childFlow.events[index][1].end || // …or ends after it.
|
|
264
|
+
childFlow.events[index][1].end.offset > lineStartOffset)
|
|
273
265
|
) {
|
|
274
266
|
return;
|
|
275
267
|
}
|
|
@@ -277,35 +269,35 @@ function initializeDocument(effects) {
|
|
|
277
269
|
const indexBeforeExits = self.events.length;
|
|
278
270
|
let indexBeforeFlow = indexBeforeExits;
|
|
279
271
|
let seen;
|
|
280
|
-
let
|
|
272
|
+
let point2;
|
|
281
273
|
while (indexBeforeFlow--) {
|
|
282
274
|
if (self.events[indexBeforeFlow][0] === "exit" && self.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
283
275
|
if (seen) {
|
|
284
|
-
|
|
276
|
+
point2 = self.events[indexBeforeFlow][1].end;
|
|
285
277
|
break;
|
|
286
278
|
}
|
|
287
279
|
seen = true;
|
|
288
280
|
}
|
|
289
281
|
}
|
|
290
282
|
exitContainers(continued);
|
|
291
|
-
|
|
292
|
-
while (
|
|
293
|
-
self.events[
|
|
294
|
-
...
|
|
283
|
+
index = indexBeforeExits;
|
|
284
|
+
while (index < self.events.length) {
|
|
285
|
+
self.events[index][1].end = {
|
|
286
|
+
...point2
|
|
295
287
|
};
|
|
296
|
-
|
|
288
|
+
index++;
|
|
297
289
|
}
|
|
298
290
|
const editMap = new EditMap();
|
|
299
291
|
editMap.add(indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
|
|
300
|
-
editMap.add(indexBeforeExits,
|
|
292
|
+
editMap.add(indexBeforeExits, index - indexBeforeExits, []);
|
|
301
293
|
editMap.consume(self.events);
|
|
302
294
|
}
|
|
303
295
|
}
|
|
304
296
|
__name(writeToChild, "writeToChild");
|
|
305
297
|
function exitContainers(size) {
|
|
306
|
-
let
|
|
307
|
-
while (
|
|
308
|
-
const entry = stack[
|
|
298
|
+
let index = stack.length;
|
|
299
|
+
while (index-- > size) {
|
|
300
|
+
const entry = stack[index];
|
|
309
301
|
self.containerState = entry[1];
|
|
310
302
|
entry[0].exit.call(self, effects);
|
|
311
303
|
}
|
|
@@ -411,10 +403,10 @@ function initializeFactory(field) {
|
|
|
411
403
|
return true;
|
|
412
404
|
}
|
|
413
405
|
const list2 = constructs[code];
|
|
414
|
-
let
|
|
406
|
+
let index = -1;
|
|
415
407
|
if (list2) {
|
|
416
|
-
while (++
|
|
417
|
-
const item = list2[
|
|
408
|
+
while (++index < list2.length) {
|
|
409
|
+
const item = list2[index];
|
|
418
410
|
if (!item.previous || item.previous.call(self, self.previous)) {
|
|
419
411
|
return true;
|
|
420
412
|
}
|
|
@@ -430,19 +422,19 @@ __name(initializeFactory, "initializeFactory");
|
|
|
430
422
|
function createResolver(extraResolver) {
|
|
431
423
|
return resolveAllText;
|
|
432
424
|
function resolveAllText(events, context) {
|
|
433
|
-
let
|
|
425
|
+
let index = -1;
|
|
434
426
|
let enter;
|
|
435
|
-
while (++
|
|
427
|
+
while (++index <= events.length) {
|
|
436
428
|
if (enter === void 0) {
|
|
437
|
-
if (events[
|
|
438
|
-
enter =
|
|
439
|
-
|
|
429
|
+
if (events[index] && events[index][1].type === "data") {
|
|
430
|
+
enter = index;
|
|
431
|
+
index++;
|
|
440
432
|
}
|
|
441
|
-
} else if (!events[
|
|
442
|
-
if (
|
|
443
|
-
events[enter][1].end = events[
|
|
444
|
-
events.splice(enter + 2,
|
|
445
|
-
|
|
433
|
+
} else if (!events[index] || events[index][1].type !== "data") {
|
|
434
|
+
if (index !== enter + 2) {
|
|
435
|
+
events[enter][1].end = events[index - 1][1].end;
|
|
436
|
+
events.splice(enter + 2, index - enter - 2);
|
|
437
|
+
index = enter + 2;
|
|
446
438
|
}
|
|
447
439
|
enter = void 0;
|
|
448
440
|
}
|
|
@@ -459,12 +451,12 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
459
451
|
if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
|
|
460
452
|
const data = events[eventIndex - 1][1];
|
|
461
453
|
const chunks = context.sliceStream(data);
|
|
462
|
-
let
|
|
454
|
+
let index = chunks.length;
|
|
463
455
|
let bufferIndex = -1;
|
|
464
456
|
let size = 0;
|
|
465
457
|
let tabs;
|
|
466
|
-
while (
|
|
467
|
-
const chunk = chunks[
|
|
458
|
+
while (index--) {
|
|
459
|
+
const chunk = chunks[index];
|
|
468
460
|
if (typeof chunk === "string") {
|
|
469
461
|
bufferIndex = chunk.length;
|
|
470
462
|
while (chunk.charCodeAt(bufferIndex - 1) === 32) {
|
|
@@ -480,7 +472,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
480
472
|
size++;
|
|
481
473
|
} else if (chunk === -1) {
|
|
482
474
|
} else {
|
|
483
|
-
|
|
475
|
+
index++;
|
|
484
476
|
break;
|
|
485
477
|
}
|
|
486
478
|
}
|
|
@@ -491,8 +483,8 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
491
483
|
const token = {
|
|
492
484
|
type: eventIndex === events.length || tabs || size < 2 ? "lineSuffix" : "hardBreakTrailing",
|
|
493
485
|
start: {
|
|
494
|
-
_bufferIndex:
|
|
495
|
-
_index: data.start._index +
|
|
486
|
+
_bufferIndex: index ? bufferIndex : data.start._bufferIndex + bufferIndex,
|
|
487
|
+
_index: data.start._index + index,
|
|
496
488
|
line: data.end.line,
|
|
497
489
|
column: data.end.column - size,
|
|
498
490
|
offset: data.end.offset - size
|
|
@@ -595,7 +587,7 @@ var disable = {
|
|
|
595
587
|
|
|
596
588
|
// node_modules/.pnpm/micromark@4.0.3/node_modules/micromark/lib/create-tokenizer.js
|
|
597
589
|
function createTokenizer(parser, initialize, from) {
|
|
598
|
-
let
|
|
590
|
+
let point2 = {
|
|
599
591
|
_bufferIndex: -1,
|
|
600
592
|
_index: 0,
|
|
601
593
|
line: from && from.line || 1,
|
|
@@ -661,7 +653,7 @@ function createTokenizer(parser, initialize, from) {
|
|
|
661
653
|
line,
|
|
662
654
|
column,
|
|
663
655
|
offset
|
|
664
|
-
} =
|
|
656
|
+
} = point2;
|
|
665
657
|
return {
|
|
666
658
|
_bufferIndex,
|
|
667
659
|
_index,
|
|
@@ -677,15 +669,15 @@ function createTokenizer(parser, initialize, from) {
|
|
|
677
669
|
}
|
|
678
670
|
__name(defineSkip, "defineSkip");
|
|
679
671
|
function main() {
|
|
680
|
-
while (
|
|
681
|
-
const chunk = chunks[
|
|
672
|
+
while (point2._index < chunks.length) {
|
|
673
|
+
const chunk = chunks[point2._index];
|
|
682
674
|
if (typeof chunk === "string") {
|
|
683
|
-
const chunkIndex =
|
|
684
|
-
if (
|
|
685
|
-
|
|
675
|
+
const chunkIndex = point2._index;
|
|
676
|
+
if (point2._bufferIndex < 0) {
|
|
677
|
+
point2._bufferIndex = 0;
|
|
686
678
|
}
|
|
687
|
-
while (
|
|
688
|
-
go(chunk.charCodeAt(
|
|
679
|
+
while (point2._index === chunkIndex && point2._bufferIndex < chunk.length) {
|
|
680
|
+
go(chunk.charCodeAt(point2._bufferIndex));
|
|
689
681
|
}
|
|
690
682
|
} else {
|
|
691
683
|
go(chunk);
|
|
@@ -701,24 +693,24 @@ function createTokenizer(parser, initialize, from) {
|
|
|
701
693
|
__name(go, "go");
|
|
702
694
|
function consume(code) {
|
|
703
695
|
if (markdownLineEnding(code)) {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
696
|
+
point2.line++;
|
|
697
|
+
point2.column = 1;
|
|
698
|
+
point2.offset += code === -3 ? 2 : 1;
|
|
707
699
|
accountForPotentialSkip();
|
|
708
700
|
} else if (code !== -1) {
|
|
709
|
-
|
|
710
|
-
|
|
701
|
+
point2.column++;
|
|
702
|
+
point2.offset++;
|
|
711
703
|
}
|
|
712
|
-
if (
|
|
713
|
-
|
|
704
|
+
if (point2._bufferIndex < 0) {
|
|
705
|
+
point2._index++;
|
|
714
706
|
} else {
|
|
715
|
-
|
|
716
|
-
if (
|
|
707
|
+
point2._bufferIndex++;
|
|
708
|
+
if (point2._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
717
709
|
// strings.
|
|
718
710
|
/** @type {string} */
|
|
719
|
-
chunks[
|
|
720
|
-
|
|
721
|
-
|
|
711
|
+
chunks[point2._index].length) {
|
|
712
|
+
point2._bufferIndex = -1;
|
|
713
|
+
point2._index++;
|
|
722
714
|
}
|
|
723
715
|
}
|
|
724
716
|
context.previous = code;
|
|
@@ -857,7 +849,7 @@ function createTokenizer(parser, initialize, from) {
|
|
|
857
849
|
restore
|
|
858
850
|
};
|
|
859
851
|
function restore() {
|
|
860
|
-
|
|
852
|
+
point2 = startPoint;
|
|
861
853
|
context.previous = startPrevious;
|
|
862
854
|
context.currentConstruct = startCurrentConstruct;
|
|
863
855
|
context.events.length = startEventsIndex;
|
|
@@ -868,9 +860,9 @@ function createTokenizer(parser, initialize, from) {
|
|
|
868
860
|
}
|
|
869
861
|
__name(store, "store");
|
|
870
862
|
function accountForPotentialSkip() {
|
|
871
|
-
if (
|
|
872
|
-
|
|
873
|
-
|
|
863
|
+
if (point2.line in columnStart && point2.column < 2) {
|
|
864
|
+
point2.column = columnStart[point2.line];
|
|
865
|
+
point2.offset += columnStart[point2.line] - 1;
|
|
874
866
|
}
|
|
875
867
|
}
|
|
876
868
|
__name(accountForPotentialSkip, "accountForPotentialSkip");
|
|
@@ -902,11 +894,11 @@ function sliceChunks(chunks, token) {
|
|
|
902
894
|
}
|
|
903
895
|
__name(sliceChunks, "sliceChunks");
|
|
904
896
|
function serializeChunks(chunks, expandTabs) {
|
|
905
|
-
let
|
|
897
|
+
let index = -1;
|
|
906
898
|
const result = [];
|
|
907
899
|
let atTab;
|
|
908
|
-
while (++
|
|
909
|
-
const chunk = chunks[
|
|
900
|
+
while (++index < chunks.length) {
|
|
901
|
+
const chunk = chunks[index];
|
|
910
902
|
let value;
|
|
911
903
|
if (typeof chunk === "string") {
|
|
912
904
|
value = chunk;
|
|
@@ -1066,56 +1058,6 @@ function preprocess() {
|
|
|
1066
1058
|
}
|
|
1067
1059
|
__name(preprocess, "preprocess");
|
|
1068
1060
|
|
|
1069
|
-
// node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js
|
|
1070
|
-
var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
1071
|
-
function decodeString(value) {
|
|
1072
|
-
return value.replace(characterEscapeOrReference, decode);
|
|
1073
|
-
}
|
|
1074
|
-
__name(decodeString, "decodeString");
|
|
1075
|
-
function decode($0, $1, $2) {
|
|
1076
|
-
if ($1) {
|
|
1077
|
-
return $1;
|
|
1078
|
-
}
|
|
1079
|
-
const head = $2.charCodeAt(0);
|
|
1080
|
-
if (head === 35) {
|
|
1081
|
-
const head2 = $2.charCodeAt(1);
|
|
1082
|
-
const hex = head2 === 120 || head2 === 88;
|
|
1083
|
-
return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10);
|
|
1084
|
-
}
|
|
1085
|
-
return decodeNamedCharacterReference($2) || $0;
|
|
1086
|
-
}
|
|
1087
|
-
__name(decode, "decode");
|
|
1088
|
-
|
|
1089
|
-
// node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js
|
|
1090
|
-
function stringifyPosition(value) {
|
|
1091
|
-
if (!value || typeof value !== "object") {
|
|
1092
|
-
return "";
|
|
1093
|
-
}
|
|
1094
|
-
if ("position" in value || "type" in value) {
|
|
1095
|
-
return position(value.position);
|
|
1096
|
-
}
|
|
1097
|
-
if ("start" in value || "end" in value) {
|
|
1098
|
-
return position(value);
|
|
1099
|
-
}
|
|
1100
|
-
if ("line" in value || "column" in value) {
|
|
1101
|
-
return point(value);
|
|
1102
|
-
}
|
|
1103
|
-
return "";
|
|
1104
|
-
}
|
|
1105
|
-
__name(stringifyPosition, "stringifyPosition");
|
|
1106
|
-
function point(point3) {
|
|
1107
|
-
return index(point3 && point3.line) + ":" + index(point3 && point3.column);
|
|
1108
|
-
}
|
|
1109
|
-
__name(point, "point");
|
|
1110
|
-
function position(pos) {
|
|
1111
|
-
return point(pos && pos.start) + "-" + point(pos && pos.end);
|
|
1112
|
-
}
|
|
1113
|
-
__name(position, "position");
|
|
1114
|
-
function index(value) {
|
|
1115
|
-
return value && typeof value === "number" ? value : 1;
|
|
1116
|
-
}
|
|
1117
|
-
__name(index, "index");
|
|
1118
|
-
|
|
1119
1061
|
// node_modules/.pnpm/mdast-util-from-markdown@2.1.0/node_modules/mdast-util-from-markdown/lib/index.js
|
|
1120
1062
|
var own = {}.hasOwnProperty;
|
|
1121
1063
|
function fromMarkdown(value, encoding, options) {
|
|
@@ -1248,11 +1190,11 @@ function compiler(options) {
|
|
|
1248
1190
|
};
|
|
1249
1191
|
const listStack = [];
|
|
1250
1192
|
const prepared = [];
|
|
1251
|
-
let
|
|
1252
|
-
while (++
|
|
1253
|
-
prepared.push(events[
|
|
1254
|
-
if (events[
|
|
1255
|
-
if (events[
|
|
1193
|
+
let index = -1;
|
|
1194
|
+
while (++index < events.length) {
|
|
1195
|
+
prepared.push(events[index]);
|
|
1196
|
+
if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
|
|
1197
|
+
if (events[index][0] === "enter") {
|
|
1256
1198
|
listStack.push(prepared.length - 1);
|
|
1257
1199
|
} else {
|
|
1258
1200
|
const tail = listStack.pop();
|
|
@@ -1261,26 +1203,26 @@ function compiler(options) {
|
|
|
1261
1203
|
}
|
|
1262
1204
|
}
|
|
1263
1205
|
events = prepared;
|
|
1264
|
-
|
|
1265
|
-
while (++
|
|
1266
|
-
const handler = config[events[
|
|
1267
|
-
if (events[
|
|
1206
|
+
index = -1;
|
|
1207
|
+
while (++index < events.length) {
|
|
1208
|
+
const handler = config[events[index][0]];
|
|
1209
|
+
if (events[index][0] === "enter" && config.beforeEnter.length > 0) {
|
|
1268
1210
|
callListeners(config.beforeEnter, {
|
|
1269
1211
|
...context,
|
|
1270
|
-
sliceSerialize: events[
|
|
1271
|
-
}, events[
|
|
1212
|
+
sliceSerialize: events[index][2].sliceSerialize
|
|
1213
|
+
}, events[index][1]);
|
|
1272
1214
|
}
|
|
1273
|
-
if (own.call(handler, events[
|
|
1274
|
-
handler[events[
|
|
1215
|
+
if (own.call(handler, events[index][1].type)) {
|
|
1216
|
+
handler[events[index][1].type].call({
|
|
1275
1217
|
...context,
|
|
1276
|
-
sliceSerialize: events[
|
|
1277
|
-
}, events[
|
|
1218
|
+
sliceSerialize: events[index][2].sliceSerialize
|
|
1219
|
+
}, events[index][1]);
|
|
1278
1220
|
}
|
|
1279
|
-
if (events[
|
|
1221
|
+
if (events[index][0] === "exit" && config.afterExit.length > 0) {
|
|
1280
1222
|
callListeners(config.afterExit, {
|
|
1281
1223
|
...context,
|
|
1282
|
-
sliceSerialize: events[
|
|
1283
|
-
}, events[
|
|
1224
|
+
sliceSerialize: events[index][2].sliceSerialize
|
|
1225
|
+
}, events[index][1]);
|
|
1284
1226
|
}
|
|
1285
1227
|
}
|
|
1286
1228
|
if (context.tokenStack.length > 0) {
|
|
@@ -1289,34 +1231,34 @@ function compiler(options) {
|
|
|
1289
1231
|
handler.call(context, void 0, tail[0]);
|
|
1290
1232
|
}
|
|
1291
1233
|
tree.position = {
|
|
1292
|
-
start:
|
|
1234
|
+
start: point(events.length > 0 ? events[0][1].start : {
|
|
1293
1235
|
line: 1,
|
|
1294
1236
|
column: 1,
|
|
1295
1237
|
offset: 0
|
|
1296
1238
|
}),
|
|
1297
|
-
end:
|
|
1239
|
+
end: point(events.length > 0 ? events[events.length - 2][1].end : {
|
|
1298
1240
|
line: 1,
|
|
1299
1241
|
column: 1,
|
|
1300
1242
|
offset: 0
|
|
1301
1243
|
})
|
|
1302
1244
|
};
|
|
1303
|
-
|
|
1304
|
-
while (++
|
|
1305
|
-
tree = config.transforms[
|
|
1245
|
+
index = -1;
|
|
1246
|
+
while (++index < config.transforms.length) {
|
|
1247
|
+
tree = config.transforms[index](tree) || tree;
|
|
1306
1248
|
}
|
|
1307
1249
|
return tree;
|
|
1308
1250
|
}
|
|
1309
1251
|
__name(compile, "compile");
|
|
1310
1252
|
function callListeners(listeners, context, token) {
|
|
1311
|
-
let
|
|
1312
|
-
while (++
|
|
1313
|
-
listeners[
|
|
1253
|
+
let index = -1;
|
|
1254
|
+
while (++index < listeners.length) {
|
|
1255
|
+
listeners[index].call(context, token);
|
|
1314
1256
|
}
|
|
1315
1257
|
}
|
|
1316
1258
|
__name(callListeners, "callListeners");
|
|
1317
1259
|
function prepareList(events, start) {
|
|
1318
1260
|
const end = events.length - 1;
|
|
1319
|
-
let
|
|
1261
|
+
let index = start - 1;
|
|
1320
1262
|
let containerBalance = -1;
|
|
1321
1263
|
let listSpread = false;
|
|
1322
1264
|
let listItem2;
|
|
@@ -1324,8 +1266,8 @@ function compiler(options) {
|
|
|
1324
1266
|
let firstBlankLineIndex;
|
|
1325
1267
|
let atMarker;
|
|
1326
1268
|
const insertions = [];
|
|
1327
|
-
while (++
|
|
1328
|
-
const event = events[
|
|
1269
|
+
while (++index <= end) {
|
|
1270
|
+
const event = events[index];
|
|
1329
1271
|
switch (event[1].type) {
|
|
1330
1272
|
case "listUnordered":
|
|
1331
1273
|
case "listOrdered":
|
|
@@ -1341,7 +1283,7 @@ function compiler(options) {
|
|
|
1341
1283
|
case "lineEndingBlank": {
|
|
1342
1284
|
if (event[0] === "enter") {
|
|
1343
1285
|
if (listItem2 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
1344
|
-
firstBlankLineIndex =
|
|
1286
|
+
firstBlankLineIndex = index;
|
|
1345
1287
|
}
|
|
1346
1288
|
atMarker = void 0;
|
|
1347
1289
|
}
|
|
@@ -1360,7 +1302,7 @@ function compiler(options) {
|
|
|
1360
1302
|
}
|
|
1361
1303
|
if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
|
|
1362
1304
|
if (listItem2) {
|
|
1363
|
-
let tailIndex =
|
|
1305
|
+
let tailIndex = index;
|
|
1364
1306
|
lineIndex = void 0;
|
|
1365
1307
|
while (tailIndex--) {
|
|
1366
1308
|
const tailEvent = events[tailIndex];
|
|
@@ -1382,7 +1324,7 @@ function compiler(options) {
|
|
|
1382
1324
|
}
|
|
1383
1325
|
listItem2.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
|
|
1384
1326
|
insertions.push({
|
|
1385
|
-
at: lineIndex ||
|
|
1327
|
+
at: lineIndex || index,
|
|
1386
1328
|
event: ["exit", listItem2, event[2]]
|
|
1387
1329
|
});
|
|
1388
1330
|
}
|
|
@@ -1396,7 +1338,7 @@ function compiler(options) {
|
|
|
1396
1338
|
};
|
|
1397
1339
|
listItem2 = item;
|
|
1398
1340
|
insertions.push({
|
|
1399
|
-
at:
|
|
1341
|
+
at: index,
|
|
1400
1342
|
event: ["enter", item, event[2]]
|
|
1401
1343
|
});
|
|
1402
1344
|
firstBlankLineIndex = void 0;
|
|
@@ -1406,12 +1348,12 @@ function compiler(options) {
|
|
|
1406
1348
|
}
|
|
1407
1349
|
const listEvents = events.splice(start);
|
|
1408
1350
|
let insertion = 0;
|
|
1409
|
-
|
|
1410
|
-
while (++
|
|
1411
|
-
while (insertion < insertions.length && insertions[insertion].at === start +
|
|
1351
|
+
index = -1;
|
|
1352
|
+
while (++index < listEvents.length) {
|
|
1353
|
+
while (insertion < insertions.length && insertions[insertion].at === start + index) {
|
|
1412
1354
|
events.push(insertions[insertion++].event);
|
|
1413
1355
|
}
|
|
1414
|
-
events.push(listEvents[
|
|
1356
|
+
events.push(listEvents[index]);
|
|
1415
1357
|
}
|
|
1416
1358
|
events[start][1]._spread = listSpread;
|
|
1417
1359
|
}
|
|
@@ -1439,7 +1381,7 @@ function compiler(options) {
|
|
|
1439
1381
|
this.stack.push(node);
|
|
1440
1382
|
this.tokenStack.push([token, errorHandler || void 0]);
|
|
1441
1383
|
node.position = {
|
|
1442
|
-
start:
|
|
1384
|
+
start: point(token.start),
|
|
1443
1385
|
// @ts-expect-error: `end` will be patched later.
|
|
1444
1386
|
end: void 0
|
|
1445
1387
|
};
|
|
@@ -1471,7 +1413,7 @@ function compiler(options) {
|
|
|
1471
1413
|
handler.call(this, token, open[0]);
|
|
1472
1414
|
}
|
|
1473
1415
|
}
|
|
1474
|
-
node.position.end =
|
|
1416
|
+
node.position.end = point(token.end);
|
|
1475
1417
|
}
|
|
1476
1418
|
__name(exit, "exit");
|
|
1477
1419
|
function resume() {
|
|
@@ -1568,7 +1510,7 @@ function compiler(options) {
|
|
|
1568
1510
|
if (!tail || tail.type !== "text") {
|
|
1569
1511
|
tail = text3();
|
|
1570
1512
|
tail.position = {
|
|
1571
|
-
start:
|
|
1513
|
+
start: point(token.start),
|
|
1572
1514
|
// @ts-expect-error: we’ll add `end` later.
|
|
1573
1515
|
end: void 0
|
|
1574
1516
|
};
|
|
@@ -1580,14 +1522,14 @@ function compiler(options) {
|
|
|
1580
1522
|
function onexitdata(token) {
|
|
1581
1523
|
const tail = this.stack.pop();
|
|
1582
1524
|
tail.value += this.sliceSerialize(token);
|
|
1583
|
-
tail.position.end =
|
|
1525
|
+
tail.position.end = point(token.end);
|
|
1584
1526
|
}
|
|
1585
1527
|
__name(onexitdata, "onexitdata");
|
|
1586
1528
|
function onexitlineending(token) {
|
|
1587
1529
|
const context = this.stack[this.stack.length - 1];
|
|
1588
1530
|
if (this.data.atHardBreak) {
|
|
1589
1531
|
const tail = context.children[context.children.length - 1];
|
|
1590
|
-
tail.position.end =
|
|
1532
|
+
tail.position.end = point(token.end);
|
|
1591
1533
|
this.data.atHardBreak = void 0;
|
|
1592
1534
|
return;
|
|
1593
1535
|
}
|
|
@@ -1718,7 +1660,7 @@ function compiler(options) {
|
|
|
1718
1660
|
__name(onexitcharacterreferencevalue, "onexitcharacterreferencevalue");
|
|
1719
1661
|
function onexitcharacterreference(token) {
|
|
1720
1662
|
const tail = this.stack.pop();
|
|
1721
|
-
tail.position.end =
|
|
1663
|
+
tail.position.end = point(token.end);
|
|
1722
1664
|
}
|
|
1723
1665
|
__name(onexitcharacterreference, "onexitcharacterreference");
|
|
1724
1666
|
function onexitautolinkprotocol(token) {
|
|
@@ -1877,18 +1819,18 @@ function compiler(options) {
|
|
|
1877
1819
|
__name(thematicBreak2, "thematicBreak");
|
|
1878
1820
|
}
|
|
1879
1821
|
__name(compiler, "compiler");
|
|
1880
|
-
function
|
|
1822
|
+
function point(d) {
|
|
1881
1823
|
return {
|
|
1882
1824
|
line: d.line,
|
|
1883
1825
|
column: d.column,
|
|
1884
1826
|
offset: d.offset
|
|
1885
1827
|
};
|
|
1886
1828
|
}
|
|
1887
|
-
__name(
|
|
1829
|
+
__name(point, "point");
|
|
1888
1830
|
function configure(combined, extensions) {
|
|
1889
|
-
let
|
|
1890
|
-
while (++
|
|
1891
|
-
const value = extensions[
|
|
1831
|
+
let index = -1;
|
|
1832
|
+
while (++index < extensions.length) {
|
|
1833
|
+
const value = extensions[index];
|
|
1892
1834
|
if (Array.isArray(value)) {
|
|
1893
1835
|
configure(combined, value);
|
|
1894
1836
|
} else {
|