nolo-cli 0.30.0 → 1.0.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.
Files changed (102) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-MYLWE5K2.js} +31 -30
  2. package/{action-FENWPT3C.js → action-P5NVIGGG.js} +7 -7
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-V2QQUJ32.js} +6 -6
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-536QKJ6L.js} +5 -5
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-RIILFDSH.js} +24 -23
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-KWJ5CUHY.js} +36 -35
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-BZZSDNCU.js} +26 -25
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-Q7LS3LQH.js} +24 -23
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-SJUBM3AJ.js} +35 -34
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-6O2VTHXQ.js} +35 -34
  11. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-43ZQHP35.js} +21 -20
  12. package/{agentSlice-3ZHY7RAO.js → agentSlice-JLADUWUP.js} +6 -6
  13. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-4UNQSSWN.js} +25 -24
  14. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-KG2BZXOG.js} +25 -24
  15. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-KF7DF2YA.js} +25 -24
  16. package/{appGetCommands-UOCWYJPV.js → appGetCommands-QPHSEE5N.js} +25 -24
  17. package/{appListCommands-EOKWTXPW.js → appListCommands-F3EP542I.js} +25 -24
  18. package/{authCommand-H5KE7K7K.js → authCommand-YLP77TMC.js} +5 -5
  19. package/{chunk-IZ3CBMD5.js → chunk-2U6OW2C3.js} +4 -4
  20. package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
  21. package/{chunk-TJYWZ3LO.js → chunk-75XQT73Q.js} +2 -2
  22. package/{chunk-7CD24PU4.js → chunk-B4HGX366.js} +6 -6
  23. package/{chunk-KWKD3BCC.js → chunk-BSMTXN5T.js} +11 -11
  24. package/{chunk-MMCVBEAD.js → chunk-D6K6XCUJ.js} +25 -23
  25. package/{chunk-A4JDTA5T.js → chunk-DFPTW7QE.js} +6 -6
  26. package/{chunk-YWGSCF37.js → chunk-DWZMXGKK.js} +1 -1
  27. package/{chunk-ZFTCLBEX.js → chunk-E5WZMGFH.js} +417 -237
  28. package/{chunk-DCWBP2O7.js → chunk-EAKXD6CA.js} +10 -10
  29. package/{chunk-VSTUQGLT.js → chunk-ECHKECDC.js} +170 -42
  30. package/{chunk-QLV2GKU5.js → chunk-FCHECEX7.js} +7 -5
  31. package/{chunk-DWQNDGO7.js → chunk-FD6FKCDH.js} +2 -2
  32. package/{chunk-GAGUBI42.js → chunk-GD5XAUJ3.js} +5 -5
  33. package/{chunk-VP4WJWKW.js → chunk-GM6PU7B6.js} +431 -345
  34. package/{chunk-KW47OSRJ.js → chunk-HC73BU6M.js} +50 -70
  35. package/{chunk-3LY4F7SV.js → chunk-INZZJSQF.js} +348 -331
  36. package/{chunk-G6VITLCZ.js → chunk-IT7IN5AX.js} +2 -2
  37. package/{chunk-Q24P6TUS.js → chunk-JQFRQWGN.js} +1 -1
  38. package/{chunk-FS5TTXPS.js → chunk-JZTOEZJ4.js} +4 -4
  39. package/{chunk-UKC5HU2C.js → chunk-KHYNTGOT.js} +5 -5
  40. package/{chunk-MEUZFIAJ.js → chunk-KMGSN747.js} +1 -1
  41. package/{chunk-CV6I4HBA.js → chunk-KR6G42Z2.js} +1 -1
  42. package/{chunk-HI7QZNWX.js → chunk-KU6JXKVW.js} +4 -4
  43. package/{chunk-2XM5KUNE.js → chunk-LE5PV7CF.js} +2 -2
  44. package/{chunk-SWOTB2TX.js → chunk-LOZF4FBI.js} +43 -36
  45. package/{chunk-66O5MZYH.js → chunk-MZIHJGB5.js} +1 -1
  46. package/{chunk-T3Y5EMJS.js → chunk-N6F6HKEE.js} +1 -1
  47. package/{chunk-DI6MXJK5.js → chunk-NHOV2D4N.js} +16 -14
  48. package/{chunk-HLG6GAUD.js → chunk-NLEEVJZU.js} +1 -1
  49. package/{chunk-446VANPP.js → chunk-OJE3M2CY.js} +4 -4
  50. package/{chunk-DKRT67FG.js → chunk-OMR6FM26.js} +3 -3
  51. package/{chunk-GVKTKT3O.js → chunk-ORCLFNKB.js} +3 -3
  52. package/{chunk-BOL2D2JW.js → chunk-QGSD46W6.js} +2 -2
  53. package/{chunk-L3VQOVKK.js → chunk-R3YEGS4D.js} +3 -3
  54. package/{chunk-56IUA7RU.js → chunk-RXGTXWYH.js} +1 -1
  55. package/{chunk-UTQZ73QQ.js → chunk-SVZ6MSA3.js} +1 -1
  56. package/{chunk-YLADSPDU.js → chunk-U2I2DYUD.js} +2 -2
  57. package/chunk-UD4A2FNM.js +7923 -0
  58. package/{chunk-OYK7PA5U.js → chunk-UEH4ANWR.js} +6 -6
  59. package/chunk-UUNZE2KQ.js +5558 -0
  60. package/{chunk-3RIWR23B.js → chunk-VWBCW4JY.js} +1 -1
  61. package/{chunk-SZ5CBYMZ.js → chunk-W427FQJD.js} +2 -2
  62. package/{chunk-W2YKDXT7.js → chunk-XBACY73D.js} +1 -1
  63. package/{chunk-G5JHHUAK.js → chunk-XD6JM3SC.js} +1 -1
  64. package/{chunk-XD5NQEOH.js → chunk-ZIKG63EC.js} +1 -1
  65. package/{clipboardy-BVE3LVEH.js → clipboardy-MMBYVRLF.js} +166 -372
  66. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-B6ZSNUUI.js} +12 -11
  67. package/{createDialogAction-R5MCL4RE.js → createDialogAction-G34J7HP5.js} +13 -12
  68. package/{createPageAction-QYTG656R.js → createPageAction-KL4OCNNH.js} +14 -13
  69. package/{dbSlice-OBV7VFCF.js → dbSlice-6IRTSQLA.js} +5 -5
  70. package/{deleteFile-AC45HYSM.js → deleteFile-TSEW36N4.js} +3 -3
  71. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-PHH75OPO.js} +25 -24
  72. package/{dialogSlice-CFDECXEU.js → dialogSlice-2B5AGZXL.js} +11 -11
  73. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-2EZAGRNU.js} +24 -23
  74. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-ZYL2JBF2.js} +25 -24
  75. package/{docReadCommands-6J7MUUX6.js → docReadCommands-Q5HGLLRZ.js} +24 -23
  76. package/{docStore-MZZWJM4F.js → docStore-CCQWPWYV.js} +13 -12
  77. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-KGOPINTR.js} +24 -23
  78. package/{getPricing-XQYSSVV6.js → getPricing-6FIKFX4A.js} +2 -2
  79. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-TS5MF7R4.js} +11 -11
  80. package/index.js +58 -58
  81. package/{lib-FYYBQIXS.js → lib-2ZTNRXR4.js} +432 -183
  82. package/{machineCommands-Z2QEWTHZ.js → machineCommands-4UGY53XP.js} +34 -33
  83. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-6KNOLLYI.js} +34 -33
  84. package/package.json +1 -1
  85. package/{read-QK7ZRX6G.js → read-UMWKE5D4.js} +3 -3
  86. package/{readDocTool-EYDMVRBL.js → readDocTool-FEHZDVEE.js} +1 -1
  87. package/{readlineWorkspace-EY3BPXIU.js → readlineWorkspace-7YWWGBSU.js} +97 -59
  88. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-X32EDHZX.js} +7 -7
  89. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-UQ23LEWR.js} +27 -26
  90. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-VGI5CCSY.js} +6 -6
  91. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-QOFXGQT6.js} +7 -7
  92. package/{settingSlice-JKKV2T7O.js → settingSlice-RHSYAKFT.js} +6 -6
  93. package/{slateUtils-2M7MUTWX.js → slateUtils-VO2FU36K.js} +1 -1
  94. package/{spaceCommands-R6AEQNLG.js → spaceCommands-GH5DTWKY.js} +208 -26
  95. package/{spaceSlice-MCH7RLLP.js → spaceSlice-AW66HZHQ.js} +12 -11
  96. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-TZQZFDJQ.js} +32 -30
  97. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-KX56UKUF.js} +5 -5
  98. package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
  99. package/{tools-Y3UBLLYW.js → tools-FO7J53WL.js} +22 -21
  100. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-OX5M2GJW.js} +3 -3
  101. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-FVDTGJNA.js} +15 -13
  102. package/chunk-THTAR67C.js +0 -16338
