markdown-text-editor 1.0.1 → 1.1.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.
@@ -0,0 +1,2570 @@
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid;--tw-content:"";--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}:root,:host{--fj-spacing:.25rem;--fj-container-sm:24rem;--fj-text-xs:.75rem;--fj-text-xs--line-height:calc(1 / .75);--fj-font-weight-medium:500;--fj-font-weight-bold:700;--fj-radius-md:.375rem}.fj\\:me-modal{--radius-modal:calc(var(--border-radius) * 4);z-index:999;overscroll-behavior:contain;pointer-events:none;visibility:hidden;width:100%;max-width:none;height:100%;max-height:none;transition:visibility .2s ease allow-discrete, overlay .2s ease allow-discrete;background-color:#0000;place-items:center;margin:0;padding:.75rem;display:grid;position:fixed;inset:0;overflow:hidden}.fj\\:me-modal::backdrop{background-color:var(--lightningcss-light,#000)var(--lightningcss-dark,#000)}@supports (color:color-mix(in lab, red, red)){.fj\\:me-modal::backdrop{background-color:var(--lightningcss-light,color-mix(in oklch, black 10%, var(--color-base-600) 40%))var(--lightningcss-dark,color-mix(in oklch, black 10%, var(--color-base-400) 40%))}}.fj\\:me-modal::backdrop{opacity:0;transition:opacity .2s ease-out}.fj\\:me-modal[open]{pointer-events:auto;visibility:visible}.fj\\:me-modal[open]::backdrop{opacity:1}@starting-style{.fj\\:me-modal[open]::backdrop{opacity:0}}.fj\\:me-modal[open]{--modal-content--translate:0 0;--modal-content--scale:1;--modal-content--opacity:1}.fj\\:me-btn{--radius-btn:calc(var(--border-radius) * 2);--color-btn:var(--color-base-soft);--color-on-btn:var(--color-on-base);--color-btn-active:var(--color-base-active);--btn-variant-text:var(--color-on-base);background-color:var(--color-btn);color:var(--color-on-btn,color-contrast(var(--color-btn) vs white, black));--btn--opacity:1;--btn--cursor:pointer;--btn--pointer-events:auto;--btn--border-width:0;--btn--border-style:solid;--btn--border-color:transparent;border-width:var(--btn--border-width);border-style:var(--btn--border-style);border-color:var(--btn--border-color)}.fj\\:me-btn:is(:disabled,[disabled]){--btn--opacity:.5;--btn--cursor:not-allowed;--btn--pointer-events:none}.fj\\:me-btn{opacity:var(--btn--opacity);cursor:pointer;pointer-events:var(--btn--pointer-events);-webkit-user-select:none;user-select:none}@media (hover:hover){.fj\\:me-btn:hover{background-color:var(--color-btn-active);color:var(--color-on-btn);transition-duration:.22s}}.fj\\:me-btn{border-radius:var(--btn--radius,var(--radius-btn));display:var(--btn--display,inline-flex);padding-inline:var(--btn--shape-padding-inline,var(--btn--padding-inline,1.125rem));padding-block:var(--btn--shape-padding-block,var(--btn--padding-block,.625rem));font-size:var(--btn--font-size,1rem);line-height:calc(var(--btn--font-size,1rem) * var(--btn--line-height,1.5));width:var(--btn--width);max-width:var(--btn--max-width);vertical-align:middle;text-align:center;box-sizing:border-box;flex-wrap:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:.375rem;font-weight:500;transition:background-color .18s cubic-bezier(.4,0,.2,1),color .18s cubic-bezier(.4,0,.2,1),border-color .18s cubic-bezier(.4,0,.2,1),opacity .2s;position:relative}.fj\\:me-btn:is(input[type=checkbox],input[type=radio]){appearance:none}.fj\\:me-btn:is(input[type=checkbox],input[type=radio]):after{content:attr(aria-label)}.fj\\:me-btn:is(input[type=checkbox],input[type=radio]):checked{isolation:isolate;background-color:var(--color-btn-active)}.fj\\:me-btn:focus-visible{outline-width:2px;outline-style:solid;outline-color:var(--lightningcss-light,var(--color-base-950,currentColor))var(--lightningcss-dark,var(--color-base-50,currentColor));outline-offset:3px;isolation:isolate}.fj\\:me-input{--radius-input:calc(var(--border-radius) * 2);--color-input:var(--color-base-soft);--color-on-input:var(--color-on-base-soft);--color-input-soft:var(--color-base-soft);--color-input-active:var(--color-base-active);--color-on-input-active:var(--color-on-base);--input--inline:.75rem;--input--block:.625rem;--input--font-size:1rem;border-style:solid;border-width:1px;border-color:var(--color-input-active);background-color:#0000}.fj\\:me-input:not([type=file]){padding-inline:var(--input--inline);padding-block:var(--input--block)}.fj\\:me-input{font-size:var(--input--font-size);color:var(--color-on-base);appearance:none;border-radius:var(--radius-input);vertical-align:middle;white-space:nowrap;flex-shrink:0;align-self:flex-start;align-items:center;gap:.5rem;font-weight:500;transition:border-color .25s ease-in-out;display:inline-flex;position:relative}.fj\\:me-input::-moz-placeholder{font-size:var(--input--font-size);color:var(--input-disabled--color)}@supports (color:color-mix(in lab, red, red)){.fj\\:me-input::-moz-placeholder{color:color-mix(in oklab, var(--color-on-base) 30%, transparent)}}.fj\\:me-input::-moz-placeholder{font-weight:400}.fj\\:me-input::placeholder{font-size:var(--input--font-size);color:var(--input-disabled--color)}@supports (color:color-mix(in lab, red, red)){.fj\\:me-input::placeholder{color:color-mix(in oklab, var(--color-on-base) 30%, transparent)}}.fj\\:me-input::placeholder{font-weight:400}.fj\\:me-input::file-selector-button{font-size:var(--input--font-size);padding-inline:var(--input--inline);padding-block:var(--input--block);background-color:var(--color-input);border-inline-end-width:1px;border-style:solid;border-color:var(--color-input-active);font-weight:semibold;color:var(--color-on-input);border-start-start-radius:calc(var(--radius-input) / 2);border-end-start-radius:calc(var(--radius-input) / 2);align-items:center;margin-inline-end:1rem;transition:border-color .3s ease-in-out,background-color .3s ease-in-out,display .3s ease-in-out;display:inline-flex}@media (hover:hover){.fj\\:me-input::file-selector-button:hover{background-color:var(--color-input-active);color:var(--color-on-input-active)}}.fj\\:me-input:is(:disabled,[disabled],.fj\\:me-input-disabled){--input-disabled--cursor:not-allowed;--input-disabled--opacity:.6;--input-disabled--pointer-events:none;--input-disabled--user-select:none;--input-disabled--bg-color:var(--color-base-soft);--input-disabled--color:var(--lightningcss-light,var(--color-base-700))var(--lightningcss-dark,var(--color-base-400));--input-disabled--border-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.fj\\:me-input:is(:disabled,[disabled],.fj\\:me-input-disabled){--input-disabled--border-color:color-mix(in oklab, var(--input) 20%, transparent)}}.fj\\:me-input:is(:disabled,[disabled],.fj\\:me-input-disabled){cursor:var(--input-disabled--cursor);opacity:var(--input-disabled--opacity);pointer-events:var(--input-disabled--pointer-events);background-color:var(--input-disabled--bg-color);color:var(--input-disabled--color);-webkit-user-select:var(--input-disabled--user-select);-moz-user-select:var(--input-disabled--user-select);user-select:var(--input-disabled--user-select);border-color:var(--input-disabled--border-color)}.fj\\:me-input:focus,.fj\\:me-input:focus-within{border-color:var(--lightningcss-light,var(--color-base-800))var(--lightningcss-dark,var(--color-base-300))}@supports (color:color-mix(in lab, red, red)){.fj\\:me-input:focus,.fj\\:me-input:focus-within{border-color:var(--lightningcss-light,var(--color-base-800))var(--lightningcss-dark,color-mix(in oklab, var(--color-base-300) 80%, transparent))}}.fj\\:pointer-events-none{pointer-events:none}.fj\\:me-popover-content{border-radius:var(--radius-popover);visibility:var(--popover-hover--visibility,hidden);opacity:var(--popover-hover--opacity,0);z-index:100;position-anchor:var(--popover--anchor-name);position-area:var(--popover--position-area,block-end span-inline-end);position-try-fallbacks:var(--popover--position-try,none);background-color:var(--color-popover);outline-width:1px;outline-style:solid;outline-color:var(--color-popover-border);transition-behavior:allow-discrete;width:max-content;max-width:min(20rem,90vw);transition-property:opacity,visibility,transform;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-delay:var(--popover-hover--transition-delay,revert);margin-block-start:var(--popover-placement--mt,.5rem);margin-block-end:var(--popover-placement--mb,.5rem);margin-inline-start:var(--popover-placement--ms,.5rem);margin-inline-end:var(--popover-placement--me,.5rem);padding:.6rem;position:fixed}.fj\\:me-popover-content:hover{--popover-hover--visibility:visible;--popover-hover--opacity:1}.fj\\:me-popover-content[popover]:popover-open{visibility:visible;opacity:1}@starting-style{.fj\\:me-popover-content[popover]:popover-open{visibility:hidden;opacity:0}}.fj\\:me-menu{--color-menu:var(--color-base-soft);--color-on-menu:var(--color-on-base-soft);--color-menu-active:var(--color-base-active);--radius-menu:calc(var(--border-radius) * 4);border-radius:var(--radius-menu);color:currentColor;flex-flow:column wrap;width:fit-content;font-size:.875rem;display:flex}.fj\\:me-menu :where(ul,li:not(:first-child)){margin-block-start:.375rem}.fj\\:me-menu :where(li ul){white-space:nowrap;color:currentColor;margin-block-start:0;margin-inline-start:.1rem;padding-inline-start:1.4rem;font-size:.875rem;position:relative}.fj\\:me-menu :where(li ul):before{content:"";background-color:var(--color-on-menu);opacity:.1;width:1px;position:absolute;inset-block:.7rem 0;inset-inline-start:.7rem}.fj\\:me-menu :where(summary){margin-block:.375rem;margin-inline:.75rem}.fj\\:me-popover{--radius-popover:calc(var(--border-radius) * 2);--color-popover:var(--color-base);--color-popover-border:var(--color-base-soft);--popover--anchor-name:--popover-anchor;--popover--position-try:flip-block, flip-inline, flip-block flip-inline;anchor-scope:all;display:inline-block;position:relative}.fj\\:fixed{position:fixed}.fj\\:relative{position:relative}.fj\\:sticky{position:sticky}.fj\\:inset-x-0{inset-inline:calc(var(--fj-spacing) * 0)}.fj\\:top-0{top:calc(var(--fj-spacing) * 0)}.fj\\:-right-2{right:calc(var(--fj-spacing) * -2)}.fj\\:z-0{z-index:0}.fj\\:z-10{z-index:10}.fj\\:z-999{z-index:999}.fj\\:me-modal-content{translate:var(--modal-content--translate,var(--modal-slide--translate,none));scale:var(--modal-content--scale,var(--modal-slide--scale,95%));opacity:var(--modal-content--opacity,0);overscroll-behavior:contain;background-color:var(--color-base);border-radius:var(--radius-modal);border:1px solid var(--color-base-soft);width:91.6667%;max-width:32rem;max-height:100vh;box-shadow:0 4px 6px -1px var(--lightningcss-light,var(--color-base-950))var(--lightningcss-dark,#00000073), 0 10px 32px -4px var(--lightningcss-light,var(--color-base-950))var(--lightningcss-dark,#0000008c);grid-row-start:1;grid-column-start:1;padding:1.5rem;overflow-y:auto}@supports (color:color-mix(in lab, red, red)){.fj\\:me-modal-content{box-shadow:0 4px 6px -1px var(--lightningcss-light,color-mix(in oklch, var(--color-base-950) 12%, transparent))var(--lightningcss-dark,oklch(0% none none/.45)), 0 10px 32px -4px var(--lightningcss-light,color-mix(in oklch, var(--color-base-950) 10%, transparent))var(--lightningcss-dark,oklch(0% none none/.55))}}.fj\\:me-modal-content{transition:translate .2s ease-out,scale .2s ease-out,opacity .2s ease-out,box-shadow .2s ease-out}@media (forced-colors:active){.fj\\:me-modal-content{outline:1px solid}}.fj\\:me-divider{--divider--margin:1rem 0;--color-divider:var(--color-base-soft);--divider-direction:right;--divider--flex-direction:row;--divider--width:100%;--divider--height:1px;--divider-dash-length:10px;--divider-gap-length:0px;flex-direction:var(--divider--flex-direction);width:var(--divider--width);height:var(--divider--height);justify-content:center;align-items:center;display:flex}.fj\\:me-divider:not(:empty){-moz-column-gap:.5rem;column-gap:.5rem}.fj\\:me-divider:before,.fj\\:me-divider:after{content:"";margin:var(--divider--margin);width:var(--divider--width);height:var(--divider--height);background:repeating-linear-gradient(to var(--divider-direction), var(--color-divider) 0px, var(--color-divider) var(--divider-dash-length), transparent var(--divider-dash-length), transparent calc(var(--divider-dash-length) + var(--divider-gap-length)))}.fj\\:m-0{margin:calc(var(--fj-spacing) * 0)}.fj\\:my-1{margin-block:calc(var(--fj-spacing) * 1)}.fj\\:prose{color:var(--tw-prose-body);max-width:65ch}.fj\\:prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.fj\\:prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.fj\\:prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.fj\\:prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.fj\\:prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.fj\\:prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.fj\\:prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.fj\\:prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.fj\\:prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.fj\\:prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.fj\\:prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.fj\\:prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.fj\\:prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.fj\\:prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.fj\\:prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.fj\\:prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.fj\\:prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.fj\\:prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.fj\\:prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.fj\\:prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.fj\\:prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.fj\\:prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.fj\\:prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.fj\\:prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.fj\\:prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.fj\\:prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.fj\\:prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.fj\\:prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.fj\\:prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.fj\\:prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.fj\\:prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.fj\\:prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.fj\\:prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.fj\\:prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.fj\\:prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.fj\\:prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.fj\\:prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.fj\\:prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.fj\\:prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.fj\\:prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.fj\\:prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.fj\\:prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.fj\\:prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.fj\\:prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.fj\\:prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.fj\\:prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.fj\\:prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.fj\\:prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.fj\\:prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.fj\\:prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.fj\\:prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.fj\\:prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.fj\\:prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.fj\\:prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.fj\\:prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.fj\\:prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.fj\\:prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.fj\\:prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.fj\\:prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.fj\\:prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.fj\\:prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.fj\\:prose :where(.fj\\:prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.fj\\:prose :where(.fj\\:prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.fj\\:prose :where(.fj\\:prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.fj\\:prose :where(.fj\\:prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.fj\\:prose :where(.fj\\:prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.fj\\:prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.fj\\:prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.fj\\:prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.fj\\:prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.fj\\:prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.fj\\:prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.fj\\:prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.fj\\:prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.fj\\:prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.fj\\:prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.fj\\:prose :where(.fj\\:prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.fj\\:prose :where(.fj\\:prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.fj\\:prose-sm{font-size:.875rem;line-height:1.71429}.fj\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.fj\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.fj\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.fj\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.fj\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.fj\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.fj\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.fj\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.fj\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.fj\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.fj\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.fj\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.fj\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.fj\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.fj\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.fj\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.fj\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.fj\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.fj\\:prose-sm :where(.fj\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.fj\\:prose-sm :where(.fj\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.fj\\:prose-sm :where(.fj\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.fj\\:prose-sm :where(.fj\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.fj\\:prose-sm :where(.fj\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.fj\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.fj\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.fj\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.fj\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.fj\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.fj\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.fj\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.fj\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.fj\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.fj\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.fj\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.fj\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.fj\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.fj\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.fj\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.fj\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.fj\\:prose-sm :where(.fj\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.fj\\:prose-sm :where(.fj\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.fj\\:mt-4{margin-top:calc(var(--fj-spacing) * 4)}.fj\\:box-border{box-sizing:border-box}.fj\\:me-menu-item{color:currentColor;border-radius:calc(var(--radius-menu) / 2);text-align:start;text-wrap:balance;-webkit-user-select:none;user-select:none;cursor:pointer;padding-block:.375rem;padding-inline:.75rem;grid-auto-columns:minmax(auto,max-content) auto max-content;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;padding-inline-end:var(--menu-horizontal--padding-inline-end,.75rem);font-size:.875rem;transition-property:color,background-color,box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);display:grid}@media (hover:hover){.fj\\:me-menu-item:hover{background-color:var(--color-menu);color:var(--color-on-menu)}}.fj\\:me-menu-item:focus-within{background-color:var(--color-menu);color:var(--color-on-menu);cursor:pointer;outline-style:none}@media (forced-colors:active){.fj\\:me-menu-item:focus-within{outline-offset:2px;outline:2px solid #0000}}.fj\\:me-menu-item :where(a,button):focus-visible{outline:2px solid #0000}@media (forced-colors:active){.fj\\:me-menu-item :where(a,button):focus-visible{outline-offset:2px;outline:2px solid #0000}}.fj\\:flex{display:flex}.fj\\:grid{display:grid}.fj\\:hidden{display:none}.fj\\:me-btn-circle{--btn--radius:9999px;--btn--shape-padding-inline:var(--btn-circle--padding-block,.625rem);--btn--shape-padding-block:var(--btn-circle--padding-block,.625rem);aspect-ratio:1}.fj\\:me-btn-square{--btn--shape-padding-inline:var(--btn-square--padding-block,.625rem);--btn--shape-padding-block:var(--btn-square--padding-block,.625rem);aspect-ratio:1}.fj\\:size-full{width:100%;height:100%}.fj\\:h-dvh{height:100dvh}.fj\\:h-full{height:100%}.fj\\:h-full\\!{height:100%!important}.fj\\:min-h-0{min-height:calc(var(--fj-spacing) * 0)}.fj\\:w-full{width:100%}.fj\\:max-w-full{max-width:100%}.fj\\:max-w-sm{max-width:var(--fj-container-sm)}.fj\\:flex-1{flex:1}.fj\\:resize-none{resize:none}.fj\\:appearance-none{appearance:none}.fj\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.fj\\:flex-col{flex-direction:column}.fj\\:items-center{align-items:center}.fj\\:me-modal-top{align-items:start}.fj\\:justify-between{justify-content:space-between}.fj\\:justify-center{justify-content:center}.fj\\:me-modal-center{justify-items:center}.fj\\:gap-3{gap:calc(var(--fj-spacing) * 3)}.fj\\:gap-x-1{column-gap:calc(var(--fj-spacing) * 1)}.fj\\:gap-y-4{row-gap:calc(var(--fj-spacing) * 4)}.fj\\:gap-y-4\\.5{row-gap:calc(var(--fj-spacing) * 4.5)}.fj\\:self-end{align-self:flex-end}.fj\\:overflow-hidden{overflow:hidden}.fj\\:overflow-x-auto{overflow-x:auto}.fj\\:overflow-y-auto{overflow-y:auto}.fj\\:me-surface-rounded{border-radius:calc(var(--border-radius) * 2)}.fj\\:rounded-md{border-radius:var(--fj-radius-md)}.fj\\:me-surface-outline{border-style:solid;border-width:1px;border-color:var(--color-base-soft);background-color:#0000}.fj\\:border-0{border-style:var(--tw-border-style);border-width:0}.fj\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.fj\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.fj\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.fj\\:border-base-soft{border-color:var(--color-base-soft)}.fj\\:me-surface{--surface--bg-color:var(--color-base);--surface--color:var(--color-on-base);background-color:var(--surface--bg-color);color:var(--surface--color);padding:var(--surface--padding)}.fj\\:me-btn-ghost{color:var(--btn-variant-text);--btn--border-width:0;background-color:#0000}.fj\\:bg-transparent{background-color:#0000}.fj\\:p-1\\.5{padding:calc(var(--fj-spacing) * 1.5)}.fj\\:p-2{padding:calc(var(--fj-spacing) * 2)}.fj\\:px-1\\.5{padding-inline:calc(var(--fj-spacing) * 1.5)}.fj\\:px-3{padding-inline:calc(var(--fj-spacing) * 3)}.fj\\:px-4{padding-inline:calc(var(--fj-spacing) * 4)}.fj\\:py-1{padding-block:calc(var(--fj-spacing) * 1)}.fj\\:py-2{padding-block:calc(var(--fj-spacing) * 2)}.fj\\:me-heading-lg{color:var(--color-on-base);text-wrap-style:balance;font-weight:700;font-size:var(--text-lg);line-height:1.15}.fj\\:me-heading-md{color:var(--color-on-base);text-wrap-style:balance;font-weight:700;line-height:1.15;font-size:var(--text-base)}.fj\\:me-heading-sm{color:var(--color-on-base);text-wrap-style:balance;font-weight:700;font-size:var(--text-sm);line-height:1.15}.fj\\:me-heading-xl{color:var(--color-on-base);text-wrap-style:balance;font-weight:700;font-size:var(--text-xl);line-height:1.15}.fj\\:me-heading-xs{color:var(--color-on-base);text-wrap-style:balance;font-weight:700;font-size:var(--text-xs);line-height:1.15}.fj\\:text-xs{font-size:var(--fj-text-xs);line-height:var(--tw-leading,var(--fj-text-xs--line-height))}.fj\\:font-bold{--tw-font-weight:var(--fj-font-weight-bold);font-weight:var(--fj-font-weight-bold)}.fj\\:font-medium{--tw-font-weight:var(--fj-font-weight-medium);font-weight:var(--fj-font-weight-medium)}.fj\\:tracking-\\[-0\\.040em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.fj\\:wrap-break-word{overflow-wrap:break-word}.fj\\:whitespace-pre-wrap{white-space:pre-wrap}.fj\\:text-accent{color:var(--color-accent-500)}.fj\\:text-primary{color:var(--color-primary-500)}.fj\\:text-secondary{color:var(--color-secondary-500)}.fj\\:text-transparent{color:#0000}.fj\\:italic{font-style:italic}.fj\\:line-through{text-decoration-line:line-through}.fj\\:underline{text-decoration-line:underline}.fj\\:caret-primary{caret-color:var(--color-primary-500)}.fj\\:opacity-25{opacity:.25}.fj\\:opacity-30{opacity:.3}.fj\\:opacity-40{opacity:.4}.fj\\:opacity-50{opacity:.5}.fj\\:opacity-60{opacity:.6}.fj\\:opacity-70{opacity:.7}.fj\\:outline-0{outline-style:var(--tw-outline-style);outline-width:0}.fj\\:me-prose-frutjam{--tw-prose-body:var(--color-body);--tw-prose-headings:var(--color-on-base);--tw-prose-lead:var(--color-on-neutral);--tw-prose-bold:var(--color-on-base);--tw-prose-links:var(--color-primary);--tw-prose-counters:var(--color-on-neutral);--tw-prose-bullets:var(--color-neutral);--tw-prose-hr:var(--color-base-soft);--tw-prose-quotes:var(--color-on-base);--tw-prose-quote-borders:var(--color-primary);--tw-prose-code:var(--color-on-base);--tw-prose-pre-code:var(--color-base);--tw-prose-pre-bg:var(--color-on-base);--tw-prose-th-borders:var(--color-base-soft);--tw-prose-td-borders:var(--color-base-soft);--tw-prose-captions:var(--color-on-neutral);--tw-prose-kbd:var(--color-body);--tw-prose-invert-body:var(--color-on-neutral);--tw-prose-invert-headings:var(--color-on-base);--tw-prose-invert-links:var(--color-primary)}.fj\\:me-btn-sm{--btn--padding-inline:1rem;--btn--padding-block:.5rem;--btn--font-size:.875rem;--btn--line-height:1.4;--btn-square--padding-block:.5rem;--btn-circle--padding-block:.5rem}.fj\\:me-btn-xs{--btn--padding-inline:.875rem;--btn--padding-block:.375rem;--btn--font-size:.75rem;--btn--line-height:1.3;--btn-square--padding-block:.375rem;--btn-circle--padding-block:.375rem}.fj\\:outline-none{--tw-outline-style:none;outline-style:none}.fj\\:select-none{-webkit-user-select:none;user-select:none}.fj\\:\\[grid-area\\:1\\/1\\/2\\/2\\]{grid-area:1/1/2/2}.fj\\:me-btn-active{--color-btn:var(--color-btn-active)}.fj\\:me-popover-toggle{anchor-name:var(--popover--anchor-name)}.fj\\:empty\\:after\\:absolute:empty:after{content:var(--tw-content);position:absolute}.fj\\:empty\\:after\\:inset-0:empty:after{content:var(--tw-content);inset:calc(var(--fj-spacing) * 0)}.fj\\:empty\\:after\\:px-4:empty:after{content:var(--tw-content);padding-inline:calc(var(--fj-spacing) * 4)}.fj\\:empty\\:after\\:py-2:empty:after{content:var(--tw-content);padding-block:calc(var(--fj-spacing) * 2)}.fj\\:empty\\:after\\:text-\\[CanvasText\\]:empty:after{content:var(--tw-content);color:canvastext}.fj\\:empty\\:after\\:opacity-50:empty:after{content:var(--tw-content);opacity:.5}.fj\\:empty\\:after\\:content-\\[attr\\(data-placeholder\\)\\]:empty:after{--tw-content:attr(data-placeholder);content:var(--tw-content)}.fj\\:focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.fj\\:focus\\:outline-0:focus{outline-style:var(--tw-outline-style);outline-width:0}@media (width>=48rem){.fj\\:md\\:pointer-events-auto{pointer-events:auto}.fj\\:md\\:prose-base{font-size:1rem;line-height:1.75}.fj\\:md\\:prose-base :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.fj\\:md\\:prose-base :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.fj\\:md\\:prose-base :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.fj\\:md\\:prose-base :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.888889em;font-size:2.25em;line-height:1.11111}.fj\\:md\\:prose-base :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:1em;font-size:1.5em;line-height:1.33333}.fj\\:md\\:prose-base :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;line-height:1.6}.fj\\:md\\:prose-base :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.fj\\:md\\:prose-base :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.fj\\:md\\:prose-base :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.fj\\:md\\:prose-base :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.fj\\:md\\:prose-base :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-size:.875em}.fj\\:md\\:prose-base :where(code):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.fj\\:md\\:prose-base :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.fj\\:md\\:prose-base :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;line-height:1.71429}.fj\\:md\\:prose-base :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.fj\\:md\\:prose-base :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.fj\\:md\\:prose-base :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.fj\\:md\\:prose-base :where(.fj\\:prose-base>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.fj\\:md\\:prose-base :where(.fj\\:prose-base>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.fj\\:md\\:prose-base :where(.fj\\:prose-base>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.fj\\:md\\:prose-base :where(.fj\\:prose-base>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.fj\\:md\\:prose-base :where(.fj\\:prose-base>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.fj\\:md\\:prose-base :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.fj\\:md\\:prose-base :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.fj\\:md\\:prose-base :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.fj\\:md\\:prose-base :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.fj\\:md\\:prose-base :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3em;margin-bottom:3em}.fj\\:md\\:prose-base :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.fj\\:md\\:prose-base :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.fj\\:md\\:prose-base :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.71429}.fj\\:md\\:prose-base :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.fj\\:md\\:prose-base :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.fj\\:md\\:prose-base :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.fj\\:md\\:prose-base :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.fj\\:md\\:prose-base :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.fj\\:md\\:prose-base :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.fj\\:md\\:prose-base :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.fj\\:md\\:prose-base :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.fj\\:md\\:prose-base :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.857143em;font-size:.875em;line-height:1.42857}.fj\\:md\\:prose-base :where(.fj\\:prose-base>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.fj\\:md\\:prose-base :where(.fj\\:prose-base>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.fj\\:md\\:grid{display:grid}.fj\\:md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.fj\\:md\\:opacity-100{opacity:1}}@media (width>=64rem){.fj\\:lg\\:me-modal-middle{align-items:center}}.textarea-wrapper:has(.display-layer) .textarea::selection{background:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.textarea-wrapper:has(.display-layer) .textarea::selection{background:color-mix(in oklch, var(--color-primary), transparent 80%)}}.textarea-wrapper:has(.display-layer) .textarea::selection{color:#0000;caret-color:var(--color-primary)}@layer base{@layer base{.markdown-editor-wrapper,[data-theme]{--palette-shade-light-color:white;--palette-shade-dark-color:black;--color-body:currentColor}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-body:color-mix(in oklch, currentColor 80%, transparent)}}.markdown-editor-wrapper,[data-theme]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color-scheme:var(--scheme-color,light);color:var(--color-on-base);background-color:var(--color-base);--color-base-soft:var(--lightningcss-light,var(--color-on-base))var(--lightningcss-dark,var(--color-on-base))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-soft:var(--lightningcss-light,color-mix(in oklch, var(--color-on-base) 8%, var(--color-base) 92%))var(--lightningcss-dark,color-mix(in oklch, var(--color-on-base) 16%, var(--color-base) 84%))}}.markdown-editor-wrapper,[data-theme]{--color-on-base-soft:var(--color-on-base);--color-base-active:var(--lightningcss-light,var(--color-on-base))var(--lightningcss-dark,var(--color-on-base))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-active:var(--lightningcss-light,color-mix(in oklch, var(--color-on-base) 14%, var(--color-base) 86%))var(--lightningcss-dark,color-mix(in oklch, var(--color-on-base) 26%, var(--color-base) 74%))}}.markdown-editor-wrapper,[data-theme]{--color-base-50:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-50:color-mix(in oklch, var(--color-on-base) 4%, var(--color-base) 96%)}}.markdown-editor-wrapper,[data-theme]{--color-base-100:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-100:color-mix(in oklch, var(--color-on-base) 8%, var(--color-base) 92%)}}.markdown-editor-wrapper,[data-theme]{--color-base-200:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-200:color-mix(in oklch, var(--color-on-base) 16%, var(--color-base) 84%)}}.markdown-editor-wrapper,[data-theme]{--color-base-300:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-300:color-mix(in oklch, var(--color-on-base) 26%, var(--color-base) 74%)}}.markdown-editor-wrapper,[data-theme]{--color-base-400:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-400:color-mix(in oklch, var(--color-on-base) 36%, var(--color-base) 64%)}}.markdown-editor-wrapper,[data-theme]{--color-base-500:var(--color-base);--color-base-600:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-600:color-mix(in oklch, var(--color-on-base) 50%, var(--color-base) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-base-700:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-700:color-mix(in oklch, var(--color-on-base) 62%, var(--color-base) 38%)}}.markdown-editor-wrapper,[data-theme]{--color-base-800:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-800:color-mix(in oklch, var(--color-on-base) 74%, var(--color-base) 26%)}}.markdown-editor-wrapper,[data-theme]{--color-base-900:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-900:color-mix(in oklch, var(--color-on-base) 86%, var(--color-base) 14%)}}.markdown-editor-wrapper,[data-theme]{--color-base-950:var(--color-on-base)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-base-950:color-mix(in oklch, var(--color-on-base) 92%, var(--color-base) 8%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-soft:var(--lightningcss-light,var(--color-neutral-50))var(--lightningcss-dark,var(--color-neutral))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-soft:var(--lightningcss-light,var(--color-neutral-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-neutral) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-neutral-soft:var(--lightningcss-light,var(--color-neutral-700))var(--lightningcss-dark,var(--color-neutral-300));--color-neutral-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-neutral) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-neutral) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-neutral-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-neutral) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-neutral) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-neutral) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-neutral) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-neutral) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-500:var(--color-neutral);--color-neutral-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-neutral) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-neutral) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-neutral) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-neutral) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-neutral-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-neutral-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-neutral) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-soft:var(--lightningcss-light,var(--color-primary-50))var(--lightningcss-dark,var(--color-primary))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-soft:var(--lightningcss-light,var(--color-primary-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-primary) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-primary-soft:var(--lightningcss-light,var(--color-primary-700))var(--lightningcss-dark,var(--color-primary-300));--color-primary-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-primary) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-primary) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-primary-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-primary) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-primary) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-primary) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-primary) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-primary) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-500:var(--color-primary);--color-primary-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-primary) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-primary) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-primary) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-primary) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-primary-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-primary-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-primary) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-soft:var(--lightningcss-light,var(--color-secondary-50))var(--lightningcss-dark,var(--color-secondary))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-soft:var(--lightningcss-light,var(--color-secondary-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-secondary) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-secondary-soft:var(--lightningcss-light,var(--color-secondary-700))var(--lightningcss-dark,var(--color-secondary-300));--color-secondary-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-secondary) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-secondary) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-secondary-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-secondary) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-secondary) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-secondary) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-secondary) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-secondary) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-500:var(--color-secondary);--color-secondary-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-secondary) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-secondary) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-secondary) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-secondary) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-secondary-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-secondary-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-secondary) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-soft:var(--lightningcss-light,var(--color-accent-50))var(--lightningcss-dark,var(--color-accent))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-soft:var(--lightningcss-light,var(--color-accent-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-accent) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-accent-soft:var(--lightningcss-light,var(--color-accent-700))var(--lightningcss-dark,var(--color-accent-300));--color-accent-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-accent) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-accent) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-accent-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-accent) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-accent) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-accent) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-accent) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-accent) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-500:var(--color-accent);--color-accent-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-accent) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-accent) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-accent) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-accent) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-accent-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-accent-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-accent) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-info-soft:var(--lightningcss-light,var(--color-info-50))var(--lightningcss-dark,var(--color-info))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-soft:var(--lightningcss-light,var(--color-info-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-info) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-info-soft:var(--lightningcss-light,var(--color-info-700))var(--lightningcss-dark,var(--color-info-300));--color-info-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-info) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-info) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-info-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-info) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-info-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-info) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-info-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-info) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-info-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-info) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-info-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-info) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-info-500:var(--color-info);--color-info-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-info) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-info-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-info) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-info-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-info) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-info-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-info) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-info-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-info-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-info) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-success-soft:var(--lightningcss-light,var(--color-success-50))var(--lightningcss-dark,var(--color-success))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-soft:var(--lightningcss-light,var(--color-success-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-success) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-success-soft:var(--lightningcss-light,var(--color-success-700))var(--lightningcss-dark,var(--color-success-300));--color-success-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-success) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-success) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-success-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-success) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-success-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-success) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-success-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-success) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-success-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-success) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-success-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-success) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-success-500:var(--color-success);--color-success-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-success) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-success-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-success) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-success-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-success) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-success-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-success) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-success-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-success-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-success) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-soft:var(--lightningcss-light,var(--color-warning-50))var(--lightningcss-dark,var(--color-warning))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-soft:var(--lightningcss-light,var(--color-warning-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-warning) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-warning-soft:var(--lightningcss-light,var(--color-warning-800))var(--lightningcss-dark,var(--color-warning-300));--color-warning-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-warning) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-warning) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-warning-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-warning) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-warning) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-warning) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-warning) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-warning) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-500:var(--color-warning);--color-warning-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-warning) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-warning) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-warning) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-warning) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-warning-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-warning-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-warning) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-error-soft:var(--lightningcss-light,var(--color-error-50))var(--lightningcss-dark,var(--color-error))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-soft:var(--lightningcss-light,var(--color-error-50))var(--lightningcss-dark,color-mix(in srgb, var(--color-error) 20%, var(--color-base) 80%))}}.markdown-editor-wrapper,[data-theme]{--color-on-error-soft:var(--lightningcss-light,var(--color-error-700))var(--lightningcss-dark,var(--color-error-300));--color-error-active:var(--lightningcss-light,var(--palette-shade-dark-color))var(--lightningcss-dark,var(--palette-shade-light-color))}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-active:var(--lightningcss-light,color-mix(in oklch, var(--palette-shade-dark-color) 15%, var(--color-error) 85%))var(--lightningcss-dark,color-mix(in oklch, var(--palette-shade-light-color) 15%, var(--color-error) 85%))}}.markdown-editor-wrapper,[data-theme]{--color-error-50:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-50:color-mix(in oklch, var(--palette-shade-light-color) 80%, var(--color-error) 20%)}}.markdown-editor-wrapper,[data-theme]{--color-error-100:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-100:color-mix(in oklch, var(--palette-shade-light-color) 65%, var(--color-error) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-error-200:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-200:color-mix(in oklch, var(--palette-shade-light-color) 50%, var(--color-error) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-error-300:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-300:color-mix(in oklch, var(--palette-shade-light-color) 35%, var(--color-error) 65%)}}.markdown-editor-wrapper,[data-theme]{--color-error-400:var(--palette-shade-light-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-400:color-mix(in oklch, var(--palette-shade-light-color) 18%, var(--color-error) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-error-500:var(--color-error);--color-error-600:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-600:color-mix(in oklch, var(--palette-shade-dark-color) 18%, var(--color-error) 82%)}}.markdown-editor-wrapper,[data-theme]{--color-error-700:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-700:color-mix(in oklch, var(--palette-shade-dark-color) 34%, var(--color-error) 66%)}}.markdown-editor-wrapper,[data-theme]{--color-error-800:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-800:color-mix(in oklch, var(--palette-shade-dark-color) 50%, var(--color-error) 50%)}}.markdown-editor-wrapper,[data-theme]{--color-error-900:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-900:color-mix(in oklch, var(--palette-shade-dark-color) 65%, var(--color-error) 35%)}}.markdown-editor-wrapper,[data-theme]{--color-error-950:var(--palette-shade-dark-color)}@supports (color:color-mix(in lab, red, red)){.markdown-editor-wrapper,[data-theme]{--color-error-950:color-mix(in oklch, var(--palette-shade-dark-color) 80%, var(--color-error) 20%)}}}@layer theme{:is([data-theme=darkberry],[data-theme=dark]){--scheme-color:dark;--border-radius:.25rem;--color-base:oklch(10.889% .00301 17.398);--color-on-base:oklch(98% .01 270);--color-neutral:oklch(85% 0 0);--color-on-neutral:oklch(20% 0 0);--color-primary:oklch(66.385% .18368 285.592);--color-on-primary:oklch(10% .01 270);--color-secondary:oklch(65% .18 220);--color-on-secondary:oklch(10% .01 220);--color-accent:oklch(75% .18 50);--color-on-accent:oklch(10% .01 50);--color-info:oklch(91.67% .077 205.04);--color-on-info:oklch(10% .01 250);--color-success:oklch(65% .18 140);--color-on-success:oklch(10% .01 140);--color-warning:oklch(75% .2 85);--color-on-warning:oklch(10% .01 85);--color-error:oklch(60% .22 30);--color-on-error:oklch(10% .01 30)}:root:not([data-theme]),:is([data-theme=snowberry],[data-theme=light]){--scheme-color:light;--border-radius:.25rem;--color-base:oklch(100% 0 0);--color-on-base:oklch(22% 0 0);--color-neutral:oklch(15% 0 0);--color-on-neutral:oklch(100% 0 0);--color-primary:oklch(51.1% .262 276.966);--color-on-primary:oklch(96.2% .018 272.314);--color-secondary:oklch(59.1% .293 322.896);--color-on-secondary:oklch(100% 0 0);--color-accent:oklch(54.1% .281 293.009);--color-on-accent:oklch(100% 0 0);--color-info:oklch(68.5% .169 237.323);--color-on-info:oklch(15% 0 0);--color-success:oklch(79.2% .209 151.711);--color-on-success:oklch(15% 0 0);--color-warning:oklch(85.2% .199 91.936);--color-on-warning:oklch(15% 0 0);--color-error:oklch(57.7% .245 27.325);--color-on-error:oklch(100% 0 0)}}@container countdown style(--digits:3){span:before{content:"000\\a 001\\a 002\\a 003\\a 004\\a 005\\a 006\\a 007\\a 008\\a 009\\a 010\\a 011\\a 012\\a 013\\a 014\\a 015\\a 016\\a 017\\a 018\\a 019\\a 020\\a 021\\a 022\\a 023\\a 024\\a 025\\a 026\\a 027\\a 028\\a 029\\a 030\\a 031\\a 032\\a 033\\a 034\\a 035\\a 036\\a 037\\a 038\\a 039\\a 040\\a 041\\a 042\\a 043\\a 044\\a 045\\a 046\\a 047\\a 048\\a 049\\a 050\\a 051\\a 052\\a 053\\a 054\\a 055\\a 056\\a 057\\a 058\\a 059\\a 060\\a 061\\a 062\\a 063\\a 064\\a 065\\a 066\\a 067\\a 068\\a 069\\a 070\\a 071\\a 072\\a 073\\a 074\\a 075\\a 076\\a 077\\a 078\\a 079\\a 080\\a 081\\a 082\\a 083\\a 084\\a 085\\a 086\\a 087\\a 088\\a 089\\a 090\\a 091\\a 092\\a 093\\a 094\\a 095\\a 096\\a 097\\a 098\\a 099\\a 100\\a 101\\a 102\\a 103\\a 104\\a 105\\a 106\\a 107\\a 108\\a 109\\a 110\\a 111\\a 112\\a 113\\a 114\\a 115\\a 116\\a 117\\a 118\\a 119\\a 120\\a 121\\a 122\\a 123\\a 124\\a 125\\a 126\\a 127\\a 128\\a 129\\a 130\\a 131\\a 132\\a 133\\a 134\\a 135\\a 136\\a 137\\a 138\\a 139\\a 140\\a 141\\a 142\\a 143\\a 144\\a 145\\a 146\\a 147\\a 148\\a 149\\a 150\\a 151\\a 152\\a 153\\a 154\\a 155\\a 156\\a 157\\a 158\\a 159\\a 160\\a 161\\a 162\\a 163\\a 164\\a 165\\a 166\\a 167\\a 168\\a 169\\a 170\\a 171\\a 172\\a 173\\a 174\\a 175\\a 176\\a 177\\a 178\\a 179\\a 180\\a 181\\a 182\\a 183\\a 184\\a 185\\a 186\\a 187\\a 188\\a 189\\a 190\\a 191\\a 192\\a 193\\a 194\\a 195\\a 196\\a 197\\a 198\\a 199\\a 200\\a 201\\a 202\\a 203\\a 204\\a 205\\a 206\\a 207\\a 208\\a 209\\a 210\\a 211\\a 212\\a 213\\a 214\\a 215\\a 216\\a 217\\a 218\\a 219\\a 220\\a 221\\a 222\\a 223\\a 224\\a 225\\a 226\\a 227\\a 228\\a 229\\a 230\\a 231\\a 232\\a 233\\a 234\\a 235\\a 236\\a 237\\a 238\\a 239\\a 240\\a 241\\a 242\\a 243\\a 244\\a 245\\a 246\\a 247\\a 248\\a 249\\a 250\\a 251\\a 252\\a 253\\a 254\\a 255\\a 256\\a 257\\a 258\\a 259\\a 260\\a 261\\a 262\\a 263\\a 264\\a 265\\a 266\\a 267\\a 268\\a 269\\a 270\\a 271\\a 272\\a 273\\a 274\\a 275\\a 276\\a 277\\a 278\\a 279\\a 280\\a 281\\a 282\\a 283\\a 284\\a 285\\a 286\\a 287\\a 288\\a 289\\a 290\\a 291\\a 292\\a 293\\a 294\\a 295\\a 296\\a 297\\a 298\\a 299\\a 300\\a 301\\a 302\\a 303\\a 304\\a 305\\a 306\\a 307\\a 308\\a 309\\a 310\\a 311\\a 312\\a 313\\a 314\\a 315\\a 316\\a 317\\a 318\\a 319\\a 320\\a 321\\a 322\\a 323\\a 324\\a 325\\a 326\\a 327\\a 328\\a 329\\a 330\\a 331\\a 332\\a 333\\a 334\\a 335\\a 336\\a 337\\a 338\\a 339\\a 340\\a 341\\a 342\\a 343\\a 344\\a 345\\a 346\\a 347\\a 348\\a 349\\a 350\\a 351\\a 352\\a 353\\a 354\\a 355\\a 356\\a 357\\a 358\\a 359\\a 360\\a 361\\a 362\\a 363\\a 364\\a 365\\a 366\\a 367\\a 368\\a 369\\a 370\\a 371\\a 372\\a 373\\a 374\\a 375\\a 376\\a 377\\a 378\\a 379\\a 380\\a 381\\a 382\\a 383\\a 384\\a 385\\a 386\\a 387\\a 388\\a 389\\a 390\\a 391\\a 392\\a 393\\a 394\\a 395\\a 396\\a 397\\a 398\\a 399\\a 400\\a 401\\a 402\\a 403\\a 404\\a 405\\a 406\\a 407\\a 408\\a 409\\a 410\\a 411\\a 412\\a 413\\a 414\\a 415\\a 416\\a 417\\a 418\\a 419\\a 420\\a 421\\a 422\\a 423\\a 424\\a 425\\a 426\\a 427\\a 428\\a 429\\a 430\\a 431\\a 432\\a 433\\a 434\\a 435\\a 436\\a 437\\a 438\\a 439\\a 440\\a 441\\a 442\\a 443\\a 444\\a 445\\a 446\\a 447\\a 448\\a 449\\a 450\\a 451\\a 452\\a 453\\a 454\\a 455\\a 456\\a 457\\a 458\\a 459\\a 460\\a 461\\a 462\\a 463\\a 464\\a 465\\a 466\\a 467\\a 468\\a 469\\a 470\\a 471\\a 472\\a 473\\a 474\\a 475\\a 476\\a 477\\a 478\\a 479\\a 480\\a 481\\a 482\\a 483\\a 484\\a 485\\a 486\\a 487\\a 488\\a 489\\a 490\\a 491\\a 492\\a 493\\a 494\\a 495\\a 496\\a 497\\a 498\\a 499\\a 500\\a 501\\a 502\\a 503\\a 504\\a 505\\a 506\\a 507\\a 508\\a 509\\a 510\\a 511\\a 512\\a 513\\a 514\\a 515\\a 516\\a 517\\a 518\\a 519\\a 520\\a 521\\a 522\\a 523\\a 524\\a 525\\a 526\\a 527\\a 528\\a 529\\a 530\\a 531\\a 532\\a 533\\a 534\\a 535\\a 536\\a 537\\a 538\\a 539\\a 540\\a 541\\a 542\\a 543\\a 544\\a 545\\a 546\\a 547\\a 548\\a 549\\a 550\\a 551\\a 552\\a 553\\a 554\\a 555\\a 556\\a 557\\a 558\\a 559\\a 560\\a 561\\a 562\\a 563\\a 564\\a 565\\a 566\\a 567\\a 568\\a 569\\a 570\\a 571\\a 572\\a 573\\a 574\\a 575\\a 576\\a 577\\a 578\\a 579\\a 580\\a 581\\a 582\\a 583\\a 584\\a 585\\a 586\\a 587\\a 588\\a 589\\a 590\\a 591\\a 592\\a 593\\a 594\\a 595\\a 596\\a 597\\a 598\\a 599\\a 600\\a 601\\a 602\\a 603\\a 604\\a 605\\a 606\\a 607\\a 608\\a 609\\a 610\\a 611\\a 612\\a 613\\a 614\\a 615\\a 616\\a 617\\a 618\\a 619\\a 620\\a 621\\a 622\\a 623\\a 624\\a 625\\a 626\\a 627\\a 628\\a 629\\a 630\\a 631\\a 632\\a 633\\a 634\\a 635\\a 636\\a 637\\a 638\\a 639\\a 640\\a 641\\a 642\\a 643\\a 644\\a 645\\a 646\\a 647\\a 648\\a 649\\a 650\\a 651\\a 652\\a 653\\a 654\\a 655\\a 656\\a 657\\a 658\\a 659\\a 660\\a 661\\a 662\\a 663\\a 664\\a 665\\a 666\\a 667\\a 668\\a 669\\a 670\\a 671\\a 672\\a 673\\a 674\\a 675\\a 676\\a 677\\a 678\\a 679\\a 680\\a 681\\a 682\\a 683\\a 684\\a 685\\a 686\\a 687\\a 688\\a 689\\a 690\\a 691\\a 692\\a 693\\a 694\\a 695\\a 696\\a 697\\a 698\\a 699\\a 700\\a 701\\a 702\\a 703\\a 704\\a 705\\a 706\\a 707\\a 708\\a 709\\a 710\\a 711\\a 712\\a 713\\a 714\\a 715\\a 716\\a 717\\a 718\\a 719\\a 720\\a 721\\a 722\\a 723\\a 724\\a 725\\a 726\\a 727\\a 728\\a 729\\a 730\\a 731\\a 732\\a 733\\a 734\\a 735\\a 736\\a 737\\a 738\\a 739\\a 740\\a 741\\a 742\\a 743\\a 744\\a 745\\a 746\\a 747\\a 748\\a 749\\a 750\\a 751\\a 752\\a 753\\a 754\\a 755\\a 756\\a 757\\a 758\\a 759\\a 760\\a 761\\a 762\\a 763\\a 764\\a 765\\a 766\\a 767\\a 768\\a 769\\a 770\\a 771\\a 772\\a 773\\a 774\\a 775\\a 776\\a 777\\a 778\\a 779\\a 780\\a 781\\a 782\\a 783\\a 784\\a 785\\a 786\\a 787\\a 788\\a 789\\a 790\\a 791\\a 792\\a 793\\a 794\\a 795\\a 796\\a 797\\a 798\\a 799\\a 800\\a 801\\a 802\\a 803\\a 804\\a 805\\a 806\\a 807\\a 808\\a 809\\a 810\\a 811\\a 812\\a 813\\a 814\\a 815\\a 816\\a 817\\a 818\\a 819\\a 820\\a 821\\a 822\\a 823\\a 824\\a 825\\a 826\\a 827\\a 828\\a 829\\a 830\\a 831\\a 832\\a 833\\a 834\\a 835\\a 836\\a 837\\a 838\\a 839\\a 840\\a 841\\a 842\\a 843\\a 844\\a 845\\a 846\\a 847\\a 848\\a 849\\a 850\\a 851\\a 852\\a 853\\a 854\\a 855\\a 856\\a 857\\a 858\\a 859\\a 860\\a 861\\a 862\\a 863\\a 864\\a 865\\a 866\\a 867\\a 868\\a 869\\a 870\\a 871\\a 872\\a 873\\a 874\\a 875\\a 876\\a 877\\a 878\\a 879\\a 880\\a 881\\a 882\\a 883\\a 884\\a 885\\a 886\\a 887\\a 888\\a 889\\a 890\\a 891\\a 892\\a 893\\a 894\\a 895\\a 896\\a 897\\a 898\\a 899\\a 900\\a 901\\a 902\\a 903\\a 904\\a 905\\a 906\\a 907\\a 908\\a 909\\a 910\\a 911\\a 912\\a 913\\a 914\\a 915\\a 916\\a 917\\a 918\\a 919\\a 920\\a 921\\a 922\\a 923\\a 924\\a 925\\a 926\\a 927\\a 928\\a 929\\a 930\\a 931\\a 932\\a 933\\a 934\\a 935\\a 936\\a 937\\a 938\\a 939\\a 940\\a 941\\a 942\\a 943\\a 944\\a 945\\a 946\\a 947\\a 948\\a 949\\a 950\\a 951\\a 952\\a 953\\a 954\\a 955\\a 956\\a 957\\a 958\\a 959\\a 960\\a 961\\a 962\\a 963\\a 964\\a 965\\a 966\\a 967\\a 968\\a 969\\a 970\\a 971\\a 972\\a 973\\a 974\\a 975\\a 976\\a 977\\a 978\\a 979\\a 980\\a 981\\a 982\\a 983\\a 984\\a 985\\a 986\\a 987\\a 988\\a 989\\a 990\\a 991\\a 992\\a 993\\a 994\\a 995\\a 996\\a 997\\a 998\\a 999"}}@keyframes loading-spin{to{transform:rotate(360deg)}}@keyframes loading-pulse{0%,80%,to{opacity:.5;transform:scale(.6)}40%{opacity:1;transform:scale(1)}}@keyframes loading-bars{0%,to{transform:scaleY(.4)}50%{transform:scaleY(1)}}@keyframes progress{50%{background-position-x:-115%}}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ //#region node_modules/marked/lib/marked.esm.js
3
+ function e() {
4
+ return {
5
+ async: !1,
6
+ breaks: !1,
7
+ extensions: null,
8
+ gfm: !0,
9
+ hooks: null,
10
+ pedantic: !1,
11
+ renderer: null,
12
+ silent: !1,
13
+ tokenizer: null,
14
+ walkTokens: null
15
+ };
16
+ }
17
+ var t = e();
18
+ function n(e) {
19
+ t = e;
20
+ }
21
+ var r = { exec: () => null };
22
+ function i(e, t = "") {
23
+ let n = typeof e == "string" ? e : e.source, r = {
24
+ replace: (e, t) => {
25
+ let i = typeof t == "string" ? t : t.source;
26
+ return i = i.replace(o.caret, "$1"), n = n.replace(e, i), r;
27
+ },
28
+ getRegex: () => new RegExp(n, t)
29
+ };
30
+ return r;
31
+ }
32
+ var a = ((e = "") => {
33
+ try {
34
+ return !!RegExp("(?<=1)(?<!1)" + e);
35
+ } catch {
36
+ return !1;
37
+ }
38
+ })(), o = {
39
+ codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
40
+ outputLinkReplace: /\\([\[\]])/g,
41
+ indentCodeCompensation: /^(\s+)(?:```)/,
42
+ beginningSpace: /^\s+/,
43
+ endingHash: /#$/,
44
+ startingSpaceChar: /^ /,
45
+ endingSpaceChar: / $/,
46
+ nonSpaceChar: /[^ ]/,
47
+ newLineCharGlobal: /\n/g,
48
+ tabCharGlobal: /\t/g,
49
+ multipleSpaceGlobal: /\s+/g,
50
+ blankLine: /^[ \t]*$/,
51
+ doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
52
+ blockquoteStart: /^ {0,3}>/,
53
+ blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
54
+ blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
55
+ listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
56
+ listIsTask: /^\[[ xX]\] +\S/,
57
+ listReplaceTask: /^\[[ xX]\] +/,
58
+ listTaskCheckbox: /\[[ xX]\]/,
59
+ anyLine: /\n.*\n/,
60
+ hrefBrackets: /^<(.*)>$/,
61
+ tableDelimiter: /[:|]/,
62
+ tableAlignChars: /^\||\| *$/g,
63
+ tableRowBlankLine: /\n[ \t]*$/,
64
+ tableAlignRight: /^ *-+: *$/,
65
+ tableAlignCenter: /^ *:-+: *$/,
66
+ tableAlignLeft: /^ *:-+ *$/,
67
+ startATag: /^<a /i,
68
+ endATag: /^<\/a>/i,
69
+ startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
70
+ endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
71
+ startAngleBracket: /^</,
72
+ endAngleBracket: />$/,
73
+ pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
74
+ unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
75
+ escapeTest: /[&<>"']/,
76
+ escapeReplace: /[&<>"']/g,
77
+ escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
78
+ escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
79
+ caret: /(^|[^\[])\^/g,
80
+ percentDecode: /%25/g,
81
+ findPipe: /\|/g,
82
+ splitPipe: / \|/,
83
+ slashPipe: /\\\|/g,
84
+ carriageReturn: /\r\n|\r/g,
85
+ spaceLine: /^ +$/gm,
86
+ notSpaceStart: /^\S*/,
87
+ endingNewline: /\n$/,
88
+ listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
89
+ nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
90
+ hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
91
+ fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
92
+ headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
93
+ htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
94
+ blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
95
+ }, s = /^(?:[ \t]*(?:\n|$))+/, c = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, l = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, u = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, d = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, f = / {0,3}(?:[*+-]|\d{1,9}[.)])/, p = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, m = i(p).replace(/bull/g, f).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), h = i(p).replace(/bull/g, f).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), g = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ee = /^[^\n]+/, _ = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, te = i(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", _).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ne = i(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, f).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", y = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, re = i("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", y).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ie = i(g).replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), b = {
96
+ blockquote: i(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex(),
97
+ code: c,
98
+ def: te,
99
+ fences: l,
100
+ heading: d,
101
+ hr: u,
102
+ html: re,
103
+ lheading: m,
104
+ list: ne,
105
+ newline: s,
106
+ paragraph: ie,
107
+ table: r,
108
+ text: ee
109
+ }, ae = i("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), oe = {
110
+ ...b,
111
+ lheading: h,
112
+ table: ae,
113
+ paragraph: i(g).replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ae).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex()
114
+ }, se = {
115
+ ...b,
116
+ html: i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", y).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
117
+ def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
118
+ heading: /^(#{1,6})(.*)(?:\n+|$)/,
119
+ fences: r,
120
+ lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
121
+ paragraph: i(g).replace("hr", u).replace("heading", " *#{1,6} *[^\n]").replace("lheading", m).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
122
+ }, ce = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, le = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, x = /^( {2,}|\\)\n(?!\s*$)/, ue = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, S = /[\p{P}\p{S}]/u, C = /[\s\p{P}\p{S}]/u, w = /[^\s\p{P}\p{S}]/u, de = i(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, C).getRegex(), fe = /(?!~)[\p{P}\p{S}]/u, pe = /(?!~)[\s\p{P}\p{S}]/u, me = /(?:[^\s\p{P}\p{S}]|~)/u, he = i(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", a ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ge = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, _e = i(ge, "u").replace(/punct/g, S).getRegex(), ve = i(ge, "u").replace(/punct/g, fe).getRegex(), ye = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", be = i(ye, "gu").replace(/notPunctSpace/g, w).replace(/punctSpace/g, C).replace(/punct/g, S).getRegex(), xe = i(ye, "gu").replace(/notPunctSpace/g, me).replace(/punctSpace/g, pe).replace(/punct/g, fe).getRegex(), Se = i("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, w).replace(/punctSpace/g, C).replace(/punct/g, S).getRegex(), Ce = i(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, S).getRegex(), we = i("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, w).replace(/punctSpace/g, C).replace(/punct/g, S).getRegex(), Te = i(/\\(punct)/, "gu").replace(/punct/g, S).getRegex(), Ee = i(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), De = i(y).replace("(?:-->|$)", "-->").getRegex(), Oe = i("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", De).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), T = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ke = i(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", T).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), E = i(/^!?\[(label)\]\[(ref)\]/).replace("label", T).replace("ref", _).getRegex(), D = i(/^!?\[(ref)\](?:\[\])?/).replace("ref", _).getRegex(), Ae = i("reflink|nolink(?!\\()", "g").replace("reflink", E).replace("nolink", D).getRegex(), je = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, O = {
123
+ _backpedal: r,
124
+ anyPunctuation: Te,
125
+ autolink: Ee,
126
+ blockSkip: he,
127
+ br: x,
128
+ code: le,
129
+ del: r,
130
+ delLDelim: r,
131
+ delRDelim: r,
132
+ emStrongLDelim: _e,
133
+ emStrongRDelimAst: be,
134
+ emStrongRDelimUnd: Se,
135
+ escape: ce,
136
+ link: ke,
137
+ nolink: D,
138
+ punctuation: de,
139
+ reflink: E,
140
+ reflinkSearch: Ae,
141
+ tag: Oe,
142
+ text: ue,
143
+ url: r
144
+ }, Me = {
145
+ ...O,
146
+ link: i(/^!?\[(label)\]\((.*?)\)/).replace("label", T).getRegex(),
147
+ reflink: i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", T).getRegex()
148
+ }, k = {
149
+ ...O,
150
+ emStrongRDelimAst: xe,
151
+ emStrongLDelim: ve,
152
+ delLDelim: Ce,
153
+ delRDelim: we,
154
+ url: i(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", je).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
155
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
156
+ del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
157
+ text: i(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", je).getRegex()
158
+ }, Ne = {
159
+ ...k,
160
+ br: i(x).replace("{2,}", "*").getRegex(),
161
+ text: i(k.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
162
+ }, A = {
163
+ normal: b,
164
+ gfm: oe,
165
+ pedantic: se
166
+ }, j = {
167
+ normal: O,
168
+ gfm: k,
169
+ breaks: Ne,
170
+ pedantic: Me
171
+ }, Pe = {
172
+ "&": "&amp;",
173
+ "<": "&lt;",
174
+ ">": "&gt;",
175
+ "\"": "&quot;",
176
+ "'": "&#39;"
177
+ }, Fe = (e) => Pe[e];
178
+ function M(e, t) {
179
+ if (t) {
180
+ if (o.escapeTest.test(e)) return e.replace(o.escapeReplace, Fe);
181
+ } else if (o.escapeTestNoEncode.test(e)) return e.replace(o.escapeReplaceNoEncode, Fe);
182
+ return e;
183
+ }
184
+ function Ie(e) {
185
+ try {
186
+ e = encodeURI(e).replace(o.percentDecode, "%");
187
+ } catch {
188
+ return null;
189
+ }
190
+ return e;
191
+ }
192
+ function Le(e, t) {
193
+ let n = e.replace(o.findPipe, (e, t, n) => {
194
+ let r = !1, i = t;
195
+ for (; --i >= 0 && n[i] === "\\";) r = !r;
196
+ return r ? "|" : " |";
197
+ }).split(o.splitPipe), r = 0;
198
+ if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
199
+ else for (; n.length < t;) n.push("");
200
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(o.slashPipe, "|");
201
+ return n;
202
+ }
203
+ function N(e, t, n) {
204
+ let r = e.length;
205
+ if (r === 0) return "";
206
+ let i = 0;
207
+ for (; i < r;) {
208
+ let a = e.charAt(r - i - 1);
209
+ if (a === t && !n) i++;
210
+ else if (a !== t && n) i++;
211
+ else break;
212
+ }
213
+ return e.slice(0, r - i);
214
+ }
215
+ function Re(e) {
216
+ let t = e.split("\n"), n = t.length - 1;
217
+ for (; n >= 0 && o.blankLine.test(t[n]);) n--;
218
+ return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
219
+ }
220
+ function ze(e, t) {
221
+ if (e.indexOf(t[1]) === -1) return -1;
222
+ let n = 0;
223
+ for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
224
+ else if (e[r] === t[0]) n++;
225
+ else if (e[r] === t[1] && (n--, n < 0)) return r;
226
+ return n > 0 ? -2 : -1;
227
+ }
228
+ function Be(e, t = 0) {
229
+ let n = t, r = "";
230
+ for (let t of e) if (t === " ") {
231
+ let e = 4 - n % 4;
232
+ r += " ".repeat(e), n += e;
233
+ } else r += t, n++;
234
+ return r;
235
+ }
236
+ function Ve(e, t, n, r, i) {
237
+ let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
238
+ r.state.inLink = !0;
239
+ let c = {
240
+ type: e[0].charAt(0) === "!" ? "image" : "link",
241
+ raw: n,
242
+ href: a,
243
+ title: o,
244
+ text: s,
245
+ tokens: r.inlineTokens(s)
246
+ };
247
+ return r.state.inLink = !1, c;
248
+ }
249
+ function He(e, t, n) {
250
+ let r = e.match(n.other.indentCodeCompensation);
251
+ if (r === null) return t;
252
+ let i = r[1];
253
+ return t.split("\n").map((e) => {
254
+ let t = e.match(n.other.beginningSpace);
255
+ if (t === null) return e;
256
+ let [r] = t;
257
+ return r.length >= i.length ? e.slice(i.length) : e;
258
+ }).join("\n");
259
+ }
260
+ var P = class {
261
+ options;
262
+ rules;
263
+ lexer;
264
+ constructor(e) {
265
+ this.options = e || t;
266
+ }
267
+ space(e) {
268
+ let t = this.rules.block.newline.exec(e);
269
+ if (t && t[0].length > 0) return {
270
+ type: "space",
271
+ raw: t[0]
272
+ };
273
+ }
274
+ code(e) {
275
+ let t = this.rules.block.code.exec(e);
276
+ if (t) {
277
+ let e = this.options.pedantic ? t[0] : Re(t[0]);
278
+ return {
279
+ type: "code",
280
+ raw: e,
281
+ codeBlockStyle: "indented",
282
+ text: e.replace(this.rules.other.codeRemoveIndent, "")
283
+ };
284
+ }
285
+ }
286
+ fences(e) {
287
+ let t = this.rules.block.fences.exec(e);
288
+ if (t) {
289
+ let e = t[0], n = He(e, t[3] || "", this.rules);
290
+ return {
291
+ type: "code",
292
+ raw: e,
293
+ lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
294
+ text: n
295
+ };
296
+ }
297
+ }
298
+ heading(e) {
299
+ let t = this.rules.block.heading.exec(e);
300
+ if (t) {
301
+ let e = t[2].trim();
302
+ if (this.rules.other.endingHash.test(e)) {
303
+ let t = N(e, "#");
304
+ (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
305
+ }
306
+ return {
307
+ type: "heading",
308
+ raw: N(t[0], "\n"),
309
+ depth: t[1].length,
310
+ text: e,
311
+ tokens: this.lexer.inline(e)
312
+ };
313
+ }
314
+ }
315
+ hr(e) {
316
+ let t = this.rules.block.hr.exec(e);
317
+ if (t) return {
318
+ type: "hr",
319
+ raw: N(t[0], "\n")
320
+ };
321
+ }
322
+ blockquote(e) {
323
+ let t = this.rules.block.blockquote.exec(e);
324
+ if (t) {
325
+ let e = N(t[0], "\n").split("\n"), n = "", r = "", i = [];
326
+ for (; e.length > 0;) {
327
+ let t = !1, a = [], o;
328
+ for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
329
+ else if (!t) a.push(e[o]);
330
+ else break;
331
+ e = e.slice(o);
332
+ let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
333
+ n = n ? `${n}
334
+ ${s}` : s, r = r ? `${r}
335
+ ${c}` : c;
336
+ let l = this.lexer.state.top;
337
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
338
+ let u = i.at(-1);
339
+ if (u?.type === "code") break;
340
+ if (u?.type === "blockquote") {
341
+ let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
342
+ i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
343
+ break;
344
+ } else if (u?.type === "list") {
345
+ let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
346
+ i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
347
+ continue;
348
+ }
349
+ }
350
+ return {
351
+ type: "blockquote",
352
+ raw: n,
353
+ tokens: i,
354
+ text: r
355
+ };
356
+ }
357
+ }
358
+ list(e) {
359
+ let t = this.rules.block.list.exec(e);
360
+ if (t) {
361
+ let n = t[1].trim(), r = n.length > 1, i = {
362
+ type: "list",
363
+ raw: "",
364
+ ordered: r,
365
+ start: r ? +n.slice(0, -1) : "",
366
+ loose: !1,
367
+ items: []
368
+ };
369
+ n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
370
+ let a = this.rules.other.listItemRegex(n), o = !1;
371
+ for (; e;) {
372
+ let n = !1, r = "", s = "";
373
+ if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
374
+ r = t[0], e = e.substring(r.length);
375
+ let c = Be(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
376
+ if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
377
+ let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
378
+ for (; e;) {
379
+ let p = e.split("\n", 1)[0], m;
380
+ if (l = p, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), m = l) : m = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || f.test(l) || t.test(l) || n.test(l)) break;
381
+ if (m.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + m.slice(d);
382
+ else {
383
+ if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
384
+ s += "\n" + l;
385
+ }
386
+ u = !l.trim(), r += p + "\n", e = e.substring(p.length + 1), c = m.slice(d);
387
+ }
388
+ }
389
+ i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
390
+ type: "list_item",
391
+ raw: r,
392
+ task: !!this.options.gfm && this.rules.other.listIsTask.test(s),
393
+ loose: !1,
394
+ text: s,
395
+ tokens: []
396
+ }), i.raw += r;
397
+ }
398
+ let s = i.items.at(-1);
399
+ if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
400
+ else return;
401
+ i.raw = i.raw.trimEnd();
402
+ for (let e of i.items) {
403
+ this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []);
404
+ let t = e.tokens[0];
405
+ if (e.task && (t?.type === "text" || t?.type === "paragraph")) {
406
+ e.text = e.text.replace(this.rules.other.listReplaceTask, ""), t.raw = t.raw.replace(this.rules.other.listReplaceTask, ""), t.text = t.text.replace(this.rules.other.listReplaceTask, "");
407
+ for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
408
+ this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
409
+ break;
410
+ }
411
+ let n = this.rules.other.listTaskCheckbox.exec(e.raw);
412
+ if (n) {
413
+ let t = {
414
+ type: "checkbox",
415
+ raw: n[0] + " ",
416
+ checked: n[0] !== "[ ]"
417
+ };
418
+ e.checked = t.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = t.raw + e.tokens[0].raw, e.tokens[0].text = t.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(t)) : e.tokens.unshift({
419
+ type: "paragraph",
420
+ raw: t.raw,
421
+ text: t.raw,
422
+ tokens: [t]
423
+ }) : e.tokens.unshift(t);
424
+ }
425
+ } else e.task &&= !1;
426
+ if (!i.loose) {
427
+ let t = e.tokens.filter((e) => e.type === "space");
428
+ i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
429
+ }
430
+ }
431
+ if (i.loose) for (let e of i.items) {
432
+ e.loose = !0;
433
+ for (let t of e.tokens) t.type === "text" && (t.type = "paragraph");
434
+ }
435
+ return i;
436
+ }
437
+ }
438
+ html(e) {
439
+ let t = this.rules.block.html.exec(e);
440
+ if (t) {
441
+ let e = Re(t[0]);
442
+ return {
443
+ type: "html",
444
+ block: !0,
445
+ raw: e,
446
+ pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
447
+ text: e
448
+ };
449
+ }
450
+ }
451
+ def(e) {
452
+ let t = this.rules.block.def.exec(e);
453
+ if (t) {
454
+ let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
455
+ return {
456
+ type: "def",
457
+ tag: e,
458
+ raw: N(t[0], "\n"),
459
+ href: n,
460
+ title: r
461
+ };
462
+ }
463
+ }
464
+ table(e) {
465
+ let t = this.rules.block.table.exec(e);
466
+ if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
467
+ let n = Le(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
468
+ type: "table",
469
+ raw: N(t[0], "\n"),
470
+ header: [],
471
+ align: [],
472
+ rows: []
473
+ };
474
+ if (n.length === r.length) {
475
+ for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
476
+ for (let e = 0; e < n.length; e++) a.header.push({
477
+ text: n[e],
478
+ tokens: this.lexer.inline(n[e]),
479
+ header: !0,
480
+ align: a.align[e]
481
+ });
482
+ for (let e of i) a.rows.push(Le(e, a.header.length).map((e, t) => ({
483
+ text: e,
484
+ tokens: this.lexer.inline(e),
485
+ header: !1,
486
+ align: a.align[t]
487
+ })));
488
+ return a;
489
+ }
490
+ }
491
+ lheading(e) {
492
+ let t = this.rules.block.lheading.exec(e);
493
+ if (t) {
494
+ let e = t[1].trim();
495
+ return {
496
+ type: "heading",
497
+ raw: N(t[0], "\n"),
498
+ depth: t[2].charAt(0) === "=" ? 1 : 2,
499
+ text: e,
500
+ tokens: this.lexer.inline(e)
501
+ };
502
+ }
503
+ }
504
+ paragraph(e) {
505
+ let t = this.rules.block.paragraph.exec(e);
506
+ if (t) {
507
+ let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
508
+ return {
509
+ type: "paragraph",
510
+ raw: t[0],
511
+ text: e,
512
+ tokens: this.lexer.inline(e)
513
+ };
514
+ }
515
+ }
516
+ text(e) {
517
+ let t = this.rules.block.text.exec(e);
518
+ if (t) return {
519
+ type: "text",
520
+ raw: t[0],
521
+ text: t[0],
522
+ tokens: this.lexer.inline(t[0])
523
+ };
524
+ }
525
+ escape(e) {
526
+ let t = this.rules.inline.escape.exec(e);
527
+ if (t) return {
528
+ type: "escape",
529
+ raw: t[0],
530
+ text: t[1]
531
+ };
532
+ }
533
+ tag(e) {
534
+ let t = this.rules.inline.tag.exec(e);
535
+ if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
536
+ type: "html",
537
+ raw: t[0],
538
+ inLink: this.lexer.state.inLink,
539
+ inRawBlock: this.lexer.state.inRawBlock,
540
+ block: !1,
541
+ text: t[0]
542
+ };
543
+ }
544
+ link(e) {
545
+ let t = this.rules.inline.link.exec(e);
546
+ if (t) {
547
+ let e = t[2].trim();
548
+ if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
549
+ if (!this.rules.other.endAngleBracket.test(e)) return;
550
+ let t = N(e.slice(0, -1), "\\");
551
+ if ((e.length - t.length) % 2 == 0) return;
552
+ } else {
553
+ let e = ze(t[2], "()");
554
+ if (e === -2) return;
555
+ if (e > -1) {
556
+ let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
557
+ t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
558
+ }
559
+ }
560
+ let n = t[2], r = "";
561
+ if (this.options.pedantic) {
562
+ let e = this.rules.other.pedanticHrefTitle.exec(n);
563
+ e && (n = e[1], r = e[3]);
564
+ } else r = t[3] ? t[3].slice(1, -1) : "";
565
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Ve(t, {
566
+ href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
567
+ title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
568
+ }, t[0], this.lexer, this.rules);
569
+ }
570
+ }
571
+ reflink(e, t) {
572
+ let n;
573
+ if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
574
+ let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
575
+ if (!e) {
576
+ let e = n[0].charAt(0);
577
+ return {
578
+ type: "text",
579
+ raw: e,
580
+ text: e
581
+ };
582
+ }
583
+ return Ve(n, e, n[0], this.lexer, this.rules);
584
+ }
585
+ }
586
+ emStrong(e, t, n = "") {
587
+ let r = this.rules.inline.emStrongLDelim.exec(e);
588
+ if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
589
+ let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
590
+ for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) !== null;) {
591
+ if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
592
+ if (a = [...i].length, r[3] || r[4]) {
593
+ o += a;
594
+ continue;
595
+ } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
596
+ s += a;
597
+ continue;
598
+ }
599
+ if (o -= a, o > 0) continue;
600
+ a = Math.min(a, a + o + s);
601
+ let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
602
+ if (Math.min(n, a) % 2) {
603
+ let e = c.slice(1, -1);
604
+ return {
605
+ type: "em",
606
+ raw: c,
607
+ text: e,
608
+ tokens: this.lexer.inlineTokens(e)
609
+ };
610
+ }
611
+ let l = c.slice(2, -2);
612
+ return {
613
+ type: "strong",
614
+ raw: c,
615
+ text: l,
616
+ tokens: this.lexer.inlineTokens(l)
617
+ };
618
+ }
619
+ }
620
+ }
621
+ codespan(e) {
622
+ let t = this.rules.inline.code.exec(e);
623
+ if (t) {
624
+ let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
625
+ return n && r && (e = e.substring(1, e.length - 1)), {
626
+ type: "codespan",
627
+ raw: t[0],
628
+ text: e
629
+ };
630
+ }
631
+ }
632
+ br(e) {
633
+ let t = this.rules.inline.br.exec(e);
634
+ if (t) return {
635
+ type: "br",
636
+ raw: t[0]
637
+ };
638
+ }
639
+ del(e, t, n = "") {
640
+ let r = this.rules.inline.delLDelim.exec(e);
641
+ if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
642
+ let n = [...r[0]].length - 1, i, a, o = n, s = this.rules.inline.delRDelim;
643
+ for (s.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = s.exec(t)) !== null;) {
644
+ if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i || (a = [...i].length, a !== n)) continue;
645
+ if (r[3] || r[4]) {
646
+ o += a;
647
+ continue;
648
+ }
649
+ if (o -= a, o > 0) continue;
650
+ a = Math.min(a, a + o);
651
+ let t = [...r[0]][0].length, s = e.slice(0, n + r.index + t + a), c = s.slice(n, -n);
652
+ return {
653
+ type: "del",
654
+ raw: s,
655
+ text: c,
656
+ tokens: this.lexer.inlineTokens(c)
657
+ };
658
+ }
659
+ }
660
+ }
661
+ autolink(e) {
662
+ let t = this.rules.inline.autolink.exec(e);
663
+ if (t) {
664
+ let e, n;
665
+ return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
666
+ type: "link",
667
+ raw: t[0],
668
+ text: e,
669
+ href: n,
670
+ tokens: [{
671
+ type: "text",
672
+ raw: e,
673
+ text: e
674
+ }]
675
+ };
676
+ }
677
+ }
678
+ url(e) {
679
+ let t;
680
+ if (t = this.rules.inline.url.exec(e)) {
681
+ let e, n;
682
+ if (t[2] === "@") e = t[0], n = "mailto:" + e;
683
+ else {
684
+ let r;
685
+ do
686
+ r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
687
+ while (r !== t[0]);
688
+ e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
689
+ }
690
+ return {
691
+ type: "link",
692
+ raw: t[0],
693
+ text: e,
694
+ href: n,
695
+ tokens: [{
696
+ type: "text",
697
+ raw: e,
698
+ text: e
699
+ }]
700
+ };
701
+ }
702
+ }
703
+ inlineText(e) {
704
+ let t = this.rules.inline.text.exec(e);
705
+ if (t) {
706
+ let e = this.lexer.state.inRawBlock;
707
+ return {
708
+ type: "text",
709
+ raw: t[0],
710
+ text: t[0],
711
+ escaped: e
712
+ };
713
+ }
714
+ }
715
+ }, F = class e {
716
+ tokens;
717
+ options;
718
+ state;
719
+ inlineQueue;
720
+ tokenizer;
721
+ constructor(e) {
722
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || t, this.options.tokenizer = this.options.tokenizer || new P(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
723
+ inLink: !1,
724
+ inRawBlock: !1,
725
+ top: !0
726
+ };
727
+ let n = {
728
+ other: o,
729
+ block: A.normal,
730
+ inline: j.normal
731
+ };
732
+ this.options.pedantic ? (n.block = A.pedantic, n.inline = j.pedantic) : this.options.gfm && (n.block = A.gfm, this.options.breaks ? n.inline = j.breaks : n.inline = j.gfm), this.tokenizer.rules = n;
733
+ }
734
+ static get rules() {
735
+ return {
736
+ block: A,
737
+ inline: j
738
+ };
739
+ }
740
+ static lex(t, n) {
741
+ return new e(n).lex(t);
742
+ }
743
+ static lexInline(t, n) {
744
+ return new e(n).inlineTokens(t);
745
+ }
746
+ lex(e) {
747
+ e = e.replace(o.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
748
+ for (let e = 0; e < this.inlineQueue.length; e++) {
749
+ let t = this.inlineQueue[e];
750
+ this.inlineTokens(t.src, t.tokens);
751
+ }
752
+ return this.inlineQueue = [], this.tokens;
753
+ }
754
+ blockTokens(e, t = [], n = !1) {
755
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(o.tabCharGlobal, " ").replace(o.spaceLine, ""));
756
+ let r = Infinity;
757
+ for (; e;) {
758
+ if (e.length < r) r = e.length;
759
+ else {
760
+ this.infiniteLoopError(e.charCodeAt(0));
761
+ break;
762
+ }
763
+ let i;
764
+ if (this.options.extensions?.block?.some((n) => (i = n.call({ lexer: this }, e, t)) ? (e = e.substring(i.raw.length), t.push(i), !0) : !1)) continue;
765
+ if (i = this.tokenizer.space(e)) {
766
+ e = e.substring(i.raw.length);
767
+ let n = t.at(-1);
768
+ i.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(i);
769
+ continue;
770
+ }
771
+ if (i = this.tokenizer.code(e)) {
772
+ e = e.substring(i.raw.length);
773
+ let n = t.at(-1);
774
+ n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.at(-1).src = n.text) : t.push(i);
775
+ continue;
776
+ }
777
+ if (i = this.tokenizer.fences(e)) {
778
+ e = e.substring(i.raw.length), t.push(i);
779
+ continue;
780
+ }
781
+ if (i = this.tokenizer.heading(e)) {
782
+ e = e.substring(i.raw.length), t.push(i);
783
+ continue;
784
+ }
785
+ if (i = this.tokenizer.hr(e)) {
786
+ e = e.substring(i.raw.length), t.push(i);
787
+ continue;
788
+ }
789
+ if (i = this.tokenizer.blockquote(e)) {
790
+ e = e.substring(i.raw.length), t.push(i);
791
+ continue;
792
+ }
793
+ if (i = this.tokenizer.list(e)) {
794
+ e = e.substring(i.raw.length), t.push(i);
795
+ continue;
796
+ }
797
+ if (i = this.tokenizer.html(e)) {
798
+ e = e.substring(i.raw.length), t.push(i);
799
+ continue;
800
+ }
801
+ if (i = this.tokenizer.def(e)) {
802
+ e = e.substring(i.raw.length);
803
+ let n = t.at(-1);
804
+ n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[i.tag] || (this.tokens.links[i.tag] = {
805
+ href: i.href,
806
+ title: i.title
807
+ }, t.push(i));
808
+ continue;
809
+ }
810
+ if (i = this.tokenizer.table(e)) {
811
+ e = e.substring(i.raw.length), t.push(i);
812
+ continue;
813
+ }
814
+ if (i = this.tokenizer.lheading(e)) {
815
+ e = e.substring(i.raw.length), t.push(i);
816
+ continue;
817
+ }
818
+ let a = e;
819
+ if (this.options.extensions?.startBlock) {
820
+ let t = Infinity, n = e.slice(1), r;
821
+ this.options.extensions.startBlock.forEach((e) => {
822
+ r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
823
+ }), t < Infinity && t >= 0 && (a = e.substring(0, t + 1));
824
+ }
825
+ if (this.state.top && (i = this.tokenizer.paragraph(a))) {
826
+ let r = t.at(-1);
827
+ n && r?.type === "paragraph" ? (r.raw += (r.raw.endsWith("\n") ? "" : "\n") + i.raw, r.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = r.text) : t.push(i), n = a.length !== e.length, e = e.substring(i.raw.length);
828
+ continue;
829
+ }
830
+ if (i = this.tokenizer.text(e)) {
831
+ e = e.substring(i.raw.length);
832
+ let n = t.at(-1);
833
+ n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(i);
834
+ continue;
835
+ }
836
+ if (e) {
837
+ this.infiniteLoopError(e.charCodeAt(0));
838
+ break;
839
+ }
840
+ }
841
+ return this.state.top = !0, t;
842
+ }
843
+ inline(e, t = []) {
844
+ return this.inlineQueue.push({
845
+ src: e,
846
+ tokens: t
847
+ }), t;
848
+ }
849
+ inlineTokens(e, t = []) {
850
+ this.tokenizer.lexer = this;
851
+ let n = e, r = null;
852
+ if (this.tokens.links) {
853
+ let e = Object.keys(this.tokens.links);
854
+ if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
855
+ }
856
+ for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
857
+ let i;
858
+ for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
859
+ n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
860
+ let a = !1, o = "", s = Infinity;
861
+ for (; e;) {
862
+ if (e.length < s) s = e.length;
863
+ else {
864
+ this.infiniteLoopError(e.charCodeAt(0));
865
+ break;
866
+ }
867
+ a || (o = ""), a = !1;
868
+ let r;
869
+ if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
870
+ if (r = this.tokenizer.escape(e)) {
871
+ e = e.substring(r.raw.length), t.push(r);
872
+ continue;
873
+ }
874
+ if (r = this.tokenizer.tag(e)) {
875
+ e = e.substring(r.raw.length), t.push(r);
876
+ continue;
877
+ }
878
+ if (r = this.tokenizer.link(e)) {
879
+ e = e.substring(r.raw.length), t.push(r);
880
+ continue;
881
+ }
882
+ if (r = this.tokenizer.reflink(e, this.tokens.links)) {
883
+ e = e.substring(r.raw.length);
884
+ let n = t.at(-1);
885
+ r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
886
+ continue;
887
+ }
888
+ if (r = this.tokenizer.emStrong(e, n, o)) {
889
+ e = e.substring(r.raw.length), t.push(r);
890
+ continue;
891
+ }
892
+ if (r = this.tokenizer.codespan(e)) {
893
+ e = e.substring(r.raw.length), t.push(r);
894
+ continue;
895
+ }
896
+ if (r = this.tokenizer.br(e)) {
897
+ e = e.substring(r.raw.length), t.push(r);
898
+ continue;
899
+ }
900
+ if (r = this.tokenizer.del(e, n, o)) {
901
+ e = e.substring(r.raw.length), t.push(r);
902
+ continue;
903
+ }
904
+ if (r = this.tokenizer.autolink(e)) {
905
+ e = e.substring(r.raw.length), t.push(r);
906
+ continue;
907
+ }
908
+ if (!this.state.inLink && (r = this.tokenizer.url(e))) {
909
+ e = e.substring(r.raw.length), t.push(r);
910
+ continue;
911
+ }
912
+ let i = e;
913
+ if (this.options.extensions?.startInline) {
914
+ let t = Infinity, n = e.slice(1), r;
915
+ this.options.extensions.startInline.forEach((e) => {
916
+ r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
917
+ }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
918
+ }
919
+ if (r = this.tokenizer.inlineText(i)) {
920
+ e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
921
+ let n = t.at(-1);
922
+ n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
923
+ continue;
924
+ }
925
+ if (e) {
926
+ this.infiniteLoopError(e.charCodeAt(0));
927
+ break;
928
+ }
929
+ }
930
+ return t;
931
+ }
932
+ infiniteLoopError(e) {
933
+ let t = "Infinite loop on byte: " + e;
934
+ if (this.options.silent) console.error(t);
935
+ else throw Error(t);
936
+ }
937
+ }, I = class {
938
+ options;
939
+ parser;
940
+ constructor(e) {
941
+ this.options = e || t;
942
+ }
943
+ space(e) {
944
+ return "";
945
+ }
946
+ code({ text: e, lang: t, escaped: n }) {
947
+ let r = (t || "").match(o.notSpaceStart)?.[0], i = e.replace(o.endingNewline, "") + "\n";
948
+ return r ? "<pre><code class=\"language-" + M(r) + "\">" + (n ? i : M(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : M(i, !0)) + "</code></pre>\n";
949
+ }
950
+ blockquote({ tokens: e }) {
951
+ return `<blockquote>
952
+ ${this.parser.parse(e)}</blockquote>
953
+ `;
954
+ }
955
+ html({ text: e }) {
956
+ return e;
957
+ }
958
+ def(e) {
959
+ return "";
960
+ }
961
+ heading({ tokens: e, depth: t }) {
962
+ return `<h${t}>${this.parser.parseInline(e)}</h${t}>
963
+ `;
964
+ }
965
+ hr(e) {
966
+ return "<hr>\n";
967
+ }
968
+ list(e) {
969
+ let t = e.ordered, n = e.start, r = "";
970
+ for (let t = 0; t < e.items.length; t++) {
971
+ let n = e.items[t];
972
+ r += this.listitem(n);
973
+ }
974
+ let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
975
+ return "<" + i + a + ">\n" + r + "</" + i + ">\n";
976
+ }
977
+ listitem(e) {
978
+ return `<li>${this.parser.parse(e.tokens)}</li>
979
+ `;
980
+ }
981
+ checkbox({ checked: e }) {
982
+ return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\"> ";
983
+ }
984
+ paragraph({ tokens: e }) {
985
+ return `<p>${this.parser.parseInline(e)}</p>
986
+ `;
987
+ }
988
+ table(e) {
989
+ let t = "", n = "";
990
+ for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
991
+ t += this.tablerow({ text: n });
992
+ let r = "";
993
+ for (let t = 0; t < e.rows.length; t++) {
994
+ let i = e.rows[t];
995
+ n = "";
996
+ for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
997
+ r += this.tablerow({ text: n });
998
+ }
999
+ return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
1000
+ }
1001
+ tablerow({ text: e }) {
1002
+ return `<tr>
1003
+ ${e}</tr>
1004
+ `;
1005
+ }
1006
+ tablecell(e) {
1007
+ let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
1008
+ return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
1009
+ `;
1010
+ }
1011
+ strong({ tokens: e }) {
1012
+ return `<strong>${this.parser.parseInline(e)}</strong>`;
1013
+ }
1014
+ em({ tokens: e }) {
1015
+ return `<em>${this.parser.parseInline(e)}</em>`;
1016
+ }
1017
+ codespan({ text: e }) {
1018
+ return `<code>${M(e, !0)}</code>`;
1019
+ }
1020
+ br(e) {
1021
+ return "<br>";
1022
+ }
1023
+ del({ tokens: e }) {
1024
+ return `<del>${this.parser.parseInline(e)}</del>`;
1025
+ }
1026
+ link({ href: e, title: t, tokens: n }) {
1027
+ let r = this.parser.parseInline(n), i = Ie(e);
1028
+ if (i === null) return r;
1029
+ e = i;
1030
+ let a = "<a href=\"" + e + "\"";
1031
+ return t && (a += " title=\"" + M(t) + "\""), a += ">" + r + "</a>", a;
1032
+ }
1033
+ image({ href: e, title: t, text: n, tokens: r }) {
1034
+ r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1035
+ let i = Ie(e);
1036
+ if (i === null) return M(n);
1037
+ e = i;
1038
+ let a = `<img src="${e}" alt="${M(n)}"`;
1039
+ return t && (a += ` title="${M(t)}"`), a += ">", a;
1040
+ }
1041
+ text(e) {
1042
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : M(e.text);
1043
+ }
1044
+ }, L = class {
1045
+ strong({ text: e }) {
1046
+ return e;
1047
+ }
1048
+ em({ text: e }) {
1049
+ return e;
1050
+ }
1051
+ codespan({ text: e }) {
1052
+ return e;
1053
+ }
1054
+ del({ text: e }) {
1055
+ return e;
1056
+ }
1057
+ html({ text: e }) {
1058
+ return e;
1059
+ }
1060
+ text({ text: e }) {
1061
+ return e;
1062
+ }
1063
+ link({ text: e }) {
1064
+ return "" + e;
1065
+ }
1066
+ image({ text: e }) {
1067
+ return "" + e;
1068
+ }
1069
+ br() {
1070
+ return "";
1071
+ }
1072
+ checkbox({ raw: e }) {
1073
+ return e;
1074
+ }
1075
+ }, R = class e {
1076
+ options;
1077
+ renderer;
1078
+ textRenderer;
1079
+ constructor(e) {
1080
+ this.options = e || t, this.options.renderer = this.options.renderer || new I(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L();
1081
+ }
1082
+ static parse(t, n) {
1083
+ return new e(n).parse(t);
1084
+ }
1085
+ static parseInline(t, n) {
1086
+ return new e(n).parseInline(t);
1087
+ }
1088
+ parse(e) {
1089
+ this.renderer.parser = this;
1090
+ let t = "";
1091
+ for (let n = 0; n < e.length; n++) {
1092
+ let r = e[n];
1093
+ if (this.options.extensions?.renderers?.[r.type]) {
1094
+ let e = r, n = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1095
+ if (n !== !1 || ![
1096
+ "space",
1097
+ "hr",
1098
+ "heading",
1099
+ "code",
1100
+ "table",
1101
+ "blockquote",
1102
+ "list",
1103
+ "html",
1104
+ "def",
1105
+ "paragraph",
1106
+ "text"
1107
+ ].includes(e.type)) {
1108
+ t += n || "";
1109
+ continue;
1110
+ }
1111
+ }
1112
+ let i = r;
1113
+ switch (i.type) {
1114
+ case "space":
1115
+ t += this.renderer.space(i);
1116
+ break;
1117
+ case "hr":
1118
+ t += this.renderer.hr(i);
1119
+ break;
1120
+ case "heading":
1121
+ t += this.renderer.heading(i);
1122
+ break;
1123
+ case "code":
1124
+ t += this.renderer.code(i);
1125
+ break;
1126
+ case "table":
1127
+ t += this.renderer.table(i);
1128
+ break;
1129
+ case "blockquote":
1130
+ t += this.renderer.blockquote(i);
1131
+ break;
1132
+ case "list":
1133
+ t += this.renderer.list(i);
1134
+ break;
1135
+ case "checkbox":
1136
+ t += this.renderer.checkbox(i);
1137
+ break;
1138
+ case "html":
1139
+ t += this.renderer.html(i);
1140
+ break;
1141
+ case "def":
1142
+ t += this.renderer.def(i);
1143
+ break;
1144
+ case "paragraph":
1145
+ t += this.renderer.paragraph(i);
1146
+ break;
1147
+ case "text":
1148
+ t += this.renderer.text(i);
1149
+ break;
1150
+ default: {
1151
+ let e = "Token with \"" + i.type + "\" type was not found.";
1152
+ if (this.options.silent) return console.error(e), "";
1153
+ throw Error(e);
1154
+ }
1155
+ }
1156
+ }
1157
+ return t;
1158
+ }
1159
+ parseInline(e, t = this.renderer) {
1160
+ this.renderer.parser = this;
1161
+ let n = "";
1162
+ for (let r = 0; r < e.length; r++) {
1163
+ let i = e[r];
1164
+ if (this.options.extensions?.renderers?.[i.type]) {
1165
+ let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1166
+ if (e !== !1 || ![
1167
+ "escape",
1168
+ "html",
1169
+ "link",
1170
+ "image",
1171
+ "strong",
1172
+ "em",
1173
+ "codespan",
1174
+ "br",
1175
+ "del",
1176
+ "text"
1177
+ ].includes(i.type)) {
1178
+ n += e || "";
1179
+ continue;
1180
+ }
1181
+ }
1182
+ let a = i;
1183
+ switch (a.type) {
1184
+ case "escape":
1185
+ n += t.text(a);
1186
+ break;
1187
+ case "html":
1188
+ n += t.html(a);
1189
+ break;
1190
+ case "link":
1191
+ n += t.link(a);
1192
+ break;
1193
+ case "image":
1194
+ n += t.image(a);
1195
+ break;
1196
+ case "checkbox":
1197
+ n += t.checkbox(a);
1198
+ break;
1199
+ case "strong":
1200
+ n += t.strong(a);
1201
+ break;
1202
+ case "em":
1203
+ n += t.em(a);
1204
+ break;
1205
+ case "codespan":
1206
+ n += t.codespan(a);
1207
+ break;
1208
+ case "br":
1209
+ n += t.br(a);
1210
+ break;
1211
+ case "del":
1212
+ n += t.del(a);
1213
+ break;
1214
+ case "text":
1215
+ n += t.text(a);
1216
+ break;
1217
+ default: {
1218
+ let e = "Token with \"" + a.type + "\" type was not found.";
1219
+ if (this.options.silent) return console.error(e), "";
1220
+ throw Error(e);
1221
+ }
1222
+ }
1223
+ }
1224
+ return n;
1225
+ }
1226
+ }, z = class {
1227
+ options;
1228
+ block;
1229
+ constructor(e) {
1230
+ this.options = e || t;
1231
+ }
1232
+ static passThroughHooks = new Set([
1233
+ "preprocess",
1234
+ "postprocess",
1235
+ "processAllTokens",
1236
+ "emStrongMask"
1237
+ ]);
1238
+ static passThroughHooksRespectAsync = new Set([
1239
+ "preprocess",
1240
+ "postprocess",
1241
+ "processAllTokens"
1242
+ ]);
1243
+ preprocess(e) {
1244
+ return e;
1245
+ }
1246
+ postprocess(e) {
1247
+ return e;
1248
+ }
1249
+ processAllTokens(e) {
1250
+ return e;
1251
+ }
1252
+ emStrongMask(e) {
1253
+ return e;
1254
+ }
1255
+ provideLexer(e = this.block) {
1256
+ return e ? F.lex : F.lexInline;
1257
+ }
1258
+ provideParser(e = this.block) {
1259
+ return e ? R.parse : R.parseInline;
1260
+ }
1261
+ }, B = new class {
1262
+ defaults = e();
1263
+ options = this.setOptions;
1264
+ parse = this.parseMarkdown(!0);
1265
+ parseInline = this.parseMarkdown(!1);
1266
+ Parser = R;
1267
+ Renderer = I;
1268
+ TextRenderer = L;
1269
+ Lexer = F;
1270
+ Tokenizer = P;
1271
+ Hooks = z;
1272
+ constructor(...e) {
1273
+ this.use(...e);
1274
+ }
1275
+ walkTokens(e, t) {
1276
+ let n = [];
1277
+ for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
1278
+ case "table": {
1279
+ let e = r;
1280
+ for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
1281
+ for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
1282
+ break;
1283
+ }
1284
+ case "list": {
1285
+ let e = r;
1286
+ n = n.concat(this.walkTokens(e.items, t));
1287
+ break;
1288
+ }
1289
+ default: {
1290
+ let e = r;
1291
+ this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1292
+ let i = e[r].flat(Infinity);
1293
+ n = n.concat(this.walkTokens(i, t));
1294
+ }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1295
+ }
1296
+ }
1297
+ return n;
1298
+ }
1299
+ use(...e) {
1300
+ let t = this.defaults.extensions || {
1301
+ renderers: {},
1302
+ childTokens: {}
1303
+ };
1304
+ return e.forEach((e) => {
1305
+ let n = { ...e };
1306
+ if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
1307
+ if (!e.name) throw Error("extension name required");
1308
+ if ("renderer" in e) {
1309
+ let n = t.renderers[e.name];
1310
+ n ? t.renderers[e.name] = function(...t) {
1311
+ let r = e.renderer.apply(this, t);
1312
+ return r === !1 && (r = n.apply(this, t)), r;
1313
+ } : t.renderers[e.name] = e.renderer;
1314
+ }
1315
+ if ("tokenizer" in e) {
1316
+ if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1317
+ let n = t[e.level];
1318
+ n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
1319
+ }
1320
+ "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1321
+ }), n.extensions = t), e.renderer) {
1322
+ let t = this.defaults.renderer || new I(this.defaults);
1323
+ for (let n in e.renderer) {
1324
+ if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1325
+ if (["options", "parser"].includes(n)) continue;
1326
+ let r = n, i = e.renderer[r], a = t[r];
1327
+ t[r] = (...e) => {
1328
+ let n = i.apply(t, e);
1329
+ return n === !1 && (n = a.apply(t, e)), n || "";
1330
+ };
1331
+ }
1332
+ n.renderer = t;
1333
+ }
1334
+ if (e.tokenizer) {
1335
+ let t = this.defaults.tokenizer || new P(this.defaults);
1336
+ for (let n in e.tokenizer) {
1337
+ if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1338
+ if ([
1339
+ "options",
1340
+ "rules",
1341
+ "lexer"
1342
+ ].includes(n)) continue;
1343
+ let r = n, i = e.tokenizer[r], a = t[r];
1344
+ t[r] = (...e) => {
1345
+ let n = i.apply(t, e);
1346
+ return n === !1 && (n = a.apply(t, e)), n;
1347
+ };
1348
+ }
1349
+ n.tokenizer = t;
1350
+ }
1351
+ if (e.hooks) {
1352
+ let t = this.defaults.hooks || new z();
1353
+ for (let n in e.hooks) {
1354
+ if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1355
+ if (["options", "block"].includes(n)) continue;
1356
+ let r = n, i = e.hooks[r], a = t[r];
1357
+ z.passThroughHooks.has(n) ? t[r] = (e) => {
1358
+ if (this.defaults.async && z.passThroughHooksRespectAsync.has(n)) return (async () => {
1359
+ let n = await i.call(t, e);
1360
+ return a.call(t, n);
1361
+ })();
1362
+ let r = i.call(t, e);
1363
+ return a.call(t, r);
1364
+ } : t[r] = (...e) => {
1365
+ if (this.defaults.async) return (async () => {
1366
+ let n = await i.apply(t, e);
1367
+ return n === !1 && (n = await a.apply(t, e)), n;
1368
+ })();
1369
+ let n = i.apply(t, e);
1370
+ return n === !1 && (n = a.apply(t, e)), n;
1371
+ };
1372
+ }
1373
+ n.hooks = t;
1374
+ }
1375
+ if (e.walkTokens) {
1376
+ let t = this.defaults.walkTokens, r = e.walkTokens;
1377
+ n.walkTokens = function(e) {
1378
+ let n = [];
1379
+ return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
1380
+ };
1381
+ }
1382
+ this.defaults = {
1383
+ ...this.defaults,
1384
+ ...n
1385
+ };
1386
+ }), this;
1387
+ }
1388
+ setOptions(e) {
1389
+ return this.defaults = {
1390
+ ...this.defaults,
1391
+ ...e
1392
+ }, this;
1393
+ }
1394
+ lexer(e, t) {
1395
+ return F.lex(e, t ?? this.defaults);
1396
+ }
1397
+ parser(e, t) {
1398
+ return R.parse(e, t ?? this.defaults);
1399
+ }
1400
+ parseMarkdown(e) {
1401
+ return (t, n) => {
1402
+ let r = { ...n }, i = {
1403
+ ...this.defaults,
1404
+ ...r
1405
+ }, a = this.onError(!!i.silent, !!i.async);
1406
+ if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1407
+ if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1408
+ if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1409
+ if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
1410
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? F.lex : F.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1411
+ i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
1412
+ let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? R.parse : R.parseInline)(a, i);
1413
+ return i.hooks ? await i.hooks.postprocess(o) : o;
1414
+ })().catch(a);
1415
+ try {
1416
+ i.hooks && (t = i.hooks.preprocess(t));
1417
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? F.lex : F.lexInline)(t, i);
1418
+ i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
1419
+ let r = (i.hooks ? i.hooks.provideParser(e) : e ? R.parse : R.parseInline)(n, i);
1420
+ return i.hooks && (r = i.hooks.postprocess(r)), r;
1421
+ } catch (e) {
1422
+ return a(e);
1423
+ }
1424
+ };
1425
+ }
1426
+ onError(e, t) {
1427
+ return (n) => {
1428
+ if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1429
+ let e = "<p>An error occurred:</p><pre>" + M(n.message + "", !0) + "</pre>";
1430
+ return t ? Promise.resolve(e) : e;
1431
+ }
1432
+ if (t) return Promise.reject(n);
1433
+ throw n;
1434
+ };
1435
+ }
1436
+ }();
1437
+ function V(e, t) {
1438
+ return B.parse(e, t);
1439
+ }
1440
+ V.options = V.setOptions = function(e) {
1441
+ return B.setOptions(e), V.defaults = B.defaults, n(V.defaults), V;
1442
+ }, V.getDefaults = e, V.defaults = t, V.use = function(...e) {
1443
+ return B.use(...e), V.defaults = B.defaults, n(V.defaults), V;
1444
+ }, V.walkTokens = function(e, t) {
1445
+ return B.walkTokens(e, t);
1446
+ }, V.parseInline = B.parseInline, V.Parser = R, V.parser = R.parse, V.Renderer = I, V.TextRenderer = L, V.Lexer = F, V.lexer = F.lex, V.Tokenizer = P, V.Hooks = z, V.parse = V, V.options, V.setOptions, V.use, V.walkTokens, V.parseInline, R.parse, F.lex;
1447
+ //#endregion
1448
+ //#region src/components/toolbar/MakeTool.js
1449
+ var H = class {
1450
+ constructor(e, t) {
1451
+ this.editor = e, this.defaultText = `${t} text`, this.button = this.createButton(), this.title = t;
1452
+ }
1453
+ createButton(e) {
1454
+ let t = document.createElement("button"), n = this.title ? `${this.title.replace(/ /g, "-")}-btn`.toLowerCase() : "";
1455
+ t.innerHTML = e;
1456
+ let r = t.querySelector("svg");
1457
+ if (r && r.setAttribute("aria-hidden", "true"), t.type = "button", t.title = this.title, t.className = `markdown-btn ${n} fj:me-btn fj:me-btn-xs fj:me-btn-square fj:me-btn-ghost`, t.addEventListener("click", (e) => this.applySyntax(e)), n == "preview-btn") {
1458
+ let e = document.createElement("div");
1459
+ return e.className = "fj:me-surface fj:me-surface-outline fj:border-base-soft fj:border-0 fj:border-l fj:sticky fj:-right-2 fj:px-1.5", e.appendChild(t), e;
1460
+ }
1461
+ return t;
1462
+ }
1463
+ }, Ue = class extends H {
1464
+ constructor(e) {
1465
+ super(e, "Bold"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M7 5h6a3.5 3.5 0 0 1 0 7h-6l0 -7\" /><path d=\"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7\" /></svg>\n ");
1466
+ }
1467
+ applySyntax() {
1468
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "", o = 0;
1469
+ if (i.startsWith("***") && i.endsWith("***")) a = "*" + i.slice(3, -3) + "*";
1470
+ else if (i.startsWith("**") && i.endsWith("**")) a = i.slice(2, -2);
1471
+ else if (r.substring(t - 3, t) === "***" && r.substring(n, n + 3) === "***") {
1472
+ e.setSelectionRange(t - 3, n + 3), this.editor.insertText(`*${i}*`, 1, 1);
1473
+ return;
1474
+ } else if (r.substring(t - 2, t) === "**" && r.substring(n, n + 2) === "**" && r[t - 3] !== "*" && r[n + 2] !== "*") {
1475
+ e.setSelectionRange(t - 2, n + 2), this.editor.insertText(i, 0, 0);
1476
+ return;
1477
+ } else a = `**${i || "Bold text"}**`, i || (o = 2);
1478
+ this.editor.insertText(a, o, o);
1479
+ }
1480
+ }, We = class extends H {
1481
+ constructor(e) {
1482
+ super(e, "Italic"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M11 5l6 0\" /><path d=\"M7 19l6 0\" /><path d=\"M14 5l-4 14\" /></svg>\n ");
1483
+ }
1484
+ applySyntax() {
1485
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "", o = 0;
1486
+ if (i.startsWith("***") && i.endsWith("***")) a = "**" + i.slice(3, -3) + "**";
1487
+ else if (i.startsWith("*") && i.endsWith("*") && !i.startsWith("**")) a = i.slice(1, -1);
1488
+ else if (r.substring(t - 3, t) === "***" && r.substring(n, n + 3) === "***") {
1489
+ e.setSelectionRange(t - 3, n + 3), this.editor.insertText(`**${i}**`, 2, 2);
1490
+ return;
1491
+ } else if (r[t - 1] === "*" && r[n] === "*" && r[t - 2] !== "*" && r[n + 1] !== "*") {
1492
+ e.setSelectionRange(t - 1, n + 1), this.editor.insertText(i, 0, 0);
1493
+ return;
1494
+ } else a = `*${i || "Italic text"}*`, i || (o = 1);
1495
+ this.editor.insertText(a, o, o);
1496
+ }
1497
+ }, Ge = class extends H {
1498
+ constructor(e) {
1499
+ super(e, "Strikethrough"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l14 0\" /><path d=\"M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5\" /></svg>\n ");
1500
+ }
1501
+ applySyntax() {
1502
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "", o = 0;
1503
+ if (i.startsWith("~~") && i.endsWith("~~")) a = i.slice(2, -2);
1504
+ else if (r.substring(t - 2, t) === "~~" && r.substring(n, n + 2) === "~~") {
1505
+ e.setSelectionRange(t - 2, n + 2), this.editor.insertText(i, 0, 0);
1506
+ return;
1507
+ } else a = `~~${i || "Strikethrough text"}~~`, o = 2;
1508
+ this.editor.insertText(a, o, o);
1509
+ }
1510
+ }, Ke = class extends H {
1511
+ constructor(e) {
1512
+ super(e, "Unordered list"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 6l11 0\" /><path d=\"M9 12l11 0\" /><path d=\"M9 18l11 0\" /><path d=\"M5 6l0 .01\" /><path d=\"M5 12l0 .01\" /><path d=\"M5 18l0 .01\" /></svg>\n ");
1513
+ }
1514
+ applySyntax() {
1515
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "", o = 0;
1516
+ if (i.startsWith("- ")) a = i.slice(2);
1517
+ else if (r.substring(t - 2, t) === "- ") {
1518
+ e.setSelectionRange(t - 2, n), this.editor.insertText(i, 0, 0);
1519
+ return;
1520
+ } else a = `- ${i || "Unordered list"}`, o = 2;
1521
+ this.editor.insertText(a, o);
1522
+ }
1523
+ }, qe = class extends H {
1524
+ constructor(e) {
1525
+ super(e, "Ordered list"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M11 6h9\" /><path d=\"M11 12h9\" /><path d=\"M12 18h8\" /><path d=\"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4\" /><path d=\"M6 10v-6l-2 2\" /></svg>\n ");
1526
+ }
1527
+ applySyntax() {
1528
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "", o = 0;
1529
+ if (i.startsWith("1. ")) a = i.slice(3);
1530
+ else if (r.substring(t - 3, t) === "1. ") {
1531
+ e.setSelectionRange(t - 3, n), this.editor.insertText(i, 0, 0);
1532
+ return;
1533
+ } else a = `1. ${i || "Ordered list"}`, o = 3;
1534
+ this.editor.insertText(a, o);
1535
+ }
1536
+ }, Je = class extends H {
1537
+ constructor(e) {
1538
+ super(e, "Preview"), this.preview = !0, this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 4v16\" /><path d=\"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14\" /><path d=\"M12 13l7.5 -7.5\" /><path d=\"M12 18l8 -8\" /><path d=\"M15 20l5 -5\" /><path d=\"M12 8l4 -4\" /></svg>\n ");
1539
+ let t = this.button.querySelector("button");
1540
+ t && t.setAttribute("aria-pressed", "false");
1541
+ }
1542
+ applySyntax() {
1543
+ let e = this.editor.previewContent?.parentNode, t = this.editor.markdownEditorDiv;
1544
+ !e || !t || (this.editor.preview && this.preview ? this.enablePreview(e, t) : this.disablePreview(e, t));
1545
+ }
1546
+ disablePreview(e, t) {
1547
+ this.preview = !0;
1548
+ let n = t.querySelector(".textarea-wrapper");
1549
+ t.parentNode.classList.toggle("fj:fixed"), t.parentNode.classList.toggle("fj:top-0"), t.parentNode.classList.toggle("fj:inset-x-0"), t.parentNode.classList.toggle("fj:rounded-md"), t.parentNode.classList.toggle("fj:z-999"), t.classList.remove("fj:md:grid-cols-2"), e.classList.add("fj:hidden"), n.classList.remove("fj:hidden", "md:grid"), n.classList.remove("fj:h-full"), this.editor.render(), n.querySelector("textarea").classList.remove("fj:h-full!"), n.querySelector(".display-layer") && n.querySelector(".display-layer").classList.remove("fj:h-full!"), document.querySelector("body").classList.remove("fj:overflow-hidden"), t.parentNode.classList.remove("fj:flex", "fj:flex-col", "fj:h-dvh"), t.classList.remove("fj:flex-1", "fj:min-h-0"), this.editor.editorContainer.querySelectorAll(".markdown-btn").forEach((e) => {
1550
+ e.classList.contains("preview-btn") ? (e.classList.remove("fj:me-btn-active"), e.setAttribute("aria-pressed", "false")) : (e.classList.remove("fj:pointer-events-none", "fj:md:pointer-events-auto", "fj:opacity-25", "fj:md:opacity-100"), e.removeAttribute("aria-disabled"));
1551
+ });
1552
+ }
1553
+ enablePreview(e, t) {
1554
+ this.preview = !1;
1555
+ let n = t.querySelector(".textarea-wrapper");
1556
+ t.parentNode.classList.toggle("fj:fixed"), t.parentNode.classList.toggle("fj:top-0"), t.parentNode.classList.toggle("fj:inset-x-0"), t.parentNode.classList.toggle("fj:rounded-md"), t.parentNode.classList.toggle("fj:z-999"), t.classList.add("fj:md:grid-cols-2"), e.classList.remove("fj:hidden"), n.classList.add("fj:hidden", "fj:md:grid"), n.classList.add("fj:h-full"), n.querySelector("textarea").classList.add("fj:h-full!"), n.querySelector(".display-layer") && n.querySelector(".display-layer").classList.add("fj:h-full!"), document.querySelector("body").classList.add("fj:overflow-hidden"), t.parentNode.classList.add("fj:flex", "fj:flex-col", "fj:h-dvh"), t.classList.add("fj:flex-1", "fj:min-h-0"), this.editor.render(), this.editor.editorContainer.querySelectorAll(".markdown-btn").forEach((e) => {
1557
+ e.classList.contains("preview-btn") ? (e.classList.add("fj:me-btn-active"), e.setAttribute("aria-pressed", "true")) : (e.classList.add("fj:pointer-events-none", "fj:md:pointer-events-auto", "fj:opacity-25", "fj:md:opacity-100"), e.setAttribute("aria-disabled", "true"));
1558
+ });
1559
+ }
1560
+ }, Ye = class extends H {
1561
+ constructor(e) {
1562
+ super(e, "Check list"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M3.5 5.5l1.5 1.5l2.5 -2.5\" /><path d=\"M3.5 11.5l1.5 1.5l2.5 -2.5\" /><path d=\"M3.5 17.5l1.5 1.5l2.5 -2.5\" /><path d=\"M11 6l9 0\" /><path d=\"M11 12l9 0\" /><path d=\"M11 18l9 0\" /></svg>\n ");
1563
+ }
1564
+ applySyntax() {
1565
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "- [x] ", o = "- [ ] ", s = "", c = 0;
1566
+ if (i.startsWith(a) || i.startsWith(o)) s = i.slice(6);
1567
+ else {
1568
+ let l = r.substring(t - 6, t);
1569
+ if (l === a || l === o) {
1570
+ e.setSelectionRange(t - 6, n), this.editor.insertText(i, 0, 0);
1571
+ return;
1572
+ }
1573
+ s = `${a}${i || "Check list"}`, c = 6;
1574
+ }
1575
+ this.editor.insertText(s, c);
1576
+ }
1577
+ }, Xe = class extends H {
1578
+ constructor(e) {
1579
+ super(e, "Blockquote"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5\" /><path d=\"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5\" /></svg>\n ");
1580
+ }
1581
+ applySyntax() {
1582
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n), a = "", o = 0;
1583
+ if (i.startsWith(">")) a = i.slice(1);
1584
+ else if (r.substring(t - 1, t) === ">") {
1585
+ e.setSelectionRange(t - 1, n), this.editor.insertText(i, 0, 0);
1586
+ return;
1587
+ } else a = `>${i || "Blockquote text"}`, i || (o = 1);
1588
+ this.editor.insertText(a, o);
1589
+ }
1590
+ };
1591
+ //#endregion
1592
+ //#region src/components/modal.js
1593
+ function Ze(e, t, n, r = "") {
1594
+ let i = e.target.closest(".markdown-editor-wrapper");
1595
+ i.querySelector(".markdown-modal") && i.querySelector(".markdown-modal").remove();
1596
+ let a = `
1597
+ <dialog class="markdown-modal fj:me-modal fj:me-modal-top fj:lg:me-modal-middle fj:me-modal-center" id="nezanuha_toggleModal" ${r ? `aria-label="${r}"` : ""}>
1598
+ <div class="fj:me-modal-content ${t}">
1599
+ ${n}
1600
+ </div>
1601
+ </dialog>
1602
+ `;
1603
+ i.querySelector(".markdown-modal") || i.insertAdjacentHTML("beforeend", a);
1604
+ let o = i.querySelector(".markdown-modal");
1605
+ return o.addEventListener("close", () => o.remove()), o.showModal(), o;
1606
+ }
1607
+ //#endregion
1608
+ //#region src/components/toolbar/tools/LinkTool.js
1609
+ var Qe = class extends H {
1610
+ constructor(e) {
1611
+ super(e, "Link"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 15l6 -6\" /><path d=\"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464\" /><path d=\"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463\" /></svg>\n ");
1612
+ }
1613
+ applySyntax(e) {
1614
+ let t = this.editor, n = t.usertextarea, { selectionStart: r, selectionEnd: i } = n, a = n.value.substring(r, i), o = /\[([^\]]+)\]\(([^)]+)\)/;
1615
+ if (a && o.test(a)) {
1616
+ let e = a.match(o)[1];
1617
+ n.setRangeText(e, r, i, "select");
1618
+ } else {
1619
+ let n = Ze(e, "fj:max-w-sm", `
1620
+ <div class="fj:flex fj:justify-between fj:items-center fj:gap-3">
1621
+ <div class="fj:font-medium">Link</div>
1622
+ <button type="button" class="fj:me-btn fj:me-btn-ghost fj:me-btn-xs fj:me-btn-circle" aria-label="Close" onclick="nezanuha_toggleModal.close()">
1623
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
1624
+ </button>
1625
+ </div>
1626
+ <form method="post">
1627
+ <div class="fj:flex fj:flex-col fj:justify-center fj:gap-y-4.5 fj:mt-4">
1628
+ <input type="url" placeholder="URL" class="link-input fj:me-input fj:w-full" required>
1629
+ <input type="text" placeholder="Link text" class="link-text-input fj:me-input fj:w-full" value="${a}" required>
1630
+ <button type="submit" class="submit-link fj:me-btn fj:me-btn-sm fj:self-end">Apply</button>
1631
+ </div>
1632
+ </form>`, "Link");
1633
+ n.querySelector(".submit-link").addEventListener("click", function(e) {
1634
+ e.preventDefault();
1635
+ let r = n.querySelector(".link-input"), i = n.querySelector(".link-text-input");
1636
+ if (!r.validity.valid) r.reportValidity();
1637
+ else if (!i.validity.valid) i.reportValidity();
1638
+ else {
1639
+ let e = r.value, o = i.value;
1640
+ o == "" && (o = "Link Text");
1641
+ let s = "";
1642
+ s = a ? `[${a}](${e})` : `[${o}](${e})`, t.insertText(s), r.value = "", i.value = "", n.close();
1643
+ }
1644
+ });
1645
+ }
1646
+ }
1647
+ }, $e = class extends H {
1648
+ constructor(e) {
1649
+ super(e, "Heading"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M7 12h10\" /><path d=\"M7 5v14\" /><path d=\"M17 5v14\" /><path d=\"M15 19h4\" /><path d=\"M15 5h4\" /><path d=\"M5 19h4\" /><path d=\"M5 5h4\" /></svg>\n ");
1650
+ }
1651
+ createButton(e) {
1652
+ let t = `heading-popover-${Math.random().toString(36).slice(2, 7)}`, n = document.createElement("button");
1653
+ n.innerHTML = e;
1654
+ let r = n.querySelector("svg");
1655
+ r && r.setAttribute("aria-hidden", "true"), n.type = "button", n.title = "Heading", n.className = "markdown-btn heading-btn fj:me-btn fj:me-btn-xs fj:me-btn-square fj:me-btn-ghost fj:me-popover-toggle", n.setAttribute("popovertarget", t);
1656
+ let i = document.createElement("div");
1657
+ i.id = t, i.tabIndex = 0, i.className = "fj:me-popover-content", i.setAttribute("popover", "");
1658
+ let a = document.createElement("ul");
1659
+ a.className = "fj:me-menu";
1660
+ let o = [
1661
+ "fj:me-heading-xl",
1662
+ "fj:me-heading-lg",
1663
+ "fj:me-heading-md",
1664
+ "fj:me-heading-sm",
1665
+ "fj:me-heading-xs",
1666
+ "fj:me-heading-xs"
1667
+ ];
1668
+ for (let e = 1; e <= 6; e++) {
1669
+ let t = document.createElement("li"), n = document.createElement("a");
1670
+ n.className = `fj:me-menu-item ${o[e - 1]}`, n.textContent = `Heading ${e}`, n.addEventListener("click", () => {
1671
+ this.applyHeading(e), i.hidePopover();
1672
+ }), t.appendChild(n), a.appendChild(t);
1673
+ }
1674
+ i.appendChild(a);
1675
+ let s = document.createElement("div");
1676
+ return s.className = "fj:me-popover", s.appendChild(n), s.appendChild(i), s;
1677
+ }
1678
+ applyHeading(e) {
1679
+ let t = this.editor.usertextarea, { selectionStart: n, selectionEnd: r } = t, i = t.value, a = i.lastIndexOf("\n", n - 1) + 1, o = i.indexOf("\n", r), s = o === -1 ? i.length : o, c = i.substring(a, s), l = (c.match(/^(#+)\s/) || [])[1], u = c.replace(/^#+\s*/, ""), d = `${"#".repeat(e)} `, f = l && l.length === e ? u || "Heading" : u ? `${d}${u}` : `${d}Heading`;
1680
+ t.value = `${i.substring(0, a)}${f}${i.substring(s)}`, t.focus();
1681
+ let p = a + (f === u || f === "Heading" ? 0 : d.length), m = a + f.length;
1682
+ t.setSelectionRange(p, m), this.editor.scrollToView(), this.editor.render();
1683
+ }
1684
+ applySyntax() {}
1685
+ }, et = class extends H {
1686
+ constructor(e, t = {}) {
1687
+ super(e, "Image link"), this.config = t, this.fileInputConfig = t.fileInput || !1, this.altInputConfig = t.altInput === void 0 ? { required: !0 } : t.altInput, this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M15 8h.01\" /><path d=\"M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5\" /><path d=\"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4\" /><path d=\"M14 14l1 -1c.67 -.644 1.45 -.824 2.182 -.54\" /><path d=\"M16 19h6\" /><path d=\"M19 16v6\" /></svg>\n ");
1688
+ }
1689
+ applySyntax(e) {
1690
+ let t = this.editor, n = t.usertextarea, { selectionStart: r, selectionEnd: i } = n, a = n.value.substring(r, i), o = this.fileInputConfig.accept ? this.fileInputConfig.accept.map((e) => `image/${e}`).join(",") : "image/*", s = typeof this.altInputConfig == "boolean" ? this.altInputConfig : this.altInputConfig.required !== !1, c = this.fileInputConfig.uploadUrl || null, l = this.fileInputConfig.params || {}, u = /!\[([^\]]*)\]\(([^)]+)\)/;
1691
+ if (a && u.test(a)) {
1692
+ let e = a.match(u);
1693
+ n.setRangeText(e[1], r, i, "select");
1694
+ return;
1695
+ }
1696
+ let d = "";
1697
+ this.fileInputConfig && (d = `
1698
+ <input type="file" accept="${o}" class="img-file-input fj:me-input fj:w-full">
1699
+ <div class="fj:me-divider fj:my-1">OR</div>
1700
+ `);
1701
+ let f = Ze(e, "fj:max-w-sm", `
1702
+ <div class="fj:flex fj:justify-between fj:items-center fj:gap-3">
1703
+ <div class="fj:font-medium">Image</div>
1704
+ <button type="button" class="fj:me-btn fj:me-btn-ghost fj:me-btn-xs fj:me-btn-circle" aria-label="Close" onclick="nezanuha_toggleModal.close()">
1705
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
1706
+ </button>
1707
+ </div>
1708
+ <div class="fj:mt-4 fj:flex fj:flex-col fj:gap-y-4">
1709
+ ${d}
1710
+ <input type="url" placeholder="URL" class="img-link-input fj:me-input fj:w-full" required>
1711
+ <input type="text" placeholder="Alt text" class="img-link-alt-input fj:me-input fj:w-full" value="${a}" ${s ? "required" : ""}>
1712
+ <button type="button" class="submit-img-link fj:me-btn fj:me-btn-sm fj:self-end">Apply</button>
1713
+ </div>`, "Image"), p = f.querySelector(".submit-img-link");
1714
+ p.addEventListener("click", async (e) => {
1715
+ e.preventDefault();
1716
+ let n = f.querySelector(".img-file-input"), r = f.querySelector(".img-link-input"), i = f.querySelector(".img-link-alt-input"), o = n?.files[0];
1717
+ if (o && (r.required = !1), s && !i.validity.valid) {
1718
+ i.reportValidity(), o && (r.required = !0);
1719
+ return;
1720
+ }
1721
+ if (!o && !r.validity.valid) {
1722
+ r.reportValidity();
1723
+ return;
1724
+ }
1725
+ if (o && c) {
1726
+ let e = n.files[0];
1727
+ p.disabled = !0, p.textContent = "Uploading...";
1728
+ let t = new FormData();
1729
+ t.append("image_file", e), t.append("image_alt", i.value), Object.keys(l).forEach((e) => {
1730
+ t.append(e, l[e]);
1731
+ });
1732
+ try {
1733
+ let e = await (await fetch(c, {
1734
+ method: "POST",
1735
+ body: t
1736
+ })).json();
1737
+ if (e.success && e.image_path) r.value = e.image_path, e.image_alt && (i.value = e.image_alt);
1738
+ else {
1739
+ alert(e.error || e.message || "Image upload failed."), p.disabled = !1, p.textContent = "Apply", r.required = !0;
1740
+ return;
1741
+ }
1742
+ } catch {
1743
+ alert("Upload failed."), p.disabled = !1, p.textContent = "Apply", r.required = !0;
1744
+ return;
1745
+ }
1746
+ p.disabled = !1, p.textContent = "Apply";
1747
+ }
1748
+ let u = r.value, d = i.value || "", m = a ? `![${a}](${u})` : `![${d}](${u})`;
1749
+ t.insertText(m), f.close();
1750
+ });
1751
+ }
1752
+ }, tt = class extends H {
1753
+ constructor(e) {
1754
+ super(e, "Undo"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 14l-4 -4l4 -4\" /><path d=\"M5 10h11a4 4 0 1 1 0 8h-1\" /></svg>\n ");
1755
+ }
1756
+ applySyntax() {
1757
+ let e = this.editor.undoRedoManager;
1758
+ e && e.undo();
1759
+ }
1760
+ }, nt = class extends H {
1761
+ constructor(e) {
1762
+ super(e, "Redo"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M15 14l4 -4l-4 -4\" /><path d=\"M19 10h-11a4 4 0 1 0 0 8h1\" /></svg>\n ");
1763
+ }
1764
+ applySyntax() {
1765
+ let e = this.editor.undoRedoManager;
1766
+ e && e.redo();
1767
+ }
1768
+ }, rt = class extends H {
1769
+ constructor(e) {
1770
+ super(e, "Indent"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M20 6l-11 0\" /><path d=\"M20 12l-7 0\" /><path d=\"M20 18l-11 0\" /><path d=\"M4 8l4 4l-4 4\" /></svg>\n ");
1771
+ }
1772
+ applySyntax() {
1773
+ let e = this.editor.indentManager;
1774
+ e && (e.indent(), this.editor.render());
1775
+ }
1776
+ }, it = class extends H {
1777
+ constructor(e) {
1778
+ super(e, "Outdent"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M20 6l-7 0\" /><path d=\"M20 12l-9 0\" /><path d=\"M20 18l-7 0\" /><path d=\"M8 8l-4 4l4 4\" /></svg>\n ");
1779
+ }
1780
+ applySyntax(e) {
1781
+ let t = this.editor.indentManager;
1782
+ t && (t.outdent(), this.editor.render());
1783
+ }
1784
+ }, at = class extends H {
1785
+ constructor(e) {
1786
+ super(e, "Code"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M7 8l-4 4l4 4\" /><path d=\"M17 8l4 4l-4 4\" /><path d=\"M14 4l-4 16\" /></svg>\n ");
1787
+ }
1788
+ applySyntax() {
1789
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value, i = r.substring(t, n);
1790
+ if (i.startsWith("`") && i.endsWith("`")) {
1791
+ this.editor.insertText(i.slice(1, -1), 0, 0);
1792
+ return;
1793
+ }
1794
+ if (r[t - 1] === "`" && r[n] === "`") {
1795
+ e.setSelectionRange(t - 1, n + 1), this.editor.insertText(i, 0, 0);
1796
+ return;
1797
+ }
1798
+ let a = `\`${i || "code"}\``;
1799
+ this.editor.insertText(a, 1, 1);
1800
+ }
1801
+ }, ot = class extends H {
1802
+ constructor(e) {
1803
+ super(e, "Code Block"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M8 9l3 3l-3 3\" /><path d=\"M13 15l3 0\" /><rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" /></svg>\n ");
1804
+ }
1805
+ applySyntax() {
1806
+ let e = this.editor.usertextarea, { selectionStart: t, selectionEnd: n } = e, r = e.value.substring(t, n);
1807
+ if (r.startsWith("```") && r.endsWith("```") && r.length > 6) {
1808
+ let e = r.replace(/^```\w*\n?/, "").replace(/\n?```$/, "");
1809
+ this.editor.insertText(e, 0, 0);
1810
+ return;
1811
+ }
1812
+ let i = `\`\`\`\n${r || "code"}\n\`\`\``;
1813
+ this.editor.insertText(i, 4, 4);
1814
+ }
1815
+ }, st = class extends H {
1816
+ constructor(e) {
1817
+ super(e, "Horizontal Rule"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M4 12l16 0\" stroke-width=\"3\"/><path d=\"M4 7l6 0\" /><path d=\"M4 17l6 0\" /><path d=\"M14 7l6 0\" /><path d=\"M14 17l6 0\" /></svg>\n ");
1818
+ }
1819
+ applySyntax() {
1820
+ let e = this.editor.usertextarea, { selectionStart: t } = e, n = e.value, r = t === 0 || n[t - 1] === "\n" ? "---\n" : "\n\n---\n";
1821
+ this.editor.insertText(r, r.length, 0);
1822
+ }
1823
+ }, ct = class extends H {
1824
+ constructor(e) {
1825
+ super(e, "Table"), this.button = this.createButton("\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z\" /><path d=\"M3 10h18\" /><path d=\"M10 3v18\" /></svg>\n ");
1826
+ }
1827
+ applySyntax() {
1828
+ let e = this.editor.usertextarea, { selectionStart: t } = e, n = e.value, r = "| Column 1 | Column 2 | Column 3 |\n| --- | --- | --- |\n| Cell | Cell | Cell |\n| Cell | Cell | Cell |", i = t === 0 || n[t - 1] === "\n" ? r : `\n${r}`;
1829
+ this.editor.insertText(i, i.length, 0);
1830
+ }
1831
+ }, lt = class {
1832
+ constructor(e, t) {
1833
+ this.editor = e, this.options = t, this.toolbar = document.createElement("div"), this.toolbar.className = "toolbar fj:me-surface fj:me-surface-outline fj:border-base-soft fj:border-0 fj:border-b fj:flex fj:gap-x-1 fj:p-1.5 fj:overflow-x-auto", this.toolbar.setAttribute("role", "toolbar"), this.toolbar.setAttribute("aria-label", "Editor toolbar"), this.init();
1834
+ }
1835
+ init() {
1836
+ let e = {
1837
+ heading: $e,
1838
+ ul: Ke,
1839
+ ol: qe,
1840
+ checklist: Ye,
1841
+ bold: Ue,
1842
+ italic: We,
1843
+ strikethrough: Ge,
1844
+ blockquote: Xe,
1845
+ code: at,
1846
+ codeblock: ot,
1847
+ hr: st,
1848
+ table: ct,
1849
+ link: Qe,
1850
+ image: et,
1851
+ undo: tt,
1852
+ redo: nt,
1853
+ indent: rt,
1854
+ outdent: it
1855
+ };
1856
+ if (this.options.forEach((t) => {
1857
+ let n, r;
1858
+ if (typeof t == "string") n = e[t];
1859
+ else if (typeof t == "object") {
1860
+ let i = Object.keys(t)[0];
1861
+ r = t[i], n = e[i];
1862
+ }
1863
+ if (n) {
1864
+ let e = new n(this.editor, r);
1865
+ this.toolbar.appendChild(e.button);
1866
+ }
1867
+ }), this.options.includes("preview")) {
1868
+ let e = new Je(this.editor);
1869
+ this.toolbar.appendChild(e.button);
1870
+ }
1871
+ this.editor.editorContainer.insertBefore(this.toolbar, this.editor.markdownEditorDiv);
1872
+ }
1873
+ }, ut = class {
1874
+ constructor(e) {
1875
+ this.previewContainer = document.createElement("div"), this.previewContainer.className = "preview-wrapper fj:p-2 fj:hidden fj:me-surface fj:me-surface-outline fj:border-base-soft fj:border-0 fj:border-l", this.previewContainer.setAttribute("role", "region"), this.previewContainer.setAttribute("aria-label", "Preview"), this.previewContent = document.createElement("div"), this.previewContent.className = "preview-content fj:prose fj:prose-sm fj:md:prose-base fj:me-prose-frutjam fj:p-1.5 fj:overflow-y-auto fj:h-full fj:max-w-full", this.previewContainer.appendChild(this.previewContent), e.appendChild(this.previewContainer);
1876
+ }
1877
+ getPreviewContent() {
1878
+ return this.previewContent;
1879
+ }
1880
+ }, dt = class {
1881
+ constructor(e, t = {}) {
1882
+ this.options = t, this.footer = document.createElement("div"), this.footer.className = "editor-footer fj:me-surface fj:me-surface-outline fj:border-base-soft fj:border-0 fj:border-t fj:flex fj:justify-between fj:items-center fj:px-3 fj:py-1 fj:text-xs fj:opacity-60 fj:select-none", this.footer.setAttribute("aria-hidden", "true"), this.positionEl = document.createElement("span"), this.charsEl = document.createElement("span"), (this.options.line || this.options.col) && this.footer.appendChild(this.positionEl), this.options.chars && this.footer.appendChild(this.charsEl), e.appendChild(this.footer);
1883
+ }
1884
+ update(e) {
1885
+ let t = e.value, n = e.selectionStart ?? 0;
1886
+ if (this.options.line || this.options.col) {
1887
+ let e = t.substring(0, n).split("\n"), r = [];
1888
+ this.options.line && r.push(`Ln ${e.length}`), this.options.col && r.push(`Col ${e[e.length - 1].length + 1}`), this.positionEl.textContent = r.join(", ");
1889
+ }
1890
+ this.options.chars && (this.charsEl.textContent = `${t.length.toLocaleString()} chars`);
1891
+ }
1892
+ }, U = class {
1893
+ diff(e, t, n = {}) {
1894
+ let r;
1895
+ typeof n == "function" ? (r = n, n = {}) : "callback" in n && (r = n.callback);
1896
+ let i = this.castInput(e, n), a = this.castInput(t, n), o = this.removeEmpty(this.tokenize(i, n)), s = this.removeEmpty(this.tokenize(a, n));
1897
+ return this.diffWithOptionsObj(o, s, n, r);
1898
+ }
1899
+ diffWithOptionsObj(e, t, n, r) {
1900
+ let i = (e) => {
1901
+ if (e = this.postProcess(e, n), r) {
1902
+ setTimeout(function() {
1903
+ r(e);
1904
+ }, 0);
1905
+ return;
1906
+ } else return e;
1907
+ }, a = t.length, o = e.length, s = 1, c = a + o;
1908
+ n.maxEditLength != null && (c = Math.min(c, n.maxEditLength));
1909
+ let l = n.timeout ?? Infinity, u = Date.now() + l, d = [{
1910
+ oldPos: -1,
1911
+ lastComponent: void 0
1912
+ }], f = this.extractCommon(d[0], t, e, 0, n);
1913
+ if (d[0].oldPos + 1 >= o && f + 1 >= a) return i(this.buildValues(d[0].lastComponent, t, e));
1914
+ let p = -Infinity, m = Infinity, h = () => {
1915
+ for (let r = Math.max(p, -s); r <= Math.min(m, s); r += 2) {
1916
+ let s, c = d[r - 1], l = d[r + 1];
1917
+ c && (d[r - 1] = void 0);
1918
+ let u = !1;
1919
+ if (l) {
1920
+ let e = l.oldPos - r;
1921
+ u = l && 0 <= e && e < a;
1922
+ }
1923
+ let h = c && c.oldPos + 1 < o;
1924
+ if (!u && !h) {
1925
+ d[r] = void 0;
1926
+ continue;
1927
+ }
1928
+ if (s = !h || u && c.oldPos < l.oldPos ? this.addToPath(l, !0, !1, 0, n) : this.addToPath(c, !1, !0, 1, n), f = this.extractCommon(s, t, e, r, n), s.oldPos + 1 >= o && f + 1 >= a) return i(this.buildValues(s.lastComponent, t, e)) || !0;
1929
+ d[r] = s, s.oldPos + 1 >= o && (m = Math.min(m, r - 1)), f + 1 >= a && (p = Math.max(p, r + 1));
1930
+ }
1931
+ s++;
1932
+ };
1933
+ if (r) (function e() {
1934
+ setTimeout(function() {
1935
+ if (s > c || Date.now() > u) return r(void 0);
1936
+ h() || e();
1937
+ }, 0);
1938
+ })();
1939
+ else for (; s <= c && Date.now() <= u;) {
1940
+ let e = h();
1941
+ if (e) return e;
1942
+ }
1943
+ }
1944
+ addToPath(e, t, n, r, i) {
1945
+ let a = e.lastComponent;
1946
+ return a && !i.oneChangePerToken && a.added === t && a.removed === n ? {
1947
+ oldPos: e.oldPos + r,
1948
+ lastComponent: {
1949
+ count: a.count + 1,
1950
+ added: t,
1951
+ removed: n,
1952
+ previousComponent: a.previousComponent
1953
+ }
1954
+ } : {
1955
+ oldPos: e.oldPos + r,
1956
+ lastComponent: {
1957
+ count: 1,
1958
+ added: t,
1959
+ removed: n,
1960
+ previousComponent: a
1961
+ }
1962
+ };
1963
+ }
1964
+ extractCommon(e, t, n, r, i) {
1965
+ let a = t.length, o = n.length, s = e.oldPos, c = s - r, l = 0;
1966
+ for (; c + 1 < a && s + 1 < o && this.equals(n[s + 1], t[c + 1], i);) c++, s++, l++, i.oneChangePerToken && (e.lastComponent = {
1967
+ count: 1,
1968
+ previousComponent: e.lastComponent,
1969
+ added: !1,
1970
+ removed: !1
1971
+ });
1972
+ return l && !i.oneChangePerToken && (e.lastComponent = {
1973
+ count: l,
1974
+ previousComponent: e.lastComponent,
1975
+ added: !1,
1976
+ removed: !1
1977
+ }), e.oldPos = s, c;
1978
+ }
1979
+ equals(e, t, n) {
1980
+ return n.comparator ? n.comparator(e, t) : e === t || !!n.ignoreCase && e.toLowerCase() === t.toLowerCase();
1981
+ }
1982
+ removeEmpty(e) {
1983
+ let t = [];
1984
+ for (let n = 0; n < e.length; n++) e[n] && t.push(e[n]);
1985
+ return t;
1986
+ }
1987
+ castInput(e, t) {
1988
+ return e;
1989
+ }
1990
+ tokenize(e, t) {
1991
+ return Array.from(e);
1992
+ }
1993
+ join(e) {
1994
+ return e.join("");
1995
+ }
1996
+ postProcess(e, t) {
1997
+ return e;
1998
+ }
1999
+ get useLongestToken() {
2000
+ return !1;
2001
+ }
2002
+ buildValues(e, t, n) {
2003
+ let r = [], i;
2004
+ for (; e;) r.push(e), i = e.previousComponent, delete e.previousComponent, e = i;
2005
+ r.reverse();
2006
+ let a = r.length, o = 0, s = 0, c = 0;
2007
+ for (; o < a; o++) {
2008
+ let e = r[o];
2009
+ if (e.removed) e.value = this.join(n.slice(c, c + e.count)), c += e.count;
2010
+ else {
2011
+ if (!e.added && this.useLongestToken) {
2012
+ let r = t.slice(s, s + e.count);
2013
+ r = r.map(function(e, t) {
2014
+ let r = n[c + t];
2015
+ return r.length > e.length ? r : e;
2016
+ }), e.value = this.join(r);
2017
+ } else e.value = this.join(t.slice(s, s + e.count));
2018
+ s += e.count, e.added || (c += e.count);
2019
+ }
2020
+ }
2021
+ return r;
2022
+ }
2023
+ }, ft = new class extends U {}();
2024
+ function pt(e, t, n) {
2025
+ return ft.diff(e, t, n);
2026
+ }
2027
+ //#endregion
2028
+ //#region node_modules/diff/libesm/util/string.js
2029
+ function mt(e, t) {
2030
+ let n;
2031
+ for (n = 0; n < e.length && n < t.length; n++) if (e[n] != t[n]) return e.slice(0, n);
2032
+ return e.slice(0, n);
2033
+ }
2034
+ function ht(e, t) {
2035
+ let n;
2036
+ if (!e || !t || e[e.length - 1] != t[t.length - 1]) return "";
2037
+ for (n = 0; n < e.length && n < t.length; n++) if (e[e.length - (n + 1)] != t[t.length - (n + 1)]) return e.slice(-n);
2038
+ return e.slice(-n);
2039
+ }
2040
+ function W(e, t, n) {
2041
+ if (e.slice(0, t.length) != t) throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);
2042
+ return n + e.slice(t.length);
2043
+ }
2044
+ function G(e, t, n) {
2045
+ if (!t) return e + n;
2046
+ if (e.slice(-t.length) != t) throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);
2047
+ return e.slice(0, -t.length) + n;
2048
+ }
2049
+ function K(e, t) {
2050
+ return W(e, t, "");
2051
+ }
2052
+ function q(e, t) {
2053
+ return G(e, t, "");
2054
+ }
2055
+ function gt(e, t) {
2056
+ return t.slice(0, _t(e, t));
2057
+ }
2058
+ function _t(e, t) {
2059
+ let n = 0;
2060
+ e.length > t.length && (n = e.length - t.length);
2061
+ let r = t.length;
2062
+ e.length < t.length && (r = e.length);
2063
+ let i = Array(r), a = 0;
2064
+ i[0] = 0;
2065
+ for (let e = 1; e < r; e++) {
2066
+ for (t[e] == t[a] ? i[e] = i[a] : i[e] = a; a > 0 && t[e] != t[a];) a = i[a];
2067
+ t[e] == t[a] && a++;
2068
+ }
2069
+ a = 0;
2070
+ for (let r = n; r < e.length; r++) {
2071
+ for (; a > 0 && e[r] != t[a];) a = i[a];
2072
+ e[r] == t[a] && a++;
2073
+ }
2074
+ return a;
2075
+ }
2076
+ function vt(e, t) {
2077
+ let n = [];
2078
+ for (let r of Array.from(t.segment(e))) {
2079
+ let e = r.segment;
2080
+ n.length && /\s/.test(n[n.length - 1]) && /\s/.test(e) ? n[n.length - 1] += e : n.push(e);
2081
+ }
2082
+ return n;
2083
+ }
2084
+ function J(e, t) {
2085
+ if (t) return X(e, t)[1];
2086
+ let n;
2087
+ for (n = e.length - 1; n >= 0 && e[n].match(/\s/); n--);
2088
+ return e.substring(n + 1);
2089
+ }
2090
+ function Y(e, t) {
2091
+ if (t) return X(e, t)[0];
2092
+ let n = e.match(/^\s*/);
2093
+ return n ? n[0] : "";
2094
+ }
2095
+ function X(e, t) {
2096
+ if (!t) return [Y(e), J(e)];
2097
+ if (t.resolvedOptions().granularity != "word") throw Error("The segmenter passed must have a granularity of \"word\"");
2098
+ let n = vt(e, t), r = n[0], i = n[n.length - 1];
2099
+ return [/\s/.test(r) ? r : "", /\s/.test(i) ? i : ""];
2100
+ }
2101
+ //#endregion
2102
+ //#region node_modules/diff/libesm/diff/word.js
2103
+ var Z = "a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", yt = RegExp(`[${Z}]+|\\s+|[^${Z}]`, "ug");
2104
+ new class extends U {
2105
+ equals(e, t, n) {
2106
+ return n.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e.trim() === t.trim();
2107
+ }
2108
+ tokenize(e, t = {}) {
2109
+ let n;
2110
+ if (t.intlSegmenter) {
2111
+ let r = t.intlSegmenter;
2112
+ if (r.resolvedOptions().granularity != "word") throw Error("The segmenter passed must have a granularity of \"word\"");
2113
+ n = vt(e, r);
2114
+ } else n = e.match(yt) || [];
2115
+ let r = [], i = null;
2116
+ return n.forEach((e) => {
2117
+ /\s/.test(e) ? i == null ? r.push(e) : r.push(r.pop() + e) : i != null && /\s/.test(i) ? r[r.length - 1] == i ? r.push(r.pop() + e) : r.push(i + e) : r.push(e), i = e;
2118
+ }), r;
2119
+ }
2120
+ join(e) {
2121
+ return e.map((e, t) => t == 0 ? e : e.replace(/^\s+/, "")).join("");
2122
+ }
2123
+ postProcess(e, t) {
2124
+ if (!e || t.oneChangePerToken) return e;
2125
+ let n = null, r = null, i = null;
2126
+ return e.forEach((e) => {
2127
+ e.added ? r = e : e.removed ? i = e : ((r || i) && bt(n, i, r, e, t.intlSegmenter), n = e, r = null, i = null);
2128
+ }), (r || i) && bt(n, i, r, null, t.intlSegmenter), e;
2129
+ }
2130
+ }();
2131
+ function bt(e, t, n, r, i) {
2132
+ if (t && n) {
2133
+ let [a, o] = X(t.value, i), [s, c] = X(n.value, i);
2134
+ if (e) {
2135
+ let r = mt(a, s);
2136
+ e.value = G(e.value, s, r), t.value = K(t.value, r), n.value = K(n.value, r);
2137
+ }
2138
+ if (r) {
2139
+ let e = ht(o, c);
2140
+ r.value = W(r.value, c, e), t.value = q(t.value, e), n.value = q(n.value, e);
2141
+ }
2142
+ } else if (n) {
2143
+ if (e) {
2144
+ let e = Y(n.value, i);
2145
+ n.value = n.value.substring(e.length);
2146
+ }
2147
+ if (r) {
2148
+ let e = Y(r.value, i);
2149
+ r.value = r.value.substring(e.length);
2150
+ }
2151
+ } else if (e && r) {
2152
+ let n = Y(r.value, i), [a, o] = X(t.value, i), s = mt(n, a);
2153
+ t.value = K(t.value, s);
2154
+ let c = ht(K(n, s), o);
2155
+ t.value = q(t.value, c), r.value = W(r.value, n, c), e.value = G(e.value, n, n.slice(0, n.length - c.length));
2156
+ } else if (r) {
2157
+ let e = Y(r.value, i), n = gt(J(t.value, i), e);
2158
+ t.value = q(t.value, n);
2159
+ } else if (e) {
2160
+ let n = gt(J(e.value, i), Y(t.value, i));
2161
+ t.value = K(t.value, n);
2162
+ }
2163
+ }
2164
+ new class extends U {
2165
+ tokenize(e) {
2166
+ let t = RegExp(`(\\r?\\n)|[${Z}]+|[^\\S\\n\\r]+|[^${Z}]`, "ug");
2167
+ return e.match(t) || [];
2168
+ }
2169
+ }(), new class extends U {
2170
+ constructor() {
2171
+ super(...arguments), this.tokenize = Q;
2172
+ }
2173
+ equals(e, t, n) {
2174
+ return n.ignoreWhitespace ? ((!n.newlineIsToken || !e.includes("\n")) && (e = e.trim()), (!n.newlineIsToken || !t.includes("\n")) && (t = t.trim())) : n.ignoreNewlineAtEof && !n.newlineIsToken && (e.endsWith("\n") && (e = e.slice(0, -1)), t.endsWith("\n") && (t = t.slice(0, -1))), super.equals(e, t, n);
2175
+ }
2176
+ }();
2177
+ function Q(e, t) {
2178
+ t.stripTrailingCr && (e = e.replace(/\r\n/g, "\n"));
2179
+ let n = [], r = e.split(/(\n|\r\n)/);
2180
+ r[r.length - 1] || r.pop();
2181
+ for (let e = 0; e < r.length; e++) {
2182
+ let i = r[e];
2183
+ e % 2 && !t.newlineIsToken ? n[n.length - 1] += i : n.push(i);
2184
+ }
2185
+ return n;
2186
+ }
2187
+ //#endregion
2188
+ //#region node_modules/diff/libesm/diff/sentence.js
2189
+ function xt(e) {
2190
+ return e == "." || e == "!" || e == "?";
2191
+ }
2192
+ new class extends U {
2193
+ tokenize(e) {
2194
+ let t = [], n = 0;
2195
+ for (let r = 0; r < e.length; r++) {
2196
+ if (r == e.length - 1) {
2197
+ t.push(e.slice(n));
2198
+ break;
2199
+ }
2200
+ if (xt(e[r]) && e[r + 1].match(/\s/)) {
2201
+ for (t.push(e.slice(n, r + 1)), r = n = r + 1; e[r + 1]?.match(/\s/);) r++;
2202
+ t.push(e.slice(n, r + 1)), n = r + 1;
2203
+ }
2204
+ }
2205
+ return t;
2206
+ }
2207
+ }(), new class extends U {
2208
+ tokenize(e) {
2209
+ return e.split(/([{}:;,]|\s+)/);
2210
+ }
2211
+ }(), new class extends U {
2212
+ constructor() {
2213
+ super(...arguments), this.tokenize = Q;
2214
+ }
2215
+ get useLongestToken() {
2216
+ return !0;
2217
+ }
2218
+ castInput(e, t) {
2219
+ let { undefinedReplacement: n, stringifyReplacer: r = (e, t) => t === void 0 ? n : t } = t;
2220
+ return typeof e == "string" ? e : JSON.stringify($(e, null, null, r), null, " ");
2221
+ }
2222
+ equals(e, t, n) {
2223
+ return super.equals(e.replace(/,([\r\n])/g, "$1"), t.replace(/,([\r\n])/g, "$1"), n);
2224
+ }
2225
+ }();
2226
+ function $(e, t, n, r, i) {
2227
+ t ||= [], n ||= [], r && (e = r(i === void 0 ? "" : i, e));
2228
+ let a;
2229
+ for (a = 0; a < t.length; a += 1) if (t[a] === e) return n[a];
2230
+ let o;
2231
+ if (Object.prototype.toString.call(e) === "[object Array]") {
2232
+ for (t.push(e), o = Array(e.length), n.push(o), a = 0; a < e.length; a += 1) o[a] = $(e[a], t, n, r, String(a));
2233
+ return t.pop(), n.pop(), o;
2234
+ }
2235
+ if (e && e.toJSON && (e = e.toJSON()), typeof e == "object" && e) {
2236
+ t.push(e), o = {}, n.push(o);
2237
+ let i = [], s;
2238
+ for (s in e)
2239
+ /* istanbul ignore else */
2240
+ Object.prototype.hasOwnProperty.call(e, s) && i.push(s);
2241
+ for (i.sort(), a = 0; a < i.length; a += 1) s = i[a], o[s] = $(e[s], t, n, r, s);
2242
+ t.pop(), n.pop();
2243
+ } else o = e;
2244
+ return o;
2245
+ }
2246
+ new class extends U {
2247
+ tokenize(e) {
2248
+ return e.slice();
2249
+ }
2250
+ join(e) {
2251
+ return e;
2252
+ }
2253
+ removeEmpty(e) {
2254
+ return e;
2255
+ }
2256
+ }();
2257
+ //#endregion
2258
+ //#region src/utils/UndoRedoManager.js
2259
+ var St = class {
2260
+ constructor(e) {
2261
+ this.editor = e, this.textarea = e.usertextarea, this.undoStack = [], this.redoStack = [], this.lastValue = this.textarea.value, this.lastSelection = {
2262
+ selectionStart: this.textarea.selectionStart,
2263
+ selectionEnd: this.textarea.selectionEnd
2264
+ }, this.debounceDelay = 1e3, this.maxStackSize = 100, this._debounceTimer = null, this._bindEvents();
2265
+ }
2266
+ _bindEvents() {
2267
+ this.textarea.addEventListener("keydown", (e) => this._onKeyDown(e)), this.textarea.addEventListener("select", () => this._updateLastSelection()), this.textarea.addEventListener("mousedown", () => {
2268
+ setTimeout(() => this._updateLastSelection(), 0);
2269
+ }), this.textarea.addEventListener("beforeinput", (e) => {
2270
+ e.inputType === "historyUndo" ? (e.preventDefault(), this.undo()) : e.inputType === "historyRedo" && (e.preventDefault(), this.redo());
2271
+ }), this.textarea.addEventListener("input", (e) => this._onInput(e)), this.textarea.addEventListener("paste", () => this._saveState()), this.textarea.addEventListener("blur", () => this._saveState());
2272
+ }
2273
+ _updateLastSelection() {
2274
+ this.lastSelection = {
2275
+ selectionStart: this.textarea.selectionStart,
2276
+ selectionEnd: this.textarea.selectionEnd
2277
+ };
2278
+ }
2279
+ _onKeyDown(e) {
2280
+ let t = e.metaKey || e.ctrlKey, n = e.key.toLowerCase() === "z", r = e.key.toLowerCase() === "y", i = e.shiftKey, a = this.textarea.selectionStart !== this.textarea.selectionEnd, o = e.key === "Backspace" || e.key === "Delete" || e.key === "Enter";
2281
+ a && (e.key.length === 1 || o) && this._saveState(), (t || o) && this._saveState(), t && n && !i ? (e.preventDefault(), this.undo()) : t && (i && n || !e.metaKey && r) && (e.preventDefault(), this.redo());
2282
+ }
2283
+ _onInput(e) {
2284
+ clearTimeout(this._debounceTimer);
2285
+ let t = this.textarea.value[this.textarea.selectionStart - 1];
2286
+ t && /[\s.,;:!?()\[\]{}'"`~]/.test(t) ? this._saveState() : this._debounceTimer = setTimeout(() => this._saveState(), this.debounceDelay);
2287
+ }
2288
+ _saveState() {
2289
+ let e = this.textarea.value || "";
2290
+ if (e === this.lastValue) return;
2291
+ clearTimeout(this._debounceTimer);
2292
+ let t = pt(this.lastValue, e);
2293
+ this.undoStack.push({
2294
+ diff: t,
2295
+ selection: { ...this.lastSelection }
2296
+ }), this.undoStack.length > this.maxStackSize && this.undoStack.shift(), this.lastValue = e, this._updateLastSelection(), this.redoStack = [];
2297
+ }
2298
+ undo() {
2299
+ if (this.undoStack.length === 0) return;
2300
+ let e = this.undoStack.pop(), t = this._revertDiff(this.lastValue, e.diff);
2301
+ this.redoStack.push({
2302
+ diff: e.diff,
2303
+ selection: {
2304
+ selectionStart: this.textarea.selectionStart,
2305
+ selectionEnd: this.textarea.selectionEnd
2306
+ }
2307
+ }), this._restoreState(t, e.selection);
2308
+ }
2309
+ redo() {
2310
+ if (this.redoStack.length === 0) return;
2311
+ let e = this.redoStack.pop(), t = this._applyDiff(this.lastValue, e.diff);
2312
+ this.undoStack.push({
2313
+ diff: e.diff,
2314
+ selection: { ...this.lastSelection }
2315
+ }), this._restoreState(t, e.selection);
2316
+ }
2317
+ _applyDiff(e, t) {
2318
+ let n = "";
2319
+ return t.forEach((e) => {
2320
+ e.removed || (n += e.value);
2321
+ }), n;
2322
+ }
2323
+ _revertDiff(e, t) {
2324
+ let n = "";
2325
+ return t.forEach((e) => {
2326
+ e.added || (n += e.value);
2327
+ }), n;
2328
+ }
2329
+ _restoreState(e, t) {
2330
+ this.textarea.value = e, this.textarea.setSelectionRange(t.selectionStart, t.selectionEnd), this.lastValue = e, this.lastSelection = { ...t }, this.editor.render && this.editor.render(), this.textarea.focus();
2331
+ }
2332
+ }, Ct = class {
2333
+ constructor(e, t) {
2334
+ this.editor = e, this.textarea = e.usertextarea, this.renderCallback = t, this.pairs = {
2335
+ "{": "}",
2336
+ "[": "]",
2337
+ "(": ")",
2338
+ "<": ">",
2339
+ "\"": "\"",
2340
+ "'": "'"
2341
+ }, this.init();
2342
+ }
2343
+ init() {
2344
+ this.textarea.addEventListener("keydown", (e) => {
2345
+ switch (e.key) {
2346
+ case "Tab":
2347
+ e.preventDefault(), e.shiftKey ? this.outdent() : this.indent(), this._triggerUpdate();
2348
+ break;
2349
+ case "Enter":
2350
+ this.autoIndent(e);
2351
+ break;
2352
+ case "Backspace":
2353
+ this.handleBackspace(e);
2354
+ break;
2355
+ default: this.pairs[e.key] && this.handlePairs(e);
2356
+ }
2357
+ });
2358
+ }
2359
+ handlePairs(e) {
2360
+ let { textarea: t } = this, { selectionStart: n, selectionEnd: r, value: i } = t, a = e.key;
2361
+ if (n === r && i[n] === a && Object.values(this.pairs).includes(a)) {
2362
+ e.preventDefault();
2363
+ let r = n + 1;
2364
+ t.setSelectionRange(r, r);
2365
+ return;
2366
+ }
2367
+ let o = a, s = this.pairs[o];
2368
+ if (s) if (n !== r) {
2369
+ e.preventDefault();
2370
+ let a = i.substring(n, r);
2371
+ t.value = i.substring(0, n) + o + a + s + i.substring(r), t.setSelectionRange(n + 1, r + 1), this._triggerUpdate();
2372
+ } else {
2373
+ e.preventDefault();
2374
+ let a = i.substring(0, n), c = i.substring(r);
2375
+ t.value = a + o + s + c, t.setSelectionRange(n + 1, n + 1), this._triggerUpdate();
2376
+ }
2377
+ }
2378
+ handleBackspace(e) {
2379
+ let { textarea: t } = this, { selectionStart: n, selectionEnd: r, value: i } = t;
2380
+ if (n === r && n > 0) {
2381
+ let r = i[n - 1], a = i[n];
2382
+ this.pairs[r] === a && (e.preventDefault(), t.value = i.substring(0, n - 1) + i.substring(n + 1), t.setSelectionRange(n - 1, n - 1), this._triggerUpdate());
2383
+ }
2384
+ }
2385
+ autoIndent(e) {
2386
+ let { textarea: t } = this, { selectionStart: n, value: r } = t, i = r.lastIndexOf("\n", n - 1), a = r.substring(i + 1, n);
2387
+ if (/^(\s*)([\-\*] |\d+\. )/.test(a)) return;
2388
+ let o = (a.match(/^[ \t]*/) || [""])[0], s = r[n - 1], c = r[n];
2389
+ if (s === "{" && c === "}") {
2390
+ e.preventDefault();
2391
+ let i = "\n" + o + " \n" + o;
2392
+ t.value = r.substring(0, n) + i + r.substring(n);
2393
+ let a = n + o.length + 1 + 1;
2394
+ t.setSelectionRange(a, a), this._triggerUpdate();
2395
+ return;
2396
+ }
2397
+ if (o.length > 0) {
2398
+ e.preventDefault();
2399
+ let i = "\n" + o;
2400
+ t.value = r.substring(0, n) + i + r.substring(t.selectionEnd);
2401
+ let a = n + i.length;
2402
+ t.setSelectionRange(a, a), this._triggerUpdate();
2403
+ }
2404
+ }
2405
+ _triggerUpdate() {
2406
+ typeof this.renderCallback == "function" && this.renderCallback(), this.textarea.dispatchEvent(new Event("input", { bubbles: !0 }));
2407
+ }
2408
+ indent() {
2409
+ let { textarea: e } = this, { selectionStart: t, selectionEnd: n, value: r } = e, i = r.lastIndexOf("\n", t - 1) + 1, a = r.indexOf("\n", n);
2410
+ a === -1 && (a = r.length);
2411
+ let o = r.substring(i, a).split("\n"), s = o.map((e) => " " + e).join("\n");
2412
+ this._applyChange(r.substring(0, i) + s + r.substring(a), t + 1, n + o.length);
2413
+ }
2414
+ outdent() {
2415
+ let { textarea: e } = this, { selectionStart: t, selectionEnd: n, value: r } = e, i = r.lastIndexOf("\n", t - 1) + 1, a = r.indexOf("\n", n);
2416
+ a === -1 && (a = r.length);
2417
+ let o = r.substring(i, a).split("\n"), s = 0, c = 0, l = o.map((e, t) => e.startsWith(" ") ? (t === 0 && (s = 1), c++, e.substring(1)) : e.startsWith(" ") ? (t === 0 && (s = 4), c += 4, e.substring(4)) : e).join("\n");
2418
+ this._applyChange(r.substring(0, i) + l + r.substring(a), Math.max(i, t - s), Math.max(i, n - c));
2419
+ }
2420
+ _applyChange(e, t, n) {
2421
+ this.textarea.value = e, this.textarea.setSelectionRange(t, n);
2422
+ }
2423
+ }, wt = class {
2424
+ constructor(e) {
2425
+ this.editor = e, this.textarea = e.usertextarea, this.textarea.addEventListener("keydown", (e) => {
2426
+ e.key === "Enter" && this.handleEnter(e);
2427
+ });
2428
+ }
2429
+ handleEnter(e) {
2430
+ let { selectionStart: t, value: n } = this.textarea, r = n.lastIndexOf("\n", t - 1) + 1, i = n.substring(r, t), a = i.match(/^(\s*)(\d+)\.\s/), o = i.match(/^(\s*)([\-\*] )\[[\s xX]\] /), s = i.match(/^(\s*)([\-\*] )\s*/);
2431
+ if (i.match(/^(\s*)(\d+\.\s|[\-\*] \[[\s xX]\] |[\-\*]\s)$/)) {
2432
+ e.preventDefault();
2433
+ let i = n.substring(0, r), a = n.substring(t);
2434
+ this.textarea.value = i + "\n" + a, this.textarea.setSelectionRange(r + 1, r + 1), this.editor.render();
2435
+ return;
2436
+ }
2437
+ let c = null;
2438
+ if (a ? c = `${a[1]}${parseInt(a[2]) + 1}. ` : o ? c = `${o[1]}${o[2]}[ ] ` : s && (c = `${s[1]}${s[2]}`), c) {
2439
+ e.preventDefault();
2440
+ let r = `\n${c}`, i = n.substring(0, t), a = n.substring(t);
2441
+ this.textarea.value = i + r + a;
2442
+ let o = t + r.length;
2443
+ this.textarea.setSelectionRange(o, o), this.editor.render();
2444
+ }
2445
+ }
2446
+ };
2447
+ //#endregion
2448
+ //#region src/components/Editor.js
2449
+ V.setOptions({ breaks: !0 });
2450
+ var Tt = class {
2451
+ constructor(e, t = {}) {
2452
+ this.usertextarea = typeof e == "string" ? document.querySelector(e) : e, this.options = t, this.mode = t.mode || "plain", this.preview = this.options.toolbar ? this.options.toolbar.includes("preview") : !0, this.footerOptions = this._parseFooterOptions(t.footer), this.previewTimer = null, this.init(), this.undoRedoManager = new St(this), this.listManager = new wt(this), this.indentManager = new Ct(this);
2453
+ }
2454
+ _parseFooterOptions(e) {
2455
+ if (e === !1) return null;
2456
+ let t = e ?? {};
2457
+ return {
2458
+ line: t.line !== !1,
2459
+ col: t.col !== !1,
2460
+ chars: t.chars !== !1
2461
+ };
2462
+ }
2463
+ init() {
2464
+ this.createEditor(), this.addToolbar(), this.addFooter();
2465
+ }
2466
+ createEditor() {
2467
+ this.isTextareaValid() && (this.applyDefaultAttributes(), this.buildEditorLayout(), this.addInputListener(), this.render());
2468
+ }
2469
+ isTextareaValid() {
2470
+ return this.usertextarea.tagName === "TEXTAREA";
2471
+ }
2472
+ applyDefaultAttributes() {
2473
+ this.usertextarea.id && document.querySelector(`label[for="${this.usertextarea.id}"]`) || this.usertextarea.getAttribute("aria-label") || this.usertextarea.getAttribute("aria-labelledby") || this.usertextarea.setAttribute("aria-label", this.options.label || "Markdown editor"), this.usertextarea.classList.add("textarea", "fj:focus:ring-0", "fj:focus:outline-0", "fj:border-0", "fj:border-base-soft", "fj:px-4", "fj:py-2", "fj:max-w-full", "fj:size-full", "fj:bg-transparent", "fj:outline-0", "fj:appearance-none", "fj:overflow-y-auto"), this.usertextarea.hasAttribute("placeholder") || (this.usertextarea.placeholder = this.options.placeholder || "Write your markdown...");
2474
+ }
2475
+ buildEditorLayout() {
2476
+ this.editorContainer = document.createElement("div"), this.editorContainer.className = "\n markdown-editor-wrapper\n fj:me-surface\n fj:me-surface-outline\n fj:me-surface-rounded\n fj:overflow-hidden\n ", this.usertextarea.parentNode.insertBefore(this.editorContainer, this.usertextarea), this.markdownEditorDiv = document.createElement("div"), this.markdownEditorDiv.className = "editor-layout fj:relative fj:grid fj:grid-cols-1", this.editorContainer.appendChild(this.markdownEditorDiv), this.addTextareaWrapper(), this.preview && this.addPreviewWrapper();
2477
+ }
2478
+ addTextareaWrapper() {
2479
+ let e = document.createElement("div");
2480
+ e.className = "\n textarea-wrapper\n not-prose\n fj:me-surface\n fj:h-full\n fj:grid\n ", this.mode == "hybrid" && (this.displayLayer = document.createElement("div"), this.displayLayer.setAttribute("data-placeholder", this.usertextarea.placeholder), this.displayLayer.setAttribute("aria-hidden", !0), this.displayLayer.className = "\n display-layer\n fj:px-4\n fj:py-2\n fj:whitespace-pre-wrap fj:wrap-break-word \n fj:pointer-events-none \n fj:[grid-area:1/1/2/2]\n fj:size-full\n fj:m-0\n fj:box-border\n fj:z-0\n fj:overflow-y-auto\n fj:empty:after:content-[attr(data-placeholder)]\n fj:empty:after:absolute\n fj:empty:after:inset-0\n fj:empty:after:px-4\n fj:empty:after:py-2\n fj:empty:after:text-[CanvasText]\n fj:empty:after:opacity-50\n ", this.usertextarea.className += "\n fj:text-transparent \n fj:caret-primary\n fj:resize-none\n fj:outline-none\n fj:[grid-area:1/1/2/2]\n fj:m-0\n fj:box-border\n fj:relative\n fj:z-10 \n ", e.appendChild(this.displayLayer)), e.appendChild(this.usertextarea), this.markdownEditorDiv.appendChild(e);
2481
+ }
2482
+ addPreviewWrapper() {
2483
+ let e = new ut(this.markdownEditorDiv);
2484
+ this.previewContent = e.getPreviewContent();
2485
+ }
2486
+ addInputListener() {
2487
+ this.usertextarea.addEventListener("input", () => {
2488
+ this.renderHybrid(), this.debouncedPreview();
2489
+ }), this.usertextarea.addEventListener("scroll", () => {
2490
+ if (this.mode === "hybrid" && (this.displayLayer.scrollTop = this.usertextarea.scrollTop, this.displayLayer.scrollLeft = this.usertextarea.scrollLeft), this.preview && this.previewContent) {
2491
+ let e = this.usertextarea, t = e.scrollTop / (e.scrollHeight - e.clientHeight);
2492
+ this.previewContent.scrollTop = t * (this.previewContent.scrollHeight - this.previewContent.clientHeight);
2493
+ }
2494
+ });
2495
+ }
2496
+ debouncedPreview() {
2497
+ this.preview && (clearTimeout(this.previewTimer), this.previewTimer = setTimeout(() => {
2498
+ this.previewContent.innerHTML = V(this.usertextarea.value), this.wirePreviewCheckboxes();
2499
+ }, 150));
2500
+ }
2501
+ wirePreviewCheckboxes() {
2502
+ this.previewContent.querySelectorAll("input[type=\"checkbox\"]").forEach((e, t) => {
2503
+ e.removeAttribute("disabled"), e.addEventListener("click", (n) => {
2504
+ n.preventDefault();
2505
+ let r = this.usertextarea.value.split("\n"), i = 0;
2506
+ for (let n = 0; n < r.length; n++) if (/^(\s*)([-*] \[[ xX]\] )/.test(r[n])) {
2507
+ if (i === t) {
2508
+ e.checked ? r[n] = r[n].replace(/\[ \]/, "[x]") : r[n] = r[n].replace(/\[[xX]\]/, "[ ]");
2509
+ break;
2510
+ }
2511
+ i++;
2512
+ }
2513
+ this.usertextarea.value = r.join("\n"), this.render();
2514
+ });
2515
+ });
2516
+ }
2517
+ addFooter() {
2518
+ if (!this.footerOptions) return;
2519
+ let { line: e, col: t, chars: n } = this.footerOptions;
2520
+ if (!e && !t && !n) return;
2521
+ this.footer = new dt(this.editorContainer, this.footerOptions), this.footer.update(this.usertextarea);
2522
+ let r = () => this.footer.update(this.usertextarea);
2523
+ this.usertextarea.addEventListener("input", r), this.usertextarea.addEventListener("click", r), this.usertextarea.addEventListener("keyup", r), this.usertextarea.addEventListener("focus", r);
2524
+ }
2525
+ addToolbar() {
2526
+ new lt(this, this.options.toolbar || [
2527
+ "undo",
2528
+ "redo",
2529
+ "heading",
2530
+ "blockquote",
2531
+ "ul",
2532
+ "ol",
2533
+ "checklist",
2534
+ "outdent",
2535
+ "indent",
2536
+ "bold",
2537
+ "italic",
2538
+ "strikethrough",
2539
+ "code",
2540
+ "codeblock",
2541
+ "hr",
2542
+ "table",
2543
+ "link",
2544
+ "image",
2545
+ "preview"
2546
+ ]);
2547
+ }
2548
+ insertText(e, t = 0, n = 0) {
2549
+ let { selectionStart: r, selectionEnd: i } = this.usertextarea, a = this.usertextarea.value;
2550
+ this.usertextarea.value = `${a.substring(0, r)}${e}${a.substring(i)}`, this.usertextarea.focus(), this.usertextarea.setSelectionRange(r + t, r + e.length - n), this.scrollToView(), this.render();
2551
+ }
2552
+ scrollToView() {
2553
+ let e = this.usertextarea, t = e.selectionStart;
2554
+ this._lineHeight ||= parseInt(window.getComputedStyle(e).lineHeight);
2555
+ let n = this._lineHeight, r = Math.floor(e.clientHeight / n);
2556
+ e.scrollTop = (Math.floor(t / e.cols) - Math.floor(r / 2)) * n;
2557
+ }
2558
+ renderHybrid() {
2559
+ if (this.mode !== "hybrid") return;
2560
+ let e = this.usertextarea.value, t = e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2561
+ t = t.replace(/```(\w+)?\n([\s\S]*?)```/g, "<span class=\"fj:opacity-30\">```$1</span>\n$2<span class=\"fj:opacity-30\">```</span>").replace(/`([^`\n]+)`/g, "<span class=\"fj:opacity-40\">`</span><span class=\"fj:text-accent\">$1</span><span class=\"fj:opacity-40\">`</span>").replace(/^(#+ )(.*)$/gm, "<span class=\"fj:text-primary\"><span class=\"fj:opacity-40\">$1</span><span class=\"fj:font-bold fj:tracking-[-0.040em]\">$2</span></span>").replace(/\*\*(.*?)\*\*/g, "<span class=\"fj:text-secondary\"><span class=\"fj:opacity-40\">**</span><span class=\"fj:font-bold fj:tracking-[-0.040em]\">$1</span><span class=\"fj:opacity-40\">**</span></span>").replace(/^([\s]*)([\-\*] |[\d]+\. |\[[\s xX]\] )(.*)$/gm, "$1<span class=\"fj:text-primary fj:font-medium\">$2</span>$3").replace(/(\*|_)(.*?)\1/g, "<span class=\"fj:text-accent\"><span class=\"fj:opacity-40\">$1</span><span class=\"fj:italic\">$2</span><span class=\"fj:opacity-40\">$1</span></span>").replace(/~~(.*?)~~/g, "<span class=\"fj:line-through fj:opacity-70\"><span class=\"fj:opacity-40\">~~</span>$1<span class=\"fj:opacity-40\">~~</span></span>").replace(/(?<!~)(~)([^~]+)\1(?!~)/g, "<span class=\"fj:line-through fj:opacity-70\"><span class=\"fj:opacity-40\">$1</span>$2<span class=\"fj:opacity-40\">$1</span></span>").replace(/(!?\[)(.*?)(\]\()(.*?)(\))/g, "<span class=\"fj:opacity-40\">$1</span><span class=\"fj:text-primary\">$2</span><span class=\"fj:opacity-40\">$3</span><span class=\"fj:underline fj:opacity-50\">$4</span><span class=\"fj:opacity-50\">$5</span>"), e.length > 0 && e.endsWith("\n") && (t += " "), this.displayLayer.innerHTML = t;
2562
+ }
2563
+ render() {
2564
+ this.renderHybrid(), this.preview && (this.previewContent.innerHTML = V(this.usertextarea.value), this.wirePreviewCheckboxes());
2565
+ }
2566
+ };
2567
+ //#endregion
2568
+ export { Tt as default };
2569
+
2570
+ //# sourceMappingURL=markdown-text-editor.es.js.map