PageSourceSearch

https://www.newwallcovering.com/build/assets/index-B5rICqNx.js

js newwallcovering.com collected 2026-10-07 23:47:06 UTC 56,658 bytes, 38 lines download raw bytes

1import{j as v,bt as I,b6 as b,bu as Q,bv as T,h as j,b3 as R,b2 as E,bw as C,bx as N,br as Y,by as O,b9 as ze,p as Ke,aG as ye,bz as ee,bh as ke,e as L,aE as z,ae as We,bA as D,aw as Fe,av as je,ab as Ve,ad as qe,af as Ue,bd as oe,bB as Xe,bC as Ge,bD as x,bE as V,o as Ye,a5 as Je,bF as Ze,bG as Qe,bH as et,aF as be,a3 as tt}from"./index-CQQ_M4Wl.js";import{Link as nt}from"./index-DcO54fKd.js";import{Underline as rt}from"./index-CzaptN6p.js";const ve=new WeakSet,Le=new WeakSet;function A(e){const t=e;return ve.add(t),t}function J(e){return Array.isArray(e)&&ve.has(e)}function Me(e){return e.flatMap(t=>t==null?[]:Array.isArray(t)&&Le.has(t)&&!J(t)?Me(t):[t])}function st(e,t){if(e==="slot")return 0;if(e instanceof Function){const s=e(t);return Array.isArray(s)&&!J(s)&&!Le.has(s)?A(s):s}const{children:n,...r}=t??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");if(Array.isArray(n)){if(J(n))return A([e,r,n]);if(n.length===0)return A([e,r]);const s=Me(n);return s.length===0?A([e,r]):A([e,r,...s])}return n!=null?A([e,r,n]):A([e,r])}const K=(e,t)=>st(e,t),ot=(e,t)=>{var n;const{state:r}=e,{selection:s}=r;if(!s.empty)return!1;const{$from:o}=s;if(o.parentOffset!==0)return!1;const i=o.depth-1;if(i<0)return!1;const a=o.node(i),l=o.index(i);if(l===0)return!1;if(a.type===t)return e.commands.lift(t.name);const d=a.child(l-1);if(d.type!==t||!(!((n=d.lastChild)===null||n===void 0)&&n.isTextblock))return!1;const u=o.before()-1-1;return e.commands.command(({tr:c,dispatch:p})=>{if(!p)return!0;const h=o.parent.content,f=new Q(h,0,0);return c.replace(u,o.after(),f),c.setSelection(T.create(c.doc,u+h.size)),c.scrollIntoView(),p(c),!0})},it=/^\s*>\s$/,at=v.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return K("blockquote",{...b(this.options.HTMLAttributes,e),children:K("slot",{})})},parseMarkdown:(e,t)=>{var n;const r=(n=t.parseBlockChildren)!==null&&n!==void 0?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";const n=">",r=[];return e.content.forEach((s,o)=>{var i,a;const l=((i=(a=t.renderChild)===null||a===void 0?void 0:a.call(t,s,o))!==null&&i!==void 0?i:t.renderChildren([s])).split(`
2`).map(d=>d.trim()===""?n:`${n} ${d}`);r.push(l.join(`
3`))}),r.join(`
4${n}
5`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>ot(this.editor,this.type)}},addInputRules(){return[I({find:it,type:this.type})]}}),lt=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,ct=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,dt=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,ut=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,pt=j.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return K("strong",{...b(this.options.HTMLAttributes,e),children:K("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[E({find:lt,type:this.type}),E({find:dt,type:this.type})]},addPasteRules(){return[R({find:ct,type:this.type}
5),R({find:ut,type:this.type})]}}),ht=e=>{const t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},ft=e=>{const t=/`([^`]+)`(?!`)/g,n=[];let r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function mt(e){const t=new Set((e.match(/`+/g)||[]).map(r=>r.length));let n=1;for(;t.has(n);)n+=1;return n}const gt=j.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",b(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return"";const s=typeof(n==null||(r=n.meta)===null||r===void 0?void 0:r.markText)=="string"?n.meta.markText:"",o="`".repeat(mt(s)),i=s.startsWith("`")||s.endsWith("`")?" ":"";return`${o}${i}${t.renderChildren(e.content)}${i}${o}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[E({find:ht,type:this.type})]},addPasteRules(){return[R({find:ft,type:this.type})]}}),X=4,yt=/^```([a-z]+)?[\s\n]$/,kt=/^~~~([a-z]+)?[\s\n]$/,bt=v.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:X,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;if(!n)return null;const r=[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",b(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n,r;return((n=e.raw)===null||n===void 0?void 0:n.startsWith("```"))===!1&&((r=e.raw)===null||r===void 0?void 0:r.startsWith("~~~"))===!1&&e.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r="";const s=((n=e.attrs)===null||n===void 0?void 0:n.language)||"";return e.content?r=[`\`\`\`${s}`,t.renderChildren(e.content),"```"].join(`
6`):r=`\`\`\`${s}
7
8\`\`\``,r},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=(t=this.options.tabSize)!==null&&t!==void 0?t:X,{state:r}=e,{selection:s}=r,{$from:o,empty:i}=s;if(o.parent.type!==this.type)return!1;const a=" ".repeat(n);return i?e.commands.insertContent(a):e.commands.command(({tr:l})=>{const{from:d,to:u}=s,c=r.doc.textBetween(d,u,`
9`,`
10`).split(`
11`).map(p=>a+p).join(`
12`);return l.replaceWith(d,u,r.schema.text(c)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=(t=this.options.tabSize)!==null&&t!==void 0?t:X,{state:r}=e,{selection:s}=r,{$from:o,empty:i}=s;return o.parent.type!==this.type?!1:i?e.commands.command(({tr:a})=>{var l;const{pos:d}=o,u=o.start(),c=o.end(),p=r.doc.textBetween(u,c,`
13`,`
14`).split(`
15`);let h=0,f=0;const m=d-u;for(let M=0;M<p.length;M+=1){if(f+p[M].length>=m){h=M;break}f+=p[M].length+1}const y=((l=p[h].match(/^ */))===null||l===void 0?void 0:l[0])||"",w=Math.min(y.length,n);if(w===0)return!0;let k=u;for(let M=0;M<h;M+=1)k+=p[M].length+1;return a.delete(k,k+w),d-k<=w&&a.setSelection(T.create(a.doc,k)),!0}):e.commands.command(({tr:a})=>{const{from:l,to:d}=s,u=r.doc.textBetween(l,d,`
16`,`
17`).split(`
18`).map(c=>{var p;const h=((p=c.match(/^ */))===null||p===void 0?void 0:p[0])||"",f=Math.min(h.length,n);return c.slice(f)}).join(`
19`);return a.replaceWith(l,d,r.schema.text(u)),!0})},Enter:({editor:e})=>
19{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:s}=n;if(!s||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,i=r.parent.textContent.endsWith(`
20
21`);return!o||!i?!1:e.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:s}=n;if(!s||r.parent.type!==this.type||r.parentOffset!==0)return!1;const o=r.before();return o>0?!1:e.commands.insertDefaultBlock({pos:o})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:s,empty:o}=n;if(!o||s.parent.type!==this.type||s.parentOffset!==s.parent.nodeSize-2)return!1;const i=s.after();return i===void 0?!1:r.nodeAt(i)?e.commands.command(({tr:a})=>(a.setSelection(O.near(r.resolve(i))),!0)):e.commands.exitCode()}}},addInputRules(){return[Y({find:yt,type:this.type,getAttributes:e=>({language:e[1]})}),Y({find:kt,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new C({key:new N("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>
vendor: 2,839 bytes, lines 21-26
21{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),s=r?JSON.parse(r):void 0,o=s?.mode;if(!n||!o)return!1;const{tr:i,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,`
22`));return i.replaceSelectionWith(this.type.create({language:o},l)),i.selection.$from.parent.type!==this.type&&i.setSelection(T.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),e.dispatch(i),!0}}})]}}),vt=v.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
23
24`):""}),Lt=v.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",b(this.options.HTMLAttributes,e)]},renderText(){return`
25`},renderMarkdown:()=>`  
26`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:s,storedMarks:o}=n;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:a}=r.extensionManager,l=o||s.$to.parentOffset&&s.$from.marks();return t().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&l&&i){const c=l.filter(p=>a.includes(p.type.name));d.ensureMarks(c)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Mt=v.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,b(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;const r=!((n=e.attrs)===null||n===void 0)&&n.level?parseInt(e.attrs.level,10):1,s="#".repeat(r);return e.content?`${s} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>Y({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
26)\\s$`),type:this.type,getAttributes:{level:e}}))}}),wt=v.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",b(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!Ke(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$to:r}=n,s=e();return ye(n)?s.insertContentAt(r.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:o,tr:i,dispatch:a})=>{if(a){const{$to:l}=i.selection,d=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?i.setSelection(T.create(i.doc,l.pos+1)):l.nodeAfter.isBlock?i.setSelection(ee.create(i.doc,l.pos)):i.setSelection(T.create(i.doc,l.pos));else{const u=o.schema.nodes[this.options.nextNodeType]||l.parent.type.contentMatch.defaultType,c=u?.create();c&&(i.insert(d,c),i.setSelection(T.create(i.doc,d+1)))}i.scrollIntoView()}return!0}).run()}}},addInputRules(){return[ze({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
vendor: 2,821 bytes, lines 26-27
26ype})]}}),Tt=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Ct=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,xt=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,At=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,St=j.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",b(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[E({find:Tt,type:this.type}),E({find:xt,type:this.type})]},addPasteRules(){return[R({find:Ct,type:this.type}),R({find:At,type:this.type})]}}),It="listItem",ie="textStyle",ae=/^\s*([-+*])\s$/,we=v.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",b(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>e.type!=="list"||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
27`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(It,this.editor.getAttributes(ie)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=I({find:ae,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=I({find:ae,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(ie),editor:this.editor})),[e]}}),Rt=(e,t,n)=>{const{selection:r}=e;if(!r.empty)return null;const{$from:s}=r;if(!s.parent.isTextblock||s.parentOffset!==s.parent.content.size)return null;let o=-1;for(let h=s.depth;h>0;h-=1)if(s.node(h).type.name===t){o=h;break}if(o<0)return null;const i=s.node(o),a=s.index(o);if(a+1>=i.childCount)return null;const l=i.child(a+1);
27if(!n.includes(l.type.name))return null;const d=e.schema.nodes[t];let u=!1;if(l.forEach(h=>{h.type===d&&h.childCount>1&&(u=!0)}),!u)return null;const c=e.doc.resolve(s.after()).nodeAfter;if(!c||!n.includes(c.type.name))return null;const p=[];return c.forEach(h=>{p.push(h)}),p.length===0?null:{listItemDepth:o,nestedList:c,nestedListPos:s.after(),insertPos:s.after(o),items:p}},Et=(e,t,n,r)=>{const s=Rt(e,n,r);if(!s)return!1;const{selection:o}=e,{nestedList:i,nestedListPos:a,insertPos:l,items:d}=s,u=e.tr;u.delete(a,a+i.nodeSize);const c=u.mapping.map(l);return u.insert(c,D.from(d)),u.setSelection(o.map(u.doc,u.mapping)),t&&t(u),!0},Nt=(e,t,n)=>Et(e.state,e.view.dispatch,t,n),Te=(e,t)=>L.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){const n=()=>Nt(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),Ce=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],B="abcdefghijklmnopqrstuvwxyz",xe=String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;function q(e){let t=e,n="";for(const[r,s]of Ce)for(;t>=r;)n+=s,t-=r;return n}function te(e){return q(e).toUpperCase()}function Ae(e){const t=e.toLowerCase();let n=0,r=0;for(;n<t.length;){let s=!1;for(const[o,i]of Ce)if(t.startsWith(i,n)){r+=o,n+=i.length,s=!0;break}if(!s)return 0}return r}function $t(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;const t=Ae(e);return t<=0?!1:(e===e.toLowerCase()?q(t):te(t))===e}function Pt(e){const t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){const n=t.charCodeAt(0)-97,r=t.charCodeAt(1)-97;return(n+1)*26+r+1}return 0}function W(e){if(e<=26)return B[e-1];const t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?B[n]:B[t]+B[n]}function U(e){if(!(!e||/^\d+$/.test(e))){if($t(e))return e===e.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(e))return"a";if(/^[A-Z]{1,2}$/.test(e))return"A"}}function ne(e){if(/^\d+$/.test(e))return parseInt(e,10);const t=U(e);if(t==="i"||t==="I")return Ae(e);if(t==="a"||t==="A"){const r=Pt(e);return r>0?r:1}const n=parseInt(e,10);return Number.isNaN(n)?1:n}function Ot(e,t){if(e==="numeric")return String(t);switch(e){case"a":return W(t);case"A":return W(t).toUpperCase();case"i":return q(t);case"I":return te(t);default:return String(t)}}function Dt(e){var t;if(e.length===0)return!1;const n=(t=U(e[0]))!==null&&t!==void 0?t:"numeric",r=ne(e[0]);if(r<1)return!1;for(let s=0;s<e.length;s++){const o=Ot(n,r+s);if(e[s]!==o)return!1}return!0}function Bt(e){return{type:U(e),start:ne(e)}}function Ht(e){const{type:t,start:n}=Bt(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function _t(e,t,n=". "){const r=t+1;if(!e||e==="1")return`${r}${n}`;switch(e){case"a":return`${W(r)}${n}`;case"A":return`${W(r).toUpperCase()}${n}`;case"i":return`${q(r)}${n}`;case"I":return`${te(r)}${n}`;default:return`${r}${n}`}}function zt(e){var t,n;const r=(t=e.tokens)===null||t===void 0?void 0:t[0];return!!(e.text&&((n=e.tokens)===null||n===void 0?void 0:n.length)===1&&r?.type==="list"&&r.ordered&&r.raw===e.text)}function Kt(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:"text",raw:e,text:e}])}const Se=v.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",b(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if(e.type!=="list_item")return[];const r=(n=t.parseBlockChildren)!==null&&n!==void 0?n:t.parseChildren;let s=[];if(e.tokens&&e.tokens.length>0){if(zt(e))return{type:"listItem",content:[{type:"paragraph",content:Kt(e.text||"",t)}]};if(e.tokens.some(o=>o.type==="paragraph"))s=r(e.tokens);else{const o=e.tokens[0];if(o&&o.type==="text"&&o.tokens&&o.tokens.length>0){if(s=[{type:"paragraph",content:t.parseInline(o.tokens)}],e.tokens.length>1){const i=r(e.tokens.slice(1));s.push(...i)}}else s=r(e.tokens)}}return s.length===0&&(s=[{type:"paragraph",content:[]}]),{type:"listItem",content:s}},renderMarkdown:(e,t,n)=>ke(e,t,r=>{if(r.parentType==="bulletList")return"- ";if(r.parentType==="orderedList"){var s,o;const i=((s=r.meta)===null||s===void 0||(s=s.parentAttrs)===null||s===void 0?void 0:s.start)||1;return _t((o=r.meta)===null||o===void 0||(o=o.parentAttrs)===null||o===void 0?void 0:o.type,i-1+(r.index||0),". ")}return"- "},n,{alignNestedToPrefix:n?.parentType==="orderedList"}),addExtensions(){return[Te(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),re=(e,t)=>
27{const{$from:n}=t.selection,r=qe(e,t.schema);let s=null,o=n.depth,i=n.pos,a=null;for(;o>0&&a===null;)s=n.node(o),s.type===r?a=o:(o-=1,i-=1);return a===null?null:{$pos:t.doc.resolve(i),depth:a}},Ie=(e,t)=>{const n=re(e,t);if(!n)return!1;const[,r]=Ve(t,e,n.$pos.pos+4);return r},Wt=(e,t,n)=>{const{$anchor:r}=e.selection,s=Math.max(0,r.pos-2),o=e.doc.resolve(s).node();return!(!o||!n.includes(o.type.name))},le=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!z(e.state,t)&&Wt(e.state,t,n)){const{$anchor:o}=e.state.selection,i=e.state.doc.resolve(o.before()-1),a=[];i.node().descendants((u,c)=>{u.type.name===t&&a.push({node:u,pos:c})});const l=a.at(-1);if(!l)return!1;const d=e.state.doc.resolve(i.start()+l.pos+1);return e.chain().cut({from:o.start()-1,to:o.end()+1},d.end()).joinForward().run()}if(!z(e.state,t)||!Fe(e.state))return!1;const{$from:r}=e.state.selection,s=r.depth-1;return r.node(s).type!==e.schema.nodes[t]||r.index(s)!==0?!1:e.chain().liftListItem(t).run()},Ft=(e,t)=>{const n=Ie(e,t),r=re(e,t);return!r||!n?!1:n>r.depth},jt=(e,t)=>{const n=Ie(e,t),r=re(e,t);return!r||!n?!1:n<r.depth},ce=(e,t)=>{if(!z(e.state,t)||!je(e.state,t))return!1;const{selection:n}=e.state,{$from:r,$to:s}=n;return!n.empty&&r.sameParent(s)?!1:Ft(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():jt(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},Vt=(e,t,n)=>{const{state:r}=e,{selection:s}=r;if(!s.empty)return!1;const{$from:o}=s;if(o.parentOffset!==0||!o.parent.isTextblock||z(r,t))return!1;const i=We(o);if(!i||!n.includes(i.type.name))return!1;const a=i.lastChild;if(!a||a.type.name!==t)return!1;const l=o.parent;if(!a.canReplace(a.childCount,a.childCount,D.from(l)))return!1;const d=o.before(),u=o.after(),c=d-2;return e.commands.command(({tr:p,dispatch:h})=>(h&&(p.delete(d,u).insert(c,D.from(l)),p.setSelection(T.create(p.doc,c+1)),p.scrollIntoView()),!0))},Re=L.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&ce(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&ce(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&le(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&le(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(const{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&Vt(e,t,n))return!0;return!1}}}}),F=new RegExp(`^(\\s*)(${xe})([.)])\\s+(.*)$`),qt=/^\s/,S={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function Ut(e){return F.test(e.trimStart())}function Xt(e){const t=e.trimStart();return S.bulletItem.test(t)||Ut(t)||S.heading.test(t)||S.thematicBreak.test(t)&&!t.startsWith("-")||/^>\s?/.test(t)||S.codeFence.test(t)||S.blockMath.test(t)}function Gt(e){return Object.values(S).some(t=>t.test(e))}function Yt(e){const t=[],n=[];let r=!1;return e.forEach(s=>{if(r){n.push(s);return}if(s.trim()===""){r=!0,n.push(s);return}if(t.length>0&&Xt(s)){r=!0,n.push(s);return}t.push(s)}),{paragraphLines:t,blockLines:n}}function de(e){const t=[];let n=0,r=0;for(;n<e.length;){const s=e[n],o=s.match(F);if(!o)break;const[,i,a,l,d]=o,u=i.length,c=parseInt(a,10),p=isNaN(c)?U(a):void 0,h=isNaN(c)?ne(a):c,f=[d];let m=n+1;const y=[s];let w=!1;for(;m<e.length;){const k=e[m];if(k.match(F))break;if(k.trim()==="")y.push(k),f.push(""),w=!0,m+=1;else if(k.match(qt)){const M=k.length-k.trimStart().length,_e=u+a.length+1;y.push(k),f.push(k.slice(Math.min(M,_e))),m+=1}else{if(w||Gt(k))break;y.push(k),f.push(k),m+=1}}t.push({indent:u,number:h,type:p,content:f.join(`
28`).trim(),contentLines:f,raw:y.join(`
29`)}),r=m,n=m}return[t,r]}const Jt=new RegExp(`^(${xe})([.)])\\s+(.+)$`);function Zt(e){const t=e.split(`
30`).filter(r=>r.trim().length>0);if(t.length===0)return null;const n=[];for(const r of t){const s=r.trim().match(Jt);if(!s)return null;n.push({marker:s[1],content:s[3]})}return Dt(n.map(r=>r.marker))?{type:"orderedList",attrs:Ht(n[0].marker),content:n.map(r=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:r.content}]}]}))}:null}function Ee(e,t,n){const r=[];let s=0;for(;s<e.length;){const o=e[s];if(o.indent===t){const{paragraphLines:i,blockLines:a}=Yt(o.contentLines),l=i.join(`
31`).trim(),d=[];l&&d.push({type:"paragraph",raw:l,tokens:n.inlineTokens(l)});const u=a.join(`
32`).trim();if(u){const h=n.blockTokens(u);d.push(...h)}let c=s+1;const p=[];for(;c<e.length&&e[c].indent>t;)p.push(e[c]),c+=1;
32if(p.length>0){const h=Ee(p,Math.min(...p.map(f=>f.indent)),n);d.push({type:"list",ordered:!0,start:p[0].number,typeMarker:p[0].type,items:h,raw:p.map(f=>f.raw).join(`
33`)})}r.push({type:"list_item",raw:o.raw,tokens:d}),s=c}else s+=1}return r}function Qt(e,t){return e.map(n=>{if(n.type!=="list_item")return t.parseChildren([n])[0];const r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(s=>{if(s.type==="paragraph"||s.type==="list"||s.type==="blockquote"||s.type==="code")r.push(...t.parseChildren([s]));else if(s.type==="text"&&s.tokens){const o=t.parseChildren([s]);r.push({type:"paragraph",content:o})}else{const o=t.parseChildren([s]);o.length>0&&r.push(...o)}}),{type:"listItem",content:r}})}const en=64;function ue(e,t){const n=[];let r=0;for(;n.length<t;){const s=e.indexOf(`
34`,r);if(s===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,s)),r=s+1}return n}function tn(e){const t=e.indexOf(`
35`),n=t===-1?e:e.slice(0,t);if(!F.test(n))return[[],0,[]];let r=en,s=ue(e,r),o=de(s);for(;o[1]===s.length&&s.length===r;)r*=2,s=ue(e,r),o=de(s);return[o[0],o[1],s]}const nn="listItem",pe="textStyle",he=/^(\d+)\.\s$/;function fe(e){const t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case"upper-roman":return"I";case"lower-roman":return"i";case"upper-alpha":case"upper-latin":return"A";case"lower-alpha":case"lower-latin":return"a";default:return null}}const Ne=v.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>{const t=e.getAttribute("type");if(t)return t;const n=e.getAttribute("style");if(n){const s=fe(n);if(s)return s}const r=e.querySelector("li");if(r){const s=r.getAttribute("style");if(s){const o=fe(s);if(o)return o}}return null}}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,type:n,...r}=e,s=b(this.options.HTMLAttributes,r);return t!==1&&(s.start=t),n&&n!=="1"&&(s.type=n),["ol",s,0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if(e.type!=="list"||!e.ordered)return[];const n=e.start||1,r=e.typeMarker,s=e.items?Qt(e.items,t):[],o={};return n!==1&&(o.start=n),r&&(o.type=r),Object.keys(o).length>0?{type:"orderedList",attrs:o,content:s}:{type:"orderedList",content:s}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
36`):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(e,t,n)=>{var r,s;const[o,i,a]=tn(e);if(o.length===0)return;const l=Ee(o,o[0].indent,n);if(l.length!==0)return{type:"list",ordered:!0,start:((r=o[0])===null||r===void 0?void 0:r.number)||1,typeMarker:(s=o[0])===null||s===void 0?void 0:s.type,items:l,raw:a.slice(0,i).join(`
37`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(nn,this.editor.getAttributes(pe)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new C({props:{handlePaste:(e,t)=>
37{var n,r;const s=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/html");if(s?.trim())return!1;const o=(r=t.clipboardData)===null||r===void 0?void 0:r.getData("text/plain");if(!o)return!1;const i=Zt(o);if(!i)return!1;try{const a=e.state.schema.nodeFromJSON(i),l=e.state.tr.replaceSelectionWith(a);return e.dispatch(l),!0}catch{return!1}}}})]},addInputRules(){const e=(n,r)=>(!r.attrs.type||r.attrs.type==="1")&&r.childCount+r.attrs.start===+n[1];let t=I({find:he,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=I({find:he,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:n=>({start:+n[1],...this.editor.getAttributes(pe)}),joinPredicate:e,editor:this.editor})),[t]}}),rn=/^\s*(\[([( |x])?\])\s$/,sn="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0",on=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)===null||r===void 0?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||"empty task item"}`},an=v.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>{var t;return(t=e.querySelector("div"))!==null&&t!==void 0?t:e}}]},renderHTML({node:e,HTMLAttributes:t}){return["li",b(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;const r=`- [${!((n=e.attrs)===null||n===void 0)&&n.checked?"x":" "}] `;return ke(e,t,r)},addExtensions(){return this.options.nested?[Te(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{const s=document.createElement("li"),o=document.createElement("label"),i=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div");i.style.cssText=sn;const d=c=>{const p=on(c,c.attrs.checked,this.options.a11y);a.setAttribute("aria-label",p),i.textContent=p};d(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",c=>c.preventDefault()),a.addEventListener("change",c=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:p}=c.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:h})=>{const f=n();if(typeof f!="number")return!1;const m=h.doc.nodeAt(f);return h.setNodeMarkup(f,void 0,{...m?.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,p)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([c,p])=>{s.setAttribute(c,p)}),s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,i),s.append(o,l),Object.entries(t).forEach(([c,p])=>{s.setAttribute(c,p)});let u=new Set(Object.keys(t));return{dom:s,contentDOM:l,update:c=>{if(c.type!==this.type)return!1;s.dataset.checked=c.attrs.checked,a.checked=c.attrs.checked,d(c);const p=r.extensionManager.attributes,h=Ue(c,p),f=new Set(Object.keys(h)),m=this.options.HTMLAttributes;return u.forEach(y=>{f.has(y)||(y in m?s.setAttribute(y,m[y]):s.removeAttribute(y))}
37),Object.entries(h).forEach(([y,w])=>{w==null?y in m?s.setAttribute(y,m[y]):s.removeAttribute(y):s.setAttribute(y,w)}),u=f,!0}}}},addInputRules(){return[I({find:rn,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),ln=v.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",b(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
38`):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const n=(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))===null||t===void 0?void 0:t.index;return n!==void 0?n:-1},tokenize(e,t,n){const r=o=>{const i=oe(o,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:r},n);if(i){const a={type:"taskList",raw:i.raw,items:i.items},l=o.slice(i.raw.length);return l.trim()?[a,...n.blockTokens(l)]:[a]}return n.blockTokens(o)},s=oe(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:o=>({indentLevel:o[1].length,mainContent:o[4],checked:o[3].toLowerCase()==="x"}),createToken:(o,i)=>({type:"taskItem",raw:"",mainContent:o.mainContent,indentLevel:o.indentLevel,checked:o.checked,text:o.mainContent,tokens:n.inlineTokens(o.mainContent),nestedTokens:i}),customNestedParser:r},n);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});L.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(we.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(Se.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(Re.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(Ne.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(an.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(ln.configure(this.options.taskList)),e}});const H="&nbsp;",G=" ",cn=v.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",b(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const n=e.tokens||[];if(n.length===1&&n[0].type==="image")return t.parseChildren([n[0]]);const r=t.parseInline(n);return n.length===1&&n[0].type==="text"&&(n[0].raw===H||n[0].text===H||n[0].raw===G||n[0].text===G)&&r.length===1&&r[0].type==="text"&&(r[0].text===H||r[0].text===G)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return"";const r=Array.isArray(e.content)?e.content:[];if(r.length===0){var s,o;const i=Array.isArray(n==null||(s=n.previousNode)===null||s===void 0?void 0:s.content)?n.previousNode.content:[];return(n==null||(o=n.previousNode)===null||o===void 0?void 0:o.type)==="paragraph"&&i.length===0?H:""}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),dn=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,un=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,pn=j.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",b(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}}
38,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[E({find:dn,type:this.type})]},addPasteRules(){return[R({find:un,type:this.type})]}}),hn=v.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""});function fn(e={}){return new C({view(t){return new mn(t,e)}})}class mn{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(s=>{let o=i=>{this[s](i)};return t.dom.addEventListener(s,o),{name:s,handler:o}})}destroy(){this.setCursor(null),this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){if(this.cursorPos!=null&&n.doc!=t.state.doc)if(this.lastDragEvent){let r=this.computeTarget(this.lastDragEvent);r==this.cursorPos?this.updateOverlay():this.setCursor(r)}else this.updateOverlay()}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,s=this.editorView.dom,o=s.getBoundingClientRect(),i=o.width/s.offsetWidth,a=o.height/s.offsetHeight;if(n){let c=t.nodeBefore,p=t.nodeAfter;if(c||p){let h=this.editorView.nodeDOM(this.cursorPos-(c?c.nodeSize:0));if(h){let f=h.getBoundingClientRect(),m=c?f.bottom:f.top;c&&p&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let y=this.width/2*a;r={left:f.left,right:f.right,top:m-y,bottom:m+y}}}}if(!r){let c=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*i;r={left:c.left-p,right:c.left+p,top:c.top,bottom:c.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let d,u;if(!l||l==document.body&&getComputedStyle(l).position=="static")d=-pageXOffset,u=-pageYOffset;else{let c=l.getBoundingClientRect(),p=c.width/l.offsetWidth,h=c.height/l.offsetHeight;d=c.left-l.scrollLeft*p,u=c.top-l.scrollTop*h}this.element.style.left=(r.left-d)/i+"px",this.element.style.top=(r.top-u)/a+"px",this.element.style.width=(r.right-r.left)/i+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}computeTarget(t){let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),s=r&&r.type.spec.disableDropCursor,o=typeof s=="function"?s(this.editorView,n,t):s;if(!n||o)return null;let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Xe(this.editorView.state.doc,i,this.editorView.dragging.slice);a!=null&&(i=a)}return i}dragover(t){if(!this.editorView.editable)return;this.lastDragEvent=t;let n=this.computeTarget(t);n!=null&&(this.setCursor(n),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}class g extends O{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return g.valid(r)?new g(r):O.near(r)}content(){return Q.empty}eq(t){return t instanceof g&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new g(t.resolve(n.pos))}getBookmark(){return new se(this.anchor)}static valid(t){let n=t.parent;if(n.inlineContent||!gn(t)||!yn(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let s=n.contentMatchAt(t.index()).defaultType;return s&&s.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&g.valid(t))return t;let s=t.pos,o=null;for(let i=t.depth;;i--){let a=t.node(i);if(n>0?t.indexAfter(i)<a.childCount:t.index(i)>0){o=a.child(n>0?t.indexAfter(i):t.index(i)-1);break}else if(i==0)return null;s+=n;let l=t.doc.resolve(s);if(g.valid(l))return l}for(;;){let i=n>0?o.firstChild:o.lastChild;
38if(!i){if(o.isAtom&&!o.isText&&!ee.isSelectable(o)){t=t.doc.resolve(s+o.nodeSize*n),r=!1;continue e}break}o=i,s+=n;let a=t.doc.resolve(s);if(g.valid(a))return a}return null}}}g.prototype.visible=!1;g.findFrom=g.findGapCursorFrom;O.jsonID("gapcursor",g);class se{constructor(t){this.pos=t}map(t){return new se(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return g.valid(n)?new g(n):O.near(n)}}function $e(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function gn(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let s=r.child(n-1);;s=s.lastChild){if(s.childCount==0&&!s.inlineContent||$e(s.type))return!0;if(s.inlineContent)return!1}}return!0}function yn(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let s=r.child(n);;s=s.firstChild){if(s.childCount==0&&!s.inlineContent||$e(s.type))return!0;if(s.inlineContent)return!1}}return!0}function kn(){return new C({props:{decorations:Mn,createSelectionBetween(e,t,n){return t.pos==n.pos&&g.valid(n)?new g(n):null}
38,handleClick:vn,handleKeyDown:bn,handleDOMEvents:{beforeinput:Ln}}})}const bn=Ge({ArrowLeft:_("horiz",-1),ArrowRight:_("horiz",1),ArrowUp:_("vert",-1),ArrowDown:_("vert",1)});function _(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,s,o){let i=r.selection,a=t>0?i.$to:i.$from,l=i.empty;if(i instanceof T){if(!o.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(t>0?a.after():a.before())}let d=g.findGapCursorFrom(a,t,l);return d?(s&&s(r.tr.setSelection(new g(d))),!0):!1}}function vn(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!g.valid(r))return!1;let s=e.posAtCoords({left:n.clientX,top:n.clientY});return s&&s.inside>-1&&ee.isSelectable(e.state.doc.nodeAt(s.inside))?!1:(e.dispatch(e.state.tr.setSelection(new g(r))),!0)}function Ln(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof g))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let s=D.empty;for(let i=r.length-1;i>=0;i--)s=D.from(r[i].createAndFill(null,s));let o=e.state.tr.replace(n.pos,n.pos,new Q(s,0,0));return o.setSelection(T.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Mn(e){if(!(e.selection instanceof g))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",x.create(e.doc,[V.widget(e.selection.head,t,{key:"gapcursor"})])}L.create({name:"characterCount",addOptions(){return{limit:null,autoTrim:!0,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new C({key:new N("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const s=this.options.limit,o=this.options.autoTrim;if(s==null||s===0||o===!1){e=!0;return}const i=this.storage.characters({node:r.doc});if(i>s){const a=i-s,l=0,d=a;console.warn(`[CharacterCount] Initial content exceeded limit of ${s} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(l,d);return e=!0,u}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const s=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||s>r&&o>r&&o<=s)return!0;if(s>r&&o>r&&o>s||!t.getMeta("paste"))return!1;const i=t.selection.$head.pos,a=i-(o-r),l=i;return t.deleteRange(a,l),!(this.storage.characters({node:t.doc})>r)}})]}});const wn=L.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[fn(this.options)]}});L.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new C({key:new N("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:s}=t,o=[];if(!n||!r)return x.create(e,[]);let i=0;this.options.mode==="deepest"&&e.descendants((l,d)=>{if(!l.isText){if(!(s>=d&&s<=d+l.nodeSize-1))return!1;i+=1}});let a=0;return e.descendants((l,d)=>{if(l.isText||!(s>=d&&s<=d+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&i-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";o.push(V.node(d,d+l.nodeSize,{class:this.options.className}))}),x.create(e,o)}}})]}});const Tn=L.create({name:"gapCursor",addProseMirrorPlugins(){return[kn()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Ye(Je(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),Pe="placeholder",me=new N("tiptap__placeholder");function Oe(e){const{editor:t,placeholder:n,dataAttribute:r,pos:s,node:o,isEmptyDoc:i,hasAnchor:a,classes:{emptyNode:l,emptyEditor:d}}=e,u=[l];return i&&u.push(d),V.node(s,s+o.nodeSize,{class:u.join(" "),[r]:typeof n=="function"?n({editor:t,node:o,pos:s,hasAnchor:a}):n})}function De(e,t){return typeof e=="function"?e(t):e}function Be({editor:e,options:t,dataAttribute:n,doc:r,selection:s,from:o,to:i}){const{anchor:a}=s,l=[],d=e.isEmpty;return r.nodesBetween(o,i,(u,c)=>{const p=a>=c&&a<=c+u.nodeSize,h=!u.isLeaf&&be(u);return u.type.isTextblock&&(p||!t.showOnlyCurrent)&&h&&l.push(Oe({editor:e,isEmptyDoc:d,dataAttribute:n,hasAnchor:p,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:De(t.emptyNodeClass,{editor:e,node:u,pos:c,hasAnchor:p})},node:u,pos:c})),t.includeChildren}),l}function He({editor:e,options:t,dataAttribute:n,doc:r,selection:s}){if(!(e.isEditable||!t.showOnlyWhenEditable))return null;const{anchor:o}=s,i=[],a=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){const l=r.resolve(o),d=l.depth>0?l.node(1):l.nodeAfter,u=l.depth>0?l.before(1):o;if(d&&d.type.isTextblock&&be(d)){const c=o>=u&&o<=u+d.nodeSize;i.push(Oe({editor:e,isEmptyDoc:a,dataAttribute:n,hasAnchor:c,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:De(t.emptyNodeClass,{editor:e,node:d,pos:u,hasAnchor:c})},node:d,pos:u}))}}else i.push(...Be({editor:e,options:t,dataAttribute:n,doc:r,selection:s,from:0,to:r.content.size}));return x.create(r,i)}function $(e,t){const n=e.resolve(t);if(n.depth===0){var r;const o=(r=n.nodeAfter)!==null&&r!==void 0?r:n.nodeBefore;if(!o)return{from:t,to:t};const i=n.nodeAfter?t:t-o.nodeSize;return{from:i,to:i+o.nodeSize}}const s=n.before(1);return{from:s,to:s+n.node(1).nodeSize}}function P(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function Cn(e,t,n){const r=[];return e.forEach((s,o)=>{const i=o,a=i+s.nodeSize,l=i+1,d=a+1;l<n&&d>t&&r.push({from:i,to:a})}),r}function xn(e){if(e.length===0)return[];const t=[...e].sort((r,s)=>r.from-s.from),n=[{...t[0]}];for(let r=1;r<t.length;r+=1){const s=n[n.length-1],o=t[r];o.from<=s.to?s.to=Math.max(s.to,o.to):n.push({...o})}return n}function An(e,t){const n=Cn(e,t.from,t.to);return n.push(P(e,$(e,t.from))),t.to>t.from?n.push(P(e,$(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(P(e,$(e,Math.min(t.from+1,e.content.size)))),n}function Sn(e,t,n){const r=[];if(e.docChanged){const s=tt(e);for(const o of s)r.push(...An(n.doc,o.newRange))}return e.selectionSet&&(r.push(P(n.doc,$(n.doc,e.mapping.map(t.selection.anchor)))),r.push(P(n.doc,$(n.doc,n.selection.anchor)))),xn(r)}function In(e,t,n){const r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function Rn({decorations:e,ranges:t,editor:n,options:r,dataAttribute:s,doc:o,selection:i}){let a=e;for(const l of t){const{from:d,to:u}=In(l.from,l.to,o),c=a.find(d,u).filter(h=>h.from>=d&&h.to<=u);c.length&&(a=a.remove(c));const p=Be({editor:n,options:r,dataAttribute:s,doc:o,selection:i,from:
38d,to:u});p.length&&(a=a.add(o,p))}return a}function En({editor:e,options:t,dataAttribute:n}){return{init(r,s){const o=He({editor:e,options:t,dataAttribute:n,doc:s.doc,selection:s.selection});return o??x.empty},apply(r,s,o,i){return!r.docChanged&&!r.selectionSet?s:Rn({decorations:s.map(r.mapping,r.doc),ranges:Sn(r,o,i),editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})}}}function Nn(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}function $n({editor:e,options:t}){const n=t.dataAttribute?`data-${Nn(t.dataAttribute)}`:`data-${Pe}`,r=t.showOnlyCurrent&&!t.includeChildren;return new C({key:me,...r?{}:{state:En({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:s,selection:o})=>He({editor:e,options:t,dataAttribute:n,doc:s,selection:o}):s=>{var o;return t.showOnlyWhenEditable&&!e.isEditable?x.empty:(o=me.getState(s))!==null&&o!==void 0?o:x.empty}}})}L.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Pe,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[$n({editor:this.editor,options:this.options})]}});function Z(e,t){return!e.selection.empty&&!ye(e.selection)&&t.isEditable}function Pn(e,t){return Z(e,t)&&!t.isFocused&&!t.view.dragging}function On(){var e;(e=window.getSelection())===null||e===void 0||e.removeAllRanges()}function Dn(e){e.focus()}L.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new C({key:new N("selection"),props:{decorations(n){return Pn(n,e)?x.create(n.doc,[V.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(n){return Z(n.state,e)&&On(),!1},focus(n){return Z(n.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&n.hasFocus()&&Dn(n)}),!1}}}})]}});function ge({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}const Bn=L.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const t=new N(this.name),n=this.options.node||((e=this.editor.schema.topNodeType.contentMatch.defaultType)===null||e===void 0?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,s])=>s).filter(s=>(this.options.notAfter||[]).concat(n).includes(s.name));return[new C({key:t,appendTransaction:(s,o,i)=>{const{doc:a,tr:l,schema:d}=i,u=t.getState(i),c=a.content.size,p=d.nodes[n];if(!s.some(h=>h.getMeta("skipTrailingNode"))&&u)return l.insert(c,p.create())},state:{init:(s,o)=>{const i=o.tr.doc.lastChild;return!ge({node:i,types:r})},apply:(s,o)=>{if(!s.docChanged||s.getMeta("__uniqueIDTransaction"))return o;const i=s.doc.lastChild;return!ge({node:i,types:r})}}})]}}),Hn=L.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>et(e,t),redo:()=>({state:e,dispatch:t})=>Qe(e,t)}},addProseMirrorPlugins(){return[Ze(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),_n=L.create({name:"starterKit",addExtensions(){const e=[];if(this.options.bold!==!1&&e.push(pt.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(at.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(we.configure(this.options.bulletList)),this.options.code!==!1&&e.push(gt.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(bt.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(vt.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(wn.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(Tn.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Lt.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(Mt.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(Hn.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(wt.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(St.configure(this.options.italic)),this.options.listItem!==!1&&e.push(Se.configure(this.options.listItem)),this.options.listKeymap!==!1){var t;e.push(Re.configure((t=this.options)===null||t===void 0?void 0:t.listKeymap))}if(this.options.link!==!1){var n;e.push(nt.configure((n=this.options)===null||n===void 0?void 0:n.link))}if(this.options.orderedList!==!1&&e.push(Ne.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(cn.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(pn.configure(this.options.strike)),this.options.text!==!1&&e.push(hn.configure(this.options.text)),this.options.underline!==!1){var r;e.push(rt.configure((r=this.options)===null||r===void 0?void 0:r.underline))}if(this.options.trailingNode!==!1){var s;e.push(Bn.configure((s=this.options)===null||s===void 0?void 0:s.trailingNode))}return e}});var Fn=_n;export{_n as StarterKit,Fn as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.