@@ -2333,11 +2333,7 @@ var content = {
2333
2333
  tokenize: initializeContent
2334
2334
  };
2335
2335
  function initializeContent(effects) {
2336
- const contentStart = effects.attempt(
2337
- this.parser.constructs.contentInitial,
2338
- afterContentStartConstruct,
2339
- paragraphInitial
2340
- );
2336
+ const contentStart = effects.attempt(this.parser.constructs.contentInitial, afterContentStartConstruct, paragraphInitial);
2341
2337
  let previous3;
2342
2338
  return contentStart;
2343
2339
  function afterContentStartConstruct(code2) {
@@ -2401,11 +2397,7 @@ function initializeDocument(effects) {
2401
2397
  if (continued < stack.length) {
2402
2398
  const item = stack[continued];
2403
2399
  self.containerState = item[1];
2404
- return effects.attempt(
2405
- item[0].continuation,
2406
- documentContinue,
2407
- checkNewContainers
2408
- )(code2);
2400
+ return effects.attempt(item[0].continuation, documentContinue, checkNewContainers)(code2);
2409
2401
  }
2410
2402
  return checkNewContainers(code2);
2411
2403
  }
@@ -2428,15 +2420,12 @@ function initializeDocument(effects) {
2428
2420
  exitContainers(continued);
2429
2421
  let index2 = indexBeforeExits;
2430
2422
  while (index2 < self.events.length) {
2431
- self.events[index2][1].end = Object.assign({}, point3);
2423
+ self.events[index2][1].end = {
2424
+ ...point3
2425
+ };
2432
2426
  index2++;
2433
2427
  }
2434
- splice(
2435
- self.events,
2436
- indexBeforeFlow + 1,
2437
- 0,
2438
- self.events.slice(indexBeforeExits)
2439
- );
2428
+ splice(self.events, indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
2440
2429
  self.events.length = index2;
2441
2430
  return checkNewContainers(code2);
2442
2431
  }
@@ -2450,16 +2439,10 @@ function initializeDocument(effects) {
2450
2439
  if (childFlow.currentConstruct && childFlow.currentConstruct.concrete) {
2451
2440
  return flowStart(code2);
2452
2441
  }
2453
- self.interrupt = Boolean(
2454
- childFlow.currentConstruct && !childFlow._gfmTableDynamicInterruptHack
2455
- );
2442
+ self.interrupt = Boolean(childFlow.currentConstruct && !childFlow._gfmTableDynamicInterruptHack);
2456
2443
  }
2457
2444
  self.containerState = {};
2458
- return effects.check(
2459
- containerConstruct,
2460
- thereIsANewContainer,
2461
- thereIsNoNewContainer
2462
- )(code2);
2445
+ return effects.check(containerConstruct, thereIsANewContainer, thereIsNoNewContainer)(code2);
2463
2446
  }
2464
2447
  function thereIsANewContainer(code2) {
2465
2448
  if (childFlow) closeFlow();
@@ -2473,11 +2456,7 @@ function initializeDocument(effects) {
2473
2456
  }
2474
2457
  function documentContinued(code2) {
2475
2458
  self.containerState = {};
2476
- return effects.attempt(
2477
- containerConstruct,
2478
- containerContinue,
2479
- flowStart
2480
- )(code2);
2459
+ return effects.attempt(containerConstruct, containerContinue, flowStart)(code2);
2481
2460
  }
2482
2461
  function containerContinue(code2) {
2483
2462
  continued++;
@@ -2493,9 +2472,9 @@ function initializeDocument(effects) {
2493
2472
  }
2494
2473
  childFlow = childFlow || self.parser.flow(self.now());
2495
2474
  effects.enter("chunkFlow", {
2475
+ _tokenizer: childFlow,
2496
2476
  contentType: "flow",
2497
- previous: childToken,
2498
- _tokenizer: childFlow
2477
+ previous: childToken
2499
2478
  });
2500
2479
  return flowContinue(code2);
2501
2480
  }
@@ -2516,9 +2495,9 @@ function initializeDocument(effects) {
2516
2495
  effects.consume(code2);
2517
2496
  return flowContinue;
2518
2497
  }
2519
- function writeToChild(token, eof) {
2498
+ function writeToChild(token, endOfFile) {
2520
2499
  const stream = self.sliceStream(token);
2521
- if (eof) stream.push(null);
2500
+ if (endOfFile) stream.push(null);
2522
2501
  token.previous = childToken;
2523
2502
  if (childToken) childToken.next = token;
2524
2503
  childToken = token;
@@ -2552,15 +2531,12 @@ function initializeDocument(effects) {
2552
2531
  exitContainers(continued);
2553
2532
  index2 = indexBeforeExits;
2554
2533
  while (index2 < self.events.length) {
2555
- self.events[index2][1].end = Object.assign({}, point3);
2534
+ self.events[index2][1].end = {
2535
+ ...point3
2536
+ };
2556
2537
  index2++;
2557
2538
  }
2558
- splice(
2559
- self.events,
2560
- indexBeforeFlow + 1,
2561
- 0,
2562
- self.events.slice(indexBeforeExits)
2563
- );
2539
+ splice(self.events, indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
2564
2540
  self.events.length = index2;
2565
2541
  }
2566
2542
  }
@@ -2581,12 +2557,7 @@ function initializeDocument(effects) {
2581
2557
  }
2582
2558
  }
2583
2559
  function tokenizeContainer(effects, ok3, nok) {
2584
- return factorySpace(
2585
- effects,
2586
- effects.attempt(this.parser.constructs.document, ok3, nok),
2587
- "linePrefix",
2588
- this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
2589
- );
2560
+ return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok3, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2590
2561
  }
2591
2562
 
2592
2563
  // node_modules/micromark-util-classify-character/index.js
@@ -2616,8 +2587,8 @@ function resolveAll(constructs2, events, context) {
2616
2587
  // node_modules/micromark-core-commonmark/lib/attention.js
2617
2588
  var attention = {
2618
2589
  name: "attention",
2619
- tokenize: tokenizeAttention,
2620
- resolveAll: resolveAllAttention
2590
+ resolveAll: resolveAllAttention,
2591
+ tokenize: tokenizeAttention
2621
2592
  };
2622
2593
  function resolveAllAttention(events, context) {
2623
2594
  let index2 = -1;
@@ -2639,32 +2610,52 @@ function resolveAllAttention(events, context) {
2639
2610
  continue;
2640
2611
  }
2641
2612
  use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index2][1].end.offset - events[index2][1].start.offset > 1 ? 2 : 1;
2642
- const start = Object.assign({}, events[open][1].end);
2643
- const end = Object.assign({}, events[index2][1].start);
2613
+ const start = {
2614
+ ...events[open][1].end
2615
+ };
2616
+ const end = {
2617
+ ...events[index2][1].start
2618
+ };
2644
2619
  movePoint(start, -use);
2645
2620
  movePoint(end, use);
2646
2621
  openingSequence = {
2647
2622
  type: use > 1 ? "strongSequence" : "emphasisSequence",
2648
2623
  start,
2649
- end: Object.assign({}, events[open][1].end)
2624
+ end: {
2625
+ ...events[open][1].end
2626
+ }
2650
2627
  };
2651
2628
  closingSequence = {
2652
2629
  type: use > 1 ? "strongSequence" : "emphasisSequence",
2653
- start: Object.assign({}, events[index2][1].start),
2630
+ start: {
2631
+ ...events[index2][1].start
2632
+ },
2654
2633
  end
2655
2634
  };
2656
2635
  text4 = {
2657
2636
  type: use > 1 ? "strongText" : "emphasisText",
2658
- start: Object.assign({}, events[open][1].end),
2659
- end: Object.assign({}, events[index2][1].start)
2637
+ start: {
2638
+ ...events[open][1].end
2639
+ },
2640
+ end: {
2641
+ ...events[index2][1].start
2642
+ }
2660
2643
  };
2661
2644
  group = {
2662
2645
  type: use > 1 ? "strong" : "emphasis",
2663
- start: Object.assign({}, openingSequence.start),
2664
- end: Object.assign({}, closingSequence.end)
2646
+ start: {
2647
+ ...openingSequence.start
2648
+ },
2649
+ end: {
2650
+ ...closingSequence.end
2651
+ }
2652
+ };
2653
+ events[open][1].end = {
2654
+ ...openingSequence.start
2655
+ };
2656
+ events[index2][1].start = {
2657
+ ...closingSequence.end
2665
2658
  };
2666
- events[open][1].end = Object.assign({}, openingSequence.start);
2667
- events[index2][1].start = Object.assign({}, closingSequence.end);
2668
2659
  nextEvents = [];
2669
2660
  if (events[open][1].end.offset - events[open][1].start.offset) {
2670
2661
  nextEvents = push(nextEvents, [["enter", events[open][1], context], ["exit", events[open][1], context]]);
@@ -2827,8 +2818,8 @@ function tokenizeAutolink(effects, ok3, nok) {
2827
2818
 
2828
2819
  // node_modules/micromark-core-commonmark/lib/blank-line.js
2829
2820
  var blankLine = {
2830
- tokenize: tokenizeBlankLine,
2831
- partial: true
2821
+ partial: true,
2822
+ tokenize: tokenizeBlankLine
2832
2823
  };
2833
2824
  function tokenizeBlankLine(effects, ok3, nok) {
2834
2825
  return start;
@@ -2842,12 +2833,12 @@ function tokenizeBlankLine(effects, ok3, nok) {
2842
2833
 
2843
2834
  // node_modules/micromark-core-commonmark/lib/block-quote.js
2844
2835
  var blockQuote = {
2845
- name: "blockQuote",
2846
- tokenize: tokenizeBlockQuoteStart,
2847
2836
  continuation: {
2848
2837
  tokenize: tokenizeBlockQuoteContinuation
2849
2838
  },
2850
- exit
2839
+ exit,
2840
+ name: "blockQuote",
2841
+ tokenize: tokenizeBlockQuoteStart
2851
2842
  };
2852
2843
  function tokenizeBlockQuoteStart(effects, ok3, nok) {
2853
2844
  const self = this;
@@ -2991,19 +2982,19 @@ function tokenizeCharacterReference(effects, ok3, nok) {
2991
2982
 
2992
2983
  // node_modules/micromark-core-commonmark/lib/code-fenced.js
2993
2984
  var nonLazyContinuation = {
2994
- tokenize: tokenizeNonLazyContinuation,
2995
- partial: true
2985
+ partial: true,
2986
+ tokenize: tokenizeNonLazyContinuation
2996
2987
  };
2997
2988
  var codeFenced = {
2989
+ concrete: true,
2998
2990
  name: "codeFenced",
2999
- tokenize: tokenizeCodeFenced,
3000
- concrete: true
2991
+ tokenize: tokenizeCodeFenced
3001
2992
  };
3002
2993
  function tokenizeCodeFenced(effects, ok3, nok) {
3003
2994
  const self = this;
3004
2995
  const closeStart = {
3005
- tokenize: tokenizeCloseStart,
3006
- partial: true
2996
+ partial: true,
2997
+ tokenize: tokenizeCloseStart
3007
2998
  };
3008
2999
  let initialPrefix = 0;
3009
3000
  let sizeOpen = 0;
@@ -3178,8 +3169,8 @@ var codeIndented = {
3178
3169
  tokenize: tokenizeCodeIndented
3179
3170
  };
3180
3171
  var furtherStart = {
3181
- tokenize: tokenizeFurtherStart,
3182
- partial: true
3172
+ partial: true,
3173
+ tokenize: tokenizeFurtherStart
3183
3174
  };
3184
3175
  function tokenizeCodeIndented(effects, ok3, nok) {
3185
3176
  const self = this;
@@ -3239,9 +3230,9 @@ function tokenizeFurtherStart(effects, ok3, nok) {
3239
3230
  // node_modules/micromark-core-commonmark/lib/code-text.js
3240
3231
  var codeText = {
3241
3232
  name: "codeText",
3242
- tokenize: tokenizeCodeText,
3233
+ previous,
3243
3234
  resolve: resolveCodeText,
3244
- previous
3235
+ tokenize: tokenizeCodeText
3245
3236
  };
3246
3237
  function resolveCodeText(events) {
3247
3238
  let tailExitIndex = events.length - 4;
@@ -3598,12 +3589,15 @@ function subtokenize(eventsArray) {
3598
3589
  otherEvent[1].type = "lineEnding";
3599
3590
  lineIndex = otherIndex;
3600
3591
  }
3592
+ } else if (otherEvent[1].type === "linePrefix" || otherEvent[1].type === "listItemIndent") {
3601
3593
  } else {
3602
3594
  break;
3603
3595
  }
3604
3596
  }
3605
3597
  if (lineIndex) {
3606
- event[1].end = Object.assign({}, events.get(lineIndex)[1].start);
3598
+ event[1].end = {
3599
+ ...events.get(lineIndex)[1].start
3600
+ };
3607
3601
  parameters = events.slice(lineIndex, index2);
3608
3602
  parameters.unshift(event);
3609
3603
  events.splice(lineIndex, index2 - lineIndex + 1, parameters);
@@ -3618,7 +3612,13 @@ function subcontent(events, eventIndex) {
3618
3612
  const context = events.get(eventIndex)[2];
3619
3613
  let startPosition = eventIndex - 1;
3620
3614
  const startPositions = [];
3621
- const tokenizer = token._tokenizer || context.parser[token.contentType](token.start);
3615
+ let tokenizer = token._tokenizer;
3616
+ if (!tokenizer) {
3617
+ tokenizer = context.parser[token.contentType](token.start);
3618
+ if (token._contentTypeTextTrailing) {
3619
+ tokenizer._contentTypeTextTrailing = true;
3620
+ }
3621
+ }
3622
3622
  const childEvents = tokenizer.events;
3623
3623
  const jumps = [];
3624
3624
  const gaps = {};
@@ -3690,12 +3690,12 @@ function subcontent(events, eventIndex) {
3690
3690
 
3691
3691
  // node_modules/micromark-core-commonmark/lib/content.js
3692
3692
  var content2 = {
3693
- tokenize: tokenizeContent,
3694
- resolve: resolveContent
3693
+ resolve: resolveContent,
3694
+ tokenize: tokenizeContent
3695
3695
  };
3696
3696
  var continuationConstruct = {
3697
- tokenize: tokenizeContinuation,
3698
- partial: true
3697
+ partial: true,
3698
+ tokenize: tokenizeContinuation
3699
3699
  };
3700
3700
  function resolveContent(events) {
3701
3701
  subtokenize(events);
@@ -3987,11 +3987,7 @@ function factoryWhitespace(effects, ok3) {
3987
3987
  return start;
3988
3988
  }
3989
3989
  if (markdownSpace(code2)) {
3990
- return factorySpace(
3991
- effects,
3992
- start,
3993
- seen ? "linePrefix" : "lineSuffix"
3994
- )(code2);
3990
+ return factorySpace(effects, start, seen ? "linePrefix" : "lineSuffix")(code2);
3995
3991
  }
3996
3992
  return ok3(code2);
3997
3993
  }
@@ -4003,8 +3999,8 @@ var definition = {
4003
3999
  tokenize: tokenizeDefinition
4004
4000
  };
4005
4001
  var titleBefore = {
4006
- tokenize: tokenizeTitleBefore,
4007
- partial: true
4002
+ partial: true,
4003
+ tokenize: tokenizeTitleBefore
4008
4004
  };
4009
4005
  function tokenizeDefinition(effects, ok3, nok) {
4010
4006
  const self = this;
@@ -4107,8 +4103,8 @@ function tokenizeHardBreakEscape(effects, ok3, nok) {
4107
4103
  // node_modules/micromark-core-commonmark/lib/heading-atx.js
4108
4104
  var headingAtx = {
4109
4105
  name: "headingAtx",
4110
- tokenize: tokenizeHeadingAtx,
4111
- resolve: resolveHeadingAtx
4106
+ resolve: resolveHeadingAtx,
4107
+ tokenize: tokenizeHeadingAtx
4112
4108
  };
4113
4109
  function resolveHeadingAtx(events, context) {
4114
4110
  let contentEnd = events.length - 2;
@@ -4264,18 +4260,18 @@ var htmlRawNames = ["pre", "script", "style", "textarea"];
4264
4260
 
4265
4261
  // node_modules/micromark-core-commonmark/lib/html-flow.js
4266
4262
  var htmlFlow = {
4263
+ concrete: true,
4267
4264
  name: "htmlFlow",
4268
- tokenize: tokenizeHtmlFlow,
4269
4265
  resolveTo: resolveToHtmlFlow,
4270
- concrete: true
4266
+ tokenize: tokenizeHtmlFlow
4271
4267
  };
4272
4268
  var blankLineBefore = {
4273
- tokenize: tokenizeBlankLineBefore,
4274
- partial: true
4269
+ partial: true,
4270
+ tokenize: tokenizeBlankLineBefore
4275
4271
  };
4276
4272
  var nonLazyContinuationStart = {
4277
- tokenize: tokenizeNonLazyContinuationStart,
4278
- partial: true
4273
+ partial: true,
4274
+ tokenize: tokenizeNonLazyContinuationStart
4279
4275
  };
4280
4276
  function resolveToHtmlFlow(events) {
4281
4277
  let index2 = events.length;
@@ -4950,9 +4946,9 @@ function tokenizeHtmlText(effects, ok3, nok) {
4950
4946
  // node_modules/micromark-core-commonmark/lib/label-end.js
4951
4947
  var labelEnd = {
4952
4948
  name: "labelEnd",
4953
- tokenize: tokenizeLabelEnd,
4949
+ resolveAll: resolveAllLabelEnd,
4954
4950
  resolveTo: resolveToLabelEnd,
4955
- resolveAll: resolveAllLabelEnd
4951
+ tokenize: tokenizeLabelEnd
4956
4952
  };
4957
4953
  var resourceConstruct = {
4958
4954
  tokenize: tokenizeResource
@@ -4965,14 +4961,19 @@ var referenceCollapsedConstruct = {
4965
4961
  };
4966
4962
  function resolveAllLabelEnd(events) {
4967
4963
  let index2 = -1;
4964
+ const newEvents = [];
4968
4965
  while (++index2 < events.length) {
4969
4966
  const token = events[index2][1];
4967
+ newEvents.push(events[index2]);
4970
4968
  if (token.type === "labelImage" || token.type === "labelLink" || token.type === "labelEnd") {
4971
- events.splice(index2 + 1, token.type === "labelImage" ? 4 : 2);
4969
+ const offset = token.type === "labelImage" ? 4 : 2;
4972
4970
  token.type = "data";
4973
- index2++;
4971
+ index2 += offset;
4974
4972
  }
4975
4973
  }
4974
+ if (events.length !== newEvents.length) {
4975
+ splice(events, 0, events.length, newEvents);
4976
+ }
4976
4977
  return events;
4977
4978
  }
4978
4979
  function resolveToLabelEnd(events, context) {
@@ -5005,18 +5006,30 @@ function resolveToLabelEnd(events, context) {
5005
5006
  }
5006
5007
  const group = {
5007
5008
  type: events[open][1].type === "labelLink" ? "link" : "image",
5008
- start: Object.assign({}, events[open][1].start),
5009
- end: Object.assign({}, events[events.length - 1][1].end)
5009
+ start: {
5010
+ ...events[open][1].start
5011
+ },
5012
+ end: {
5013
+ ...events[events.length - 1][1].end
5014
+ }
5010
5015
  };
5011
5016
  const label = {
5012
5017
  type: "label",
5013
- start: Object.assign({}, events[open][1].start),
5014
- end: Object.assign({}, events[close][1].end)
5018
+ start: {
5019
+ ...events[open][1].start
5020
+ },
5021
+ end: {
5022
+ ...events[close][1].end
5023
+ }
5015
5024
  };
5016
5025
  const text4 = {
5017
5026
  type: "labelText",
5018
- start: Object.assign({}, events[open + offset + 2][1].end),
5019
- end: Object.assign({}, events[close - 2][1].start)
5027
+ start: {
5028
+ ...events[open + offset + 2][1].end
5029
+ },
5030
+ end: {
5031
+ ...events[close - 2][1].start
5032
+ }
5020
5033
  };
5021
5034
  media = [["enter", group, context], ["enter", label, context]];
5022
5035
  media = push(media, events.slice(open + 1, open + offset + 3));
@@ -5159,8 +5172,8 @@ function tokenizeReferenceCollapsed(effects, ok3, nok) {
5159
5172
  // node_modules/micromark-core-commonmark/lib/label-start-image.js
5160
5173
  var labelStartImage = {
5161
5174
  name: "labelStartImage",
5162
- tokenize: tokenizeLabelStartImage,
5163
- resolveAll: labelEnd.resolveAll
5175
+ resolveAll: labelEnd.resolveAll,
5176
+ tokenize: tokenizeLabelStartImage
5164
5177
  };
5165
5178
  function tokenizeLabelStartImage(effects, ok3, nok) {
5166
5179
  const self = this;
@@ -5190,8 +5203,8 @@ function tokenizeLabelStartImage(effects, ok3, nok) {
5190
5203
  // node_modules/micromark-core-commonmark/lib/label-start-link.js
5191
5204
  var labelStartLink = {
5192
5205
  name: "labelStartLink",
5193
- tokenize: tokenizeLabelStartLink,
5194
- resolveAll: labelEnd.resolveAll
5206
+ resolveAll: labelEnd.resolveAll,
5207
+ tokenize: tokenizeLabelStartLink
5195
5208
  };
5196
5209
  function tokenizeLabelStartLink(effects, ok3, nok) {
5197
5210
  const self = this;
@@ -5265,20 +5278,20 @@ function tokenizeThematicBreak(effects, ok3, nok) {
5265
5278
 
5266
5279
  // node_modules/micromark-core-commonmark/lib/list.js
5267
5280
  var list = {
5268
- name: "list",
5269
- tokenize: tokenizeListStart,
5270
5281
  continuation: {
5271
5282
  tokenize: tokenizeListContinuation
5272
5283
  },
5273
- exit: tokenizeListEnd
5284
+ exit: tokenizeListEnd,
5285
+ name: "list",
5286
+ tokenize: tokenizeListStart
5274
5287
  };
5275
5288
  var listItemPrefixWhitespaceConstruct = {
5276
- tokenize: tokenizeListItemPrefixWhitespace,
5277
- partial: true
5289
+ partial: true,
5290
+ tokenize: tokenizeListItemPrefixWhitespace
5278
5291
  };
5279
5292
  var indentConstruct = {
5280
- tokenize: tokenizeIndent,
5281
- partial: true
5293
+ partial: true,
5294
+ tokenize: tokenizeIndent
5282
5295
  };
5283
5296
  function tokenizeListStart(effects, ok3, nok) {
5284
5297
  const self = this;
@@ -5396,8 +5409,8 @@ function tokenizeListItemPrefixWhitespace(effects, ok3, nok) {
5396
5409
  // node_modules/micromark-core-commonmark/lib/setext-underline.js
5397
5410
  var setextUnderline = {
5398
5411
  name: "setextUnderline",
5399
- tokenize: tokenizeSetextUnderline,
5400
- resolveTo: resolveToSetextUnderline
5412
+ resolveTo: resolveToSetextUnderline,
5413
+ tokenize: tokenizeSetextUnderline
5401
5414
  };
5402
5415
  function resolveToSetextUnderline(events, context) {
5403
5416
  let index2 = events.length;
@@ -5424,14 +5437,20 @@ function resolveToSetextUnderline(events, context) {
5424
5437
  }
5425
5438
  const heading = {
5426
5439
  type: "setextHeading",
5427
- start: Object.assign({}, events[text4][1].start),
5428
- end: Object.assign({}, events[events.length - 1][1].end)
5440
+ start: {
5441
+ ...events[content3][1].start
5442
+ },
5443
+ end: {
5444
+ ...events[events.length - 1][1].end
5445
+ }
5429
5446
  };
5430
5447
  events[text4][1].type = "setextHeadingText";
5431
5448
  if (definition2) {
5432
5449
  events.splice(text4, 0, ["enter", heading, context]);
5433
5450
  events.splice(definition2 + 1, 0, ["exit", events[content3][1], context]);
5434
- events[content3][1].end = Object.assign({}, events[definition2][1].end);
5451
+ events[content3][1].end = {
5452
+ ...events[definition2][1].end
5453
+ };
5435
5454
  } else {
5436
5455
  events[content3][1] = heading;
5437
5456
  }
@@ -5490,19 +5509,7 @@ function initializeFlow(effects) {
5490
5509
  blankLine,
5491
5510
  atBlankEnding,
5492
5511
  // Try to parse initial flow (essentially, only code).
5493
- effects.attempt(
5494
- this.parser.constructs.flowInitial,
5495
- afterConstruct,
5496
- factorySpace(
5497
- effects,
5498
- effects.attempt(
5499
- this.parser.constructs.flow,
5500
- afterConstruct,
5501
- effects.attempt(content2, afterConstruct)
5502
- ),
5503
- "linePrefix"
5504
- )
5505
- )
5512
+ effects.attempt(this.parser.constructs.flowInitial, afterConstruct, factorySpace(effects, effects.attempt(this.parser.constructs.flow, afterConstruct, effects.attempt(content2, afterConstruct)), "linePrefix"))
5506
5513
  );
5507
5514
  return initial;
5508
5515
  function atBlankEnding(code2) {
@@ -5537,10 +5544,8 @@ var string = initializeFactory("string");
5537
5544
  var text = initializeFactory("text");
5538
5545
  function initializeFactory(field) {
5539
5546
  return {
5540
- tokenize: initializeText,
5541
- resolveAll: createResolver(
5542
- field === "text" ? resolveAllLineSuffixes : void 0
5543
- )
5547
+ resolveAll: createResolver(field === "text" ? resolveAllLineSuffixes : void 0),
5548
+ tokenize: initializeText
5544
5549
  };
5545
5550
  function initializeText(effects) {
5546
5551
  const self = this;
@@ -5637,28 +5642,30 @@ function resolveAllLineSuffixes(events, context) {
5637
5642
  break;
5638
5643
  }
5639
5644
  }
5645
+ if (context._contentTypeTextTrailing && eventIndex === events.length) {
5646
+ size = 0;
5647
+ }
5640
5648
  if (size) {
5641
5649
  const token = {
5642
5650
  type: eventIndex === events.length || tabs || size < 2 ? "lineSuffix" : "hardBreakTrailing",
5643
5651
  start: {
5652
+ _bufferIndex: index2 ? bufferIndex : data.start._bufferIndex + bufferIndex,
5653
+ _index: data.start._index + index2,
5644
5654
  line: data.end.line,
5645
5655
  column: data.end.column - size,
5646
- offset: data.end.offset - size,
5647
- _index: data.start._index + index2,
5648
- _bufferIndex: index2 ? bufferIndex : data.start._bufferIndex + bufferIndex
5656
+ offset: data.end.offset - size
5649
5657
  },
5650
- end: Object.assign({}, data.end)
5658
+ end: {
5659
+ ...data.end
5660
+ }
5661
+ };
5662
+ data.end = {
5663
+ ...token.start
5651
5664
  };
5652
- data.end = Object.assign({}, token.start);
5653
5665
  if (data.start.offset === data.end.offset) {
5654
5666
  Object.assign(data, token);
5655
5667
  } else {
5656
- events.splice(
5657
- eventIndex,
5658
- 0,
5659
- ["enter", token, context],
5660
- ["exit", token, context]
5661
- );
5668
+ events.splice(eventIndex, 0, ["enter", token, context], ["exit", token, context]);
5662
5669
  eventIndex += 2;
5663
5670
  }
5664
5671
  }
@@ -5668,44 +5675,115 @@ function resolveAllLineSuffixes(events, context) {
5668
5675
  return events;
5669
5676
  }
5670
5677
 
5678
+ // node_modules/micromark/lib/constructs.js
5679
+ var constructs_exports = {};
5680
+ __export(constructs_exports, {
5681
+ attentionMarkers: () => attentionMarkers,
5682
+ contentInitial: () => contentInitial,
5683
+ disable: () => disable,
5684
+ document: () => document2,
5685
+ flow: () => flow2,
5686
+ flowInitial: () => flowInitial,
5687
+ insideSpan: () => insideSpan,
5688
+ string: () => string2,
5689
+ text: () => text2
5690
+ });
5691
+ var document2 = {
5692
+ [42]: list,
5693
+ [43]: list,
5694
+ [45]: list,
5695
+ [48]: list,
5696
+ [49]: list,
5697
+ [50]: list,
5698
+ [51]: list,
5699
+ [52]: list,
5700
+ [53]: list,
5701
+ [54]: list,
5702
+ [55]: list,
5703
+ [56]: list,
5704
+ [57]: list,
5705
+ [62]: blockQuote
5706
+ };
5707
+ var contentInitial = {
5708
+ [91]: definition
5709
+ };
5710
+ var flowInitial = {
5711
+ [-2]: codeIndented,
5712
+ [-1]: codeIndented,
5713
+ [32]: codeIndented
5714
+ };
5715
+ var flow2 = {
5716
+ [35]: headingAtx,
5717
+ [42]: thematicBreak,
5718
+ [45]: [setextUnderline, thematicBreak],
5719
+ [60]: htmlFlow,
5720
+ [61]: setextUnderline,
5721
+ [95]: thematicBreak,
5722
+ [96]: codeFenced,
5723
+ [126]: codeFenced
5724
+ };
5725
+ var string2 = {
5726
+ [38]: characterReference,
5727
+ [92]: characterEscape
5728
+ };
5729
+ var text2 = {
5730
+ [-5]: lineEnding,
5731
+ [-4]: lineEnding,
5732
+ [-3]: lineEnding,
5733
+ [33]: labelStartImage,
5734
+ [38]: characterReference,
5735
+ [42]: attention,
5736
+ [60]: [autolink, htmlText],
5737
+ [91]: labelStartLink,
5738
+ [92]: [hardBreakEscape, characterEscape],
5739
+ [93]: labelEnd,
5740
+ [95]: attention,
5741
+ [96]: codeText
5742
+ };
5743
+ var insideSpan = {
5744
+ null: [attention, resolver]
5745
+ };
5746
+ var attentionMarkers = {
5747
+ null: [42, 95]
5748
+ };
5749
+ var disable = {
5750
+ null: []
5751
+ };
5752
+
5671
5753
  // node_modules/micromark/lib/create-tokenizer.js
5672
5754
  function createTokenizer(parser, initialize, from) {
5673
- let point3 = Object.assign(
5674
- from ? Object.assign({}, from) : {
5675
- line: 1,
5676
- column: 1,
5677
- offset: 0
5678
- },
5679
- {
5680
- _index: 0,
5681
- _bufferIndex: -1
5682
- }
5683
- );
5755
+ let point3 = {
5756
+ _bufferIndex: -1,
5757
+ _index: 0,
5758
+ line: from && from.line || 1,
5759
+ column: from && from.column || 1,
5760
+ offset: from && from.offset || 0
5761
+ };
5684
5762
  const columnStart = {};
5685
5763
  const resolveAllConstructs = [];
5686
5764
  let chunks = [];
5687
5765
  let stack = [];
5688
5766
  let consumed = true;
5689
5767
  const effects = {
5768
+ attempt: constructFactory(onsuccessfulconstruct),
5769
+ check: constructFactory(onsuccessfulcheck),
5690
5770
  consume,
5691
5771
  enter,
5692
5772
  exit: exit3,
5693
- attempt: constructFactory(onsuccessfulconstruct),
5694
- check: constructFactory(onsuccessfulcheck),
5695
5773
  interrupt: constructFactory(onsuccessfulcheck, {
5696
5774
  interrupt: true
5697
5775
  })
5698
5776
  };
5699
5777
  const context = {
5700
- previous: null,
5701
5778
  code: null,
5702
5779
  containerState: {},
5780
+ defineSkip,
5703
5781
  events: [],
5782
+ now,
5704
5783
  parser,
5705
- sliceStream,
5784
+ previous: null,
5706
5785
  sliceSerialize,
5707
- now,
5708
- defineSkip,
5786
+ sliceStream,
5709
5787
  write
5710
5788
  };
5711
5789
  let state = initialize.tokenize.call(context, effects);
@@ -5731,13 +5809,19 @@ function createTokenizer(parser, initialize, from) {
5731
5809
  return sliceChunks(chunks, token);
5732
5810
  }
5733
5811
  function now() {
5734
- const { line, column, offset, _index, _bufferIndex } = point3;
5735
- return {
5812
+ const {
5813
+ _bufferIndex,
5814
+ _index,
5736
5815
  line,
5737
5816
  column,
5738
- offset,
5817
+ offset
5818
+ } = point3;
5819
+ return {
5820
+ _bufferIndex,
5739
5821
  _index,
5740
- _bufferIndex
5822
+ line,
5823
+ column,
5824
+ offset
5741
5825
  };
5742
5826
  }
5743
5827
  function defineSkip(value) {
@@ -5780,7 +5864,10 @@ function createTokenizer(parser, initialize, from) {
5780
5864
  point3._index++;
5781
5865
  } else {
5782
5866
  point3._bufferIndex++;
5783
- if (point3._bufferIndex === chunks[point3._index].length) {
5867
+ if (point3._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
5868
+ // strings.
5869
+ /** @type {string} */
5870
+ chunks[point3._index].length) {
5784
5871
  point3._bufferIndex = -1;
5785
5872
  point3._index++;
5786
5873
  }
@@ -5815,19 +5902,25 @@ function createTokenizer(parser, initialize, from) {
5815
5902
  let constructIndex;
5816
5903
  let currentConstruct;
5817
5904
  let info;
5818
- return Array.isArray(constructs2) ? handleListOfConstructs(constructs2) : "tokenize" in constructs2 ? (
5819
- // @ts-expect-error Looks like a construct.
5820
- handleListOfConstructs([constructs2])
5905
+ return Array.isArray(constructs2) ? (
5906
+ /* c8 ignore next 1 */
5907
+ handleListOfConstructs(constructs2)
5908
+ ) : "tokenize" in constructs2 ? (
5909
+ // Looks like a construct.
5910
+ handleListOfConstructs([
5911
+ /** @type {Construct} */
5912
+ constructs2
5913
+ ])
5821
5914
  ) : handleMapOfConstructs(constructs2);
5822
5915
  function handleMapOfConstructs(map) {
5823
5916
  return start;
5824
5917
  function start(code2) {
5825
- const def = code2 !== null && map[code2];
5918
+ const left = code2 !== null && map[code2];
5826
5919
  const all2 = code2 !== null && map.null;
5827
5920
  const list2 = [
5828
5921
  // To do: add more extension tests.
5829
5922
  /* c8 ignore next 2 */
5830
- ...Array.isArray(def) ? def : def ? [def] : [],
5923
+ ...Array.isArray(left) ? left : left ? [left] : [],
5831
5924
  ...Array.isArray(all2) ? all2 : all2 ? [all2] : []
5832
5925
  ];
5833
5926
  return handleListOfConstructs(list2)(code2);
@@ -5883,12 +5976,7 @@ function createTokenizer(parser, initialize, from) {
5883
5976
  resolveAllConstructs.push(construct);
5884
5977
  }
5885
5978
  if (construct.resolve) {
5886
- splice(
5887
- context.events,
5888
- from2,
5889
- context.events.length - from2,
5890
- construct.resolve(context.events.slice(from2), context)
5891
- );
5979
+ splice(context.events, from2, context.events.length - from2, construct.resolve(context.events.slice(from2), context));
5892
5980
  }
5893
5981
  if (construct.resolveTo) {
5894
5982
  context.events = construct.resolveTo(context.events, context);
@@ -5901,8 +5989,8 @@ function createTokenizer(parser, initialize, from) {
5901
5989
  const startEventsIndex = context.events.length;
5902
5990
  const startStack = Array.from(stack);
5903
5991
  return {
5904
- restore,
5905
- from: startEventsIndex
5992
+ from: startEventsIndex,
5993
+ restore
5906
5994
  };
5907
5995
  function restore() {
5908
5996
  point3 = startPoint;
@@ -5953,114 +6041,38 @@ function serializeChunks(chunks, expandTabs) {
5953
6041
  let value;
5954
6042
  if (typeof chunk === "string") {
5955
6043
  value = chunk;
5956
- } else
5957
- switch (chunk) {
5958
- case -5: {
5959
- value = "\r";
5960
- break;
5961
- }
5962
- case -4: {
5963
- value = "\n";
5964
- break;
5965
- }
5966
- case -3: {
5967
- value = "\r\n";
5968
- break;
5969
- }
5970
- case -2: {
5971
- value = expandTabs ? " " : " ";
5972
- break;
5973
- }
5974
- case -1: {
5975
- if (!expandTabs && atTab) continue;
5976
- value = " ";
5977
- break;
5978
- }
5979
- default: {
5980
- value = String.fromCharCode(chunk);
5981
- }
6044
+ } else switch (chunk) {
6045
+ case -5: {
6046
+ value = "\r";
6047
+ break;
6048
+ }
6049
+ case -4: {
6050
+ value = "\n";
6051
+ break;
6052
+ }
6053
+ case -3: {
6054
+ value = "\r\n";
6055
+ break;
6056
+ }
6057
+ case -2: {
6058
+ value = expandTabs ? " " : " ";
6059
+ break;
6060
+ }
6061
+ case -1: {
6062
+ if (!expandTabs && atTab) continue;
6063
+ value = " ";
6064
+ break;
5982
6065
  }
6066
+ default: {
6067
+ value = String.fromCharCode(chunk);
6068
+ }
6069
+ }
5983
6070
  atTab = chunk === -2;
5984
6071
  result.push(value);
5985
6072
  }
5986
6073
  return result.join("");
5987
6074
  }
5988
6075
 
5989
- // node_modules/micromark/lib/constructs.js
5990
- var constructs_exports = {};
5991
- __export(constructs_exports, {
5992
- attentionMarkers: () => attentionMarkers,
5993
- contentInitial: () => contentInitial,
5994
- disable: () => disable,
5995
- document: () => document2,
5996
- flow: () => flow2,
5997
- flowInitial: () => flowInitial,
5998
- insideSpan: () => insideSpan,
5999
- string: () => string2,
6000
- text: () => text2
6001
- });
6002
- var document2 = {
6003
- [42]: list,
6004
- [43]: list,
6005
- [45]: list,
6006
- [48]: list,
6007
- [49]: list,
6008
- [50]: list,
6009
- [51]: list,
6010
- [52]: list,
6011
- [53]: list,
6012
- [54]: list,
6013
- [55]: list,
6014
- [56]: list,
6015
- [57]: list,
6016
- [62]: blockQuote
6017
- };
6018
- var contentInitial = {
6019
- [91]: definition
6020
- };
6021
- var flowInitial = {
6022
- [-2]: codeIndented,
6023
- [-1]: codeIndented,
6024
- [32]: codeIndented
6025
- };
6026
- var flow2 = {
6027
- [35]: headingAtx,
6028
- [42]: thematicBreak,
6029
- [45]: [setextUnderline, thematicBreak],
6030
- [60]: htmlFlow,
6031
- [61]: setextUnderline,
6032
- [95]: thematicBreak,
6033
- [96]: codeFenced,
6034
- [126]: codeFenced
6035
- };
6036
- var string2 = {
6037
- [38]: characterReference,
6038
- [92]: characterEscape
6039
- };
6040
- var text2 = {
6041
- [-5]: lineEnding,
6042
- [-4]: lineEnding,
6043
- [-3]: lineEnding,
6044
- [33]: labelStartImage,
6045
- [38]: characterReference,
6046
- [42]: attention,
6047
- [60]: [autolink, htmlText],
6048
- [91]: labelStartLink,
6049
- [92]: [hardBreakEscape, characterEscape],
6050
- [93]: labelEnd,
6051
- [95]: attention,
6052
- [96]: codeText
6053
- };
6054
- var insideSpan = {
6055
- null: [attention, resolver]
6056
- };
6057
- var attentionMarkers = {
6058
- null: [42, 95]
6059
- };
6060
- var disable = {
6061
- null: []
6062
- };
6063
-
6064
6076
  // node_modules/micromark/lib/parse.js
6065
6077
  function parse(options) {
6066
6078
  const settings = options || {};
@@ -6069,12 +6081,12 @@ function parse(options) {
6069
6081
  combineExtensions([constructs_exports, ...settings.extensions || []])
6070
6082
  );
6071
6083
  const parser = {
6072
- defined: [],
6073
- lazy: {},
6074
6084
  constructs: constructs2,
6075
6085
  content: create(content),
6086
+ defined: [],
6076
6087
  document: create(document),
6077
6088
  flow: create(flow),
6089
+ lazy: {},
6078
6090
  string: create(string),
6079
6091
  text: create(text)
6080
6092
  };
@@ -6220,7 +6232,7 @@ function index(value) {
6220
6232
  // node_modules/mdast-util-from-markdown/lib/index.js
6221
6233
  var own2 = {}.hasOwnProperty;
6222
6234
  function fromMarkdown(value, encoding, options) {
6223
- if (typeof encoding !== "string") {
6235
+ if (encoding && typeof encoding === "object") {
6224
6236
  options = encoding;
6225
6237
  encoding = void 0;
6226
6238
  }
@@ -6977,7 +6989,14 @@ var convert = (
6977
6989
  return castFactory(test);
6978
6990
  }
6979
6991
  if (typeof test === "object") {
6980
- return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
6992
+ return Array.isArray(test) ? anyFactory(test) : (
6993
+ // Cast because `ReadonlyArray` goes into the above but `isArray`
6994
+ // narrows to `Array`.
6995
+ propertiesFactory(
6996
+ /** @type {Props} */
6997
+ test
6998
+ )
6999
+ );
6981
7000
  }
6982
7001
  if (typeof test === "string") {
6983
7002
  return typeFactory(test);
@@ -7000,7 +7019,7 @@ function anyFactory(tests) {
7000
7019
  return false;
7001
7020
  }
7002
7021
  }
7003
- function propsFactory(check) {
7022
+ function propertiesFactory(check) {
7004
7023
  const checkAsRecord = (
7005
7024
  /** @type {Record<string, unknown>} */
7006
7025
  check
@@ -7355,21 +7374,14 @@ function previous2(match, email) {
7355
7374
 
7356
7375
  // node_modules/mdast-util-gfm-footnote/lib/index.js
7357
7376
  footnoteReference.peek = footnoteReferencePeek;
7358
- function gfmFootnoteFromMarkdown() {
7359
- return {
7360
- enter: {
7361
- gfmFootnoteDefinition: enterFootnoteDefinition,
7362
- gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
7363
- gfmFootnoteCall: enterFootnoteCall,
7364
- gfmFootnoteCallString: enterFootnoteCallString
7365
- },
7366
- exit: {
7367
- gfmFootnoteDefinition: exitFootnoteDefinition,
7368
- gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
7369
- gfmFootnoteCall: exitFootnoteCall,
7370
- gfmFootnoteCallString: exitFootnoteCallString
7371
- }
7372
- };
7377
+ function enterFootnoteCallString() {
7378
+ this.buffer();
7379
+ }
7380
+ function enterFootnoteCall(token) {
7381
+ this.enter({ type: "footnoteReference", identifier: "", label: "" }, token);
7382
+ }
7383
+ function enterFootnoteDefinitionLabelString() {
7384
+ this.buffer();
7373
7385
  }
7374
7386
  function enterFootnoteDefinition(token) {
7375
7387
  this.enter(
@@ -7377,58 +7389,61 @@ function enterFootnoteDefinition(token) {
7377
7389
  token
7378
7390
  );
7379
7391
  }
7380
- function enterFootnoteDefinitionLabelString() {
7381
- this.buffer();
7382
- }
7383
- function exitFootnoteDefinitionLabelString(token) {
7392
+ function exitFootnoteCallString(token) {
7384
7393
  const label = this.resume();
7385
7394
  const node2 = this.stack[this.stack.length - 1];
7386
- ok(node2.type === "footnoteDefinition");
7387
- node2.label = label;
7395
+ ok(node2.type === "footnoteReference");
7388
7396
  node2.identifier = normalizeIdentifier(
7389
7397
  this.sliceSerialize(token)
7390
7398
  ).toLowerCase();
7399
+ node2.label = label;
7391
7400
  }
7392
- function exitFootnoteDefinition(token) {
7401
+ function exitFootnoteCall(token) {
7393
7402
  this.exit(token);
7394
7403
  }
7395
- function enterFootnoteCall(token) {
7396
- this.enter({ type: "footnoteReference", identifier: "", label: "" }, token);
7397
- }
7398
- function enterFootnoteCallString() {
7399
- this.buffer();
7400
- }
7401
- function exitFootnoteCallString(token) {
7404
+ function exitFootnoteDefinitionLabelString(token) {
7402
7405
  const label = this.resume();
7403
7406
  const node2 = this.stack[this.stack.length - 1];
7404
- ok(node2.type === "footnoteReference");
7405
- node2.label = label;
7407
+ ok(node2.type === "footnoteDefinition");
7406
7408
  node2.identifier = normalizeIdentifier(
7407
7409
  this.sliceSerialize(token)
7408
7410
  ).toLowerCase();
7411
+ node2.label = label;
7409
7412
  }
7410
- function exitFootnoteCall(token) {
7413
+ function exitFootnoteDefinition(token) {
7411
7414
  this.exit(token);
7412
7415
  }
7416
+ function footnoteReferencePeek() {
7417
+ return "[";
7418
+ }
7413
7419
  function footnoteReference(node2, _, state, info) {
7414
7420
  const tracker = state.createTracker(info);
7415
7421
  let value = tracker.move("[^");
7416
7422
  const exit3 = state.enter("footnoteReference");
7417
7423
  const subexit = state.enter("reference");
7418
7424
  value += tracker.move(
7419
- state.safe(state.associationId(node2), {
7420
- ...tracker.current(),
7421
- before: value,
7422
- after: "]"
7423
- })
7425
+ state.safe(state.associationId(node2), { after: "]", before: value })
7424
7426
  );
7425
7427
  subexit();
7426
7428
  exit3();
7427
7429
  value += tracker.move("]");
7428
7430
  return value;
7429
7431
  }
7430
- function footnoteReferencePeek() {
7431
- return "[";
7432
+ function gfmFootnoteFromMarkdown() {
7433
+ return {
7434
+ enter: {
7435
+ gfmFootnoteCallString: enterFootnoteCallString,
7436
+ gfmFootnoteCall: enterFootnoteCall,
7437
+ gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
7438
+ gfmFootnoteDefinition: enterFootnoteDefinition
7439
+ },
7440
+ exit: {
7441
+ gfmFootnoteCallString: exitFootnoteCallString,
7442
+ gfmFootnoteCall: exitFootnoteCall,
7443
+ gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
7444
+ gfmFootnoteDefinition: exitFootnoteDefinition
7445
+ }
7446
+ };
7432
7447
  }
7433
7448
 
7434
7449
  // node_modules/mdast-util-gfm-strikethrough/lib/index.js
@@ -8343,11 +8358,13 @@ var EditMap = class {
8343
8358
  vecs.push(events.slice(this.map[index2][0] + this.map[index2][1]), this.map[index2][2]);
8344
8359
  events.length = this.map[index2][0];
8345
8360
  }
8346
- vecs.push([...events]);
8361
+ vecs.push(events.slice());
8347
8362
  events.length = 0;
8348
8363
  let slice = vecs.pop();
8349
8364
  while (slice) {
8350
- events.push(...slice);
8365
+ for (const element of slice) {
8366
+ events.push(element);
8367
+ }
8351
8368
  slice = vecs.pop();
8352
8369
  }
8353
8370
  this.map.length = 0;