@tempots/beatui 0.38.0 → 0.40.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/dist/{2019-DxwU2aOm.cjs → 2019-nWH_nAwT.cjs} +1 -1
  2. package/dist/{2019-CGWicU9n.js → 2019-sCKLAY8c.js} +2 -2
  3. package/dist/{2020-BRNvbMGL.js → 2020-B4xCW_nu.js} +2 -2
  4. package/dist/{2020-DHep9dU6.cjs → 2020-D7RWX09D.cjs} +1 -1
  5. package/dist/{ar-CqAHPRKu.cjs → ar-D_4BfIJO.cjs} +1 -1
  6. package/dist/{ar-avevuYiW.js → ar-i2uHmy8P.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +54 -49
  9. package/dist/beatui.css +463 -59
  10. package/dist/beatui.tailwind.css +463 -59
  11. package/dist/{de--4OtRESW.cjs → de-C0PZz9sE.cjs} +1 -1
  12. package/dist/{de-Cz7ah611.js → de-CeLwmVZz.js} +1 -1
  13. package/dist/{es-CE1wRgxl.cjs → es-C8qT1ins.cjs} +1 -1
  14. package/dist/{es-CiNQQzF1.js → es-DxOgARww.js} +1 -1
  15. package/dist/{fa-Gkt0b9XN.js → fa-B9pEff8A.js} +1 -1
  16. package/dist/{fa-DjuJZNLK.cjs → fa-BFV9MxMX.cjs} +1 -1
  17. package/dist/{fr-DotyzMGL.cjs → fr-BBx5IJ7G.cjs} +1 -1
  18. package/dist/{fr-xM9p9Q6G.js → fr-Caeevx56.js} +1 -1
  19. package/dist/{he-BQ6ygVEQ.cjs → he-CMOvd4Dr.cjs} +1 -1
  20. package/dist/{he-CoO6PsiS.js → he-DeN-WW3u.js} +1 -1
  21. package/dist/{hi-DA3-4Cdo.js → hi-Dey2HxiD.js} +1 -1
  22. package/dist/{hi-BCfJ0mRh.cjs → hi-IOU_PzvH.cjs} +1 -1
  23. package/dist/{index-CesoPnvj.cjs → index-B-SyWyCc.cjs} +1 -1
  24. package/dist/{index-DJJ67-RV.js → index-B-pudlMv.js} +58 -58
  25. package/dist/{index-Dtqe3URb.cjs → index-B0ff5lT-.cjs} +4 -4
  26. package/dist/{index-i9pAnFtS.js → index-BTZqW3-b.js} +1245 -1232
  27. package/dist/{index-C5-BM51Y.cjs → index-C2VAPX2b.cjs} +1 -1
  28. package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
  29. package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
  30. package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
  31. package/dist/{index-CCu0qfNP.cjs → index-D8fg48Fv.cjs} +1 -1
  32. package/dist/{index-C_nSdynJ.js → index-DJqo6Guq.js} +1 -1
  33. package/dist/{index-CZQHL_pf.cjs → index-Dtka01mK.cjs} +12 -12
  34. package/dist/{index-C2rz3G1d.js → index-HqWBd-jW.js} +680 -677
  35. package/dist/{index-D41aREgo.js → index-IQ3lRaL0.js} +1 -1
  36. package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
  37. package/dist/index.cjs.js +4 -4
  38. package/dist/index.es.js +3349 -3064
  39. package/dist/{it-EdPuWBJR.js → it-DghnQdZa.js} +1 -1
  40. package/dist/{it-pv2Gm3jb.cjs → it-uQF0jkDT.cjs} +1 -1
  41. package/dist/{ja-CuRaPMgh.cjs → ja-BJD6uPbl.cjs} +1 -1
  42. package/dist/{ja-BSRCR430.js → ja-Kb7rxmFg.js} +1 -1
  43. package/dist/json-schema/index.cjs.js +1 -1
  44. package/dist/json-schema/index.es.js +1 -1
  45. package/dist/{ko-Dm4oD1fh.js → ko-53o5WJ-v.js} +1 -1
  46. package/dist/{ko-C7YP1PL4.cjs → ko-B7bLdRnp.cjs} +1 -1
  47. package/dist/markdown/index.cjs.js +1 -1
  48. package/dist/markdown/index.es.js +1 -1
  49. package/dist/modal-BRUgTJG9.cjs +1 -0
  50. package/dist/modal-_2B8vIo0.js +658 -0
  51. package/dist/{nl-ClCD6lP-.cjs → nl-CJE0fC8g.cjs} +1 -1
  52. package/dist/{nl-B0l1kdfd.js → nl-DvUVT7xd.js} +1 -1
  53. package/dist/{notice-BuYqG6zM.js → notice-C4n5jXi6.js} +408 -391
  54. package/dist/notice-CncwkUTy.cjs +2 -0
  55. package/dist/{pl-DVKneBSY.js → pl-C3oYeTwf.js} +1 -1
  56. package/dist/{pl-fyCkqVrr.cjs → pl-DUaY5slY.cjs} +1 -1
  57. package/dist/prosemirror/index.cjs.js +1 -1
  58. package/dist/prosemirror/index.es.js +1 -1
  59. package/dist/{pt-BHExG3lf.cjs → pt-BAqNKCuy.cjs} +1 -1
  60. package/dist/{pt-Bw0sTDOX.js → pt-BJGeScun.js} +1 -1
  61. package/dist/{ru-B26VQ4f9.js → ru-2irv1YXp.js} +1 -1
  62. package/dist/{ru-PuEOLDw1.cjs → ru-CAlgJm3K.cjs} +1 -1
  63. package/dist/tailwind/index.cjs.js +1 -1
  64. package/dist/tailwind/index.es.js +1 -1
  65. package/dist/tailwind/preset.cjs.js +1 -1
  66. package/dist/tailwind/preset.es.js +1 -1
  67. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  68. package/dist/tailwind/vite-plugin.es.js +1 -1
  69. package/dist/{toolbar-kwkvH3nX.cjs → toolbar-B7HrL0vD.cjs} +1 -1
  70. package/dist/{toolbar-ClJbaKID.js → toolbar-CVDXVnje.js} +1 -1
  71. package/dist/{tr-DQMivdvy.js → tr-CkHLE5u7.js} +1 -1
  72. package/dist/{tr-CI97fTpD.cjs → tr-DMiXAhok.cjs} +1 -1
  73. package/dist/{translations-iam7PITs.js → translations-DEEflRUY.js} +96 -112
  74. package/dist/{translations-ZB5oDFId.cjs → translations-DRNj0YIi.cjs} +1 -1
  75. package/dist/translations-Dw1oO6Dh.cjs +1 -0
  76. package/dist/{translations-1yD6Rm5l.js → translations-Q5C5LyIi.js} +1 -1
  77. package/dist/types/components/beatui.d.ts +4 -1
  78. package/dist/types/components/button/button.d.ts +4 -3
  79. package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
  80. package/dist/types/components/misc/index.d.ts +4 -0
  81. package/dist/types/components/misc/notification-provider.d.ts +47 -0
  82. package/dist/types/components/misc/notification.d.ts +17 -0
  83. package/dist/types/components/misc/opengraph.d.ts +111 -0
  84. package/dist/types/components/navigation/link/button-link.d.ts +2 -0
  85. package/dist/types/components/overlay/lightbox.d.ts +1 -1
  86. package/dist/types/components/overlay/modal.d.ts +2 -2
  87. package/dist/types/components/overlay/ribbon.d.ts +2 -2
  88. package/dist/types/utils/use-animated-toggle.d.ts +43 -9
  89. package/dist/{ur-B3CiO8KH.cjs → ur-BjiNs3SL.cjs} +1 -1
  90. package/dist/{ur-o3rog5MJ.js → ur-bxBR_9Z-.js} +1 -1
  91. package/dist/{utils-B_QSuN66.js → utils-BCbc19N0.js} +202 -193
  92. package/dist/utils-BJZipnfW.cjs +1 -0
  93. package/dist/{vi-FibsLfdk.cjs → vi-CByOZvV2.cjs} +1 -1
  94. package/dist/{vi-C7cb2K_B.js → vi-CKknZqol.js} +1 -1
  95. package/dist/{zh-BtSj_Euh.cjs → zh-C0QOebEA.cjs} +1 -1
  96. package/dist/{zh-NGrfqAHM.js → zh-CmUgcP9o.js} +1 -1
  97. package/package.json +4 -3
  98. package/dist/modal--1g8Y5LH.js +0 -601
  99. package/dist/modal-mA_AFUCI.cjs +0 -1
  100. package/dist/notice-DCuZEAQO.cjs +0 -2
  101. package/dist/translations-DQxg-W9w.cjs +0 -1
  102. package/dist/utils-BD6NGV1v.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { d as S, m as M, n as Y, o as K, p as T, q as Q } from "./index-i9pAnFtS.js";
1
+ import { d as S, m as M, n as Y, o as K, p as T, q as Q } from "./index-BTZqW3-b.js";
2
2
  var R = {}, h = {}, C;
3
3
  function W() {
4
4
  if (C) return h;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-Bv2gn_kV.cjs"),K={tokenize:rt,partial:!0},q={tokenize:at,partial:!0},U={tokenize:lt,partial:!0},V={tokenize:ut,partial:!0},v={tokenize:ot,partial:!0},G={name:"wwwAutolink",tokenize:nt,previous:J},$={name:"protocolAutolink",tokenize:it,previous:Q},d={name:"emailAutolink",tokenize:et,previous:X},w={};function tt(){return{text:w}}let S=48;for(;S<123;)w[S]=d,S++,S===58?S=65:S===91&&(S=97);w[43]=d;w[45]=d;w[46]=d;w[95]=d;w[72]=[d,$];w[104]=[d,$];w[87]=[d,G];w[119]=[d,G];function et(t,i,e){const r=this;let s,h;return n;function n(a){return!O(a)||!X.call(r,r.previous)||T(r.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(a))}function u(a){return O(a)?(t.consume(a),u):a===64?(t.consume(a),o):e(a)}function o(a){return a===46?t.check(v,p,g)(a):a===45||a===95||f.asciiAlphanumeric(a)?(h=!0,t.consume(a),o):p(a)}function g(a){return t.consume(a),s=!0,o}function p(a){return h&&s&&f.asciiAlpha(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(a)):e(a)}}function nt(t,i,e){const r=this;return s;function s(n){return n!==87&&n!==119||!J.call(r,r.previous)||T(r.events)?e(n):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(K,t.attempt(q,t.attempt(U,h),e),e)(n))}function h(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(n)}}function it(t,i,e){const r=this;let s="",h=!1;return n;function n(a){return(a===72||a===104)&&Q.call(r,r.previous)&&!T(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(a),t.consume(a),u):e(a)}function u(a){if(f.asciiAlpha(a)&&s.length<5)return s+=String.fromCodePoint(a),t.consume(a),u;if(a===58){const b=s.toLowerCase();if(b==="http"||b==="https")return t.consume(a),o}return e(a)}function o(a){return a===47?(t.consume(a),h?g:(h=!0,o)):e(a)}function g(a){return a===null||f.asciiControl(a)||f.markdownLineEndingOrSpace(a)||f.unicodeWhitespace(a)||f.unicodePunctuation(a)?e(a):t.attempt(q,t.attempt(U,p),e)(a)}function p(a){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(a)}}function rt(t,i,e){let r=0;return s;function s(n){return(n===87||n===119)&&r<3?(r++,t.consume(n),s):n===46&&r===3?(t.consume(n),h):e(n)}function h(n){return n===null?e(n):i(n)}}function at(t,i,e){let r,s,h;return n;function n(g){return g===46||g===95?t.check(V,o,u)(g):g===null||f.markdownLineEndingOrSpace(g)||f.unicodeWhitespace(g)||g!==45&&f.unicodePunctuation(g)?o(g):(h=!0,t.consume(g),n)}function u(g){return g===95?r=!0:(s=r,r=void 0),t.consume(g),n}function o(g){return s||r||!h?e(g):i(g)}}function lt(t,i){let e=0,r=0;return s;function s(n){return n===40?(e++,t.consume(n),s):n===41&&r<e?h(n):n===33||n===34||n===38||n===39||n===41||n===42||n===44||n===46||n===58||n===59||n===60||n===63||n===93||n===95||n===126?t.check(V,i,h)(n):n===null||f.markdownLineEndingOrSpace(n)||f.unicodeWhitespace(n)?i(n):(t.consume(n),s)}function h(n){return n===41&&r++,t.consume(n),s}}function ut(t,i,e){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(t.consume(u),r):u===38?(t.consume(u),h):u===93?(t.consume(u),s):u===60||u===null||f.markdownLineEndingOrSpace(u)||f.unicodeWhitespace(u)?i(u):e(u)}function s(u){return u===null||u===40||u===91||f.markdownLineEndingOrSpace(u)||f.unicodeWhitespace(u)?i(u):r(u)}function h(u){return f.asciiAlpha(u)?n(u):e(u)}function n(u){return u===59?(t.consume(u),r):f.asciiAlpha(u)?(t.consume(u),n):e(u)}}function ot(t,i,e){return r;function r(h){return t.consume(h),s}function s(h){return f.asciiAlphanumeric(h)?e(h):i(h)}}function J(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||f.markdownLineEndingOrSpace(t)}function Q(t){return!f.asciiAlpha(t)}function X(t){return!(t===47||O(t))}function O(t){return t===43||t===45||t===46||t===95||f.asciiAlphanumeric(t)}function T(t){let i=t.length,e=!1;for(;i--;){const r=t[i][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){e=!0;break}if(r._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}function st(){return{exit:{literalAutolinkEmail:mt,literalAutolinkHttp:gt,literalAutolinkWww:ht}}}function ht(t){R.call(this,t,"http://")}function mt(t){R.call(this,t,"mailto:")}function gt(t){R.call(this,t)}function R(t,i){const e=this.sliceSerialize(t);this.tag('<a href="'+f.sanitizeUri((i||"")+e)+'">'),this.raw(this.encode(e)),this.tag("</a>")}const ft={tokenize:yt,partial:!0};function pt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wt,continuation:{tokenize:Dt},exit:dt}},text:{91:{name:"gfmFootnoteCall",tokenize:ct},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bt,resolveTo:kt}}}}function bt(t,i,e){const r=this;let s=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let n;for(;s--;){const o=r.events[s][1];if(o.type==="labelImage"){n=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!n||!n._balanced)return e(o);const g=f.normalizeIdentifier(r.sliceSerialize({start:n.end,end:r.now()}));return g.codePointAt(0)!==94||!h.includes(g.slice(1))?e(o):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(o),t.exit("gfmFootnoteCallLabelMarker"),i(o))}}function kt(t,i){let e=t.length;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},n={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},u=[t[e+1],t[e+2],["enter",r,i],t[e+3],t[e+4],["enter",s,i],["exit",s,i],["enter",h,i],["enter",n,i],["exit",n,i],["exit",h,i],t[t.length-2],t[t.length-1],["exit",r,i]];return t.splice(e,t.length-e+1,...u),t}function ct(t,i,e){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,n;return u;function u(a){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),o}function o(a){return a!==94?e(a):(t.enter("gfmFootnoteCallMarker"),t.consume(a),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(a){if(h>999||a===93&&!n||a===null||a===91||f.markdownLineEndingOrSpace(a))return e(a);if(a===93){t.exit("chunkString");const b=t.exit("gfmFootnoteCallString");return s.includes(f.normalizeIdentifier(r.sliceSerialize(b)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):e(a)}return f.markdownLineEndingOrSpace(a)||(n=!0),h++,t.consume(a),a===92?p:g}function p(a){return a===91||a===92||a===93?(t.consume(a),h++,g):g(a)}}function wt(t,i,e){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,n=0,u;return o;function o(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",p):e(m)}function p(m){if(n>999||m===93&&!u||m===null||m===91||f.markdownLineEndingOrSpace(m))return e(m);if(m===93){t.exit("chunkString");const c=t.exit("gfmFootnoteDefinitionLabelString");return h=f.normalizeIdentifier(r.sliceSerialize(c)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),b}return f.markdownLineEndingOrSpace(m)||(u=!0),n++,t.consume(m),m===92?a:p}function a(m){return m===91||m===92||m===93?(t.consume(m),n++,p):p(m)}function b(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),s.includes(h)||s.push(h),f.factorySpace(t,k,"gfmFootnoteDefinitionWhitespace")):e(m)}function k(m){return i(m)}}function Dt(t,i,e){return t.check(f.blankLine,i,t.attempt(ft,i,e))}function dt(t){t.exit("gfmFootnoteDefinition")}function yt(t,i,e){const r=this;return f.factorySpace(t,s,"gfmFootnoteDefinitionIndent",5);function s(h){const n=r.events[r.events.length-1];return n&&n[1].type==="gfmFootnoteDefinitionIndent"&&n[2].sliceSerialize(n[1],!0).length===4?i(h):e(h)}}const St={}.hasOwnProperty,Ct={};function At(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function Ft(t){const i=t||Ct,e=i.label||"Footnotes",r=i.labelTagName||"h2",s=i.labelAttributes===null||i.labelAttributes===void 0?'class="sr-only"':i.labelAttributes,h=i.backLabel||At,n=i.clobberPrefix===null||i.clobberPrefix===void 0?"user-content-":i.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let u=this.getData("gfmFootnoteDefinitions");const o=this.getData("gfmFootnoteDefinitionStack"),g=this.getData("tightStack"),p=o.pop(),a=this.resume();u||this.setData("gfmFootnoteDefinitions",u={}),St.call(u,p)||(u[p]=a),g.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(u){let o=this.getData("gfmFootnoteDefinitionStack");o||this.setData("gfmFootnoteDefinitionStack",o=[]),o.push(f.normalizeIdentifier(this.sliceSerialize(u))),this.resume(),this.buffer()},gfmFootnoteCallString(u){let o=this.getData("gfmFootnoteCallOrder"),g=this.getData("gfmFootnoteCallCounts");const p=f.normalizeIdentifier(this.sliceSerialize(u));let a;this.resume(),o||this.setData("gfmFootnoteCallOrder",o=[]),g||this.setData("gfmFootnoteCallCounts",g={});const b=o.indexOf(p),k=f.sanitizeUri(p.toLowerCase());b===-1?(o.push(p),g[p]=1,a=o.length):(g[p]++,a=b+1);const m=g[p];this.tag('<sup><a href="#'+n+"fn-"+k+'" id="'+n+"fnref-"+k+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(a)+"</a></sup>")},null(){const u=this.getData("gfmFootnoteCallOrder")||[],o=this.getData("gfmFootnoteCallCounts")||{},g=this.getData("gfmFootnoteDefinitions")||{};let p=-1;for(u.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+r+' id="footnote-label"'+(s?" "+s:"")+">"),this.raw(this.encode(e)),this.tag("</"+r+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++p<u.length;){const a=u[p],b=f.sanitizeUri(a.toLowerCase());let k=0;const m=[];for(;++k<=o[a];)m.push('<a href="#'+n+"fnref-"+b+(k>1?"-"+k:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof h=="string"?h:h(p,k))+'" class="data-footnote-backref">↩'+(k>1?"<sup>"+k+"</sup>":"")+"</a>");const c=m.join(" ");let D=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+n+"fn-"+b+'">'),this.lineEndingIfNeeded(),this.tag(g[a].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return D=!0," "+c+y})),D||(this.lineEndingIfNeeded(),this.tag(c)),this.lineEndingIfNeeded(),this.tag("</li>")}u.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function Lt(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function xt(t){let e=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:s};return e==null&&(e=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(n,u){let o=-1;for(;++o<n.length;)if(n[o][0]==="enter"&&n[o][1].type==="strikethroughSequenceTemporary"&&n[o][1]._close){let g=o;for(;g--;)if(n[g][0]==="exit"&&n[g][1].type==="strikethroughSequenceTemporary"&&n[g][1]._open&&n[o][1].end.offset-n[o][1].start.offset===n[g][1].end.offset-n[g][1].start.offset){n[o][1].type="strikethroughSequence",n[g][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},n[g][1].start),end:Object.assign({},n[o][1].end)},a={type:"strikethroughText",start:Object.assign({},n[g][1].end),end:Object.assign({},n[o][1].start)},b=[["enter",p,u],["enter",n[g][1],u],["exit",n[g][1],u],["enter",a,u]],k=u.parser.constructs.insideSpan.null;k&&f.splice(b,b.length,0,f.resolveAll(k,n.slice(g+1,o),u)),f.splice(b,b.length,0,[["exit",a,u],["enter",n[o][1],u],["exit",n[o][1],u],["exit",p,u]]),f.splice(n,g-1,o-g+3,b),o=g+b.length-2;break}}for(o=-1;++o<n.length;)n[o][1].type==="strikethroughSequenceTemporary"&&(n[o][1].type="data");return n}function h(n,u,o){const g=this.previous,p=this.events;let a=0;return b;function b(m){return g===126&&p[p.length-1][1].type!=="characterEscape"?o(m):(n.enter("strikethroughSequenceTemporary"),k(m))}function k(m){const c=f.classifyCharacter(g);if(m===126)return a>1?o(m):(n.consume(m),a++,k);if(a<2&&!e)return o(m);const D=n.exit("strikethroughSequenceTemporary"),y=f.classifyCharacter(m);return D._open=!y||y===2&&!!c,D._close=!c||c===2&&!!y,u(m)}}}const I={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function zt(){return{enter:{table(t){const i=t._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",i)},tableBody(){this.tag("<tbody>")},tableData(){const t=this.getData("tableAlign"),i=this.getData("tableColumn"),e=I[t[i]];e===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+e+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){const t=this.getData("tableAlign"),i=this.getData("tableColumn"),e=I[t[i]];this.lineEndingIfNeeded(),this.tag("<th"+e+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(t){let i=this.sliceSerialize(t);this.getData("tableAlign")&&(i=i.replace(/\\([\\|])/g,Et)),this.raw(this.encode(i))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){const t=this.getData("tableAlign"),i=this.getData("tableColumn");i in t?(this.tag("</td>"),this.setData("tableColumn",i+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){const t=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",t+1)},tableRow(){const t=this.getData("tableAlign");let i=this.getData("tableColumn");for(;i<t.length;)this.lineEndingIfNeeded(),this.tag("<td"+I[t[i]]+"></td>"),i++;this.setData("tableColumn",i),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function Et(t,i){return i==="|"?i:t}class It{constructor(){this.map=[]}add(i,e,r){Ot(this,i,e,r)}consume(i){if(this.map.sort(function(h,n){return h[0]-n[0]}),this.map.length===0)return;let e=this.map.length;const r=[];for(;e>0;)e-=1,r.push(i.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),i.length=this.map[e][0];r.push(i.slice()),i.length=0;let s=r.pop();for(;s;){for(const h of s)i.push(h);s=r.pop()}this.map.length=0}}function Ot(t,i,e,r){let s=0;if(!(e===0&&r.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=e,t.map[s][2].push(...r);return}s+=1}t.map.push([i,e,r])}}function Tt(t,i){let e=!1;const r=[];for(;i<t.length;){const s=t[i];if(e){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(e=!0);i+=1}return r}function Rt(){return{flow:{null:{name:"table",tokenize:Mt,resolveAll:Pt}}}}function Mt(t,i,e){const r=this;let s=0,h=0,n;return u;function u(l){let F=r.events.length-1;for(;F>-1;){const B=r.events[F][1].type;if(B==="lineEnding"||B==="linePrefix")F--;else break}const H=F>-1?r.events[F][1].type:null,N=H==="tableHead"||H==="tableRow"?j:o;return N===j&&r.parser.lazy[r.now().line]?e(l):N(l)}function o(l){return t.enter("tableHead"),t.enter("tableRow"),g(l)}function g(l){return l===124||(n=!0,h+=1),p(l)}function p(l){return l===null?e(l):f.markdownLineEnding(l)?h>1?(h=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),k):e(l):f.markdownSpace(l)?f.factorySpace(t,p,"whitespace")(l):(h+=1,n&&(n=!1,s+=1),l===124?(t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),n=!0,p):(t.enter("data"),a(l)))}function a(l){return l===null||l===124||f.markdownLineEndingOrSpace(l)?(t.exit("data"),p(l)):(t.consume(l),l===92?b:a)}function b(l){return l===92||l===124?(t.consume(l),a):a(l)}function k(l){return r.interrupt=!1,r.parser.lazy[r.now().line]?e(l):(t.enter("tableDelimiterRow"),n=!1,f.markdownSpace(l)?f.factorySpace(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):m(l))}function m(l){return l===45||l===58?D(l):l===124?(n=!0,t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),c):A(l)}function c(l){return f.markdownSpace(l)?f.factorySpace(t,D,"whitespace")(l):D(l)}function D(l){return l===58?(h+=1,n=!0,t.enter("tableDelimiterMarker"),t.consume(l),t.exit("tableDelimiterMarker"),y):l===45?(h+=1,y(l)):l===null||f.markdownLineEnding(l)?E(l):A(l)}function y(l){return l===45?(t.enter("tableDelimiterFiller"),M(l)):A(l)}function M(l){return l===45?(t.consume(l),M):l===58?(n=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(l),t.exit("tableDelimiterMarker"),P):(t.exit("tableDelimiterFiller"),P(l))}function P(l){return f.markdownSpace(l)?f.factorySpace(t,E,"whitespace")(l):E(l)}function E(l){return l===124?m(l):l===null||f.markdownLineEnding(l)?!n||s!==h?A(l):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(l)):A(l)}function A(l){return e(l)}function j(l){return t.enter("tableRow"),L(l)}function L(l){return l===124?(t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),L):l===null||f.markdownLineEnding(l)?(t.exit("tableRow"),i(l)):f.markdownSpace(l)?f.factorySpace(t,L,"whitespace")(l):(t.enter("data"),x(l))}function x(l){return l===null||l===124||f.markdownLineEndingOrSpace(l)?(t.exit("data"),L(l)):(t.consume(l),l===92?Z:x)}function Z(l){return l===92||l===124?(t.consume(l),x):x(l)}}function Pt(t,i){let e=-1,r=!0,s=0,h=[0,0,0,0],n=[0,0,0,0],u=!1,o=0,g,p,a;const b=new It;for(;++e<t.length;){const k=t[e],m=k[1];k[0]==="enter"?m.type==="tableHead"?(u=!1,o!==0&&(W(b,i,o,g,p),p=void 0,o=0),g={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},b.add(e,0,[["enter",g,i]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,a=void 0,h=[0,0,0,0],n=[0,e+1,0,0],u&&(u=!1,p={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},b.add(e,0,[["enter",p,i]])),s=m.type==="tableDelimiterRow"?2:p?3:1):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,n[2]===0&&(h[1]!==0&&(n[0]=n[1],a=z(b,i,h,s,void 0,a),h=[0,0,0,0]),n[2]=e)):m.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(n[0]=n[1],a=z(b,i,h,s,void 0,a)),h=n,n=[h[1],e,0,0])):m.type==="tableHead"?(u=!0,o=e):m.type==="tableRow"||m.type==="tableDelimiterRow"?(o=e,h[1]!==0?(n[0]=n[1],a=z(b,i,h,s,e,a)):n[1]!==0&&(a=z(b,i,n,s,e,a)),s=0):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(n[3]=e)}for(o!==0&&W(b,i,o,g,p),b.consume(i.events),e=-1;++e<i.events.length;){const k=i.events[e];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=Tt(i.events,e))}return t}function z(t,i,e,r,s,h){const n=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";e[0]!==0&&(h.end=Object.assign({},C(i.events,e[0])),t.add(e[0],0,[["exit",h,i]]));const o=C(i.events,e[1]);if(h={type:n,start:Object.assign({},o),end:Object.assign({},o)},t.add(e[1],0,[["enter",h,i]]),e[2]!==0){const g=C(i.events,e[2]),p=C(i.events,e[3]),a={type:u,start:Object.assign({},g),end:Object.assign({},p)};if(t.add(e[2],0,[["enter",a,i]]),r!==2){const b=i.events[e[2]],k=i.events[e[3]];if(b[1].end=Object.assign({},k[1].end),b[1].type="chunkText",b[1].contentType="text",e[3]>e[2]+1){const m=e[2]+1,c=e[3]-e[2]-1;t.add(m,c,[])}}t.add(e[3]+1,0,[["exit",a,i]])}return s!==void 0&&(h.end=Object.assign({},C(i.events,s)),t.add(s,0,[["exit",h,i]]),h=void 0),h}function W(t,i,e,r,s){const h=[],n=C(i.events,e);s&&(s.end=Object.assign({},n),h.push(["exit",s,i])),r.end=Object.assign({},n),h.push(["exit",r,i]),t.add(e+1,0,h)}function C(t,i){const e=t[i],r=e[0]==="enter"?"start":"end";return e[1][r]}const Y=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,jt=new RegExp("^"+Y.source,"i");function Ht(){return{exit:{htmlFlowData(t){_.call(this,t,Y)},htmlTextData(t){_.call(this,t,jt)}}}}function _(t,i){let e=this.sliceSerialize(t);this.options.allowDangerousHtml&&(e=e.replace(i,"&lt;$1$2")),this.raw(this.encode(e))}function Nt(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}const Bt={name:"tasklistCheck",tokenize:_t};function Wt(){return{text:{91:Bt}}}function _t(t,i,e){const r=this;return s;function s(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?e(o):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(o),t.exit("taskListCheckMarker"),h)}function h(o){return f.markdownLineEndingOrSpace(o)?(t.enter("taskListCheckValueUnchecked"),t.consume(o),t.exit("taskListCheckValueUnchecked"),n):o===88||o===120?(t.enter("taskListCheckValueChecked"),t.consume(o),t.exit("taskListCheckValueChecked"),n):e(o)}function n(o){return o===93?(t.enter("taskListCheckMarker"),t.consume(o),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):e(o)}function u(o){return f.markdownLineEnding(o)?i(o):f.markdownSpace(o)?t.check({tokenize:qt},i,e)(o):e(o)}}function qt(t,i,e){return f.factorySpace(t,r,"whitespace");function r(s){return s===null?e(s):i(s)}}function Ut(t){return f.combineExtensions([tt(),pt(),xt(t),Rt(),Wt()])}function Vt(t){return f.combineHtmlExtensions([st(),Ft(t),Lt(),zt(),Ht(),Nt()])}exports.gfm=Ut;exports.gfmHtml=Vt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-ClFVnBUS.cjs"),K={tokenize:rt,partial:!0},q={tokenize:at,partial:!0},U={tokenize:lt,partial:!0},V={tokenize:ut,partial:!0},v={tokenize:ot,partial:!0},G={name:"wwwAutolink",tokenize:nt,previous:J},$={name:"protocolAutolink",tokenize:it,previous:Q},d={name:"emailAutolink",tokenize:et,previous:X},w={};function tt(){return{text:w}}let S=48;for(;S<123;)w[S]=d,S++,S===58?S=65:S===91&&(S=97);w[43]=d;w[45]=d;w[46]=d;w[95]=d;w[72]=[d,$];w[104]=[d,$];w[87]=[d,G];w[119]=[d,G];function et(t,i,e){const r=this;let s,h;return n;function n(a){return!O(a)||!X.call(r,r.previous)||T(r.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(a))}function u(a){return O(a)?(t.consume(a),u):a===64?(t.consume(a),o):e(a)}function o(a){return a===46?t.check(v,p,g)(a):a===45||a===95||f.asciiAlphanumeric(a)?(h=!0,t.consume(a),o):p(a)}function g(a){return t.consume(a),s=!0,o}function p(a){return h&&s&&f.asciiAlpha(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(a)):e(a)}}function nt(t,i,e){const r=this;return s;function s(n){return n!==87&&n!==119||!J.call(r,r.previous)||T(r.events)?e(n):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(K,t.attempt(q,t.attempt(U,h),e),e)(n))}function h(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(n)}}function it(t,i,e){const r=this;let s="",h=!1;return n;function n(a){return(a===72||a===104)&&Q.call(r,r.previous)&&!T(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(a),t.consume(a),u):e(a)}function u(a){if(f.asciiAlpha(a)&&s.length<5)return s+=String.fromCodePoint(a),t.consume(a),u;if(a===58){const b=s.toLowerCase();if(b==="http"||b==="https")return t.consume(a),o}return e(a)}function o(a){return a===47?(t.consume(a),h?g:(h=!0,o)):e(a)}function g(a){return a===null||f.asciiControl(a)||f.markdownLineEndingOrSpace(a)||f.unicodeWhitespace(a)||f.unicodePunctuation(a)?e(a):t.attempt(q,t.attempt(U,p),e)(a)}function p(a){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(a)}}function rt(t,i,e){let r=0;return s;function s(n){return(n===87||n===119)&&r<3?(r++,t.consume(n),s):n===46&&r===3?(t.consume(n),h):e(n)}function h(n){return n===null?e(n):i(n)}}function at(t,i,e){let r,s,h;return n;function n(g){return g===46||g===95?t.check(V,o,u)(g):g===null||f.markdownLineEndingOrSpace(g)||f.unicodeWhitespace(g)||g!==45&&f.unicodePunctuation(g)?o(g):(h=!0,t.consume(g),n)}function u(g){return g===95?r=!0:(s=r,r=void 0),t.consume(g),n}function o(g){return s||r||!h?e(g):i(g)}}function lt(t,i){let e=0,r=0;return s;function s(n){return n===40?(e++,t.consume(n),s):n===41&&r<e?h(n):n===33||n===34||n===38||n===39||n===41||n===42||n===44||n===46||n===58||n===59||n===60||n===63||n===93||n===95||n===126?t.check(V,i,h)(n):n===null||f.markdownLineEndingOrSpace(n)||f.unicodeWhitespace(n)?i(n):(t.consume(n),s)}function h(n){return n===41&&r++,t.consume(n),s}}function ut(t,i,e){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(t.consume(u),r):u===38?(t.consume(u),h):u===93?(t.consume(u),s):u===60||u===null||f.markdownLineEndingOrSpace(u)||f.unicodeWhitespace(u)?i(u):e(u)}function s(u){return u===null||u===40||u===91||f.markdownLineEndingOrSpace(u)||f.unicodeWhitespace(u)?i(u):r(u)}function h(u){return f.asciiAlpha(u)?n(u):e(u)}function n(u){return u===59?(t.consume(u),r):f.asciiAlpha(u)?(t.consume(u),n):e(u)}}function ot(t,i,e){return r;function r(h){return t.consume(h),s}function s(h){return f.asciiAlphanumeric(h)?e(h):i(h)}}function J(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||f.markdownLineEndingOrSpace(t)}function Q(t){return!f.asciiAlpha(t)}function X(t){return!(t===47||O(t))}function O(t){return t===43||t===45||t===46||t===95||f.asciiAlphanumeric(t)}function T(t){let i=t.length,e=!1;for(;i--;){const r=t[i][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){e=!0;break}if(r._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}function st(){return{exit:{literalAutolinkEmail:mt,literalAutolinkHttp:gt,literalAutolinkWww:ht}}}function ht(t){R.call(this,t,"http://")}function mt(t){R.call(this,t,"mailto:")}function gt(t){R.call(this,t)}function R(t,i){const e=this.sliceSerialize(t);this.tag('<a href="'+f.sanitizeUri((i||"")+e)+'">'),this.raw(this.encode(e)),this.tag("</a>")}const ft={tokenize:yt,partial:!0};function pt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wt,continuation:{tokenize:Dt},exit:dt}},text:{91:{name:"gfmFootnoteCall",tokenize:ct},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bt,resolveTo:kt}}}}function bt(t,i,e){const r=this;let s=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let n;for(;s--;){const o=r.events[s][1];if(o.type==="labelImage"){n=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!n||!n._balanced)return e(o);const g=f.normalizeIdentifier(r.sliceSerialize({start:n.end,end:r.now()}));return g.codePointAt(0)!==94||!h.includes(g.slice(1))?e(o):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(o),t.exit("gfmFootnoteCallLabelMarker"),i(o))}}function kt(t,i){let e=t.length;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},n={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},u=[t[e+1],t[e+2],["enter",r,i],t[e+3],t[e+4],["enter",s,i],["exit",s,i],["enter",h,i],["enter",n,i],["exit",n,i],["exit",h,i],t[t.length-2],t[t.length-1],["exit",r,i]];return t.splice(e,t.length-e+1,...u),t}function ct(t,i,e){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,n;return u;function u(a){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),o}function o(a){return a!==94?e(a):(t.enter("gfmFootnoteCallMarker"),t.consume(a),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(a){if(h>999||a===93&&!n||a===null||a===91||f.markdownLineEndingOrSpace(a))return e(a);if(a===93){t.exit("chunkString");const b=t.exit("gfmFootnoteCallString");return s.includes(f.normalizeIdentifier(r.sliceSerialize(b)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):e(a)}return f.markdownLineEndingOrSpace(a)||(n=!0),h++,t.consume(a),a===92?p:g}function p(a){return a===91||a===92||a===93?(t.consume(a),h++,g):g(a)}}function wt(t,i,e){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,n=0,u;return o;function o(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",p):e(m)}function p(m){if(n>999||m===93&&!u||m===null||m===91||f.markdownLineEndingOrSpace(m))return e(m);if(m===93){t.exit("chunkString");const c=t.exit("gfmFootnoteDefinitionLabelString");return h=f.normalizeIdentifier(r.sliceSerialize(c)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),b}return f.markdownLineEndingOrSpace(m)||(u=!0),n++,t.consume(m),m===92?a:p}function a(m){return m===91||m===92||m===93?(t.consume(m),n++,p):p(m)}function b(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),s.includes(h)||s.push(h),f.factorySpace(t,k,"gfmFootnoteDefinitionWhitespace")):e(m)}function k(m){return i(m)}}function Dt(t,i,e){return t.check(f.blankLine,i,t.attempt(ft,i,e))}function dt(t){t.exit("gfmFootnoteDefinition")}function yt(t,i,e){const r=this;return f.factorySpace(t,s,"gfmFootnoteDefinitionIndent",5);function s(h){const n=r.events[r.events.length-1];return n&&n[1].type==="gfmFootnoteDefinitionIndent"&&n[2].sliceSerialize(n[1],!0).length===4?i(h):e(h)}}const St={}.hasOwnProperty,Ct={};function At(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function Ft(t){const i=t||Ct,e=i.label||"Footnotes",r=i.labelTagName||"h2",s=i.labelAttributes===null||i.labelAttributes===void 0?'class="sr-only"':i.labelAttributes,h=i.backLabel||At,n=i.clobberPrefix===null||i.clobberPrefix===void 0?"user-content-":i.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let u=this.getData("gfmFootnoteDefinitions");const o=this.getData("gfmFootnoteDefinitionStack"),g=this.getData("tightStack"),p=o.pop(),a=this.resume();u||this.setData("gfmFootnoteDefinitions",u={}),St.call(u,p)||(u[p]=a),g.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(u){let o=this.getData("gfmFootnoteDefinitionStack");o||this.setData("gfmFootnoteDefinitionStack",o=[]),o.push(f.normalizeIdentifier(this.sliceSerialize(u))),this.resume(),this.buffer()},gfmFootnoteCallString(u){let o=this.getData("gfmFootnoteCallOrder"),g=this.getData("gfmFootnoteCallCounts");const p=f.normalizeIdentifier(this.sliceSerialize(u));let a;this.resume(),o||this.setData("gfmFootnoteCallOrder",o=[]),g||this.setData("gfmFootnoteCallCounts",g={});const b=o.indexOf(p),k=f.sanitizeUri(p.toLowerCase());b===-1?(o.push(p),g[p]=1,a=o.length):(g[p]++,a=b+1);const m=g[p];this.tag('<sup><a href="#'+n+"fn-"+k+'" id="'+n+"fnref-"+k+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(a)+"</a></sup>")},null(){const u=this.getData("gfmFootnoteCallOrder")||[],o=this.getData("gfmFootnoteCallCounts")||{},g=this.getData("gfmFootnoteDefinitions")||{};let p=-1;for(u.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+r+' id="footnote-label"'+(s?" "+s:"")+">"),this.raw(this.encode(e)),this.tag("</"+r+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++p<u.length;){const a=u[p],b=f.sanitizeUri(a.toLowerCase());let k=0;const m=[];for(;++k<=o[a];)m.push('<a href="#'+n+"fnref-"+b+(k>1?"-"+k:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof h=="string"?h:h(p,k))+'" class="data-footnote-backref">↩'+(k>1?"<sup>"+k+"</sup>":"")+"</a>");const c=m.join(" ");let D=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+n+"fn-"+b+'">'),this.lineEndingIfNeeded(),this.tag(g[a].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return D=!0," "+c+y})),D||(this.lineEndingIfNeeded(),this.tag(c)),this.lineEndingIfNeeded(),this.tag("</li>")}u.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function Lt(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function xt(t){let e=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:s};return e==null&&(e=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(n,u){let o=-1;for(;++o<n.length;)if(n[o][0]==="enter"&&n[o][1].type==="strikethroughSequenceTemporary"&&n[o][1]._close){let g=o;for(;g--;)if(n[g][0]==="exit"&&n[g][1].type==="strikethroughSequenceTemporary"&&n[g][1]._open&&n[o][1].end.offset-n[o][1].start.offset===n[g][1].end.offset-n[g][1].start.offset){n[o][1].type="strikethroughSequence",n[g][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},n[g][1].start),end:Object.assign({},n[o][1].end)},a={type:"strikethroughText",start:Object.assign({},n[g][1].end),end:Object.assign({},n[o][1].start)},b=[["enter",p,u],["enter",n[g][1],u],["exit",n[g][1],u],["enter",a,u]],k=u.parser.constructs.insideSpan.null;k&&f.splice(b,b.length,0,f.resolveAll(k,n.slice(g+1,o),u)),f.splice(b,b.length,0,[["exit",a,u],["enter",n[o][1],u],["exit",n[o][1],u],["exit",p,u]]),f.splice(n,g-1,o-g+3,b),o=g+b.length-2;break}}for(o=-1;++o<n.length;)n[o][1].type==="strikethroughSequenceTemporary"&&(n[o][1].type="data");return n}function h(n,u,o){const g=this.previous,p=this.events;let a=0;return b;function b(m){return g===126&&p[p.length-1][1].type!=="characterEscape"?o(m):(n.enter("strikethroughSequenceTemporary"),k(m))}function k(m){const c=f.classifyCharacter(g);if(m===126)return a>1?o(m):(n.consume(m),a++,k);if(a<2&&!e)return o(m);const D=n.exit("strikethroughSequenceTemporary"),y=f.classifyCharacter(m);return D._open=!y||y===2&&!!c,D._close=!c||c===2&&!!y,u(m)}}}const I={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function zt(){return{enter:{table(t){const i=t._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",i)},tableBody(){this.tag("<tbody>")},tableData(){const t=this.getData("tableAlign"),i=this.getData("tableColumn"),e=I[t[i]];e===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+e+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){const t=this.getData("tableAlign"),i=this.getData("tableColumn"),e=I[t[i]];this.lineEndingIfNeeded(),this.tag("<th"+e+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(t){let i=this.sliceSerialize(t);this.getData("tableAlign")&&(i=i.replace(/\\([\\|])/g,Et)),this.raw(this.encode(i))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){const t=this.getData("tableAlign"),i=this.getData("tableColumn");i in t?(this.tag("</td>"),this.setData("tableColumn",i+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){const t=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",t+1)},tableRow(){const t=this.getData("tableAlign");let i=this.getData("tableColumn");for(;i<t.length;)this.lineEndingIfNeeded(),this.tag("<td"+I[t[i]]+"></td>"),i++;this.setData("tableColumn",i),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function Et(t,i){return i==="|"?i:t}class It{constructor(){this.map=[]}add(i,e,r){Ot(this,i,e,r)}consume(i){if(this.map.sort(function(h,n){return h[0]-n[0]}),this.map.length===0)return;let e=this.map.length;const r=[];for(;e>0;)e-=1,r.push(i.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),i.length=this.map[e][0];r.push(i.slice()),i.length=0;let s=r.pop();for(;s;){for(const h of s)i.push(h);s=r.pop()}this.map.length=0}}function Ot(t,i,e,r){let s=0;if(!(e===0&&r.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=e,t.map[s][2].push(...r);return}s+=1}t.map.push([i,e,r])}}function Tt(t,i){let e=!1;const r=[];for(;i<t.length;){const s=t[i];if(e){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(e=!0);i+=1}return r}function Rt(){return{flow:{null:{name:"table",tokenize:Mt,resolveAll:Pt}}}}function Mt(t,i,e){const r=this;let s=0,h=0,n;return u;function u(l){let F=r.events.length-1;for(;F>-1;){const B=r.events[F][1].type;if(B==="lineEnding"||B==="linePrefix")F--;else break}const H=F>-1?r.events[F][1].type:null,N=H==="tableHead"||H==="tableRow"?j:o;return N===j&&r.parser.lazy[r.now().line]?e(l):N(l)}function o(l){return t.enter("tableHead"),t.enter("tableRow"),g(l)}function g(l){return l===124||(n=!0,h+=1),p(l)}function p(l){return l===null?e(l):f.markdownLineEnding(l)?h>1?(h=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),k):e(l):f.markdownSpace(l)?f.factorySpace(t,p,"whitespace")(l):(h+=1,n&&(n=!1,s+=1),l===124?(t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),n=!0,p):(t.enter("data"),a(l)))}function a(l){return l===null||l===124||f.markdownLineEndingOrSpace(l)?(t.exit("data"),p(l)):(t.consume(l),l===92?b:a)}function b(l){return l===92||l===124?(t.consume(l),a):a(l)}function k(l){return r.interrupt=!1,r.parser.lazy[r.now().line]?e(l):(t.enter("tableDelimiterRow"),n=!1,f.markdownSpace(l)?f.factorySpace(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):m(l))}function m(l){return l===45||l===58?D(l):l===124?(n=!0,t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),c):A(l)}function c(l){return f.markdownSpace(l)?f.factorySpace(t,D,"whitespace")(l):D(l)}function D(l){return l===58?(h+=1,n=!0,t.enter("tableDelimiterMarker"),t.consume(l),t.exit("tableDelimiterMarker"),y):l===45?(h+=1,y(l)):l===null||f.markdownLineEnding(l)?E(l):A(l)}function y(l){return l===45?(t.enter("tableDelimiterFiller"),M(l)):A(l)}function M(l){return l===45?(t.consume(l),M):l===58?(n=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(l),t.exit("tableDelimiterMarker"),P):(t.exit("tableDelimiterFiller"),P(l))}function P(l){return f.markdownSpace(l)?f.factorySpace(t,E,"whitespace")(l):E(l)}function E(l){return l===124?m(l):l===null||f.markdownLineEnding(l)?!n||s!==h?A(l):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(l)):A(l)}function A(l){return e(l)}function j(l){return t.enter("tableRow"),L(l)}function L(l){return l===124?(t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),L):l===null||f.markdownLineEnding(l)?(t.exit("tableRow"),i(l)):f.markdownSpace(l)?f.factorySpace(t,L,"whitespace")(l):(t.enter("data"),x(l))}function x(l){return l===null||l===124||f.markdownLineEndingOrSpace(l)?(t.exit("data"),L(l)):(t.consume(l),l===92?Z:x)}function Z(l){return l===92||l===124?(t.consume(l),x):x(l)}}function Pt(t,i){let e=-1,r=!0,s=0,h=[0,0,0,0],n=[0,0,0,0],u=!1,o=0,g,p,a;const b=new It;for(;++e<t.length;){const k=t[e],m=k[1];k[0]==="enter"?m.type==="tableHead"?(u=!1,o!==0&&(W(b,i,o,g,p),p=void 0,o=0),g={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},b.add(e,0,[["enter",g,i]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,a=void 0,h=[0,0,0,0],n=[0,e+1,0,0],u&&(u=!1,p={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},b.add(e,0,[["enter",p,i]])),s=m.type==="tableDelimiterRow"?2:p?3:1):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,n[2]===0&&(h[1]!==0&&(n[0]=n[1],a=z(b,i,h,s,void 0,a),h=[0,0,0,0]),n[2]=e)):m.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(n[0]=n[1],a=z(b,i,h,s,void 0,a)),h=n,n=[h[1],e,0,0])):m.type==="tableHead"?(u=!0,o=e):m.type==="tableRow"||m.type==="tableDelimiterRow"?(o=e,h[1]!==0?(n[0]=n[1],a=z(b,i,h,s,e,a)):n[1]!==0&&(a=z(b,i,n,s,e,a)),s=0):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(n[3]=e)}for(o!==0&&W(b,i,o,g,p),b.consume(i.events),e=-1;++e<i.events.length;){const k=i.events[e];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=Tt(i.events,e))}return t}function z(t,i,e,r,s,h){const n=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";e[0]!==0&&(h.end=Object.assign({},C(i.events,e[0])),t.add(e[0],0,[["exit",h,i]]));const o=C(i.events,e[1]);if(h={type:n,start:Object.assign({},o),end:Object.assign({},o)},t.add(e[1],0,[["enter",h,i]]),e[2]!==0){const g=C(i.events,e[2]),p=C(i.events,e[3]),a={type:u,start:Object.assign({},g),end:Object.assign({},p)};if(t.add(e[2],0,[["enter",a,i]]),r!==2){const b=i.events[e[2]],k=i.events[e[3]];if(b[1].end=Object.assign({},k[1].end),b[1].type="chunkText",b[1].contentType="text",e[3]>e[2]+1){const m=e[2]+1,c=e[3]-e[2]-1;t.add(m,c,[])}}t.add(e[3]+1,0,[["exit",a,i]])}return s!==void 0&&(h.end=Object.assign({},C(i.events,s)),t.add(s,0,[["exit",h,i]]),h=void 0),h}function W(t,i,e,r,s){const h=[],n=C(i.events,e);s&&(s.end=Object.assign({},n),h.push(["exit",s,i])),r.end=Object.assign({},n),h.push(["exit",r,i]),t.add(e+1,0,h)}function C(t,i){const e=t[i],r=e[0]==="enter"?"start":"end";return e[1][r]}const Y=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,jt=new RegExp("^"+Y.source,"i");function Ht(){return{exit:{htmlFlowData(t){_.call(this,t,Y)},htmlTextData(t){_.call(this,t,jt)}}}}function _(t,i){let e=this.sliceSerialize(t);this.options.allowDangerousHtml&&(e=e.replace(i,"&lt;$1$2")),this.raw(this.encode(e))}function Nt(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}const Bt={name:"tasklistCheck",tokenize:_t};function Wt(){return{text:{91:Bt}}}function _t(t,i,e){const r=this;return s;function s(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?e(o):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(o),t.exit("taskListCheckMarker"),h)}function h(o){return f.markdownLineEndingOrSpace(o)?(t.enter("taskListCheckValueUnchecked"),t.consume(o),t.exit("taskListCheckValueUnchecked"),n):o===88||o===120?(t.enter("taskListCheckValueChecked"),t.consume(o),t.exit("taskListCheckValueChecked"),n):e(o)}function n(o){return o===93?(t.enter("taskListCheckMarker"),t.consume(o),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):e(o)}function u(o){return f.markdownLineEnding(o)?i(o):f.markdownSpace(o)?t.check({tokenize:qt},i,e)(o):e(o)}}function qt(t,i,e){return f.factorySpace(t,r,"whitespace");function r(s){return s===null?e(s):i(s)}}function Ut(t){return f.combineExtensions([tt(),pt(),xt(t),Rt(),Wt()])}function Vt(t){return f.combineHtmlExtensions([st(),Ft(t),Lt(),zt(),Ht(),Nt()])}exports.gfm=Ut;exports.gfmHtml=Vt;