@ahzoo/sus 3.2.1 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20301,7 +20301,7 @@ const Hk = { class: "sus-comment__item" }, Fk = { class: "sus-comment-info-floor
20301
20301
  ])
20302
20302
  ]));
20303
20303
  }
20304
- }), us = /* @__PURE__ */ mn(hv, [["__scopeId", "data-v-40c401e6"]]), pv = { class: "sus-comment-list" }, mv = {
20304
+ }), us = /* @__PURE__ */ mn(hv, [["__scopeId", "data-v-a0ea9452"]]), pv = { class: "sus-comment-list" }, mv = {
20305
20305
  key: 0,
20306
20306
  class: "sus-comment__item__thread"
20307
20307
  }, gv = { class: "sus-item__thread-header" }, yv = { class: "sus-item__thread-label" }, bv = { class: "sus-item__thread-count" }, wv = { class: "sus-item__thread-content" }, kv = {
@@ -20393,7 +20393,7 @@ const Hk = { class: "sus-comment__item" }, Fk = { class: "sus-comment-info-floor
20393
20393
  ])) : ae("", !0)
20394
20394
  ]));
20395
20395
  }
20396
- }), Cv = /* @__PURE__ */ mn(Sv, [["__scopeId", "data-v-8dbeda3c"]]), Mv = { class: "sus-top-item" }, Ev = { class: "sus-top-item__info sus-top-info" }, Tv = { class: "sus-top-item__user sus-top-name" }, Ov = {
20396
+ }), Cv = /* @__PURE__ */ mn(Sv, [["__scopeId", "data-v-35d62865"]]), Mv = { class: "sus-top-item" }, Ev = { class: "sus-top-item__info sus-top-info" }, Tv = { class: "sus-top-item__user sus-top-name" }, Ov = {
20397
20397
  key: 0,
20398
20398
  class: "sus-top-item__reply"
20399
20399
  }, Av = ["innerHTML"], Nv = /* @__PURE__ */ qe({
@@ -104,4 +104,4 @@ img.ProseMirror-separator {
104
104
  3. "-" cannot repeat`);oe.customSchemes.push([n,e])}function M0(){oe.scanner=y0(oe.customSchemes);for(let n=0;n<oe.tokenQueue.length;n++)oe.tokenQueue[n][1]({scanner:oe.scanner});oe.parser=k0(oe.scanner.tokens);for(let n=0;n<oe.pluginQueue.length;n++)oe.pluginQueue[n][1]({scanner:oe.scanner,parser:oe.parser});return oe.initialized=!0,oe}function qo(n){return oe.initialized||M0(),x0(oe.parser.start,n,jd(oe.scanner.start,n))}qo.scan=jd;function Yd(n,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new Wo(t),i=qo(n),s=[];for(let o=0;o<i.length;o++){const l=i[o];l.isLink&&(!e||l.t===e)&&r.check(l)&&s.push(l.toFormattedObject(r))}return s}var Jo="[\0-   ᠎ -\u2029  ]",v0=new RegExp(Jo),T0=new RegExp(`${Jo}$`),O0=new RegExp(Jo,"g");function N0(n){return n.length===1?n[0].isLink:n.length===3&&n[1].isLink?["()","[]"].includes(n[0].value+n[2].value):!1}function A0(n){return new se({key:new le("autolink"),appendTransaction:(e,t,r)=>{const i=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!i||s)return;const{tr:o}=r,l=Xc(t.doc,[...e]);if(ad(l).forEach(({newRange:c})=>{const d=Um(r.doc,c,h=>h.isTextblock);let u,f;if(d.length>1)u=d[0],f=r.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ");else if(d.length){const h=r.doc.textBetween(c.from,c.to," "," ");if(!T0.test(h))return;u=d[0],f=r.doc.textBetween(u.pos,c.to,void 0," ")}if(u&&f){const h=f.split(v0).filter(Boolean);if(h.length<=0)return!1;const p=h[h.length-1],g=u.pos+f.lastIndexOf(p);if(!p)return!1;const y=qo(p).map(w=>w.toObject(n.defaultProtocol));if(!N0(y))return!1;y.filter(w=>w.isLink).map(w=>({...w,from:g+w.start+1,to:g+w.end+1})).filter(w=>r.schema.marks.code?!r.doc.rangeHasMark(w.from,w.to,r.schema.marks.code):!0).filter(w=>n.validate(w.value)).filter(w=>n.shouldAutoLink(w.value)).forEach(w=>{yo(w.from,w.to,r.doc).some(k=>k.mark.type===n.type)||o.addMark(w.from,w.to,n.type.create({href:w.href}))})}}),!!o.steps.length)return o}})}function D0(n){return new se({key:new le("handleClickLink"),props:{handleClick:(e,t,r)=>{var i,s;if(r.button!==0||!e.editable)return!1;let o=null;if(r.target instanceof HTMLAnchorElement)o=r.target;else{let d=r.target;const u=[];for(;d.nodeName!=="DIV";)u.push(d),d=d.parentNode;o=u.find(f=>f.nodeName==="A")}if(!o)return!1;const l=ld(e.state,n.type.name),a=(i=o?.href)!=null?i:l.href,c=(s=o?.target)!=null?s:l.target;return n.enableClickSelection&&n.editor.commands.extendMarkRange(n.type.name),o&&a?(window.open(a,c),!0):!1}}})}function R0(n){return new se({key:new le("handlePasteLink"),props:{handlePaste:(e,t,r)=>{const{state:i}=e,{selection:s}=i,{empty:o}=s;if(o)return!1;let l="";r.content.forEach(c=>{l+=c.textContent});const a=Yd(l,{defaultProtocol:n.defaultProtocol}).find(c=>c.isLink&&c.value===l);return!l||!a?!1:n.editor.commands.setMark(n.type,{href:a.href})}}})}function kn(n,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&t.push(i)}),!n||n.replace(O0,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Xd=yn.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(n=>{if(typeof n=="string"){Gd(n);return}Gd(n.scheme,n.optionalSlashes)})},onDestroy(){C0()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(n,e)=>!!kn(n,e.protocols),validate:n=>!!n,shouldAutoLink:n=>!!n}},addAttributes(){return{href:{default:null,parseHTML(n){return n.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:n=>{const e=n.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!kn(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:n}){return this.options.isAllowedUri(n.href,{defaultValidate:e=>!!kn(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",ce(this.options.HTMLAttributes,n),0]:["a",ce(this.options.HTMLAttributes,{...n,href:""}),0]},addCommands(){return{setLink:n=>({chain:e})=>{const{href:t}=n;return this.options.isAllowedUri(t,{defaultValidate:r=>!!kn(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,n).setMeta("preventAutolink",!0).run():!1},toggleLink:n=>({chain:e})=>{const{href:t}=n||{};return t&&!this.options.isAllowedUri(t,{defaultValidate:r=>!!kn(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[bn({find:n=>{const e=[];if(n){const{protocols:t,defaultProtocol:r}=this.options,i=Yd(n).filter(s=>s.isLink&&this.options.isAllowedUri(s.value,{defaultValidate:o=>!!kn(o,t),protocols:t,defaultProtocol:r}));i.length&&i.forEach(s=>e.push({text:s.value,data:{href:s.href},index:s.start}))}return e},type:this.type,getAttributes:n=>{var e;return{href:(e=n.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&n.push(A0({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!kn(i,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&n.push(D0({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&n.push(R0({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),n}}),I0=Xd,P0=Object.defineProperty,L0=(n,e)=>{for(var t in e)P0(n,t,{get:e[t],enumerable:!0})},B0="listItem",Qd="textStyle",Zd=/^\s*([-+*])\s$/,eu=$e.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:n}){return["ul",ce(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(B0,this.editor.getAttributes(Qd)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=_n({find:Zd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=_n({find:Zd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Qd),editor:this.editor})),[n]}}),tu=$e.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ce(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),V0={};L0(V0,{findListItemPos:()=>Cr,getNextListDepth:()=>Go,handleBackspace:()=>Yo,handleDelete:()=>Xo,hasListBefore:()=>nu,hasListItemAfter:()=>_0,hasListItemBefore:()=>ru,listItemHasSubList:()=>iu,nextListIsDeeper:()=>su,nextListIsHigher:()=>ou});var Cr=(n,e)=>{const{$from:t}=e.selection,r=be(n,e.schema);let i=null,s=t.depth,o=t.pos,l=null;for(;s>0&&l===null;)i=t.node(s),i.type===r?l=s:(s-=1,o-=1);return l===null?null:{$pos:e.doc.resolve(o),depth:l}},Go=(n,e)=>{const t=Cr(n,e);if(!t)return!1;const[,r]=Zm(e,n,t.$pos.pos+4);return r},nu=(n,e,t)=>{const{$anchor:r}=n.selection,i=Math.max(0,r.pos-2),s=n.doc.resolve(i).node();return!(!s||!t.includes(s.type.name))},ru=(n,e)=>{var t;const{$anchor:r}=e.selection,i=e.doc.resolve(r.pos-2);return!(i.index()===0||((t=i.nodeBefore)==null?void 0:t.type.name)!==n)},iu=(n,e,t)=>{if(!t)return!1;const r=be(n,e.schema);let i=!1;return t.descendants(s=>{s.type===r&&(i=!0)}),i},Yo=(n,e,t)=>{if(n.commands.undoInputRule())return!0;if(n.state.selection.from!==n.state.selection.to)return!1;if(!Gt(n.state,e)&&nu(n.state,e,t)){const{$anchor:l}=n.state.selection,a=n.state.doc.resolve(l.before()-1),c=[];a.node().descendants((f,h)=>{f.type.name===e&&c.push({node:f,pos:h})});const d=c.at(-1);if(!d)return!1;const u=n.state.doc.resolve(a.start()+d.pos+1);return n.chain().cut({from:l.start()-1,to:l.end()+1},u.end()).joinForward().run()}if(!Gt(n.state,e)||!rg(n.state))return!1;const r=Cr(e,n.state);if(!r)return!1;const s=n.state.doc.resolve(r.$pos.pos-2).node(r.depth),o=iu(e,n.state,s);return ru(e,n.state)&&!o?n.commands.joinItemBackward():n.chain().liftListItem(e).run()},su=(n,e)=>{const t=Go(n,e),r=Cr(n,e);return!r||!t?!1:t>r.depth},ou=(n,e)=>{const t=Go(n,e),r=Cr(n,e);return!r||!t?!1:t<r.depth},Xo=(n,e)=>{if(!Gt(n.state,e)||!ng(n.state,e))return!1;const{selection:t}=n.state,{$from:r,$to:i}=t;return!t.empty&&r.sameParent(i)?!1:su(e,n.state)?n.chain().focus(n.state.selection.from+4).lift(e).joinBackward().run():ou(e,n.state)?n.chain().joinForward().joinBackward().run():n.commands.joinItemForward()},_0=(n,e)=>{var t;const{$anchor:r}=e.selection,i=e.doc.resolve(r.pos-r.parentOffset-2);return!(i.index()===i.parent.childCount-1||((t=i.nodeAfter)==null?void 0:t.type.name)!==n)},lu=de.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:n})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t})=>{n.state.schema.nodes[t]!==void 0&&Xo(n,t)&&(e=!0)}),e},"Mod-Delete":({editor:n})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t})=>{n.state.schema.nodes[t]!==void 0&&Xo(n,t)&&(e=!0)}),e},Backspace:({editor:n})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t,wrapperNames:r})=>{n.state.schema.nodes[t]!==void 0&&Yo(n,t,r)&&(e=!0)}),e},"Mod-Backspace":({editor:n})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t,wrapperNames:r})=>{n.state.schema.nodes[t]!==void 0&&Yo(n,t,r)&&(e=!0)}),e}}}}),$0="listItem",au="textStyle",cu=/^(\d+)\.\s$/,du=$e.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:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1},type:{default:null,parseHTML:n=>n.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",ce(this.options.HTMLAttributes,t),0]:["ol",ce(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes($0,this.editor.getAttributes(au)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=_n({find:cu,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=_n({find:cu,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(au)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),z0=/^\s*(\[([( |x])?\])\s$/,H0=$e.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:n=>{const e=n.getAttribute("data-checked");return e===""||e==="true"},renderHTML:n=>({"data-checked":n.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:n,HTMLAttributes:e}){return["li",ce(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:n.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const n={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...n,Tab:()=>this.editor.commands.sinkListItem(this.name)}:n},addNodeView(){return({node:n,HTMLAttributes:e,getPos:t,editor:r})=>{const i=document.createElement("li"),s=document.createElement("label"),o=document.createElement("span"),l=document.createElement("input"),a=document.createElement("div"),c=d=>{var u,f;l.ariaLabel=((f=(u=this.options.a11y)==null?void 0:u.checkboxLabel)==null?void 0:f.call(u,d,l.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};return c(n),s.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",d=>d.preventDefault()),l.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}const{checked:u}=d.target;r.isEditable&&typeof t=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{const h=t();if(typeof h!="number")return!1;const p=f.doc.nodeAt(h);return f.setNodeMarkup(h,void 0,{...p?.attrs,checked:u}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(n,u)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,u])=>{i.setAttribute(d,u)}),i.dataset.checked=n.attrs.checked,l.checked=n.attrs.checked,s.append(l,o),i.append(s,a),Object.entries(e).forEach(([d,u])=>{i.setAttribute(d,u)}),{dom:i,contentDOM:a,update:d=>d.type!==this.type?!1:(i.dataset.checked=d.attrs.checked,l.checked=d.attrs.checked,c(d),!0)}}},addInputRules(){return[_n({find:z0,type:this.type,getAttributes:n=>({checked:n[n.length-1]==="x"})})]}}),F0=$e.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:n}){return["ul",ce(this.options.HTMLAttributes,n,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});de.create({name:"listKit",addExtensions(){const n=[];return this.options.bulletList!==!1&&n.push(eu.configure(this.options.bulletList)),this.options.listItem!==!1&&n.push(tu.configure(this.options.listItem)),this.options.listKeymap!==!1&&n.push(lu.configure(this.options.listKeymap)),this.options.orderedList!==!1&&n.push(du.configure(this.options.orderedList)),this.options.taskItem!==!1&&n.push(H0.configure(this.options.taskItem)),this.options.taskList!==!1&&n.push(F0.configure(this.options.taskList)),n}});var j0=$e.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",ce(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),U0=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,W0=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,K0=yn.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["s",ce(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Vn({find:U0,type:this.type})]},addPasteRules(){return[bn({find:W0,type:this.type})]}}),q0=$e.create({name:"text",group:"inline"}),J0=yn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",ce(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function G0(n={}){return new se({view(e){return new Y0(e,n)}})}class Y0{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=t.width)!==null&&r!==void 0?r:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let s=o=>{this[i](o)};return e.dom.addEventListener(i,s),{name:i,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,r,i=this.editorView.dom,s=i.getBoundingClientRect(),o=s.width/i.offsetWidth,l=s.height/i.offsetHeight;if(t){let u=e.nodeBefore,f=e.nodeAfter;if(u||f){let h=this.editorView.nodeDOM(this.cursorPos-(u?u.nodeSize:0));if(h){let p=h.getBoundingClientRect(),g=u?p.bottom:p.top;u&&f&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let y=this.width/2*l;r={left:p.left,right:p.right,top:g-y,bottom:g+y}}}}if(!r){let u=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*o;r={left:u.left-f,right:u.left+f,top:u.top,bottom:u.bottom}}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.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",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let c,d;if(!a||a==document.body&&getComputedStyle(a).position=="static")c=-pageXOffset,d=-pageYOffset;else{let u=a.getBoundingClientRect(),f=u.width/a.offsetWidth,h=u.height/a.offsetHeight;c=u.left-a.scrollLeft*f,d=u.top-a.scrollTop*h}this.element.style.left=(r.left-c)/o+"px",this.element.style.top=(r.top-d)/l+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=r&&r.type.spec.disableDropCursor,s=typeof i=="function"?i(this.editorView,t,e):i;if(t&&!s){let o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=ca(this.editorView.state.doc,o,this.editorView.dragging.slice);l!=null&&(o=l)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class fe extends H{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return fe.valid(r)?new fe(r):H.near(r)}content(){return A.empty}eq(e){return e instanceof fe&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new fe(e.resolve(t.pos))}getBookmark(){return new Qo(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!X0(e)||!Q0(e))return!1;let r=t.type.spec.allowGapCursor;if(r!=null)return r;let i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&fe.valid(e))return e;let i=e.pos,s=null;for(let o=e.depth;;o--){let l=e.node(o);if(t>0?e.indexAfter(o)<l.childCount:e.index(o)>0){s=l.child(t>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;i+=t;let a=e.doc.resolve(i);if(fe.valid(a))return a}for(;;){let o=t>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!B.isSelectable(s)){e=e.doc.resolve(i+s.nodeSize*t),r=!1;continue e}break}s=o,i+=t;let l=e.doc.resolve(i);if(fe.valid(l))return l}return null}}}fe.prototype.visible=!1,fe.findFrom=fe.findGapCursorFrom,H.jsonID("gapcursor",fe);class Qo{constructor(e){this.pos=e}map(e){return new Qo(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return fe.valid(t)?new fe(t):H.near(t)}}function X0(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),r=n.node(e);if(t==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Q0(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),r=n.node(e);if(t==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Z0(){return new se({props:{decorations:rb,createSelectionBetween(n,e,t){return e.pos==t.pos&&fe.valid(t)?new fe(t):null},handleClick:tb,handleKeyDown:eb,handleDOMEvents:{beforeinput:nb}}})}const eb=no({ArrowLeft:Wi("horiz",-1),ArrowRight:Wi("horiz",1),ArrowUp:Wi("vert",-1),ArrowDown:Wi("vert",1)});function Wi(n,e){const t=n=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,s){let o=r.selection,l=e>0?o.$to:o.$from,a=o.empty;if(o instanceof F){if(!s.endOfTextblock(t)||l.depth==0)return!1;a=!1,l=r.doc.resolve(e>0?l.after():l.before())}let c=fe.findGapCursorFrom(l,e,a);return c?(i&&i(r.tr.setSelection(new fe(c))),!0):!1}}function tb(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!fe.valid(r))return!1;let i=n.posAtCoords({left:t.clientX,top:t.clientY});return i&&i.inside>-1&&B.isSelectable(n.state.doc.nodeAt(i.inside))?!1:(n.dispatch(n.state.tr.setSelection(new fe(r))),!0)}function nb(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof fe))return!1;let{$from:t}=n.state.selection,r=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!r)return!1;let i=S.empty;for(let o=r.length-1;o>=0;o--)i=S.from(r[o].createAndFill(null,i));let s=n.state.tr.replace(t.pos,t.pos,new A(i,0,0));return s.setSelection(F.near(s.doc.resolve(t.pos+1))),n.dispatch(s),!1}function rb(n){if(!(n.selection instanceof fe))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",ae.create(n.doc,[Ie.widget(n.selection.head,e,{key:"gapcursor"})])}var Ki=200,Ce=function(){};Ce.prototype.append=function(e){return e.length?(e=Ce.from(e),!this.length&&e||e.length<Ki&&this.leafAppend(e)||this.length<Ki&&e.leafPrepend(this)||this.appendInner(e)):this},Ce.prototype.prepend=function(e){return e.length?Ce.from(e).append(this):this},Ce.prototype.appendInner=function(e){return new ib(this,e)},Ce.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?Ce.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Ce.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Ce.prototype.forEach=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},Ce.prototype.map=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(s,o){return i.push(e(s,o))},t,r),i},Ce.from=function(e){return e instanceof Ce?e:e&&e.length?new uu(e):Ce.empty};var uu=(function(n){function e(r){n.call(this),this.values=r}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,s){return i==0&&s==this.length?this:new e(this.values.slice(i,s))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,s,o,l){for(var a=s;a<o;a++)if(i(this.values[a],l+a)===!1)return!1},e.prototype.forEachInvertedInner=function(i,s,o,l){for(var a=s-1;a>=o;a--)if(i(this.values[a],l+a)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Ki)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Ki)return new e(i.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e})(Ce);Ce.empty=new uu([]);var ib=(function(n){function e(t,r){n.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,s,o){var l=this.left.length;if(i<l&&this.left.forEachInner(r,i,Math.min(s,l),o)===!1||s>l&&this.right.forEachInner(r,Math.max(i-l,0),Math.min(this.length,s)-l,o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,o){var l=this.left.length;if(i>l&&this.right.forEachInvertedInner(r,i-l,Math.max(s,l)-l,o+l)===!1||s<l&&this.left.forEachInvertedInner(r,Math.min(i,l),s,o)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var s=this.left.length;return i<=s?this.left.slice(r,i):r>=s?this.right.slice(r-s,i-s):this.left.slice(r,s).append(this.right.slice(0,i-s))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Ce);const sb=500;class nt{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,s;t&&(i=this.remapping(r,this.items.length),s=i.maps.length);let o=e.tr,l,a,c=[],d=[];return this.items.forEach((u,f)=>{if(!u.step){i||(i=this.remapping(r,f+1),s=i.maps.length),s--,d.push(u);return}if(i){d.push(new ut(u.map));let h=u.step.map(i.slice(s)),p;h&&o.maybeStep(h).doc&&(p=o.mapping.maps[o.mapping.maps.length-1],c.push(new ut(p,void 0,void 0,c.length+d.length))),s--,p&&i.appendMap(p,s)}else o.maybeStep(u.step);if(u.selection)return l=i?u.selection.map(i.slice(s)):u.selection,a=new nt(this.items.slice(0,r).append(d.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:o,selection:l}}addTransform(e,t,r,i){let s=[],o=this.eventCount,l=this.items,a=!i&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let u=e.steps[d].invert(e.docs[d]),f=new ut(e.mapping.maps[d],u,t),h;(h=a&&a.merge(f))&&(f=h,d?s.pop():l=l.slice(0,l.length-1)),s.push(f),t&&(o++,t=void 0),i||(a=f)}let c=o-r.depth;return c>lb&&(l=ob(l,c),o-=c),new nt(l.append(s),o)}remapping(e,t){let r=new Qn;return this.items.forEach((i,s)=>{let o=i.mirrorOffset!=null&&s-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},e,t),r}addMaps(e){return this.eventCount==0?this:new nt(this.items.append(e.map(t=>new ut(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-t),s=e.mapping,o=e.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},i);let a=t;this.items.forEach(f=>{let h=s.getMirror(--a);if(h==null)return;o=Math.min(o,h);let p=s.maps[h];if(f.step){let g=e.steps[h].invert(e.docs[h]),y=f.selection&&f.selection.map(s.slice(a+1,h));y&&l++,r.push(new ut(p,g,y))}else r.push(new ut(p))},i);let c=[];for(let f=t;f<o;f++)c.push(new ut(s.maps[f]));let d=this.items.slice(0,i).append(c).append(r),u=new nt(d,l);return u.emptyItemCount()>sb&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,i=[],s=0;return this.items.forEach((o,l)=>{if(l>=e)i.push(o),o.selection&&s++;else if(o.step){let a=o.step.map(t.slice(r)),c=a&&a.getMap();if(r--,c&&t.appendMap(c,r),a){let d=o.selection&&o.selection.map(t.slice(r));d&&s++;let u=new ut(c.invert(),a,d),f,h=i.length-1;(f=i.length&&i[h].merge(u))?i[h]=f:i.push(u)}}else o.map&&r--},this.items.length,0),new nt(Ce.from(i.reverse()),s)}}nt.empty=new nt(Ce.empty,0);function ob(n,e){let t;return n.forEach((r,i)=>{if(r.selection&&e--==0)return t=i,!1}),n.slice(t)}class ut{constructor(e,t,r,i){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new ut(t.getMap().invert(),t,this.selection)}}}class en{constructor(e,t,r,i,s){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=i,this.prevComposition=s}}const lb=20;function ab(n,e,t,r){let i=t.getMeta(xn),s;if(i)return i.historyState;t.getMeta(ub)&&(n=new en(n.done,n.undone,null,0,-1));let o=t.getMeta("appendedTransaction");if(t.steps.length==0)return n;if(o&&o.getMeta(xn))return o.getMeta(xn).redo?new en(n.done.addTransform(t,void 0,r,qi(e)),n.undone,fu(t.mapping.maps),n.prevTime,n.prevComposition):new en(n.done,n.undone.addTransform(t,void 0,r,qi(e)),null,n.prevTime,n.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),a=n.prevTime==0||!o&&n.prevComposition!=l&&(n.prevTime<(t.time||0)-r.newGroupDelay||!cb(t,n.prevRanges)),c=o?Zo(n.prevRanges,t.mapping):fu(t.mapping.maps);return new en(n.done.addTransform(t,a?e.selection.getBookmark():void 0,r,qi(e)),nt.empty,c,t.time,l??n.prevComposition)}else return(s=t.getMeta("rebased"))?new en(n.done.rebased(t,s),n.undone.rebased(t,s),Zo(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new en(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),Zo(n.prevRanges,t.mapping),n.prevTime,n.prevComposition)}function cb(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((r,i)=>{for(let s=0;s<e.length;s+=2)r<=e[s+1]&&i>=e[s]&&(t=!0)}),t}function fu(n){let e=[];for(let t=n.length-1;t>=0&&e.length==0;t--)n[t].forEach((r,i,s,o)=>e.push(s,o));return e}function Zo(n,e){if(!n)return null;let t=[];for(let r=0;r<n.length;r+=2){let i=e.map(n[r],1),s=e.map(n[r+1],-1);i<=s&&t.push(i,s)}return t}function db(n,e,t){let r=qi(e),i=xn.get(e).spec.config,s=(t?n.undone:n.done).popEvent(e,r);if(!s)return null;let o=s.selection.resolve(s.transform.doc),l=(t?n.done:n.undone).addTransform(s.transform,e.selection.getBookmark(),i,r),a=new en(t?l:s.remaining,t?s.remaining:l,null,0,-1);return s.transform.setSelection(o).setMeta(xn,{redo:t,historyState:a})}let el=!1,hu=null;function qi(n){let e=n.plugins;if(hu!=e){el=!1,hu=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){el=!0;break}}return el}const xn=new le("history"),ub=new le("closeHistory");function fb(n={}){return n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},new se({key:xn,state:{init(){return new en(nt.empty,nt.empty,null,0,-1)},apply(e,t,r){return ab(t,r,e,n)}},config:n,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,i=r=="historyUndo"?mu:r=="historyRedo"?gu:null;return i?(t.preventDefault(),i(e.state,e.dispatch)):!1}}}})}function pu(n,e){return(t,r)=>{let i=xn.getState(t);if(!i||(n?i.undone:i.done).eventCount==0)return!1;if(r){let s=db(i,t,n);s&&r(e?s.scrollIntoView():s)}return!0}}const mu=pu(!1,!0),gu=pu(!0,!0);de.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:n=>n.length,wordCounter:n=>n.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=n=>{const e=n?.node||this.editor.state.doc;if((n?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=n=>{const e=n?.node||this.editor.state.doc,t=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(t)}},addProseMirrorPlugins(){let n=!1;return[new se({key:new le("characterCount"),appendTransaction:(e,t,r)=>{if(n)return;const i=this.options.limit;if(i==null||i===0){n=!0;return}const s=this.storage.characters({node:r.doc});if(s>i){const o=s-i,l=0,a=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const c=r.tr.deleteRange(l,a);return n=!0,c}n=!0},filterTransaction:(e,t)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:t.doc}),s=this.storage.characters({node:e.doc});if(s<=r||i>r&&s>r&&s<=i)return!0;if(i>r&&s>r&&s>i||!e.getMeta("paste"))return!1;const l=e.selection.$head.pos,a=s-r,c=l-a,d=l;return e.deleteRange(c,d),!(this.storage.characters({node:e.doc})>r)}})]}});var hb=de.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[G0(this.options)]}});de.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new se({key:new le("focus"),props:{decorations:({doc:n,selection:e})=>{const{isEditable:t,isFocused:r}=this.editor,{anchor:i}=e,s=[];if(!t||!r)return ae.create(n,[]);let o=0;this.options.mode==="deepest"&&n.descendants((a,c)=>{if(a.isText)return;if(!(i>=c&&i<=c+a.nodeSize-1))return!1;o+=1});let l=0;return n.descendants((a,c)=>{if(a.isText||!(i>=c&&i<=c+a.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&o-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";s.push(Ie.node(c,c+a.nodeSize,{class:this.options.className}))}),ae.create(n,s)}}})]}});var pb=de.create({name:"gapCursor",addProseMirrorPlugins(){return[Z0()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=ee($(n,"allowGapCursor",t)))!=null?e:null}}}),mb=de.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new se({key:new le("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,i=[];if(!t)return null;const s=this.editor.isEmpty;return n.descendants((o,l)=>{const a=r>=l&&r<=l+o.nodeSize,c=!o.isLeaf&&si(o);if((a||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const u=Ie.node(l,l+o.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:l,hasAnchor:a}):this.options.placeholder});i.push(u)}return this.options.includeChildren}),ae.create(n,i)}}})]}});de.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:n,options:e}=this;return[new se({key:new le("selection"),props:{decorations(t){return t.selection.empty||n.isFocused||!n.isEditable||hd(t.selection)||n.view.dragging?null:ae.create(t.doc,[Ie.inline(t.selection.from,t.selection.to,{class:e.className})])}}})]}});function yu({types:n,node:e}){return e&&Array.isArray(n)&&n.includes(e.type)||e?.type===n}var gb=de.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const n=new le(this.name),e=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(this.options.node).includes(t.name));return[new se({key:n,appendTransaction:(t,r,i)=>{const{doc:s,tr:o,schema:l}=i,a=n.getState(i),c=s.content.size,d=l.nodes[this.options.node];if(a)return o.insert(c,d.create())},state:{init:(t,r)=>{const i=r.tr.doc.lastChild;return!yu({node:i,types:e})},apply:(t,r)=>{if(!t.docChanged)return r;const i=t.doc.lastChild;return!yu({node:i,types:e})}}})]}}),yb=de.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:e})=>mu(n,e),redo:()=>({state:n,dispatch:e})=>gu(n,e)}},addProseMirrorPlugins(){return[fb(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()}}}),bb=de.create({name:"starterKit",addExtensions(){var n,e,t,r;const i=[];return this.options.bold!==!1&&i.push(qy.configure(this.options.bold)),this.options.blockquote!==!1&&i.push(Fy.configure(this.options.blockquote)),this.options.bulletList!==!1&&i.push(eu.configure(this.options.bulletList)),this.options.code!==!1&&i.push(Yy.configure(this.options.code)),this.options.codeBlock!==!1&&i.push(Pd.configure(this.options.codeBlock)),this.options.document!==!1&&i.push(e0.configure(this.options.document)),this.options.dropcursor!==!1&&i.push(hb.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&i.push(pb.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&i.push(t0.configure(this.options.hardBreak)),this.options.heading!==!1&&i.push(n0.configure(this.options.heading)),this.options.undoRedo!==!1&&i.push(yb.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&i.push(r0.configure(this.options.horizontalRule)),this.options.italic!==!1&&i.push(a0.configure(this.options.italic)),this.options.listItem!==!1&&i.push(tu.configure(this.options.listItem)),this.options.listKeymap!==!1&&i.push(lu.configure((n=this.options)==null?void 0:n.listKeymap)),this.options.link!==!1&&i.push(Xd.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&i.push(du.configure(this.options.orderedList)),this.options.paragraph!==!1&&i.push(j0.configure(this.options.paragraph)),this.options.strike!==!1&&i.push(K0.configure(this.options.strike)),this.options.text!==!1&&i.push(q0.configure(this.options.text)),this.options.underline!==!1&&i.push(J0.configure((t=this.options)==null?void 0:t.underline)),this.options.trailingNode!==!1&&i.push(gb.configure((r=this.options)==null?void 0:r.trailingNode)),i}}),wb=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,kb=$e.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",ce(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:e})=>e.insertContent({type:this.name,attrs:n})}},addInputRules(){return[Rd({find:wb,type:this.type,getAttributes:n=>{const[,,e,t,r]=n;return{src:t,alt:e,title:r}}})]}}),xb=kb;const bu=["top","right","bottom","left"],wu=["start","end"],ku=bu.reduce((n,e)=>n.concat(e,e+"-"+wu[0],e+"-"+wu[1]),[]),ft=Math.min,ze=Math.max,Ji=Math.round,ht=n=>({x:n,y:n}),Sb={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(n,e,t){return ze(n,ft(e,t))}function Nt(n,e){return typeof n=="function"?n(e):n}function et(n){return n.split("-")[0]}function rt(n){return n.split("-")[1]}function xu(n){return n==="x"?"y":"x"}function nl(n){return n==="y"?"height":"width"}function pt(n){const e=n[0];return e==="t"||e==="b"?"y":"x"}function rl(n){return xu(pt(n))}function Su(n,e,t){t===void 0&&(t=!1);const r=rt(n),i=rl(n),s=nl(i);let o=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Yi(o)),[o,Yi(o)]}function Eb(n){const e=Yi(n);return[Gi(n),e,Gi(e)]}function Gi(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Eu=["left","right"],Cu=["right","left"],Cb=["top","bottom"],Mb=["bottom","top"];function vb(n,e,t){switch(n){case"top":case"bottom":return t?e?Cu:Eu:e?Eu:Cu;case"left":case"right":return e?Cb:Mb;default:return[]}}function Tb(n,e,t,r){const i=rt(n);let s=vb(et(n),t==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(Gi)))),s}function Yi(n){const e=et(n);return Sb[e]+n.slice(e.length)}function Ob(n){return{top:0,right:0,bottom:0,left:0,...n}}function il(n){return typeof n!="number"?Ob(n):{top:n,right:n,bottom:n,left:n}}function zn(n){const{x:e,y:t,width:r,height:i}=n;return{width:r,height:i,top:t,left:e,right:e+r,bottom:t+i,x:e,y:t}}function Mu(n,e,t){let{reference:r,floating:i}=n;const s=pt(e),o=rl(e),l=nl(o),a=et(e),c=s==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let h;switch(a){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-i.width,y:u};break;default:h={x:r.x,y:r.y}}switch(rt(e)){case"start":h[o]-=f*(t&&c?-1:1);break;case"end":h[o]+=f*(t&&c?-1:1);break}return h}async function Nb(n,e){var t;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:l,strategy:a}=n,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=Nt(e,n),p=il(h),y=l[f?u==="floating"?"reference":"floating":u],w=zn(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(y)))==null||t?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),k=u==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),D=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},v=zn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:E,strategy:a}):k);return{top:(w.top-v.top+p.top)/D.y,bottom:(v.bottom-w.bottom+p.bottom)/D.y,left:(w.left-v.left+p.left)/D.x,right:(v.right-w.right+p.right)/D.x}}const Ab=50,Db=async(n,e,t)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=t,l=o.detectOverflow?o:{...o,detectOverflow:Nb},a=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:n,floating:e,strategy:i}),{x:d,y:u}=Mu(c,r,a),f=r,h=0;const p={};for(let g=0;g<s.length;g++){const y=s[g];if(!y)continue;const{name:w,fn:k}=y,{x:E,y:D,data:v,reset:I}=await k({x:d,y:u,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:n,floating:e}});d=E??d,u=D??u,p[w]={...p[w],...v},I&&h<Ab&&(h++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(c=I.rects===!0?await o.getElementRects({reference:n,floating:e,strategy:i}):I.rects),{x:d,y:u}=Mu(c,f,a)),g=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:p}},Rb=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:i,rects:s,platform:o,elements:l,middlewareData:a}=e,{element:c,padding:d=0}=Nt(n,e)||{};if(c==null)return{};const u=il(d),f={x:t,y:r},h=rl(i),p=nl(h),g=await o.getDimensions(c),y=h==="y",w=y?"top":"left",k=y?"bottom":"right",E=y?"clientHeight":"clientWidth",D=s.reference[p]+s.reference[h]-f[h]-s.floating[p],v=f[h]-s.reference[h],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let T=I?I[E]:0;(!T||!await(o.isElement==null?void 0:o.isElement(I)))&&(T=l.floating[E]||s.floating[p]);const _=D/2-v/2,K=T/2-g[p]/2-1,j=ft(u[w],K),U=ft(u[k],K),O=j,X=T-g[p]-U,Z=T/2-g[p]/2+_,ke=tl(O,Z,X),he=!a.arrow&&rt(i)!=null&&Z!==ke&&s.reference[p]/2-(Z<O?j:U)-g[p]/2<0,pe=he?Z<O?Z-O:Z-X:0;return{[h]:f[h]+pe,data:{[h]:ke,centerOffset:Z-ke-pe,...he&&{alignmentOffset:pe}},reset:he}}});function Ib(n,e,t){return(n?[...t.filter(i=>rt(i)===n),...t.filter(i=>rt(i)!==n)]:t.filter(i=>et(i)===i)).filter(i=>n?rt(i)===n||(e?Gi(i)!==i:!1):!0)}const Pb=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(e){var t,r,i;const{rects:s,middlewareData:o,placement:l,platform:a,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=ku,autoAlignment:h=!0,...p}=Nt(n,e),g=u!==void 0||f===ku?Ib(u||null,h,f):f,y=await a.detectOverflow(e,p),w=((t=o.autoPlacement)==null?void 0:t.index)||0,k=g[w];if(k==null)return{};const E=Su(k,s,await(a.isRTL==null?void 0:a.isRTL(c.floating)));if(l!==k)return{reset:{placement:g[0]}};const D=[y[et(k)],y[E[0]],y[E[1]]],v=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:k,overflows:D}],I=g[w+1];if(I)return{data:{index:w+1,overflows:v},reset:{placement:I}};const T=v.map(j=>{const U=rt(j.placement);return[j.placement,U&&d?j.overflows.slice(0,2).reduce((O,X)=>O+X,0):j.overflows[0],j.overflows]}).sort((j,U)=>j[1]-U[1]),K=((i=T.filter(j=>j[2].slice(0,rt(j[0])?2:3).every(U=>U<=0))[0])==null?void 0:i[0])||T[0][0];return K!==l?{data:{index:w+1,overflows:v},reset:{placement:K}}:{}}}},Lb=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=Nt(n,e);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const w=et(i),k=pt(l),E=et(l)===l,D=await(a.isRTL==null?void 0:a.isRTL(c.floating)),v=f||(E||!g?[Yi(l)]:Eb(l)),I=p!=="none";!f&&I&&v.push(...Tb(l,g,p,D));const T=[l,...v],_=await a.detectOverflow(e,y),K=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&K.push(_[w]),u){const Z=Su(i,o,D);K.push(_[Z[0]],_[Z[1]])}if(j=[...j,{placement:i,overflows:K}],!K.every(Z=>Z<=0)){var U,O;const Z=(((U=s.flip)==null?void 0:U.index)||0)+1,ke=T[Z];if(ke&&(!(u==="alignment"?k!==pt(ke):!1)||j.every(Me=>pt(Me.placement)===k?Me.overflows[0]>0:!0)))return{data:{index:Z,overflows:j},reset:{placement:ke}};let he=(O=j.filter(pe=>pe.overflows[0]<=0).sort((pe,Me)=>pe.overflows[1]-Me.overflows[1])[0])==null?void 0:O.placement;if(!he)switch(h){case"bestFit":{var X;const pe=(X=j.filter(Me=>{if(I){const gt=pt(Me.placement);return gt===k||gt==="y"}return!0}).map(Me=>[Me.placement,Me.overflows.filter(gt=>gt>0).reduce((gt,ml)=>gt+ml,0)]).sort((Me,gt)=>Me[1]-gt[1])[0])==null?void 0:X[0];pe&&(he=pe);break}case"initialPlacement":he=l;break}if(i!==he)return{reset:{placement:he}}}return{}}}};function vu(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function Tu(n){return bu.some(e=>n[e]>=0)}const Bb=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t,platform:r}=e,{strategy:i="referenceHidden",...s}=Nt(n,e);switch(i){case"referenceHidden":{const o=await r.detectOverflow(e,{...s,elementContext:"reference"}),l=vu(o,t.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Tu(l)}}}case"escaped":{const o=await r.detectOverflow(e,{...s,altBoundary:!0}),l=vu(o,t.floating);return{data:{escapedOffsets:l,escaped:Tu(l)}}}default:return{}}}}};function Ou(n){const e=ft(...n.map(s=>s.left)),t=ft(...n.map(s=>s.top)),r=ze(...n.map(s=>s.right)),i=ze(...n.map(s=>s.bottom));return{x:e,y:t,width:r-e,height:i-t}}function Vb(n){const e=n.slice().sort((i,s)=>i.y-s.y),t=[];let r=null;for(let i=0;i<e.length;i++){const s=e[i];!r||s.y-r.y>r.height/2?t.push([s]):t[t.length-1].push(s),r=s}return t.map(i=>zn(Ou(i)))}const _b=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(e){const{placement:t,elements:r,rects:i,platform:s,strategy:o}=e,{padding:l=2,x:a,y:c}=Nt(n,e),d=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),u=Vb(d),f=zn(Ou(d)),h=il(l);function p(){if(u.length===2&&u[0].left>u[1].right&&a!=null&&c!=null)return u.find(y=>a>y.left-h.left&&a<y.right+h.right&&c>y.top-h.top&&c<y.bottom+h.bottom)||f;if(u.length>=2){if(pt(t)==="y"){const j=u[0],U=u[u.length-1],O=et(t)==="top",X=j.top,Z=U.bottom,ke=O?j.left:U.left,he=O?j.right:U.right,pe=he-ke,Me=Z-X;return{top:X,bottom:Z,left:ke,right:he,width:pe,height:Me,x:ke,y:X}}const y=et(t)==="left",w=ze(...u.map(j=>j.right)),k=ft(...u.map(j=>j.left)),E=u.filter(j=>y?j.left===k:j.right===w),D=E[0].top,v=E[E.length-1].bottom,I=k,T=w,_=T-I,K=v-D;return{top:D,bottom:v,left:I,right:T,width:_,height:K,x:I,y:D}}return f}const g=await s.getElementRects({reference:{getBoundingClientRect:p},floating:r.floating,strategy:o});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},$b=new Set(["left","top"]);async function zb(n,e){const{placement:t,platform:r,elements:i}=n,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=et(t),l=rt(t),a=pt(t)==="y",c=$b.has(o)?-1:1,d=s&&a?-1:1,u=Nt(e,n);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),a?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const Hb=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,r;const{x:i,y:s,placement:o,middlewareData:l}=e,a=await zb(e,n);return o===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:s+a.y,data:{...a,placement:o}}}}},Fb=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:w=>{let{x:k,y:E}=w;return{x:k,y:E}}},...c}=Nt(n,e),d={x:t,y:r},u=await s.detectOverflow(e,c),f=pt(et(i)),h=xu(f);let p=d[h],g=d[f];if(o){const w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",E=p+u[w],D=p-u[k];p=tl(E,p,D)}if(l){const w=f==="y"?"top":"left",k=f==="y"?"bottom":"right",E=g+u[w],D=g-u[k];g=tl(E,g,D)}const y=a.fn({...e,[h]:p,[f]:g});return{...y,data:{x:y.x-t,y:y.y-r,enabled:{[h]:o,[f]:l}}}}}},jb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){var t,r;const{placement:i,rects:s,platform:o,elements:l}=e,{apply:a=()=>{},...c}=Nt(n,e),d=await o.detectOverflow(e,c),u=et(i),f=rt(i),h=pt(i)==="y",{width:p,height:g}=s.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(w=u,y=f==="end"?"top":"bottom");const k=g-d.top-d.bottom,E=p-d.left-d.right,D=ft(g-d[y],k),v=ft(p-d[w],E),I=!e.middlewareData.shift;let T=D,_=v;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(_=E),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(T=k),I&&!f){const j=ze(d.left,0),U=ze(d.right,0),O=ze(d.top,0),X=ze(d.bottom,0);h?_=p-2*(j!==0||U!==0?j+U:ze(d.left,d.right)):T=g-2*(O!==0||X!==0?O+X:ze(d.top,d.bottom))}await a({...e,availableWidth:_,availableHeight:T});const K=await o.getDimensions(l.floating);return p!==K.width||g!==K.height?{reset:{rects:!0}}:{}}}};function Xi(){return typeof window<"u"}function Hn(n){return Nu(n)?(n.nodeName||"").toLowerCase():"#document"}function Ke(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function At(n){var e;return(e=(Nu(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function Nu(n){return Xi()?n instanceof Node||n instanceof Ke(n).Node:!1}function it(n){return Xi()?n instanceof Element||n instanceof Ke(n).Element:!1}function Dt(n){return Xi()?n instanceof HTMLElement||n instanceof Ke(n).HTMLElement:!1}function Au(n){return!Xi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ke(n).ShadowRoot}function Mr(n){const{overflow:e,overflowX:t,overflowY:r,display:i}=st(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&i!=="inline"&&i!=="contents"}function Ub(n){return/^(table|td|th)$/.test(Hn(n))}function Qi(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Wb=/transform|translate|scale|rotate|perspective|filter/,Kb=/paint|layout|strict|content/,Sn=n=>!!n&&n!=="none";let sl;function ol(n){const e=it(n)?st(n):n;return Sn(e.transform)||Sn(e.translate)||Sn(e.scale)||Sn(e.rotate)||Sn(e.perspective)||!ll()&&(Sn(e.backdropFilter)||Sn(e.filter))||Wb.test(e.willChange||"")||Kb.test(e.contain||"")}function qb(n){let e=tn(n);for(;Dt(e)&&!Fn(e);){if(ol(e))return e;if(Qi(e))return null;e=tn(e)}return null}function ll(){return sl==null&&(sl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sl}function Fn(n){return/^(html|body|#document)$/.test(Hn(n))}function st(n){return Ke(n).getComputedStyle(n)}function Zi(n){return it(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function tn(n){if(Hn(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Au(n)&&n.host||At(n);return Au(e)?e.host:e}function Du(n){const e=tn(n);return Fn(e)?n.ownerDocument?n.ownerDocument.body:n.body:Dt(e)&&Mr(e)?e:Du(e)}function Ru(n,e,t){var r;e===void 0&&(e=[]);const i=Du(n),s=i===((r=n.ownerDocument)==null?void 0:r.body),o=Ke(i);return s?(al(o),e.concat(o,o.visualViewport||[],Mr(i)?i:[],[])):e.concat(i,Ru(i,[]))}function al(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Iu(n){const e=st(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Dt(n),s=i?n.offsetWidth:t,o=i?n.offsetHeight:r,l=Ji(t)!==s||Ji(r)!==o;return l&&(t=s,r=o),{width:t,height:r,$:l}}function Pu(n){return it(n)?n:n.contextElement}function jn(n){const e=Pu(n);if(!Dt(e))return ht(1);const t=e.getBoundingClientRect(),{width:r,height:i,$:s}=Iu(e);let o=(s?Ji(t.width):t.width)/r,l=(s?Ji(t.height):t.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Jb=ht(0);function Lu(n){const e=Ke(n);return!ll()||!e.visualViewport?Jb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gb(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ke(n)?!1:e}function vr(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=n.getBoundingClientRect(),s=Pu(n);let o=ht(1);e&&(r?it(r)&&(o=jn(r)):o=jn(n));const l=Gb(s,t,r)?Lu(s):ht(0);let a=(i.left+l.x)/o.x,c=(i.top+l.y)/o.y,d=i.width/o.x,u=i.height/o.y;if(s){const f=Ke(s),h=r&&it(r)?Ke(r):r;let p=f,g=al(p);for(;g&&r&&h!==p;){const y=jn(g),w=g.getBoundingClientRect(),k=st(g),E=w.left+(g.clientLeft+parseFloat(k.paddingLeft))*y.x,D=w.top+(g.clientTop+parseFloat(k.paddingTop))*y.y;a*=y.x,c*=y.y,d*=y.x,u*=y.y,a+=E,c+=D,p=Ke(g),g=al(p)}}return zn({width:d,height:u,x:a,y:c})}function es(n,e){const t=Zi(n).scrollLeft;return e?e.left+t:vr(At(n)).left+t}function Bu(n,e){const t=n.getBoundingClientRect(),r=t.left+e.scrollLeft-es(n,t),i=t.top+e.scrollTop;return{x:r,y:i}}function Yb(n){let{elements:e,rect:t,offsetParent:r,strategy:i}=n;const s=i==="fixed",o=At(r),l=e?Qi(e.floating):!1;if(r===o||l&&s)return t;let a={scrollLeft:0,scrollTop:0},c=ht(1);const d=ht(0),u=Dt(r);if((u||!u&&!s)&&((Hn(r)!=="body"||Mr(o))&&(a=Zi(r)),u)){const h=vr(r);c=jn(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const f=o&&!u&&!s?Bu(o,a):ht(0);return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-a.scrollLeft*c.x+d.x+f.x,y:t.y*c.y-a.scrollTop*c.y+d.y+f.y}}function Xb(n){return Array.from(n.getClientRects())}function Qb(n){const e=At(n),t=Zi(n),r=n.ownerDocument.body,i=ze(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=ze(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-t.scrollLeft+es(n);const l=-t.scrollTop;return st(r).direction==="rtl"&&(o+=ze(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}const Vu=25;function Zb(n,e){const t=Ke(n),r=At(n),i=t.visualViewport;let s=r.clientWidth,o=r.clientHeight,l=0,a=0;if(i){s=i.width,o=i.height;const d=ll();(!d||d&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}const c=es(r);if(c<=0){const d=r.ownerDocument,u=d.body,f=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,p=Math.abs(r.clientWidth-u.clientWidth-h);p<=Vu&&(s-=p)}else c<=Vu&&(s+=c);return{width:s,height:o,x:l,y:a}}function e1(n,e){const t=vr(n,!0,e==="fixed"),r=t.top+n.clientTop,i=t.left+n.clientLeft,s=Dt(n)?jn(n):ht(1),o=n.clientWidth*s.x,l=n.clientHeight*s.y,a=i*s.x,c=r*s.y;return{width:o,height:l,x:a,y:c}}function _u(n,e,t){let r;if(e==="viewport")r=Zb(n,t);else if(e==="document")r=Qb(At(n));else if(it(e))r=e1(e,t);else{const i=Lu(n);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return zn(r)}function $u(n,e){const t=tn(n);return t===e||!it(t)||Fn(t)?!1:st(t).position==="fixed"||$u(t,e)}function t1(n,e){const t=e.get(n);if(t)return t;let r=Ru(n,[]).filter(l=>it(l)&&Hn(l)!=="body"),i=null;const s=st(n).position==="fixed";let o=s?tn(n):n;for(;it(o)&&!Fn(o);){const l=st(o),a=ol(o);!a&&l.position==="fixed"&&(i=null),(s?!a&&!i:!a&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Mr(o)&&!a&&$u(n,o))?r=r.filter(d=>d!==o):i=l,o=tn(o)}return e.set(n,r),r}function n1(n){let{element:e,boundary:t,rootBoundary:r,strategy:i}=n;const o=[...t==="clippingAncestors"?Qi(e)?[]:t1(e,this._c):[].concat(t),r],l=_u(e,o[0],i);let a=l.top,c=l.right,d=l.bottom,u=l.left;for(let f=1;f<o.length;f++){const h=_u(e,o[f],i);a=ze(h.top,a),c=ft(h.right,c),d=ft(h.bottom,d),u=ze(h.left,u)}return{width:c-u,height:d-a,x:u,y:a}}function r1(n){const{width:e,height:t}=Iu(n);return{width:e,height:t}}function i1(n,e,t){const r=Dt(e),i=At(e),s=t==="fixed",o=vr(n,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=ht(0);function c(){a.x=es(i)}if(r||!r&&!s)if((Hn(e)!=="body"||Mr(i))&&(l=Zi(e)),r){const h=vr(e,!0,s,e);a.x=h.x+e.clientLeft,a.y=h.y+e.clientTop}else i&&c();s&&!r&&i&&c();const d=i&&!r&&!s?Bu(i,l):ht(0),u=o.left+l.scrollLeft-a.x-d.x,f=o.top+l.scrollTop-a.y-d.y;return{x:u,y:f,width:o.width,height:o.height}}function cl(n){return st(n).position==="static"}function zu(n,e){if(!Dt(n)||st(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return At(n)===t&&(t=t.ownerDocument.body),t}function Hu(n,e){const t=Ke(n);if(Qi(n))return t;if(!Dt(n)){let i=tn(n);for(;i&&!Fn(i);){if(it(i)&&!cl(i))return i;i=tn(i)}return t}let r=zu(n,e);for(;r&&Ub(r)&&cl(r);)r=zu(r,e);return r&&Fn(r)&&cl(r)&&!ol(r)?t:r||qb(n)||t}const s1=async function(n){const e=this.getOffsetParent||Hu,t=this.getDimensions,r=await t(n.floating);return{reference:i1(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function o1(n){return st(n).direction==="rtl"}const l1={convertOffsetParentRelativeRectToViewportRelativeRect:Yb,getDocumentElement:At,getClippingRect:n1,getOffsetParent:Hu,getElementRects:s1,getClientRects:Xb,getDimensions:r1,getScale:jn,isElement:it,isRTL:o1},Fu=Hb,ju=Pb,Uu=Fb,Wu=Lb,Ku=jb,qu=Bb,Ju=Rb,Gu=_b,Yu=(n,e,t)=>{const r=new Map,i={platform:l1,...t},s={...i.platform,_c:r};return Db(n,e,{...i,platform:s})};var dl,ul;if(typeof WeakMap<"u"){let n=new WeakMap;dl=e=>n.get(e),ul=(e,t)=>(n.set(e,t),t)}else{const n=[];let t=0;dl=r=>{for(let i=0;i<n.length;i+=2)if(n[i]==r)return n[i+1]},ul=(r,i)=>(t==10&&(t=0),n[t++]=r,n[t++]=i)}var Rt=class{constructor(n,e,t,r){this.width=n,this.height=e,this.map=t,this.problems=r}findCell(n){for(let e=0;e<this.map.length;e++){const t=this.map[e];if(t!=n)continue;const r=e%this.width,i=e/this.width|0;let s=r+1,o=i+1;for(let l=1;s<this.width&&this.map[e+l]==t;l++)s++;for(let l=1;o<this.height&&this.map[e+this.width*l]==t;l++)o++;return{left:r,top:i,right:s,bottom:o}}throw new RangeError(`No cell with offset ${n} found`)}colCount(n){for(let e=0;e<this.map.length;e++)if(this.map[e]==n)return e%this.width;throw new RangeError(`No cell with offset ${n} found`)}nextCell(n,e,t){const{left:r,right:i,top:s,bottom:o}=this.findCell(n);return e=="horiz"?(t<0?r==0:i==this.width)?null:this.map[s*this.width+(t<0?r-1:i)]:(t<0?s==0:o==this.height)?null:this.map[r+this.width*(t<0?s-1:o)]}rectBetween(n,e){const{left:t,right:r,top:i,bottom:s}=this.findCell(n),{left:o,right:l,top:a,bottom:c}=this.findCell(e);return{left:Math.min(t,o),top:Math.min(i,a),right:Math.max(r,l),bottom:Math.max(s,c)}}cellsInRect(n){const e=[],t={};for(let r=n.top;r<n.bottom;r++)for(let i=n.left;i<n.right;i++){const s=r*this.width+i,o=this.map[s];t[o]||(t[o]=!0,!(i==n.left&&i&&this.map[s-1]==o||r==n.top&&r&&this.map[s-this.width]==o)&&e.push(o))}return e}positionAt(n,e,t){for(let r=0,i=0;;r++){const s=i+t.child(r).nodeSize;if(r==n){let o=e+n*this.width;const l=(n+1)*this.width;for(;o<l&&this.map[o]<i;)o++;return o==l?s-1:this.map[o]}i=s}}static get(n){return dl(n)||ul(n,a1(n))}};function a1(n){if(n.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+n.type.name);const e=c1(n),t=n.childCount,r=[];let i=0,s=null;const o=[];for(let c=0,d=e*t;c<d;c++)r[c]=0;for(let c=0,d=0;c<t;c++){const u=n.child(c);d++;for(let p=0;;p++){for(;i<r.length&&r[i]!=0;)i++;if(p==u.childCount)break;const g=u.child(p),{colspan:y,rowspan:w,colwidth:k}=g.attrs;for(let E=0;E<w;E++){if(E+c>=t){(s||(s=[])).push({type:"overlong_rowspan",pos:d,n:w-E});break}const D=i+E*e;for(let v=0;v<y;v++){r[D+v]==0?r[D+v]=d:(s||(s=[])).push({type:"collision",row:c,pos:d,n:y-v});const I=k&&k[v];if(I){const T=(D+v)%e*2,_=o[T];_==null||_!=I&&o[T+1]==1?(o[T]=I,o[T+1]=1):_==I&&o[T+1]++}}}i+=y,d+=g.nodeSize}const f=(c+1)*e;let h=0;for(;i<f;)r[i++]==0&&h++;h&&(s||(s=[])).push({type:"missing",row:c,n:h}),d++}(e===0||t===0)&&(s||(s=[])).push({type:"zero_sized"});const l=new Rt(e,t,r,s);let a=!1;for(let c=0;!a&&c<o.length;c+=2)o[c]!=null&&o[c+1]<t&&(a=!0);return a&&d1(l,o,n),l}function c1(n){let e=-1,t=!1;for(let r=0;r<n.childCount;r++){const i=n.child(r);let s=0;if(t)for(let o=0;o<r;o++){const l=n.child(o);for(let a=0;a<l.childCount;a++){const c=l.child(a);o+c.attrs.rowspan>r&&(s+=c.attrs.colspan)}}for(let o=0;o<i.childCount;o++){const l=i.child(o);s+=l.attrs.colspan,l.attrs.rowspan>1&&(t=!0)}e==-1?e=s:e!=s&&(e=Math.max(e,s))}return e}function d1(n,e,t){n.problems||(n.problems=[]);const r={};for(let i=0;i<n.map.length;i++){const s=n.map[i];if(r[s])continue;r[s]=!0;const o=t.nodeAt(s);if(!o)throw new RangeError(`No cell with offset ${s} found`);let l=null;const a=o.attrs;for(let c=0;c<a.colspan;c++){const d=(i+c)%n.width,u=e[d*2];u!=null&&(!a.colwidth||a.colwidth[c]!=u)&&((l||(l=u1(a)))[c]=u)}l&&n.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function u1(n){if(n.colwidth)return n.colwidth.slice();const e=[];for(let t=0;t<n.colspan;t++)e.push(0);return e}function fl(n){let e=n.cached.tableNodeTypes;if(!e){e=n.cached.tableNodeTypes={};for(const t in n.nodes){const r=n.nodes[t],i=r.spec.tableRole;i&&(e[i]=r)}}return e}new le("selectingCells");function f1(n){for(let e=n.depth-1;e>0;e--)if(n.node(e).type.spec.tableRole=="row")return n.node(0).resolve(n.before(e+1));return null}function Xu(n){const e=n.selection.$head;for(let t=e.depth;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return!0;return!1}function h1(n){const e=n.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const t=f1(e.$head)||p1(e.$head);if(t)return t;throw new RangeError(`No cell found around position ${e.head}`)}function p1(n){for(let e=n.nodeAfter,t=n.pos;e;e=e.firstChild,t++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return n.doc.resolve(t)}for(let e=n.nodeBefore,t=n.pos;e;e=e.lastChild,t--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return n.doc.resolve(t-e.nodeSize)}}function Qu(n){return n.parent.type.spec.tableRole=="row"&&!!n.nodeAfter}function Zu(n,e){return n.depth==e.depth&&n.pos>=e.start(-1)&&n.pos<=e.end(-1)}function ef(n,e,t){const r=n.node(-1),i=Rt.get(r),s=n.start(-1),o=i.nextCell(n.pos-s,e,t);return o==null?null:n.node(0).resolve(s+o)}function tf(n,e,t=1){const r={...n,colspan:n.colspan-t};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,t),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}var mt=class Pt extends H{constructor(e,t=e){const r=e.node(-1),i=Rt.get(r),s=e.start(-1),o=i.rectBetween(e.pos-s,t.pos-s),l=e.node(0),a=i.cellsInRect(o).filter(d=>d!=t.pos-s);a.unshift(t.pos-s);const c=a.map(d=>{const u=r.nodeAt(d);if(!u)throw RangeError(`No cell with offset ${d} found`);const f=s+d+1;return new ma(l.resolve(f),l.resolve(f+u.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(e,t){const r=e.resolve(t.map(this.$anchorCell.pos)),i=e.resolve(t.map(this.$headCell.pos));if(Qu(r)&&Qu(i)&&Zu(r,i)){const s=this.$anchorCell.node(-1)!=r.node(-1);return s&&this.isRowSelection()?Pt.rowSelection(r,i):s&&this.isColSelection()?Pt.colSelection(r,i):new Pt(r,i)}return F.between(r,i)}content(){const e=this.$anchorCell.node(-1),t=Rt.get(e),r=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),s={},o=[];for(let a=i.top;a<i.bottom;a++){const c=[];for(let d=a*t.width+i.left,u=i.left;u<i.right;u++,d++){const f=t.map[d];if(s[f])continue;s[f]=!0;const h=t.findCell(f);let p=e.nodeAt(f);if(!p)throw RangeError(`No cell with offset ${f} found`);const g=i.left-h.left,y=h.right-i.right;if(g>0||y>0){let w=p.attrs;if(g>0&&(w=tf(w,0,g)),y>0&&(w=tf(w,w.colspan-y,y)),h.left<i.left){if(p=p.type.createAndFill(w),!p)throw RangeError(`Could not create cell with attrs ${JSON.stringify(w)}`)}else p=p.type.create(w,p.content)}if(h.top<i.top||h.bottom>i.bottom){const w={...p.attrs,rowspan:Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top)};h.top<i.top?p=p.type.createAndFill(w):p=p.type.create(w,p.content)}c.push(p)}o.push(e.child(a).copy(S.from(c)))}const l=this.isColSelection()&&this.isRowSelection()?e:o;return new A(S.from(l),1,1)}replace(e,t=A.empty){const r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){const{$from:l,$to:a}=i[o],c=e.mapping.slice(r);e.replace(c.map(l.pos),c.map(a.pos),o?A.empty:t)}const s=H.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);s&&e.setSelection(s)}replaceWith(e,t){this.replace(e,new A(S.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),r=Rt.get(t),i=this.$anchorCell.start(-1),s=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let o=0;o<s.length;o++)e(t.nodeAt(s[o]),i+s[o])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const r=e.node(-1),i=Rt.get(r),s=e.start(-1),o=i.findCell(e.pos-s),l=i.findCell(t.pos-s),a=e.node(0);return o.top<=l.top?(o.top>0&&(e=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(t=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(e=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new Pt(e,t)}isRowSelection(){const e=this.$anchorCell.node(-1),t=Rt.get(e),r=this.$anchorCell.start(-1),i=t.colCount(this.$anchorCell.pos-r),s=t.colCount(this.$headCell.pos-r);if(Math.min(i,s)>0)return!1;const o=i+this.$anchorCell.nodeAfter.attrs.colspan,l=s+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,l)==t.width}eq(e){return e instanceof Pt&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const r=e.node(-1),i=Rt.get(r),s=e.start(-1),o=i.findCell(e.pos-s),l=i.findCell(t.pos-s),a=e.node(0);return o.left<=l.left?(o.left>0&&(e=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(t=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(t=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(e=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new Pt(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new Pt(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){return new Pt(e.resolve(t),e.resolve(r))}getBookmark(){return new m1(this.$anchorCell.pos,this.$headCell.pos)}};mt.prototype.visible=!1,H.jsonID("cell",mt);var m1=class Vf{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Vf(e.map(this.anchor),e.map(this.head))}resolve(e){const t=e.resolve(this.anchor),r=e.resolve(this.head);return t.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&Zu(t,r)?new mt(t,r):H.near(r,1)}};new le("fix-tables");function nf(n){const e=n.selection,t=h1(n),r=t.node(-1),i=t.start(-1),s=Rt.get(r);return{...e instanceof mt?s.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):s.findCell(t.pos-i),tableStart:i,map:s,table:r}}function g1(n){return function(e,t){if(!Xu(e))return!1;if(t){const r=fl(e.schema),i=nf(e),s=e.tr,o=i.map.cellsInRect(n=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:n=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(a=>i.table.nodeAt(a));for(let a=0;a<o.length;a++)l[a].type==r.header_cell&&s.setNodeMarkup(i.tableStart+o[a],r.cell,l[a].attrs);if(s.steps.length==0)for(let a=0;a<o.length;a++)s.setNodeMarkup(i.tableStart+o[a],r.header_cell,l[a].attrs);t(s)}return!0}}function rf(n,e,t){const r=e.map.cellsInRect({left:0,top:0,right:n=="row"?e.map.width:1,bottom:n=="column"?e.map.height:1});for(let i=0;i<r.length;i++){const s=e.table.nodeAt(r[i]);if(s&&s.type!==t.header_cell)return!1}return!0}function hl(n,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?g1(n):function(t,r){if(!Xu(t))return!1;if(r){const i=fl(t.schema),s=nf(t),o=t.tr,l=rf("row",s,i),a=rf("column",s,i),d=(n==="column"?l:n==="row"?a:!1)?1:0,u=n=="column"?{left:0,top:d,right:1,bottom:s.map.height}:n=="row"?{left:d,top:0,right:s.map.width,bottom:1}:s,f=n=="column"?a?i.cell:i.header_cell:n=="row"?l?i.cell:i.header_cell:i.cell;s.map.cellsInRect(u).forEach(h=>{const p=h+s.tableStart,g=o.doc.nodeAt(p);g&&o.setNodeMarkup(p,f,g.attrs)}),r(o)}return!0}}hl("row",{useDeprecatedLogic:!0}),hl("column",{useDeprecatedLogic:!0}),hl("cell",{useDeprecatedLogic:!0});function ts(n,e){const t=n.selection;if(!(t instanceof mt))return!1;if(e){const r=n.tr,i=fl(n.schema).cell.createAndFill().content;t.forEachCell((s,o)=>{s.content.eq(i)||r.replace(r.mapping.map(o+1),r.mapping.map(o+s.nodeSize-1),new A(i,0,0))}),r.docChanged&&e(r)}return!0}no({ArrowLeft:rs("horiz",-1),ArrowRight:rs("horiz",1),ArrowUp:rs("vert",-1),ArrowDown:rs("vert",1),"Shift-ArrowLeft":is("horiz",-1),"Shift-ArrowRight":is("horiz",1),"Shift-ArrowUp":is("vert",-1),"Shift-ArrowDown":is("vert",1),Backspace:ts,"Mod-Backspace":ts,Delete:ts,"Mod-Delete":ts});function ns(n,e,t){return t.eq(n.selection)?!1:(e&&e(n.tr.setSelection(t).scrollIntoView()),!0)}function rs(n,e){return(t,r,i)=>{if(!i)return!1;const s=t.selection;if(s instanceof mt)return ns(t,r,H.near(s.$headCell,e));if(n!="horiz"&&!s.empty)return!1;const o=sf(i,n,e);if(o==null)return!1;if(n=="horiz")return ns(t,r,H.near(t.doc.resolve(s.head+e),e));{const l=t.doc.resolve(o),a=ef(l,n,e);let c;return a?c=H.near(a,1):e<0?c=H.near(t.doc.resolve(l.before(-1)),-1):c=H.near(t.doc.resolve(l.after(-1)),1),ns(t,r,c)}}}function is(n,e){return(t,r,i)=>{if(!i)return!1;const s=t.selection;let o;if(s instanceof mt)o=s;else{const a=sf(i,n,e);if(a==null)return!1;o=new mt(t.doc.resolve(a))}const l=ef(o.$headCell,n,e);return l?ns(t,r,new mt(o.$anchorCell,l)):!1}}function sf(n,e,t){if(!(n.state.selection instanceof F))return null;const{$head:r}=n.state.selection;for(let i=r.depth-1;i>=0;i--){const s=r.node(i);if((t<0?r.index(i):r.indexAfter(i))!=(t<0?0:s.childCount))return null;if(s.type.spec.tableRole=="cell"||s.type.spec.tableRole=="header_cell"){const l=r.before(i),a=e=="vert"?t>0?"down":"up":t>0?"right":"left";return n.endOfTextblock(a)?l:null}}return null}new le("tableColumnResizing");function y1(n,e){const t=Math.min(n.top,e.top),r=Math.max(n.bottom,e.bottom),i=Math.min(n.left,e.left),o=Math.max(n.right,e.right)-i,l=r-t,a=i,c=t;return new DOMRect(a,c,o,l)}var b1=class{constructor({editor:n,element:e,view:t,updateDelay:r=250,resizeDelay:i=60,shouldShow:s,appendTo:o,getReferencedVirtualElement:l,options:a}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:d,state:u,from:f,to:h})=>{const{doc:p,selection:g}=u,{empty:y}=g,w=!p.textBetween(f,h).length&&ko(u.selection),k=this.element.contains(document.activeElement);return!(!(d.hasFocus()||k)||y||w||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:d})=>{var u;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}d?.relatedTarget&&((u=this.element.parentNode)!=null&&u.contains(d.relatedTarget))||d?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(d,u)=>{const f=!u?.selection.eq(d.state.selection),h=!u?.doc.eq(d.state.doc);!f&&!h||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(d,f,h,u)},this.updateDelay))},this.updateHandler=(d,u,f,h)=>{const{composing:p}=d;if(p||!u&&!f)return;if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()},this.transactionHandler=({transaction:d})=>{d.getMeta("bubbleMenu")==="updatePosition"&&this.updatePosition()};var c;this.editor=n,this.element=e,this.view=t,this.updateDelay=r,this.resizeDelay=i,this.appendTo=o,this.scrollTarget=(c=a?.scrollTarget)!=null?c:window,this.getReferencedVirtualElement=l,this.floatingUIOptions={...this.floatingUIOptions,...a},this.element.tabIndex=0,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(t,t.state),this.getShouldShow()&&this.show()}get middlewares(){const n=[];return this.floatingUIOptions.flip&&n.push(Wu(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&n.push(Uu(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&n.push(Fu(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&n.push(Ju(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&n.push(Ku(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&n.push(ju(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&n.push(qu(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&n.push(Gu(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),n}get virtualElement(){var n;const{selection:e}=this.editor.state,t=(n=this.getReferencedVirtualElement)==null?void 0:n.call(this);if(t)return t;const r=pd(this.view,e.from,e.to);let i={getBoundingClientRect:()=>r,getClientRects:()=>[r]};if(e instanceof B){let s=this.view.nodeDOM(e.from);const o=s.dataset.nodeViewWrapper?s:s.querySelector("[data-node-view-wrapper]");o&&(s=o),s&&(i={getBoundingClientRect:()=>s.getBoundingClientRect(),getClientRects:()=>[s.getBoundingClientRect()]})}if(e instanceof mt){const{$anchorCell:s,$headCell:o}=e,l=s?s.pos:o.pos,a=o?o.pos:s.pos,c=this.view.nodeDOM(l),d=this.view.nodeDOM(a);if(!c||!d)return;const u=c===d?c.getBoundingClientRect():y1(c.getBoundingClientRect(),d.getBoundingClientRect());i={getBoundingClientRect:()=>u,getClientRects:()=>[u]}}return i}updatePosition(){const n=this.virtualElement;n&&Yu(n,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:r})=>{this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(n,e){const{state:t}=n,r=t.selection.from!==t.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(n,e);return}const i=!e?.selection.eq(n.state.selection),s=!e?.doc.eq(n.state.doc);this.updateHandler(n,i,s,e)}getShouldShow(n){var e;const{state:t}=this.view,{selection:r}=t,{ranges:i}=r,s=Math.min(...i.map(a=>a.$from.pos)),o=Math.max(...i.map(a=>a.$to.pos));return(e=this.shouldShow)==null?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:t,oldState:n,from:s,to:o})}show(){var n;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(n=e??this.view.dom.parentElement)==null||n.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},of=n=>new se({key:typeof n.pluginKey=="string"?new le(n.pluginKey):n.pluginKey,view:e=>new b1({view:e,...n})});de.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[of({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var w1=m.defineComponent({name:"BubbleMenu",inheritAttrs:!1,props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},resizeDelay:{type:Number,default:void 0},options:{type:Object,default:()=>({})},appendTo:{type:Object,default:void 0},shouldShow:{type:Function,default:null},getReferencedVirtualElement:{type:Function,default:void 0}},setup(n,{slots:e,attrs:t}){const r=m.ref(null);return m.onMounted(()=>{const{editor:i,options:s,pluginKey:o,resizeDelay:l,appendTo:a,shouldShow:c,getReferencedVirtualElement:d,updateDelay:u}=n;r.value&&(r.value.style.visibility="hidden",r.value.style.position="absolute",r.value.remove(),i.registerPlugin(of({editor:i,element:r.value,options:s,pluginKey:o,resizeDelay:l,appendTo:a,shouldShow:c,getReferencedVirtualElement:d,updateDelay:u})))}),m.onBeforeUnmount(()=>{const{pluginKey:i,editor:s}=n;s.unregisterPlugin(i)}),()=>{var i;return m.h(m.Teleport,{to:"body"},m.h("div",{...t,ref:r},(i=e.default)==null?void 0:i.call(e)))}}}),k1=class{constructor({editor:n,element:e,view:t,options:r,appendTo:i,shouldShow:s}){this.preventHide=!1,this.isVisible=!1,this.shouldShow=({view:o,state:l})=>{const{selection:a}=l,{$anchor:c,empty:d}=a,u=c.depth===1,f=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent&&c.parent.childCount===0&&!this.getTextContent(c.parent);return!(!o.hasFocus()||!d||!u||!f||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(o,l,a,c)=>{const{composing:d}=o;if(d||!l&&!a)return;if(!this.getShouldShow(c)){this.hide();return}this.updatePosition(),this.show()},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var l;if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&((l=this.element.parentNode)!=null&&l.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.editor=n,this.element=e,this.view=t,this.appendTo=i,this.floatingUIOptions={...this.floatingUIOptions,...r},this.element.tabIndex=0,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.update(t,t.state),this.getShouldShow()&&this.show()}getTextContent(n){return sd(n,{textSerializers:po(this.editor.schema)})}get middlewares(){const n=[];return this.floatingUIOptions.flip&&n.push(Wu(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&n.push(Uu(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&n.push(Fu(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&n.push(Ju(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&n.push(Ku(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&n.push(ju(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&n.push(qu(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&n.push(Gu(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),n}getShouldShow(n){var e;const{state:t}=this.view,{selection:r}=t,{ranges:i}=r,s=Math.min(...i.map(a=>a.$from.pos)),o=Math.max(...i.map(a=>a.$to.pos));return(e=this.shouldShow)==null?void 0:e.call(this,{editor:this.editor,view:this.view,state:t,oldState:n,from:s,to:o})}updatePosition(){const{selection:n}=this.editor.state,e=pd(this.view,n.from,n.to);Yu({getBoundingClientRect:()=>e,getClientRects:()=>[e]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:r,y:i,strategy:s})=>{this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${r}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(n,e){const t=!e?.selection.eq(n.state.selection),r=!e?.doc.eq(n.state.doc);this.updateHandler(n,t,r,e)}show(){var n;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(n=e??this.view.dom.parentElement)==null||n.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},lf=n=>new se({key:typeof n.pluginKey=="string"?new le(n.pluginKey):n.pluginKey,view:e=>new k1({view:e,...n})});de.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[lf({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}}),m.defineComponent({name:"FloatingMenu",inheritAttrs:!1,props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},options:{type:Object,default:()=>({})},appendTo:{type:Object,default:void 0},shouldShow:{type:Function,default:null}},setup(n,{slots:e,attrs:t}){const r=m.ref(null);return m.onMounted(()=>{const{pluginKey:i,editor:s,options:o,appendTo:l,shouldShow:a}=n;r.value&&(r.value.style.visibility="hidden",r.value.style.position="absolute",r.value.remove(),s.registerPlugin(lf({pluginKey:i,editor:s,element:r.value,options:o,appendTo:l,shouldShow:a})))}),m.onBeforeUnmount(()=>{const{pluginKey:i,editor:s}=n;s.unregisterPlugin(i)}),()=>{var i;return m.h(m.Teleport,{to:"body"},m.h("div",{...t,ref:r},(i=e.default)==null?void 0:i.call(e)))}}});const x1={class:"sus-bubble-menu"},S1=Yt(m.defineComponent({__name:"BubbleMenu",props:{editor:{},showMenu:{type:Boolean}},setup(n){const e=n,t=m.ref(""),r=m.ref(!1);function i({editor:l}){const{from:a,to:c}=l.state.selection;if(a===c){const{$anchor:d}=l.state.selection;return l.isActive("link")}return l.isActive("link")}function s(){if(r.value){r.value=!1;return}t.value=e.editor?.getAttributes("link").href,r.value=!0}function o(){if(!t.value){e.editor?.chain().focus().extendMarkRange("link").unsetLink().run(),r.value=!1;return}e.editor?.chain().focus().extendMarkRange("link").setLink({href:t.value}).run(),r.value=!1}return(l,a)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.withDirectives(m.createElementVNode("div",{class:"sus-bubble-mask",onClick:a[2]||(a[2]=c=>r.value=!1)},[m.createElementVNode("div",{class:"sus-link",onClick:a[1]||(a[1]=m.withModifiers(()=>{},["stop"]))},[m.withDirectives(m.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=c=>t.value=c),onKeyup:m.withKeys(o,["enter"]),class:"sus-link-input",type:"text",placeholder:"请输入链接"},null,544),[[m.vModelText,t.value]]),m.createElementVNode("button",{onClick:o,title:"确定"},[...a[4]||(a[4]=[m.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-1bbeca5c><rect width="24" height="24" fill="none" data-v-1bbeca5c></rect><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-1bbeca5c><path d="M15 2.458A10 10 0 0 0 12 2C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10a10 10 0 0 0-.458-3" data-v-1bbeca5c></path><path stroke-linejoin="round" d="M8.5 9.5L12 13l9-10" data-v-1bbeca5c></path></g></svg>',1)])])])],512),[[m.vShow,r.value]]),n.editor&&n.showMenu?(m.openBlock(),m.createBlock(m.unref(w1),{key:0,editor:n.editor,options:{placement:"bottom",offset:8,shouldShow:i}},{default:m.withCtx(()=>[m.createElementVNode("div",x1,[m.createElementVNode("button",{onClick:s,title:"添加链接"},[...a[5]||(a[5]=[m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[m.createElementVNode("path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}),m.createElementVNode("path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}),m.createElementVNode("line",{x1:"8",x2:"16",y1:"12",y2:"12"})],-1)])]),m.createElementVNode("button",{onClick:a[3]||(a[3]=c=>n.editor.commands.unsetAllMarks()),title:"清除当前选中格式"},[...a[6]||(a[6]=[m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[m.createElementVNode("path",{d:"M4 7V4h16v3"}),m.createElementVNode("path",{d:"M5 20h6"}),m.createElementVNode("path",{d:"M13 4 8 20"}),m.createElementVNode("path",{d:"m15 15 5 5"}),m.createElementVNode("path",{d:"m20 15-5 5"})],-1)])])])]),_:1},8,["editor","options"])):m.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-1bbeca5c"]]),E1=$e.create({name:"emoji",inline:!0,group:"inline",atom:!0,addAttributes(){return{name:{default:null},src:{default:null}}},parseHTML(){return[{tag:"span[data-type='emoji']"}]},renderHTML({HTMLAttributes:n}){return["span",{"data-type":"emoji",class:"emoji",contenteditable:"false"},["img",ce(n,{src:n.src,alt:n.name,class:"emoji",draggable:"false",loading:"lazy",align:"absmiddle"})]]}});function C1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pl,af;function M1(){if(af)return pl;af=1;function n(b){return b instanceof Map?b.clear=b.delete=b.set=function(){throw new Error("map is read-only")}:b instanceof Set&&(b.add=b.clear=b.delete=function(){throw new Error("set is read-only")}),Object.freeze(b),Object.getOwnPropertyNames(b).forEach(x=>{const N=b[x],q=typeof N;(q==="object"||q==="function")&&!Object.isFrozen(N)&&n(N)}),b}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(b){return b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(b,...x){const N=Object.create(null);for(const q in b)N[q]=b[q];return x.forEach(function(q){for(const me in q)N[me]=q[me]}),N}const i="</span>",s=b=>!!b.scope,o=(b,{prefix:x})=>{if(b.startsWith("language:"))return b.replace("language:","language-");if(b.includes(".")){const N=b.split(".");return[`${x}${N.shift()}`,...N.map((q,me)=>`${q}${"_".repeat(me+1)}`)].join(" ")}return`${x}${b}`};class l{constructor(x,N){this.buffer="",this.classPrefix=N.classPrefix,x.walk(this)}addText(x){this.buffer+=t(x)}openNode(x){if(!s(x))return;const N=o(x.scope,{prefix:this.classPrefix});this.span(N)}closeNode(x){s(x)&&(this.buffer+=i)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const a=(b={})=>{const x={children:[]};return Object.assign(x,b),x};class c{constructor(){this.rootNode=a(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const N=a({scope:x});this.add(N),this.stack.push(N)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,N){return typeof N=="string"?x.addText(N):N.children&&(x.openNode(N),N.children.forEach(q=>this._walk(x,q)),x.closeNode(N)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(N=>typeof N=="string")?x.children=[x.children.join("")]:x.children.forEach(N=>{c._collapse(N)}))}}class d extends c{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,N){const q=x.root;N&&(q.scope=`language:${N}`),this.add(q)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(b){return b?typeof b=="string"?b:b.source:null}function f(b){return g("(?=",b,")")}function h(b){return g("(?:",b,")*")}function p(b){return g("(?:",b,")?")}function g(...b){return b.map(N=>u(N)).join("")}function y(b){const x=b[b.length-1];return typeof x=="object"&&x.constructor===Object?(b.splice(b.length-1,1),x):{}}function w(...b){return"("+(y(b).capture?"":"?:")+b.map(q=>u(q)).join("|")+")"}function k(b){return new RegExp(b.toString()+"|").exec("").length-1}function E(b,x){const N=b&&b.exec(x);return N&&N.index===0}const D=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(b,{joinWith:x}){let N=0;return b.map(q=>{N+=1;const me=N;let ge=u(q),L="";for(;ge.length>0;){const P=D.exec(ge);if(!P){L+=ge;break}L+=ge.substring(0,P.index),ge=ge.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?L+="\\"+String(Number(P[1])+me):(L+=P[0],P[0]==="("&&N++)}return L}).map(q=>`(${q})`).join(x)}const I=/\b\B/,T="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",K="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",U="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",X=(b={})=>{const x=/^#![ ]*\//;return b.binary&&(b.begin=g(x,/.*\b/,b.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(N,q)=>{N.index!==0&&q.ignoreMatch()}},b)},Z={begin:"\\\\[\\s\\S]",relevance:0},ke={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Z]},he={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Z]},pe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Me=function(b,x,N={}){const q=r({scope:"comment",begin:b,end:x,contains:[]},N);q.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const me=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return q.contains.push({begin:g(/[ ]+/,"(",me,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),q},gt=Me("//","$"),ml=Me("/\\*","\\*/"),ok=Me("#","$"),lk={scope:"number",begin:K,relevance:0},ak={scope:"number",begin:j,relevance:0},ck={scope:"number",begin:U,relevance:0},dk={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Z,{begin:/\[/,end:/\]/,relevance:0,contains:[Z]}]},uk={scope:"title",begin:T,relevance:0},fk={scope:"title",begin:_,relevance:0},hk={begin:"\\.\\s*"+_,relevance:0};var ls=Object.freeze({__proto__:null,APOS_STRING_MODE:ke,BACKSLASH_ESCAPE:Z,BINARY_NUMBER_MODE:ck,BINARY_NUMBER_RE:U,COMMENT:Me,C_BLOCK_COMMENT_MODE:ml,C_LINE_COMMENT_MODE:gt,C_NUMBER_MODE:ak,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(b){return Object.assign(b,{"on:begin":(x,N)=>{N.data._beginMatch=x[1]},"on:end":(x,N)=>{N.data._beginMatch!==x[1]&&N.ignoreMatch()}})},HASH_COMMENT_MODE:ok,IDENT_RE:T,MATCH_NOTHING_RE:I,METHOD_GUARD:hk,NUMBER_MODE:lk,NUMBER_RE:K,PHRASAL_WORDS_MODE:pe,QUOTE_STRING_MODE:he,REGEXP_MODE:dk,RE_STARTERS_RE:O,SHEBANG:X,TITLE_MODE:uk,UNDERSCORE_IDENT_RE:_,UNDERSCORE_TITLE_MODE:fk});function pk(b,x){b.input[b.index-1]==="."&&x.ignoreMatch()}function mk(b,x){b.className!==void 0&&(b.scope=b.className,delete b.className)}function gk(b,x){x&&b.beginKeywords&&(b.begin="\\b("+b.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",b.__beforeBegin=pk,b.keywords=b.keywords||b.beginKeywords,delete b.beginKeywords,b.relevance===void 0&&(b.relevance=0))}function yk(b,x){Array.isArray(b.illegal)&&(b.illegal=w(...b.illegal))}function bk(b,x){if(b.match){if(b.begin||b.end)throw new Error("begin & end are not supported with match");b.begin=b.match,delete b.match}}function wk(b,x){b.relevance===void 0&&(b.relevance=1)}const kk=(b,x)=>{if(!b.beforeMatch)return;if(b.starts)throw new Error("beforeMatch cannot be used with starts");const N=Object.assign({},b);Object.keys(b).forEach(q=>{delete b[q]}),b.keywords=N.keywords,b.begin=g(N.beforeMatch,f(N.begin)),b.starts={relevance:0,contains:[Object.assign(N,{endsParent:!0})]},b.relevance=0,delete N.beforeMatch},xk=["of","and","for","in","not","or","if","then","parent","list","value"],Sk="keyword";function yf(b,x,N=Sk){const q=Object.create(null);return typeof b=="string"?me(N,b.split(" ")):Array.isArray(b)?me(N,b):Object.keys(b).forEach(function(ge){Object.assign(q,yf(b[ge],x,ge))}),q;function me(ge,L){x&&(L=L.map(P=>P.toLowerCase())),L.forEach(function(P){const W=P.split("|");q[W[0]]=[ge,Ek(W[0],W[1])]})}}function Ek(b,x){return x?Number(x):Ck(b)?0:1}function Ck(b){return xk.includes(b.toLowerCase())}const bf={},En=b=>{console.error(b)},wf=(b,...x)=>{console.log(`WARN: ${b}`,...x)},Un=(b,x)=>{bf[`${b}/${x}`]||(console.log(`Deprecated as of ${b}. ${x}`),bf[`${b}/${x}`]=!0)},as=new Error;function kf(b,x,{key:N}){let q=0;const me=b[N],ge={},L={};for(let P=1;P<=x.length;P++)L[P+q]=me[P],ge[P+q]=!0,q+=k(x[P-1]);b[N]=L,b[N]._emit=ge,b[N]._multi=!0}function Mk(b){if(Array.isArray(b.begin)){if(b.skip||b.excludeBegin||b.returnBegin)throw En("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),as;if(typeof b.beginScope!="object"||b.beginScope===null)throw En("beginScope must be object"),as;kf(b,b.begin,{key:"beginScope"}),b.begin=v(b.begin,{joinWith:""})}}function vk(b){if(Array.isArray(b.end)){if(b.skip||b.excludeEnd||b.returnEnd)throw En("skip, excludeEnd, returnEnd not compatible with endScope: {}"),as;if(typeof b.endScope!="object"||b.endScope===null)throw En("endScope must be object"),as;kf(b,b.end,{key:"endScope"}),b.end=v(b.end,{joinWith:""})}}function Tk(b){b.scope&&typeof b.scope=="object"&&b.scope!==null&&(b.beginScope=b.scope,delete b.scope)}function Ok(b){Tk(b),typeof b.beginScope=="string"&&(b.beginScope={_wrap:b.beginScope}),typeof b.endScope=="string"&&(b.endScope={_wrap:b.endScope}),Mk(b),vk(b)}function Nk(b){function x(L,P){return new RegExp(u(L),"m"+(b.case_insensitive?"i":"")+(b.unicodeRegex?"u":"")+(P?"g":""))}class N{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,W){W.position=this.position++,this.matchIndexes[this.matchAt]=W,this.regexes.push([W,P]),this.matchAt+=k(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(W=>W[1]);this.matcherRe=x(v(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const W=this.matcherRe.exec(P);if(!W)return null;const ve=W.findIndex((Tr,yl)=>yl>0&&Tr!==void 0),we=this.matchIndexes[ve];return W.splice(0,ve),Object.assign(W,we)}}class q{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(P){if(this.multiRegexes[P])return this.multiRegexes[P];const W=new N;return this.rules.slice(P).forEach(([ve,we])=>W.addRule(ve,we)),W.compile(),this.multiRegexes[P]=W,W}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,W){this.rules.push([P,W]),W.type==="begin"&&this.count++}exec(P){const W=this.getMatcher(this.regexIndex);W.lastIndex=this.lastIndex;let ve=W.exec(P);if(this.resumingScanAtSamePosition()&&!(ve&&ve.index===this.lastIndex)){const we=this.getMatcher(0);we.lastIndex=this.lastIndex+1,ve=we.exec(P)}return ve&&(this.regexIndex+=ve.position+1,this.regexIndex===this.count&&this.considerAll()),ve}}function me(L){const P=new q;return L.contains.forEach(W=>P.addRule(W.begin,{rule:W,type:"begin"})),L.terminatorEnd&&P.addRule(L.terminatorEnd,{type:"end"}),L.illegal&&P.addRule(L.illegal,{type:"illegal"}),P}function ge(L,P){const W=L;if(L.isCompiled)return W;[mk,bk,Ok,kk].forEach(we=>we(L,P)),b.compilerExtensions.forEach(we=>we(L,P)),L.__beforeBegin=null,[gk,yk,wk].forEach(we=>we(L,P)),L.isCompiled=!0;let ve=null;return typeof L.keywords=="object"&&L.keywords.$pattern&&(L.keywords=Object.assign({},L.keywords),ve=L.keywords.$pattern,delete L.keywords.$pattern),ve=ve||/\w+/,L.keywords&&(L.keywords=yf(L.keywords,b.case_insensitive)),W.keywordPatternRe=x(ve,!0),P&&(L.begin||(L.begin=/\B|\b/),W.beginRe=x(W.begin),!L.end&&!L.endsWithParent&&(L.end=/\B|\b/),L.end&&(W.endRe=x(W.end)),W.terminatorEnd=u(W.end)||"",L.endsWithParent&&P.terminatorEnd&&(W.terminatorEnd+=(L.end?"|":"")+P.terminatorEnd)),L.illegal&&(W.illegalRe=x(L.illegal)),L.contains||(L.contains=[]),L.contains=[].concat(...L.contains.map(function(we){return Ak(we==="self"?L:we)})),L.contains.forEach(function(we){ge(we,W)}),L.starts&&ge(L.starts,P),W.matcher=me(W),W}if(b.compilerExtensions||(b.compilerExtensions=[]),b.contains&&b.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return b.classNameAliases=r(b.classNameAliases||{}),ge(b)}function xf(b){return b?b.endsWithParent||xf(b.starts):!1}function Ak(b){return b.variants&&!b.cachedVariants&&(b.cachedVariants=b.variants.map(function(x){return r(b,{variants:null},x)})),b.cachedVariants?b.cachedVariants:xf(b)?r(b,{starts:b.starts?r(b.starts):null}):Object.isFrozen(b)?r(b):b}var Dk="11.11.1";class Rk extends Error{constructor(x,N){super(x),this.name="HTMLInjectionError",this.html=N}}const gl=t,Sf=r,Ef=Symbol("nomatch"),Ik=7,Cf=function(b){const x=Object.create(null),N=Object.create(null),q=[];let me=!0;const ge="Could not find the language '{}', did you forget to load/include a language module?",L={disableAutodetect:!0,name:"Plain text",contains:[]};let P={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function W(M){return P.noHighlightRe.test(M)}function ve(M){let z=M.className+" ";z+=M.parentNode?M.parentNode.className:"";const Q=P.languageDetectRe.exec(z);if(Q){const re=nn(Q[1]);return re||(wf(ge.replace("{}",Q[1])),wf("Falling back to no-highlight mode for this block.",M)),re?Q[1]:"no-highlight"}return z.split(/\s+/).find(re=>W(re)||nn(re))}function we(M,z,Q){let re="",xe="";typeof z=="object"?(re=M,Q=z.ignoreIllegals,xe=z.language):(Un("10.7.0","highlight(lang, code, ...args) has been deprecated."),Un("10.7.0",`Please use highlight(code, options) instead.
105
105
  https://github.com/highlightjs/highlight.js/issues/2277`),xe=M,re=z),Q===void 0&&(Q=!0);const ot={code:re,language:xe};ds("before:highlight",ot);const rn=ot.result?ot.result:Tr(ot.language,ot.code,Q);return rn.code=ot.code,ds("after:highlight",rn),rn}function Tr(M,z,Q,re){const xe=Object.create(null);function ot(R,V){return R.keywords[V]}function rn(){if(!J.keywords){Ae.addText(ie);return}let R=0;J.keywordPatternRe.lastIndex=0;let V=J.keywordPatternRe.exec(ie),Y="";for(;V;){Y+=ie.substring(R,V.index);const te=bt.case_insensitive?V[0].toLowerCase():V[0],Le=ot(J,te);if(Le){const[It,Yk]=Le;if(Ae.addText(Y),Y="",xe[te]=(xe[te]||0)+1,xe[te]<=Ik&&(hs+=Yk),It.startsWith("_"))Y+=V[0];else{const Xk=bt.classNameAliases[It]||It;yt(V[0],Xk)}}else Y+=V[0];R=J.keywordPatternRe.lastIndex,V=J.keywordPatternRe.exec(ie)}Y+=ie.substring(R),Ae.addText(Y)}function us(){if(ie==="")return;let R=null;if(typeof J.subLanguage=="string"){if(!x[J.subLanguage]){Ae.addText(ie);return}R=Tr(J.subLanguage,ie,!0,Rf[J.subLanguage]),Rf[J.subLanguage]=R._top}else R=bl(ie,J.subLanguage.length?J.subLanguage:null);J.relevance>0&&(hs+=R.relevance),Ae.__addSublanguage(R._emitter,R.language)}function qe(){J.subLanguage!=null?us():rn(),ie=""}function yt(R,V){R!==""&&(Ae.startScope(V),Ae.addText(R),Ae.endScope())}function Of(R,V){let Y=1;const te=V.length-1;for(;Y<=te;){if(!R._emit[Y]){Y++;continue}const Le=bt.classNameAliases[R[Y]]||R[Y],It=V[Y];Le?yt(It,Le):(ie=It,rn(),ie=""),Y++}}function Nf(R,V){return R.scope&&typeof R.scope=="string"&&Ae.openNode(bt.classNameAliases[R.scope]||R.scope),R.beginScope&&(R.beginScope._wrap?(yt(ie,bt.classNameAliases[R.beginScope._wrap]||R.beginScope._wrap),ie=""):R.beginScope._multi&&(Of(R.beginScope,V),ie="")),J=Object.create(R,{parent:{value:J}}),J}function Af(R,V,Y){let te=E(R.endRe,Y);if(te){if(R["on:end"]){const Le=new e(R);R["on:end"](V,Le),Le.isMatchIgnored&&(te=!1)}if(te){for(;R.endsParent&&R.parent;)R=R.parent;return R}}if(R.endsWithParent)return Af(R.parent,V,Y)}function Wk(R){return J.matcher.regexIndex===0?(ie+=R[0],1):(Sl=!0,0)}function Kk(R){const V=R[0],Y=R.rule,te=new e(Y),Le=[Y.__beforeBegin,Y["on:begin"]];for(const It of Le)if(It&&(It(R,te),te.isMatchIgnored))return Wk(V);return Y.skip?ie+=V:(Y.excludeBegin&&(ie+=V),qe(),!Y.returnBegin&&!Y.excludeBegin&&(ie=V)),Nf(Y,R),Y.returnBegin?0:V.length}function qk(R){const V=R[0],Y=z.substring(R.index),te=Af(J,R,Y);if(!te)return Ef;const Le=J;J.endScope&&J.endScope._wrap?(qe(),yt(V,J.endScope._wrap)):J.endScope&&J.endScope._multi?(qe(),Of(J.endScope,R)):Le.skip?ie+=V:(Le.returnEnd||Le.excludeEnd||(ie+=V),qe(),Le.excludeEnd&&(ie=V));do J.scope&&Ae.closeNode(),!J.skip&&!J.subLanguage&&(hs+=J.relevance),J=J.parent;while(J!==te.parent);return te.starts&&Nf(te.starts,R),Le.returnEnd?0:V.length}function Jk(){const R=[];for(let V=J;V!==bt;V=V.parent)V.scope&&R.unshift(V.scope);R.forEach(V=>Ae.openNode(V))}let fs={};function Df(R,V){const Y=V&&V[0];if(ie+=R,Y==null)return qe(),0;if(fs.type==="begin"&&V.type==="end"&&fs.index===V.index&&Y===""){if(ie+=z.slice(V.index,V.index+1),!me){const te=new Error(`0 width match regex (${M})`);throw te.languageName=M,te.badRule=fs.rule,te}return 1}if(fs=V,V.type==="begin")return Kk(V);if(V.type==="illegal"&&!Q){const te=new Error('Illegal lexeme "'+Y+'" for mode "'+(J.scope||"<unnamed>")+'"');throw te.mode=J,te}else if(V.type==="end"){const te=qk(V);if(te!==Ef)return te}if(V.type==="illegal"&&Y==="")return ie+=`
106
106
  `,1;if(xl>1e5&&xl>V.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ie+=Y,Y.length}const bt=nn(M);if(!bt)throw En(ge.replace("{}",M)),new Error('Unknown language: "'+M+'"');const Gk=Nk(bt);let kl="",J=re||Gk;const Rf={},Ae=new P.__emitter(P);Jk();let ie="",hs=0,Cn=0,xl=0,Sl=!1;try{if(bt.__emitTokens)bt.__emitTokens(z,Ae);else{for(J.matcher.considerAll();;){xl++,Sl?Sl=!1:J.matcher.considerAll(),J.matcher.lastIndex=Cn;const R=J.matcher.exec(z);if(!R)break;const V=z.substring(Cn,R.index),Y=Df(V,R);Cn=R.index+Y}Df(z.substring(Cn))}return Ae.finalize(),kl=Ae.toHTML(),{language:M,value:kl,relevance:hs,illegal:!1,_emitter:Ae,_top:J}}catch(R){if(R.message&&R.message.includes("Illegal"))return{language:M,value:gl(z),illegal:!0,relevance:0,_illegalBy:{message:R.message,index:Cn,context:z.slice(Cn-100,Cn+100),mode:R.mode,resultSoFar:kl},_emitter:Ae};if(me)return{language:M,value:gl(z),illegal:!1,relevance:0,errorRaised:R,_emitter:Ae,_top:J};throw R}}function yl(M){const z={value:gl(M),illegal:!1,relevance:0,_top:L,_emitter:new P.__emitter(P)};return z._emitter.addText(M),z}function bl(M,z){z=z||P.languages||Object.keys(x);const Q=yl(M),re=z.filter(nn).filter(Tf).map(qe=>Tr(qe,M,!1));re.unshift(Q);const xe=re.sort((qe,yt)=>{if(qe.relevance!==yt.relevance)return yt.relevance-qe.relevance;if(qe.language&&yt.language){if(nn(qe.language).supersetOf===yt.language)return 1;if(nn(yt.language).supersetOf===qe.language)return-1}return 0}),[ot,rn]=xe,us=ot;return us.secondBest=rn,us}function Pk(M,z,Q){const re=z&&N[z]||Q;M.classList.add("hljs"),M.classList.add(`language-${re}`)}function wl(M){let z=null;const Q=ve(M);if(W(Q))return;if(ds("before:highlightElement",{el:M,language:Q}),M.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",M);return}if(M.children.length>0&&(P.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),P.throwUnescapedHTML))throw new Rk("One of your code blocks includes unescaped HTML.",M.innerHTML);z=M;const re=z.textContent,xe=Q?we(re,{language:Q,ignoreIllegals:!0}):bl(re);M.innerHTML=xe.value,M.dataset.highlighted="yes",Pk(M,Q,xe.language),M.result={language:xe.language,re:xe.relevance,relevance:xe.relevance},xe.secondBest&&(M.secondBest={language:xe.secondBest.language,relevance:xe.secondBest.relevance}),ds("after:highlightElement",{el:M,result:xe,text:re})}function Lk(M){P=Sf(P,M)}const Bk=()=>{cs(),Un("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Vk(){cs(),Un("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Mf=!1;function cs(){function M(){cs()}if(document.readyState==="loading"){Mf||window.addEventListener("DOMContentLoaded",M,!1),Mf=!0;return}document.querySelectorAll(P.cssSelector).forEach(wl)}function _k(M,z){let Q=null;try{Q=z(b)}catch(re){if(En("Language definition for '{}' could not be registered.".replace("{}",M)),me)En(re);else throw re;Q=L}Q.name||(Q.name=M),x[M]=Q,Q.rawDefinition=z.bind(null,b),Q.aliases&&vf(Q.aliases,{languageName:M})}function $k(M){delete x[M];for(const z of Object.keys(N))N[z]===M&&delete N[z]}function zk(){return Object.keys(x)}function nn(M){return M=(M||"").toLowerCase(),x[M]||x[N[M]]}function vf(M,{languageName:z}){typeof M=="string"&&(M=[M]),M.forEach(Q=>{N[Q.toLowerCase()]=z})}function Tf(M){const z=nn(M);return z&&!z.disableAutodetect}function Hk(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=z=>{M["before:highlightBlock"](Object.assign({block:z.el},z))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=z=>{M["after:highlightBlock"](Object.assign({block:z.el},z))})}function Fk(M){Hk(M),q.push(M)}function jk(M){const z=q.indexOf(M);z!==-1&&q.splice(z,1)}function ds(M,z){const Q=M;q.forEach(function(re){re[Q]&&re[Q](z)})}function Uk(M){return Un("10.7.0","highlightBlock will be removed entirely in v12.0"),Un("10.7.0","Please use highlightElement now."),wl(M)}Object.assign(b,{highlight:we,highlightAuto:bl,highlightAll:cs,highlightElement:wl,highlightBlock:Uk,configure:Lk,initHighlighting:Bk,initHighlightingOnLoad:Vk,registerLanguage:_k,unregisterLanguage:$k,listLanguages:zk,getLanguage:nn,registerAliases:vf,autoDetection:Tf,inherit:Sf,addPlugin:Fk,removePlugin:jk}),b.debugMode=function(){me=!1},b.safeMode=function(){me=!0},b.versionString=Dk,b.regex={concat:g,lookahead:f,either:w,optional:p,anyNumberOfTimes:h};for(const M in ls)typeof ls[M]=="object"&&n(ls[M]);return Object.assign(b,ls),b},Wn=Cf({});return Wn.newInstance=()=>Cf({}),pl=Wn,Wn.HighlightJS=Wn,Wn.default=Wn,pl}var v1=M1();const T1=C1(v1);function cf(n,e=[]){return n.flatMap(t=>{const r=[...e,...t.properties?t.properties.className:[]];return t.children?cf(t.children,r):{text:t.value,classes:r}})}function df(n){return n.value||n.children||[]}function O1(n){return!!T1.getLanguage(n)}function uf({doc:n,name:e,lowlight:t,defaultLanguage:r}){const i=[];return co(n,s=>s.type.name===e).forEach(s=>{var o;let l=s.pos+1;const a=s.node.attrs.language||r,c=t.listLanguages(),d=a&&(c.includes(a)||O1(a)||(o=t.registered)!=null&&o.call(t,a))?df(t.highlight(a,s.node.textContent)):df(t.highlightAuto(s.node.textContent));cf(d).forEach(u=>{const f=l+u.text.length;if(u.classes.length){const h=Ie.inline(l,f,{class:u.classes.join(" ")});i.push(h)}l=f})}),ae.create(n,i)}function N1(n){return typeof n=="function"}function A1({name:n,lowlight:e,defaultLanguage:t}){if(!["highlight","highlightAuto","listLanguages"].every(i=>N1(e[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new se({key:new le("lowlight"),state:{init:(i,{doc:s})=>uf({doc:s,name:n,lowlight:e,defaultLanguage:t}),apply:(i,s,o,l)=>{const a=o.selection.$head.parent.type.name,c=l.selection.$head.parent.type.name,d=co(o.doc,f=>f.type.name===n),u=co(l.doc,f=>f.type.name===n);return i.docChanged&&([a,c].includes(n)||u.length!==d.length||i.steps.some(f=>f.from!==void 0&&f.to!==void 0&&d.some(h=>h.pos>=f.from&&h.pos+h.node.nodeSize<=f.to)))?uf({doc:i.doc,name:n,lowlight:e,defaultLanguage:t}):s.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}var D1=Zy.extend({addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){var n;return[...((n=this.parent)==null?void 0:n.call(this))||[],A1({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),R1=D1;const I1=["onClick"],P1={class:"sus-code-block-content"},L1=Yt(m.defineComponent({__name:"CodeBlockView",props:{editor:{},node:{},updateAttributes:{type:Function},selected:{type:Boolean}},setup(n){const e=n,t=m.ref(!1),r=m.ref(null),i=m.computed(()=>e.node.attrs.language||""),s=m.computed(()=>{const c=ff.find(d=>d.value===i.value);return c?c.label:"纯文本"});function o(c){e.updateAttributes({language:c||null}),t.value=!1}function l(){t.value=!t.value}function a(c){r.value&&!r.value.contains(c.target)&&(t.value=!1)}return m.onMounted(()=>{document.addEventListener("click",a)}),m.onUnmounted(()=>{document.removeEventListener("click",a)}),(c,d)=>(m.openBlock(),m.createBlock(m.unref(Ry),{class:m.normalizeClass(["sus-code-block-wrapper",{"is-selected":n.selected}])},{default:m.withCtx(()=>[m.createElementVNode("div",{class:"sus-code-block-toolbar",ref_key:"languageSelectRef",ref:r},[m.createElementVNode("button",{onClick:m.withModifiers(l,["stop"]),class:"sus-code-block-language-btn",title:"选择语言"},[m.createElementVNode("span",null,m.toDisplayString(s.value),1),d[1]||(d[1]=m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[m.createElementVNode("polyline",{points:"6 9 12 15 18 9"})],-1))]),t.value?(m.openBlock(),m.createElementBlock("div",{key:0,class:"sus-code-block-language-selector",onClick:d[0]||(d[0]=m.withModifiers(()=>{},["stop"]))},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(m.unref(ff),u=>(m.openBlock(),m.createElementBlock("div",{key:u.value,onClick:f=>o(u.value),class:m.normalizeClass(["sus-code-block-language-item",{active:i.value===u.value}])},m.toDisplayString(u.label),11,I1))),128))])):m.createCommentVNode("",!0)],512),m.createElementVNode("pre",P1,[d[2]||(d[2]=m.createTextVNode(" ",-1)),m.createElementVNode("code",null,[m.createVNode(m.unref(Dy))]),d[3]||(d[3]=m.createTextVNode(`
107
- `,-1))])]),_:1},8,["class"]))}}),[["__scopeId","data-v-d8f02dfd"]]),B1=_f.createLowlight(),ff=[{value:"",label:"纯文本"},{value:"java",label:"Java"},{value:"python",label:"Python"},{value:"shell",label:"Shell"},{value:"yaml",label:"YAML"},{value:"javascript",label:"JavaScript"},{value:"html",label:"HTML"}],V1=R1.extend({addNodeView(){return By(L1)}}).configure({lowlight:B1,defaultLanguage:null}),_1={class:"sus-comment"},$1={key:0,class:"sus-comment-avatar"},z1=["src"],H1={class:"sus-avatar-text-container"},F1={class:"sus-avatar-text"},j1={class:"sus-comment__main"},U1={key:0,class:"sus-comment__info"},W1={key:0,class:"sus-comment__info-input"},K1=["placeholder","title"],q1={key:1,class:"sus-comment__info-input"},J1=["placeholder","title"],G1={key:2,class:"sus-comment__info-input"},Y1=["placeholder","title"],X1={class:"sus-comment__editor-wrapper"},Q1={class:"sus-comment__footer"},Z1={class:"sus-comment__footer-toolbar"},ew={key:0,class:"sus-comment__footer-icon",title:"表情"},tw={key:1,class:"sus-upload sus-comment__footer-icon sus-comment__footer-icon"},nw={class:"sus-comment__footer-notify"},rw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},iw={class:"sus-comment__toolbar sus-comment-privacy"},sw={class:"sus-comment__toolbar-mask"},ow={class:"sus-preview-frame"},lw=["src"],aw={class:"sus-preview-index"},cw=["onClick"],hf=Yt(m.defineComponent({__name:"index",props:{reply:{},toolBar:{},infoBar:{},placeholder:{default:"支持常见的markdown语法,如图片、代码块等"},comment:{}},emits:["on-save","on-cancel","add-image","update-avatar"],setup(n,{expose:e,emit:t}){class r{articleId="";userName="";userEmail="";userWebsite="";userAvatar="";content="";contentText="";replyName="";parentId="";notify=0;privacy=!1}const i=n;e({updateImage:v,updatePreviewImage:T});const s=t,o=m.reactive({emojis:i.toolBar?.emoji?.emojis||[],showPanel:!1}),l=i.reply?.userName,a=m.ref("在此处留下你的足迹吧!(支持markdown语法)"),c=m.reactive(new r),d=m.ref(""),u=m.ref(null),f=m.ref([]),h=m.ref(null),p=i.comment?.privacy||!1,g={enable:i.infoBar?.enable===void 0?!0:i.infoBar.enable,name:{show:i.infoBar?.name?.show===void 0?!0:i.infoBar.name.show,placeholder:i.infoBar?.name?.placeholder||"昵称(必填)"},website:{show:i.infoBar?.website?.show===void 0?!0:i.infoBar.website.show,placeholder:i.infoBar?.website?.placeholder||"网址(https://)",tips:i.infoBar?.website?.tips||"点击昵称时可跳转"},email:{show:i.infoBar?.email?.show===void 0?!0:i.infoBar.email.show,placeholder:i.infoBar?.email?.placeholder||"邮箱(不会公开,仅用于通知回复)",tips:i.infoBar?.email?.tips||"输入QQ邮箱自动获取头像"}},y=Iy({extensions:[bb.configure({codeBlock:!1}),V1,xb,mb.configure({placeholder:i.placeholder}),I0.configure({openOnClick:!1,enableClickSelection:!0,HTMLAttributes:{class:"cursor-pointer",onclick:"return false;"}}),E1],editorProps:{handleDOMEvents:{mousedown:(U,O)=>O.target.closest("a")?(O.preventDefault(),O.stopPropagation(),setTimeout(()=>{y.value&&y.value.chain().focus().extendMarkRange("link").run()},0),!0):!1,click:(U,O)=>O.target.closest("a")?(O.preventDefault(),O.stopPropagation(),!0):!1}}});function w(){i.comment&&(c.privacy=i.comment.privacy===void 0?!1:i.comment.privacy,c.notify=i.comment.notify||1,c.userName=i.comment.userName||"",c.userEmail=i.comment.userEmail||"",c.userWebsite=i.comment.userWebsite||"",c.userAvatar=i.comment.userAvatar||"",c.content=i.comment.content||"",c.articleId=i.comment.articleId||"")}async function k(){if(!(!y||!y.value)){if(d.value=y.value.getHTML(),c.userWebsite&&(c.userWebsite.concat("http://")||c.userWebsite.concat("https://")||(c.userWebsite="https://"+c.userWebsite)),localStorage.setItem("user",JSON.stringify(c)),localStorage.setItem("comment-content",d.value),i.reply?.id&&i.reply?.id!="0"){const U=i.reply.parentId;c.parentId=U==="0"?i.reply.id:U,c.replyName=i.reply.userName,a.value="@"+l+":"}c.content=d.value,c.contentText=y.value.getText(),s("on-save",c,h.value)}}function E(){localStorage.setItem("comment-content",""),s("on-cancel")}function D(){s("add-image",u.value,h.value)}function v(U){h.value||(h.value=[]),!h.value||h.value.length==0?h.value=U:h.value=I(h.value,U[0]),f.value=[];for(let O=0;O<h.value.length;O++)f.value.push(URL.createObjectURL(h.value[O]))}function I(U,O){return[...U,O]}function T(U){f.value=U}function _(){s("update-avatar",c)}function K(){c.notify==1?c.notify=0:c.notify=1}function j(U){try{if(!h.value||!h.value.length||h.value.length<=1){h.value=[],f.value=[];return}h.value?.splice(U,1),f.value.splice(U,1)}catch(O){console.log("remove image error: ",O),h.value=[],f.value=[]}}return m.onMounted(()=>{if(!y||!y.value)return;w();const U=localStorage.getItem("user");if(c.content&&c.content.length>3)y.value.commands.setContent(c.content);else{const O=localStorage.getItem("comment-content");O&&y.value.commands.setContent(O)}if(U){const O=JSON.parse(U);c.userName=O.userName,c.userEmail=O.userEmail,c.userWebsite=O.userWebsite,_()}c.notify=1}),(U,O)=>(m.openBlock(),m.createElementBlock("div",_1,[O[14]||(O[14]=m.createStaticVNode('<div class="sus-comment__decoration" data-v-b5bf8cb4><div class="sus-decoration-corner top-left" data-v-b5bf8cb4></div><div class="sus-decoration-corner top-right" data-v-b5bf8cb4></div><div class="sus-decoration-corner bottom-left" data-v-b5bf8cb4></div><div class="sus-decoration-corner bottom-right" data-v-b5bf8cb4></div></div>',1)),g.enable?(m.openBlock(),m.createElementBlock("div",$1,[m.withDirectives(m.createElementVNode("img",{alt:"头像",src:c.userAvatar,class:"sus-avatar",onerror:"this.onerror=null,this.src='/error.webp'"},null,8,z1),[[m.vShow,!!c.userAvatar]]),m.withDirectives(m.createElementVNode("div",H1,[m.createElementVNode("div",F1,[m.createElementVNode("span",null,m.toDisplayString(c.userName.charAt(0)),1)])],512),[[m.vShow,!c.userAvatar]])])):m.createCommentVNode("",!0),m.createElementVNode("div",j1,[g.enable?(m.openBlock(),m.createElementBlock("div",U1,[g.name.show?(m.openBlock(),m.createElementBlock("div",W1,[O[5]||(O[5]=m.createElementVNode("label",{class:"sus-comment-label"},"Name",-1)),m.withDirectives(m.createElementVNode("input",{class:"sus-input sus-username",placeholder:g.name.placeholder,title:g.name.placeholder,"onUpdate:modelValue":O[0]||(O[0]=X=>c.userName=X),maxlength:"23"},null,8,K1),[[m.vModelText,c.userName]])])):m.createCommentVNode("",!0),g.website.show?(m.openBlock(),m.createElementBlock("div",q1,[O[6]||(O[6]=m.createElementVNode("label",{class:"sus-comment-label"},"Website",-1)),m.createVNode(m.unref(qn.OuOToolTip),{content:g.website.tips},{default:m.withCtx(()=>[m.withDirectives(m.createElementVNode("input",{class:"sus-input sus-web",placeholder:g.website.placeholder,title:g.website.placeholder,"onUpdate:modelValue":O[1]||(O[1]=X=>c.userWebsite=X),maxlength:"35"},null,8,J1),[[m.vModelText,c.userWebsite]])]),_:1},8,["content"])])):m.createCommentVNode("",!0),g.email.show?(m.openBlock(),m.createElementBlock("div",G1,[O[7]||(O[7]=m.createElementVNode("label",{class:"sus-comment-label"},"Email",-1)),m.createVNode(m.unref(qn.OuOToolTip),{content:g.email.tips},{default:m.withCtx(()=>[m.withDirectives(m.createElementVNode("input",{onBlur:_,class:"sus-input sus-email",placeholder:g.email.placeholder,title:g.email.placeholder,"onUpdate:modelValue":O[2]||(O[2]=X=>c.userEmail=X),maxlength:"35"},null,40,Y1),[[m.vModelText,c.userEmail]])]),_:1},8,["content"])])):m.createCommentVNode("",!0)])):m.createCommentVNode("",!0),m.createElementVNode("div",X1,[m.createVNode(S1,{editor:m.unref(y),showMenu:n.toolBar?.bubbleMenu?.show},null,8,["editor","showMenu"]),m.withDirectives(m.createVNode(zy,{class:"sus-emoji-panel-position",emoji:o,editor:m.unref(y)},null,8,["emoji","editor"]),[[m.vShow,o.showPanel]]),m.createVNode(m.unref(Ay),{class:"sus-comment-input sus-comment__editor",editor:m.unref(y)},null,8,["editor"])]),m.createElementVNode("div",Q1,[m.createElementVNode("div",Z1,[o.emojis.length>=0?(m.openBlock(),m.createElementBlock("div",ew,[(m.openBlock(),m.createElementBlock("svg",{onClick:O[3]||(O[3]=X=>o.showPanel=!o.showPanel),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[...O[8]||(O[8]=[m.createStaticVNode('<g fill="none" data-v-b5bf8cb4><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9 16c.85.63 1.885 1 3 1s2.15-.37 3-1" data-v-b5bf8cb4></path><path fill="currentColor" d="M16 10.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5s.448-1.5 1-1.5s1 .672 1 1.5" data-v-b5bf8cb4></path><ellipse cx="9" cy="10.5" fill="currentColor" rx="1" ry="1.5" data-v-b5bf8cb4></ellipse><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5" data-v-b5bf8cb4></path></g>',1)])]))])):m.createCommentVNode("",!0),n.toolBar?.image?(m.openBlock(),m.createElementBlock("div",tw,[m.createElementVNode("input",{ref_key:"imgRef",ref:u,onChange:D,type:"file",id:"upload-input",name:"image",accept:"image/*"},null,544),O[9]||(O[9]=m.createStaticVNode('<label for="upload-input" data-v-b5bf8cb4><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-b5bf8cb4><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-b5bf8cb4><path d="m2 12.5l1.752-1.533a2.3 2.3 0 0 1 3.14.105l4.29 4.29a2 2 0 0 0 2.564.222l.299-.21a3 3 0 0 1 3.731.225L21 18.5m-6-13h3.5m0 0H22m-3.5 0V9m0-3.5V2" data-v-b5bf8cb4></path><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12c0-1.128 0-2.122.02-3M12 2C7.286 2 4.929 2 3.464 3.464c-.424.425-.726.925-.94 1.536" data-v-b5bf8cb4></path></g></svg></label>',1))])):m.createCommentVNode("",!0),n.toolBar?.notify?(m.openBlock(),m.createElementBlock("div",{key:2,onClick:K,class:"sus-comment__footer-icon sus-comment__footer-icon"},[m.createVNode(m.unref(qn.OuOToolTip),{content:"收到回复后通知"},{default:m.withCtx(()=>[m.withDirectives(m.createElementVNode("div",nw,[...O[10]||(O[10]=[m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[m.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5",d:"M12 6v4m-4.5 9c.655 1.748 2.422 3 4.5 3q.367 0 .72-.05M16.5 19a4.5 4.5 0 0 1-1.302 1.84M9.107 2.674A6.5 6.5 0 0 1 12 2c3.727 0 6.75 3.136 6.75 7.005v.705a4.4 4.4 0 0 0 .692 2.375l1.108 1.724c1.011 1.575.239 3.716-1.52 4.214a25.8 25.8 0 0 1-14.06 0c-1.759-.498-2.531-2.639-1.52-4.213l1.108-1.725A4.4 4.4 0 0 0 5.25 9.71v-.705c0-1.074.233-2.092.65-3.002"})],-1)])],512),[[m.vShow,c.notify===1]])]),_:1}),m.createVNode(m.unref(qn.OuOToolTip),{content:"收到回复后不通知"},{default:m.withCtx(()=>[m.withDirectives((m.openBlock(),m.createElementBlock("svg",rw,[...O[11]||(O[11]=[m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5"},[m.createElementVNode("path",{"stroke-linejoin":"round",d:"M10 9h4l-4 4h4"}),m.createElementVNode("path",{d:"M7.5 19c.655 1.748 2.422 3 4.5 3q.367 0 .72-.05M16.5 19a4.5 4.5 0 0 1-1.302 1.84M9.107 2.674A6.5 6.5 0 0 1 12 2c3.727 0 6.75 3.136 6.75 7.005v.705a4.4 4.4 0 0 0 .692 2.375l1.108 1.724c1.011 1.575.239 3.716-1.52 4.214a25.8 25.8 0 0 1-14.06 0c-1.759-.498-2.531-2.639-1.52-4.213l1.108-1.725A4.4 4.4 0 0 0 5.25 9.71v-.705c0-1.074.233-2.092.65-3.002"})],-1)])],512)),[[m.vShow,c.notify!==1]])]),_:1})])):m.createCommentVNode("",!0)]),m.createElementVNode("div",{class:"sus-comment__footer-actions"},[m.createElementVNode("button",{class:"sus-button cancel",onClick:E},"取消"),m.createElementVNode("button",{class:"sus-button ok",onClick:k},"发送")])]),m.createElementVNode("div",iw,[m.withDirectives(m.createVNode(m.unref(qn.OuOCheckBox),{modelValue:c.privacy,"onUpdate:modelValue":O[4]||(O[4]=X=>c.privacy=X),checked:m.unref(p)},{default:m.withCtx(()=>[...O[12]||(O[12]=[m.createTextVNode(" 仅博主可见 ",-1)])]),_:1},8,["modelValue","checked"]),[[m.vShow,n.toolBar?.privacy?.show]]),m.withDirectives(m.createElementVNode("div",sw,null,512),[[m.vShow,n.toolBar?.privacy?.disable]])]),f.value&&f.value.length>0?(m.openBlock(),m.createBlock(m.TransitionGroup,{key:1,name:"sus-preview",tag:"div",class:"sus-comment__extend"},{default:m.withCtx(()=>[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(f.value,(X,Z)=>(m.openBlock(),m.createElementBlock("div",{class:"sus-comment__extend-img sus-comment__extend-item",key:X},[m.createElementVNode("div",ow,[m.createElementVNode("img",{class:"sus-img-item",src:X,alt:"",draggable:"false"},null,8,lw),m.createElementVNode("div",aw,m.toDisplayString(Z+1),1)]),m.createElementVNode("div",{onClick:ke=>j(Z),class:"sus-comment__extend-mask"},[...O[13]||(O[13]=[m.createElementVNode("div",{class:"sus-mask-inner"},[m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[m.createElementVNode("path",{"stroke-linecap":"round",d:"M20.5 6h-17m6 5l.5 5m4.5-5l-.5 5"}),m.createElementVNode("path",{d:"M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6"}),m.createElementVNode("path",{"stroke-linecap":"round",d:"M18.374 15.4c-.177 2.654-.266 3.981-1.131 4.79s-2.195.81-4.856.81h-.774c-2.66 0-3.99 0-4.856-.81c-.865-.809-.953-2.136-1.13-4.79l-.46-6.9m13.666 0l-.2 3"})])])],-1)])],8,cw)]))),128))]),_:1})):m.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-b5bf8cb4"]]);function dw(n){const e=new Date(n),t=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),s=new Date,o=s.getFullYear(),l=s.getMonth()+1,a=s.getDate();if(o===t&&l==r){const c=a-i;if(c===0)return"今天";if(c<7)return c+"天前"}return o===t?`${r}月${i}日`:`${t}年${r}月${i}日`}const uw={class:"sus-comment__item"},fw={class:"sus-comment-info-floor"},hw={class:"sus-comment-floor-body"},pw={class:"sus-comment-floor-num"},mw={class:"sus-comment__item__main"},gw={class:"sus-comment__item__content"},yw={key:0,class:"sus-comment__sus-comment-content-private"},bw=["innerHTML"],ww={key:1,class:"sus-comment-content-body"},kw=["innerHTML"],xw={class:"sus-comment-content-expand"},Sw={class:"sus-comment__item__meta"},Ew={class:"sus-comment-meta-author"},Cw={key:0,class:"sus-comment-tail-avatar"},Mw={key:0,class:"sus-comment-avatar-letter"},vw=["src"],Tw=["rel","href"],Ow={key:1,class:"sus-comment-author-tag"},Nw={key:2,class:"sus-item--reply-hint"},Aw={class:"sus-comment-meta-info"},Dw={class:"sus-comment-info-time"},Rw={class:"sus-comment-meta-actions"},Iw={key:0,class:"sus-comment__item__footer"},Pw={class:"sus-comment-footer-meta"},Lw={class:"sus-comment-footer-item sus-comment-meta-location"},Bw={key:0,class:"sus-comment-footer-item sus-comment-meta-device"},Vw={class:"sus-comment__item__watermark",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},ss=Yt(m.defineComponent({__name:"item",props:{comment:{},lineHeight:{},showFooter:{type:Boolean},num:{default:1}},emits:["on-reply","on-edit","on-remove"],setup(n,{emit:e}){const t=n,r=m.ref();m.ref();const i=m.ref(!1),s=e;function o(){r.value.style.display="block",i.value=!1}function l(){const h=r?.value?.clientHeight||0,p=t.lineHeight*5;h>=p&&(i.value=!0)}function a(){s("on-reply",t.comment)}function c(){s("on-edit",t.comment)}function d(){s("on-remove",t.comment)}function u(){t.comment.userAvatar||(t.comment.userAvatar="/error.webp")}function f(){const h=new Date(t.comment?.createdDate),p=new Date,g=new Date(p.getFullYear()-1,p.getMonth(),p.getDate());return h>g?"ugc noopener nofollow":"ugc noopener noreferrer nofollow"}return m.onMounted(()=>{u(),l()}),(h,p)=>(m.openBlock(),m.createElementBlock("div",uw,[p[7]||(p[7]=m.createElementVNode("div",{class:"sus-comment__item__lead"},[m.createElementVNode("span",{class:"sus-item--lead-mark"},'"')],-1)),m.createElementVNode("div",fw,[p[1]||(p[1]=m.createElementVNode("span",{class:"sus-comment-floor-rule"},null,-1)),m.createElementVNode("span",hw,[p[0]||(p[0]=m.createElementVNode("span",{class:"sus-comment-floor-label"},"No.",-1)),m.createElementVNode("span",pw,m.toDisplayString(String(n.num).padStart(2,"0")),1)])]),m.createElementVNode("div",mw,[m.createElementVNode("div",gw,[n.comment.privacy?(m.openBlock(),m.createElementBlock("div",yw,[p[2]||(p[2]=m.createElementVNode("div",{class:"sus-comment-private-pattern"},null,-1)),m.createElementVNode("span",{class:"sus-comment-private-text",innerHTML:n.comment.content},null,8,bw)])):(m.openBlock(),m.createElementBlock("div",ww,[m.createElementVNode("div",{ref_key:"contentDom",ref:r,class:"sus-comment-content-text",innerHTML:n.comment.content+(n.comment.contentExtends||"")},null,8,kw),m.createElementVNode("div",xw,[i.value?(m.openBlock(),m.createElementBlock("button",{key:0,onClick:o},[...p[3]||(p[3]=[m.createElementVNode("span",null,"查看全文",-1)])])):m.createCommentVNode("",!0)])]))]),m.createElementVNode("div",Sw,[m.createElementVNode("div",Ew,[n.comment.avatarDisplay!=="none"?(m.openBlock(),m.createElementBlock("div",Cw,[n.comment.avatarDisplay==="text"||!n.comment.userAvatar?(m.openBlock(),m.createElementBlock("div",Mw,m.toDisplayString(n.comment.userName.charAt(0)),1)):(m.openBlock(),m.createElementBlock("img",{key:1,alt:"",src:n.comment.userAvatar,onerror:"this.onerror=null,this.src='/error.webp'"},null,8,vw))])):m.createCommentVNode("",!0),m.createElementVNode("a",{target:"_blank",rel:f(),href:n.comment.userWebsite,class:"sus-comment-author-name"},m.toDisplayString(n.comment.userName),9,Tw),n.comment.tagName==="owner"?(m.openBlock(),m.createElementBlock("span",Ow,"博主")):m.createCommentVNode("",!0),n.comment.replyName?(m.openBlock(),m.createElementBlock("span",Nw,"@"+m.toDisplayString(n.comment.replyName),1)):m.createCommentVNode("",!0)]),m.createElementVNode("div",Aw,[m.createElementVNode("time",Dw,m.toDisplayString(m.unref(dw)(n.comment.createdDate)),1)]),m.createElementVNode("div",Rw,[m.withDirectives(m.createElementVNode("button",{onClick:d,class:"sus-comment-action-link"},"删除 ",512),[[m.vShow,!n.comment.privacy&&n.comment.showDelete]]),m.withDirectives(m.createElementVNode("button",{onClick:c,class:"sus-comment-action-link"},"编辑 ",512),[[m.vShow,!n.comment.privacy&&n.comment.showEdit]]),m.withDirectives(m.createElementVNode("button",{onClick:a,class:"sus-comment-action-link sus-comment-action-reply"}," 回复 ",512),[[m.vShow,!n.comment.privacy]])])]),n.showFooter&&n.comment.area&&!n.comment.privacy?(m.openBlock(),m.createElementBlock("footer",Iw,[m.createElementVNode("div",Pw,[m.createElementVNode("span",Lw,[p[4]||(p[4]=m.createElementVNode("svg",{viewBox:"0 0 24 24",width:"12",height:"12"},[m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[m.createElementVNode("path",{d:"M12.5 7.041A3 3 0 1 0 14.959 9.5"}),m.createElementVNode("path",{d:"M5 15.216c-.647-1.654-1-3.415-1-5.073C4 5.646 7.582 2 12 2s8 3.646 8 8.143c0 4.462-2.553 9.67-6.537 11.531a3.45 3.45 0 0 1-2.926 0C9.265 21.08 8.138 20.144 7.194 19"})])],-1)),m.createElementVNode("span",null,m.toDisplayString(n.comment.area),1)]),n.comment.userAgent?(m.openBlock(),m.createElementBlock("span",Bw,[p[5]||(p[5]=m.createElementVNode("svg",{viewBox:"0 0 24 24",width:"12",height:"12"},[m.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M5 2.252c-.774.169-1.359.45-1.828.92C2 4.343 2 6.229 2 10v1c0 2.828 0 4.243.879 5.121C3.757 17 5.172 17 8 17h8c2.828 0 4.243 0 5.121-.879C22 15.243 22 13.828 22 11v-1c0-3.771 0-5.657-1.172-6.828S17.771 2 14 2H9m7 20H8m4-5v5m10-9h-6M2 13h10"})],-1)),m.createElementVNode("span",null,m.toDisplayString(n.comment.userAgent),1)])):m.createCommentVNode("",!0)])])):m.createCommentVNode("",!0),m.withDirectives((m.openBlock(),m.createElementBlock("svg",Vw,[...p[6]||(p[6]=[m.createElementVNode("rect",{width:"24",height:"24",fill:"none"},null,-1),m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5"},[m.createElementVNode("path",{d:"M21 7v-.281c0-2.19 0-3.285-.707-3.884c-.707-.6-1.788-.42-3.95-.059l-1.055.176c-1.64.273-2.46.41-3.288.41s-1.648-.137-3.288-.41l-1.054-.176c-2.162-.36-3.243-.54-3.95.059S3 4.529 3 6.719V12c0 5.49 4.239 8.155 6.899 9.286c.721.307 1.082.46 2.101.46c1.02 0 1.38-.153 2.101-.46C16.761 20.155 21 17.49 21 12v-1"}),m.createElementVNode("path",{d:"M6.5 9c.291-.583 1.077-1 2-1s1.709.417 2 1m3 0c.291-.583 1.077-1 2-1s1.709.417 2 1m-9 5s1.05 1 3.5 1s3.5-1 3.5-1"})],-1)])],512)),[[m.vShow,n.comment.band==="privacy"]])])]))}}),[["__scopeId","data-v-40c401e6"]]),_w={class:"sus-comment-list"},$w={key:0,class:"sus-comment__item__thread"},zw={class:"sus-item__thread-header"},Hw={class:"sus-item__thread-label"},Fw={class:"sus-item__thread-count"},jw={class:"sus-item__thread-content"},Uw={key:1,class:"sus-item__thread-more"},Ww={class:"sus-item--more-trigger"},Kw={class:"sus-item--more-count"},pf=Yt(m.defineComponent({__name:"index",props:{comment:{},lineHeight:{default:23},showFooter:{type:Boolean,default:!1}},emits:["on-reply","on-edit","on-remove"],setup(n,{emit:e}){const t=m.ref(!1),r=e;function i(l){r("on-reply",l)}function s(l){r("on-edit",l)}function o(l){r("on-remove",l)}return(l,a)=>(m.openBlock(),m.createElementBlock("div",_w,[m.createVNode(ss,{comment:n.comment,onOnReply:a[0]||(a[0]=c=>i(n.comment)),onOnEdit:a[1]||(a[1]=c=>s(n.comment)),onOnRemove:a[2]||(a[2]=c=>o(n.comment)),lineHeight:n.lineHeight,showFooter:n.showFooter},null,8,["comment","lineHeight","showFooter"]),n.comment.child?.length>0?(m.openBlock(),m.createElementBlock("div",$w,[m.createElementVNode("div",zw,[a[11]||(a[11]=m.createElementVNode("div",{class:"sus-item__thread-line"},null,-1)),m.createElementVNode("span",Hw,[m.createElementVNode("span",Fw,m.toDisplayString(n.comment.child.length),1),a[10]||(a[10]=m.createElementVNode("span",{class:"sus-item__thread-text"},"条回复",-1))]),a[12]||(a[12]=m.createElementVNode("div",{class:"sus-item__thread-line"},null,-1))]),m.createElementVNode("div",jw,[m.createVNode(ss,{onOnReply:a[3]||(a[3]=c=>i(n.comment.child[0])),onOnEdit:a[4]||(a[4]=c=>s(n.comment.child[0])),onOnRemove:a[5]||(a[5]=c=>o(n.comment.child[0])),comment:n.comment.child[0],num:2,showFooter:n.showFooter,lineHeight:n.lineHeight,class:"sus-item__thread-item"},null,8,["comment","showFooter","lineHeight"]),n.comment.child?.length>1?(m.openBlock(),m.createBlock(ss,{key:0,onOnReply:a[6]||(a[6]=c=>i(n.comment.child[1])),onOnEdit:a[7]||(a[7]=c=>s(n.comment.child[1])),onOnRemove:a[8]||(a[8]=c=>o(n.comment.child[1])),comment:n.comment.child[1],num:3,showFooter:n.showFooter,lineHeight:n.lineHeight,class:"sus-item__thread-item"},null,8,["comment","showFooter","lineHeight"])):m.createCommentVNode("",!0),n.comment.child?.length>2?(m.openBlock(),m.createElementBlock("div",Uw,[m.createElementVNode("div",Ww,[t.value?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("button",{key:0,onClick:a[9]||(a[9]=c=>t.value=!0),class:"sus-more-trigger-btn"},[m.createElementVNode("span",Kw,m.toDisplayString(n.comment.child.length-2),1),a[13]||(a[13]=m.createElementVNode("span",{class:"sus-item--more-text"},"查看全部回复",-1))]))]),t.value?(m.openBlock(!0),m.createElementBlock(m.Fragment,{key:0},m.renderList(n.comment.child.slice(2),(c,d)=>(m.openBlock(),m.createBlock(ss,{onOnReply:u=>i(c),onOnEdit:u=>s(c),onOnRemove:u=>o(c),key:d,comment:c,num:4+d,showFooter:n.showFooter,lineHeight:n.lineHeight,class:"sus-item__thread-item"},null,8,["onOnReply","onOnEdit","onOnRemove","comment","num","showFooter","lineHeight"]))),128)):m.createCommentVNode("",!0)])):m.createCommentVNode("",!0)])])):m.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-8dbeda3c"]]),qw={class:"sus-top-item"},Jw={class:"sus-top-item__info sus-top-info"},Gw={class:"sus-top-item__user sus-top-name"},Yw={key:0,class:"sus-top-item__reply"},Xw=["innerHTML"],mf=Yt(m.defineComponent({__name:"simple",props:{comment:{}},setup(n){return(e,t)=>(m.openBlock(),m.createElementBlock("div",qw,[m.createElementVNode("div",Jw,[m.createElementVNode("span",Gw,m.toDisplayString(n.comment.userName)+": ",1),n.comment.replyName?(m.openBlock(),m.createElementBlock("span",Yw,m.toDisplayString("@"+n.comment.replyName),1)):m.createCommentVNode("",!0)]),m.createElementVNode("span",{class:"sus-top-item__content sus-top-text",innerHTML:n.comment.content},null,8,Xw)]))}}),[["__scopeId","data-v-dc19b905"]]),Qw={class:"sus-top-item__user sus-top-user"},Zw={key:0,class:"sus-top-item__user-avatar sus-top-avatar"},ek=["src"],tk={class:"sus-top-item__user-owner sus-top-username"},nk={class:"sus-top-item__user-reply sus-top-reply"},rk=["innerHTML"],gf=Yt(m.defineComponent({__name:"index",props:{comment:{}},emits:["go-local"],setup(n,{emit:e}){const t=e;function r(){t("go-local")}return(i,s)=>(m.openBlock(),m.createElementBlock("div",{class:"sus-top-item",onClick:r},[m.createElementVNode("div",Qw,[n.comment.userAvatar?(m.openBlock(),m.createElementBlock("div",Zw,[m.createElementVNode("img",{alt:"",class:"sus-avatar",loading:"lazy",decoding:"async",src:n.comment.userAvatar,onerror:"this.onerror=null,this.src='/error.webp'"},null,8,ek)])):m.createCommentVNode("",!0),m.createElementVNode("div",tk,m.toDisplayString(n.comment.userName),1),m.createElementVNode("div",nk,m.toDisplayString(n.comment.replyName?"@"+n.comment.replyName:""),1)]),m.createElementVNode("div",{class:"sus-top-item__content sus-top-content",innerHTML:n.comment.content},null,8,rk)]))}}),[["__scopeId","data-v-0a6b4c37"]]),ik=[hf,pf,gf,mf],sk={install(n){ik.forEach(e=>{n.component(e.name,e)})}};je.SuSComment=hf,je.SuSList=pf,je.SuSSimpleTop=mf,je.SuSTop=gf,je.default=sk,Object.defineProperties(je,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
107
+ `,-1))])]),_:1},8,["class"]))}}),[["__scopeId","data-v-d8f02dfd"]]),B1=_f.createLowlight(),ff=[{value:"",label:"纯文本"},{value:"java",label:"Java"},{value:"python",label:"Python"},{value:"shell",label:"Shell"},{value:"yaml",label:"YAML"},{value:"javascript",label:"JavaScript"},{value:"html",label:"HTML"}],V1=R1.extend({addNodeView(){return By(L1)}}).configure({lowlight:B1,defaultLanguage:null}),_1={class:"sus-comment"},$1={key:0,class:"sus-comment-avatar"},z1=["src"],H1={class:"sus-avatar-text-container"},F1={class:"sus-avatar-text"},j1={class:"sus-comment__main"},U1={key:0,class:"sus-comment__info"},W1={key:0,class:"sus-comment__info-input"},K1=["placeholder","title"],q1={key:1,class:"sus-comment__info-input"},J1=["placeholder","title"],G1={key:2,class:"sus-comment__info-input"},Y1=["placeholder","title"],X1={class:"sus-comment__editor-wrapper"},Q1={class:"sus-comment__footer"},Z1={class:"sus-comment__footer-toolbar"},ew={key:0,class:"sus-comment__footer-icon",title:"表情"},tw={key:1,class:"sus-upload sus-comment__footer-icon sus-comment__footer-icon"},nw={class:"sus-comment__footer-notify"},rw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},iw={class:"sus-comment__toolbar sus-comment-privacy"},sw={class:"sus-comment__toolbar-mask"},ow={class:"sus-preview-frame"},lw=["src"],aw={class:"sus-preview-index"},cw=["onClick"],hf=Yt(m.defineComponent({__name:"index",props:{reply:{},toolBar:{},infoBar:{},placeholder:{default:"支持常见的markdown语法,如图片、代码块等"},comment:{}},emits:["on-save","on-cancel","add-image","update-avatar"],setup(n,{expose:e,emit:t}){class r{articleId="";userName="";userEmail="";userWebsite="";userAvatar="";content="";contentText="";replyName="";parentId="";notify=0;privacy=!1}const i=n;e({updateImage:v,updatePreviewImage:T});const s=t,o=m.reactive({emojis:i.toolBar?.emoji?.emojis||[],showPanel:!1}),l=i.reply?.userName,a=m.ref("在此处留下你的足迹吧!(支持markdown语法)"),c=m.reactive(new r),d=m.ref(""),u=m.ref(null),f=m.ref([]),h=m.ref(null),p=i.comment?.privacy||!1,g={enable:i.infoBar?.enable===void 0?!0:i.infoBar.enable,name:{show:i.infoBar?.name?.show===void 0?!0:i.infoBar.name.show,placeholder:i.infoBar?.name?.placeholder||"昵称(必填)"},website:{show:i.infoBar?.website?.show===void 0?!0:i.infoBar.website.show,placeholder:i.infoBar?.website?.placeholder||"网址(https://)",tips:i.infoBar?.website?.tips||"点击昵称时可跳转"},email:{show:i.infoBar?.email?.show===void 0?!0:i.infoBar.email.show,placeholder:i.infoBar?.email?.placeholder||"邮箱(不会公开,仅用于通知回复)",tips:i.infoBar?.email?.tips||"输入QQ邮箱自动获取头像"}},y=Iy({extensions:[bb.configure({codeBlock:!1}),V1,xb,mb.configure({placeholder:i.placeholder}),I0.configure({openOnClick:!1,enableClickSelection:!0,HTMLAttributes:{class:"cursor-pointer",onclick:"return false;"}}),E1],editorProps:{handleDOMEvents:{mousedown:(U,O)=>O.target.closest("a")?(O.preventDefault(),O.stopPropagation(),setTimeout(()=>{y.value&&y.value.chain().focus().extendMarkRange("link").run()},0),!0):!1,click:(U,O)=>O.target.closest("a")?(O.preventDefault(),O.stopPropagation(),!0):!1}}});function w(){i.comment&&(c.privacy=i.comment.privacy===void 0?!1:i.comment.privacy,c.notify=i.comment.notify||1,c.userName=i.comment.userName||"",c.userEmail=i.comment.userEmail||"",c.userWebsite=i.comment.userWebsite||"",c.userAvatar=i.comment.userAvatar||"",c.content=i.comment.content||"",c.articleId=i.comment.articleId||"")}async function k(){if(!(!y||!y.value)){if(d.value=y.value.getHTML(),c.userWebsite&&(c.userWebsite.concat("http://")||c.userWebsite.concat("https://")||(c.userWebsite="https://"+c.userWebsite)),localStorage.setItem("user",JSON.stringify(c)),localStorage.setItem("comment-content",d.value),i.reply?.id&&i.reply?.id!="0"){const U=i.reply.parentId;c.parentId=U==="0"?i.reply.id:U,c.replyName=i.reply.userName,a.value="@"+l+":"}c.content=d.value,c.contentText=y.value.getText(),s("on-save",c,h.value)}}function E(){localStorage.setItem("comment-content",""),s("on-cancel")}function D(){s("add-image",u.value,h.value)}function v(U){h.value||(h.value=[]),!h.value||h.value.length==0?h.value=U:h.value=I(h.value,U[0]),f.value=[];for(let O=0;O<h.value.length;O++)f.value.push(URL.createObjectURL(h.value[O]))}function I(U,O){return[...U,O]}function T(U){f.value=U}function _(){s("update-avatar",c)}function K(){c.notify==1?c.notify=0:c.notify=1}function j(U){try{if(!h.value||!h.value.length||h.value.length<=1){h.value=[],f.value=[];return}h.value?.splice(U,1),f.value.splice(U,1)}catch(O){console.log("remove image error: ",O),h.value=[],f.value=[]}}return m.onMounted(()=>{if(!y||!y.value)return;w();const U=localStorage.getItem("user");if(c.content&&c.content.length>3)y.value.commands.setContent(c.content);else{const O=localStorage.getItem("comment-content");O&&y.value.commands.setContent(O)}if(U){const O=JSON.parse(U);c.userName=O.userName,c.userEmail=O.userEmail,c.userWebsite=O.userWebsite,_()}c.notify=1}),(U,O)=>(m.openBlock(),m.createElementBlock("div",_1,[O[14]||(O[14]=m.createStaticVNode('<div class="sus-comment__decoration" data-v-b5bf8cb4><div class="sus-decoration-corner top-left" data-v-b5bf8cb4></div><div class="sus-decoration-corner top-right" data-v-b5bf8cb4></div><div class="sus-decoration-corner bottom-left" data-v-b5bf8cb4></div><div class="sus-decoration-corner bottom-right" data-v-b5bf8cb4></div></div>',1)),g.enable?(m.openBlock(),m.createElementBlock("div",$1,[m.withDirectives(m.createElementVNode("img",{alt:"头像",src:c.userAvatar,class:"sus-avatar",onerror:"this.onerror=null,this.src='/error.webp'"},null,8,z1),[[m.vShow,!!c.userAvatar]]),m.withDirectives(m.createElementVNode("div",H1,[m.createElementVNode("div",F1,[m.createElementVNode("span",null,m.toDisplayString(c.userName.charAt(0)),1)])],512),[[m.vShow,!c.userAvatar]])])):m.createCommentVNode("",!0),m.createElementVNode("div",j1,[g.enable?(m.openBlock(),m.createElementBlock("div",U1,[g.name.show?(m.openBlock(),m.createElementBlock("div",W1,[O[5]||(O[5]=m.createElementVNode("label",{class:"sus-comment-label"},"Name",-1)),m.withDirectives(m.createElementVNode("input",{class:"sus-input sus-username",placeholder:g.name.placeholder,title:g.name.placeholder,"onUpdate:modelValue":O[0]||(O[0]=X=>c.userName=X),maxlength:"23"},null,8,K1),[[m.vModelText,c.userName]])])):m.createCommentVNode("",!0),g.website.show?(m.openBlock(),m.createElementBlock("div",q1,[O[6]||(O[6]=m.createElementVNode("label",{class:"sus-comment-label"},"Website",-1)),m.createVNode(m.unref(qn.OuOToolTip),{content:g.website.tips},{default:m.withCtx(()=>[m.withDirectives(m.createElementVNode("input",{class:"sus-input sus-web",placeholder:g.website.placeholder,title:g.website.placeholder,"onUpdate:modelValue":O[1]||(O[1]=X=>c.userWebsite=X),maxlength:"35"},null,8,J1),[[m.vModelText,c.userWebsite]])]),_:1},8,["content"])])):m.createCommentVNode("",!0),g.email.show?(m.openBlock(),m.createElementBlock("div",G1,[O[7]||(O[7]=m.createElementVNode("label",{class:"sus-comment-label"},"Email",-1)),m.createVNode(m.unref(qn.OuOToolTip),{content:g.email.tips},{default:m.withCtx(()=>[m.withDirectives(m.createElementVNode("input",{onBlur:_,class:"sus-input sus-email",placeholder:g.email.placeholder,title:g.email.placeholder,"onUpdate:modelValue":O[2]||(O[2]=X=>c.userEmail=X),maxlength:"35"},null,40,Y1),[[m.vModelText,c.userEmail]])]),_:1},8,["content"])])):m.createCommentVNode("",!0)])):m.createCommentVNode("",!0),m.createElementVNode("div",X1,[m.createVNode(S1,{editor:m.unref(y),showMenu:n.toolBar?.bubbleMenu?.show},null,8,["editor","showMenu"]),m.withDirectives(m.createVNode(zy,{class:"sus-emoji-panel-position",emoji:o,editor:m.unref(y)},null,8,["emoji","editor"]),[[m.vShow,o.showPanel]]),m.createVNode(m.unref(Ay),{class:"sus-comment-input sus-comment__editor",editor:m.unref(y)},null,8,["editor"])]),m.createElementVNode("div",Q1,[m.createElementVNode("div",Z1,[o.emojis.length>=0?(m.openBlock(),m.createElementBlock("div",ew,[(m.openBlock(),m.createElementBlock("svg",{onClick:O[3]||(O[3]=X=>o.showPanel=!o.showPanel),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[...O[8]||(O[8]=[m.createStaticVNode('<g fill="none" data-v-b5bf8cb4><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9 16c.85.63 1.885 1 3 1s2.15-.37 3-1" data-v-b5bf8cb4></path><path fill="currentColor" d="M16 10.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5s.448-1.5 1-1.5s1 .672 1 1.5" data-v-b5bf8cb4></path><ellipse cx="9" cy="10.5" fill="currentColor" rx="1" ry="1.5" data-v-b5bf8cb4></ellipse><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5" data-v-b5bf8cb4></path></g>',1)])]))])):m.createCommentVNode("",!0),n.toolBar?.image?(m.openBlock(),m.createElementBlock("div",tw,[m.createElementVNode("input",{ref_key:"imgRef",ref:u,onChange:D,type:"file",id:"upload-input",name:"image",accept:"image/*"},null,544),O[9]||(O[9]=m.createStaticVNode('<label for="upload-input" data-v-b5bf8cb4><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-b5bf8cb4><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-b5bf8cb4><path d="m2 12.5l1.752-1.533a2.3 2.3 0 0 1 3.14.105l4.29 4.29a2 2 0 0 0 2.564.222l.299-.21a3 3 0 0 1 3.731.225L21 18.5m-6-13h3.5m0 0H22m-3.5 0V9m0-3.5V2" data-v-b5bf8cb4></path><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12c0-1.128 0-2.122.02-3M12 2C7.286 2 4.929 2 3.464 3.464c-.424.425-.726.925-.94 1.536" data-v-b5bf8cb4></path></g></svg></label>',1))])):m.createCommentVNode("",!0),n.toolBar?.notify?(m.openBlock(),m.createElementBlock("div",{key:2,onClick:K,class:"sus-comment__footer-icon sus-comment__footer-icon"},[m.createVNode(m.unref(qn.OuOToolTip),{content:"收到回复后通知"},{default:m.withCtx(()=>[m.withDirectives(m.createElementVNode("div",nw,[...O[10]||(O[10]=[m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[m.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5",d:"M12 6v4m-4.5 9c.655 1.748 2.422 3 4.5 3q.367 0 .72-.05M16.5 19a4.5 4.5 0 0 1-1.302 1.84M9.107 2.674A6.5 6.5 0 0 1 12 2c3.727 0 6.75 3.136 6.75 7.005v.705a4.4 4.4 0 0 0 .692 2.375l1.108 1.724c1.011 1.575.239 3.716-1.52 4.214a25.8 25.8 0 0 1-14.06 0c-1.759-.498-2.531-2.639-1.52-4.213l1.108-1.725A4.4 4.4 0 0 0 5.25 9.71v-.705c0-1.074.233-2.092.65-3.002"})],-1)])],512),[[m.vShow,c.notify===1]])]),_:1}),m.createVNode(m.unref(qn.OuOToolTip),{content:"收到回复后不通知"},{default:m.withCtx(()=>[m.withDirectives((m.openBlock(),m.createElementBlock("svg",rw,[...O[11]||(O[11]=[m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5"},[m.createElementVNode("path",{"stroke-linejoin":"round",d:"M10 9h4l-4 4h4"}),m.createElementVNode("path",{d:"M7.5 19c.655 1.748 2.422 3 4.5 3q.367 0 .72-.05M16.5 19a4.5 4.5 0 0 1-1.302 1.84M9.107 2.674A6.5 6.5 0 0 1 12 2c3.727 0 6.75 3.136 6.75 7.005v.705a4.4 4.4 0 0 0 .692 2.375l1.108 1.724c1.011 1.575.239 3.716-1.52 4.214a25.8 25.8 0 0 1-14.06 0c-1.759-.498-2.531-2.639-1.52-4.213l1.108-1.725A4.4 4.4 0 0 0 5.25 9.71v-.705c0-1.074.233-2.092.65-3.002"})],-1)])],512)),[[m.vShow,c.notify!==1]])]),_:1})])):m.createCommentVNode("",!0)]),m.createElementVNode("div",{class:"sus-comment__footer-actions"},[m.createElementVNode("button",{class:"sus-button cancel",onClick:E},"取消"),m.createElementVNode("button",{class:"sus-button ok",onClick:k},"发送")])]),m.createElementVNode("div",iw,[m.withDirectives(m.createVNode(m.unref(qn.OuOCheckBox),{modelValue:c.privacy,"onUpdate:modelValue":O[4]||(O[4]=X=>c.privacy=X),checked:m.unref(p)},{default:m.withCtx(()=>[...O[12]||(O[12]=[m.createTextVNode(" 仅博主可见 ",-1)])]),_:1},8,["modelValue","checked"]),[[m.vShow,n.toolBar?.privacy?.show]]),m.withDirectives(m.createElementVNode("div",sw,null,512),[[m.vShow,n.toolBar?.privacy?.disable]])]),f.value&&f.value.length>0?(m.openBlock(),m.createBlock(m.TransitionGroup,{key:1,name:"sus-preview",tag:"div",class:"sus-comment__extend"},{default:m.withCtx(()=>[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(f.value,(X,Z)=>(m.openBlock(),m.createElementBlock("div",{class:"sus-comment__extend-img sus-comment__extend-item",key:X},[m.createElementVNode("div",ow,[m.createElementVNode("img",{class:"sus-img-item",src:X,alt:"",draggable:"false"},null,8,lw),m.createElementVNode("div",aw,m.toDisplayString(Z+1),1)]),m.createElementVNode("div",{onClick:ke=>j(Z),class:"sus-comment__extend-mask"},[...O[13]||(O[13]=[m.createElementVNode("div",{class:"sus-mask-inner"},[m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[m.createElementVNode("path",{"stroke-linecap":"round",d:"M20.5 6h-17m6 5l.5 5m4.5-5l-.5 5"}),m.createElementVNode("path",{d:"M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6"}),m.createElementVNode("path",{"stroke-linecap":"round",d:"M18.374 15.4c-.177 2.654-.266 3.981-1.131 4.79s-2.195.81-4.856.81h-.774c-2.66 0-3.99 0-4.856-.81c-.865-.809-.953-2.136-1.13-4.79l-.46-6.9m13.666 0l-.2 3"})])])],-1)])],8,cw)]))),128))]),_:1})):m.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-b5bf8cb4"]]);function dw(n){const e=new Date(n),t=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),s=new Date,o=s.getFullYear(),l=s.getMonth()+1,a=s.getDate();if(o===t&&l==r){const c=a-i;if(c===0)return"今天";if(c<7)return c+"天前"}return o===t?`${r}月${i}日`:`${t}年${r}月${i}日`}const uw={class:"sus-comment__item"},fw={class:"sus-comment-info-floor"},hw={class:"sus-comment-floor-body"},pw={class:"sus-comment-floor-num"},mw={class:"sus-comment__item__main"},gw={class:"sus-comment__item__content"},yw={key:0,class:"sus-comment__sus-comment-content-private"},bw=["innerHTML"],ww={key:1,class:"sus-comment-content-body"},kw=["innerHTML"],xw={class:"sus-comment-content-expand"},Sw={class:"sus-comment__item__meta"},Ew={class:"sus-comment-meta-author"},Cw={key:0,class:"sus-comment-tail-avatar"},Mw={key:0,class:"sus-comment-avatar-letter"},vw=["src"],Tw=["rel","href"],Ow={key:1,class:"sus-comment-author-tag"},Nw={key:2,class:"sus-item--reply-hint"},Aw={class:"sus-comment-meta-info"},Dw={class:"sus-comment-info-time"},Rw={class:"sus-comment-meta-actions"},Iw={key:0,class:"sus-comment__item__footer"},Pw={class:"sus-comment-footer-meta"},Lw={class:"sus-comment-footer-item sus-comment-meta-location"},Bw={key:0,class:"sus-comment-footer-item sus-comment-meta-device"},Vw={class:"sus-comment__item__watermark",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},ss=Yt(m.defineComponent({__name:"item",props:{comment:{},lineHeight:{},showFooter:{type:Boolean},num:{default:1}},emits:["on-reply","on-edit","on-remove"],setup(n,{emit:e}){const t=n,r=m.ref();m.ref();const i=m.ref(!1),s=e;function o(){r.value.style.display="block",i.value=!1}function l(){const h=r?.value?.clientHeight||0,p=t.lineHeight*5;h>=p&&(i.value=!0)}function a(){s("on-reply",t.comment)}function c(){s("on-edit",t.comment)}function d(){s("on-remove",t.comment)}function u(){t.comment.userAvatar||(t.comment.userAvatar="/error.webp")}function f(){const h=new Date(t.comment?.createdDate),p=new Date,g=new Date(p.getFullYear()-1,p.getMonth(),p.getDate());return h>g?"ugc noopener nofollow":"ugc noopener noreferrer nofollow"}return m.onMounted(()=>{u(),l()}),(h,p)=>(m.openBlock(),m.createElementBlock("div",uw,[p[7]||(p[7]=m.createElementVNode("div",{class:"sus-comment__item__lead"},[m.createElementVNode("span",{class:"sus-item--lead-mark"},'"')],-1)),m.createElementVNode("div",fw,[p[1]||(p[1]=m.createElementVNode("span",{class:"sus-comment-floor-rule"},null,-1)),m.createElementVNode("span",hw,[p[0]||(p[0]=m.createElementVNode("span",{class:"sus-comment-floor-label"},"No.",-1)),m.createElementVNode("span",pw,m.toDisplayString(String(n.num).padStart(2,"0")),1)])]),m.createElementVNode("div",mw,[m.createElementVNode("div",gw,[n.comment.privacy?(m.openBlock(),m.createElementBlock("div",yw,[p[2]||(p[2]=m.createElementVNode("div",{class:"sus-comment-private-pattern"},null,-1)),m.createElementVNode("span",{class:"sus-comment-private-text",innerHTML:n.comment.content},null,8,bw)])):(m.openBlock(),m.createElementBlock("div",ww,[m.createElementVNode("div",{ref_key:"contentDom",ref:r,class:"sus-comment-content-text",innerHTML:n.comment.content+(n.comment.contentExtends||"")},null,8,kw),m.createElementVNode("div",xw,[i.value?(m.openBlock(),m.createElementBlock("button",{key:0,onClick:o},[...p[3]||(p[3]=[m.createElementVNode("span",null,"查看全文",-1)])])):m.createCommentVNode("",!0)])]))]),m.createElementVNode("div",Sw,[m.createElementVNode("div",Ew,[n.comment.avatarDisplay!=="none"?(m.openBlock(),m.createElementBlock("div",Cw,[n.comment.avatarDisplay==="text"||!n.comment.userAvatar?(m.openBlock(),m.createElementBlock("div",Mw,m.toDisplayString(n.comment.userName.charAt(0)),1)):(m.openBlock(),m.createElementBlock("img",{key:1,alt:"",src:n.comment.userAvatar,onerror:"this.onerror=null,this.src='/error.webp'"},null,8,vw))])):m.createCommentVNode("",!0),m.createElementVNode("a",{target:"_blank",rel:f(),href:n.comment.userWebsite,class:"sus-comment-author-name"},m.toDisplayString(n.comment.userName),9,Tw),n.comment.tagName==="owner"?(m.openBlock(),m.createElementBlock("span",Ow,"博主")):m.createCommentVNode("",!0),n.comment.replyName?(m.openBlock(),m.createElementBlock("span",Nw,"@"+m.toDisplayString(n.comment.replyName),1)):m.createCommentVNode("",!0)]),m.createElementVNode("div",Aw,[m.createElementVNode("time",Dw,m.toDisplayString(m.unref(dw)(n.comment.createdDate)),1)]),m.createElementVNode("div",Rw,[m.withDirectives(m.createElementVNode("button",{onClick:d,class:"sus-comment-action-link"},"删除 ",512),[[m.vShow,!n.comment.privacy&&n.comment.showDelete]]),m.withDirectives(m.createElementVNode("button",{onClick:c,class:"sus-comment-action-link"},"编辑 ",512),[[m.vShow,!n.comment.privacy&&n.comment.showEdit]]),m.withDirectives(m.createElementVNode("button",{onClick:a,class:"sus-comment-action-link sus-comment-action-reply"}," 回复 ",512),[[m.vShow,!n.comment.privacy]])])]),n.showFooter&&n.comment.area&&!n.comment.privacy?(m.openBlock(),m.createElementBlock("footer",Iw,[m.createElementVNode("div",Pw,[m.createElementVNode("span",Lw,[p[4]||(p[4]=m.createElementVNode("svg",{viewBox:"0 0 24 24",width:"12",height:"12"},[m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[m.createElementVNode("path",{d:"M12.5 7.041A3 3 0 1 0 14.959 9.5"}),m.createElementVNode("path",{d:"M5 15.216c-.647-1.654-1-3.415-1-5.073C4 5.646 7.582 2 12 2s8 3.646 8 8.143c0 4.462-2.553 9.67-6.537 11.531a3.45 3.45 0 0 1-2.926 0C9.265 21.08 8.138 20.144 7.194 19"})])],-1)),m.createElementVNode("span",null,m.toDisplayString(n.comment.area),1)]),n.comment.userAgent?(m.openBlock(),m.createElementBlock("span",Bw,[p[5]||(p[5]=m.createElementVNode("svg",{viewBox:"0 0 24 24",width:"12",height:"12"},[m.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M5 2.252c-.774.169-1.359.45-1.828.92C2 4.343 2 6.229 2 10v1c0 2.828 0 4.243.879 5.121C3.757 17 5.172 17 8 17h8c2.828 0 4.243 0 5.121-.879C22 15.243 22 13.828 22 11v-1c0-3.771 0-5.657-1.172-6.828S17.771 2 14 2H9m7 20H8m4-5v5m10-9h-6M2 13h10"})],-1)),m.createElementVNode("span",null,m.toDisplayString(n.comment.userAgent),1)])):m.createCommentVNode("",!0)])])):m.createCommentVNode("",!0),m.withDirectives((m.openBlock(),m.createElementBlock("svg",Vw,[...p[6]||(p[6]=[m.createElementVNode("rect",{width:"24",height:"24",fill:"none"},null,-1),m.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5"},[m.createElementVNode("path",{d:"M21 7v-.281c0-2.19 0-3.285-.707-3.884c-.707-.6-1.788-.42-3.95-.059l-1.055.176c-1.64.273-2.46.41-3.288.41s-1.648-.137-3.288-.41l-1.054-.176c-2.162-.36-3.243-.54-3.95.059S3 4.529 3 6.719V12c0 5.49 4.239 8.155 6.899 9.286c.721.307 1.082.46 2.101.46c1.02 0 1.38-.153 2.101-.46C16.761 20.155 21 17.49 21 12v-1"}),m.createElementVNode("path",{d:"M6.5 9c.291-.583 1.077-1 2-1s1.709.417 2 1m3 0c.291-.583 1.077-1 2-1s1.709.417 2 1m-9 5s1.05 1 3.5 1s3.5-1 3.5-1"})],-1)])],512)),[[m.vShow,n.comment.band==="privacy"]])])]))}}),[["__scopeId","data-v-a0ea9452"]]),_w={class:"sus-comment-list"},$w={key:0,class:"sus-comment__item__thread"},zw={class:"sus-item__thread-header"},Hw={class:"sus-item__thread-label"},Fw={class:"sus-item__thread-count"},jw={class:"sus-item__thread-content"},Uw={key:1,class:"sus-item__thread-more"},Ww={class:"sus-item--more-trigger"},Kw={class:"sus-item--more-count"},pf=Yt(m.defineComponent({__name:"index",props:{comment:{},lineHeight:{default:23},showFooter:{type:Boolean,default:!1}},emits:["on-reply","on-edit","on-remove"],setup(n,{emit:e}){const t=m.ref(!1),r=e;function i(l){r("on-reply",l)}function s(l){r("on-edit",l)}function o(l){r("on-remove",l)}return(l,a)=>(m.openBlock(),m.createElementBlock("div",_w,[m.createVNode(ss,{comment:n.comment,onOnReply:a[0]||(a[0]=c=>i(n.comment)),onOnEdit:a[1]||(a[1]=c=>s(n.comment)),onOnRemove:a[2]||(a[2]=c=>o(n.comment)),lineHeight:n.lineHeight,showFooter:n.showFooter},null,8,["comment","lineHeight","showFooter"]),n.comment.child?.length>0?(m.openBlock(),m.createElementBlock("div",$w,[m.createElementVNode("div",zw,[a[11]||(a[11]=m.createElementVNode("div",{class:"sus-item__thread-line"},null,-1)),m.createElementVNode("span",Hw,[m.createElementVNode("span",Fw,m.toDisplayString(n.comment.child.length),1),a[10]||(a[10]=m.createElementVNode("span",{class:"sus-item__thread-text"},"条回复",-1))]),a[12]||(a[12]=m.createElementVNode("div",{class:"sus-item__thread-line"},null,-1))]),m.createElementVNode("div",jw,[m.createVNode(ss,{onOnReply:a[3]||(a[3]=c=>i(n.comment.child[0])),onOnEdit:a[4]||(a[4]=c=>s(n.comment.child[0])),onOnRemove:a[5]||(a[5]=c=>o(n.comment.child[0])),comment:n.comment.child[0],num:2,showFooter:n.showFooter,lineHeight:n.lineHeight,class:"sus-item__thread-item"},null,8,["comment","showFooter","lineHeight"]),n.comment.child?.length>1?(m.openBlock(),m.createBlock(ss,{key:0,onOnReply:a[6]||(a[6]=c=>i(n.comment.child[1])),onOnEdit:a[7]||(a[7]=c=>s(n.comment.child[1])),onOnRemove:a[8]||(a[8]=c=>o(n.comment.child[1])),comment:n.comment.child[1],num:3,showFooter:n.showFooter,lineHeight:n.lineHeight,class:"sus-item__thread-item"},null,8,["comment","showFooter","lineHeight"])):m.createCommentVNode("",!0),n.comment.child?.length>2?(m.openBlock(),m.createElementBlock("div",Uw,[m.createElementVNode("div",Ww,[t.value?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("button",{key:0,onClick:a[9]||(a[9]=c=>t.value=!0),class:"sus-more-trigger-btn"},[m.createElementVNode("span",Kw,m.toDisplayString(n.comment.child.length-2),1),a[13]||(a[13]=m.createElementVNode("span",{class:"sus-item--more-text"},"查看全部回复",-1))]))]),t.value?(m.openBlock(!0),m.createElementBlock(m.Fragment,{key:0},m.renderList(n.comment.child.slice(2),(c,d)=>(m.openBlock(),m.createBlock(ss,{onOnReply:u=>i(c),onOnEdit:u=>s(c),onOnRemove:u=>o(c),key:d,comment:c,num:4+d,showFooter:n.showFooter,lineHeight:n.lineHeight,class:"sus-item__thread-item"},null,8,["onOnReply","onOnEdit","onOnRemove","comment","num","showFooter","lineHeight"]))),128)):m.createCommentVNode("",!0)])):m.createCommentVNode("",!0)])])):m.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-35d62865"]]),qw={class:"sus-top-item"},Jw={class:"sus-top-item__info sus-top-info"},Gw={class:"sus-top-item__user sus-top-name"},Yw={key:0,class:"sus-top-item__reply"},Xw=["innerHTML"],mf=Yt(m.defineComponent({__name:"simple",props:{comment:{}},setup(n){return(e,t)=>(m.openBlock(),m.createElementBlock("div",qw,[m.createElementVNode("div",Jw,[m.createElementVNode("span",Gw,m.toDisplayString(n.comment.userName)+": ",1),n.comment.replyName?(m.openBlock(),m.createElementBlock("span",Yw,m.toDisplayString("@"+n.comment.replyName),1)):m.createCommentVNode("",!0)]),m.createElementVNode("span",{class:"sus-top-item__content sus-top-text",innerHTML:n.comment.content},null,8,Xw)]))}}),[["__scopeId","data-v-dc19b905"]]),Qw={class:"sus-top-item__user sus-top-user"},Zw={key:0,class:"sus-top-item__user-avatar sus-top-avatar"},ek=["src"],tk={class:"sus-top-item__user-owner sus-top-username"},nk={class:"sus-top-item__user-reply sus-top-reply"},rk=["innerHTML"],gf=Yt(m.defineComponent({__name:"index",props:{comment:{}},emits:["go-local"],setup(n,{emit:e}){const t=e;function r(){t("go-local")}return(i,s)=>(m.openBlock(),m.createElementBlock("div",{class:"sus-top-item",onClick:r},[m.createElementVNode("div",Qw,[n.comment.userAvatar?(m.openBlock(),m.createElementBlock("div",Zw,[m.createElementVNode("img",{alt:"",class:"sus-avatar",loading:"lazy",decoding:"async",src:n.comment.userAvatar,onerror:"this.onerror=null,this.src='/error.webp'"},null,8,ek)])):m.createCommentVNode("",!0),m.createElementVNode("div",tk,m.toDisplayString(n.comment.userName),1),m.createElementVNode("div",nk,m.toDisplayString(n.comment.replyName?"@"+n.comment.replyName:""),1)]),m.createElementVNode("div",{class:"sus-top-item__content sus-top-content",innerHTML:n.comment.content},null,8,rk)]))}}),[["__scopeId","data-v-0a6b4c37"]]),ik=[hf,pf,gf,mf],sk={install(n){ik.forEach(e=>{n.component(e.name,e)})}};je.SuSComment=hf,je.SuSList=pf,je.SuSSimpleTop=mf,je.SuSTop=gf,je.default=sk,Object.defineProperties(je,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap";html{--sus-font-color: 51, 51, 51;--sus-danger-font-color: 245, 108, 108;--sus-decorate-color: 52, 73, 94;--sus-primary-color: 94, 114, 228;--sus-primary-hover-color: 61, 85, 223;--sus-danger-color: 245, 108, 108;--sus-primary-fontcolor: 255, 255, 255;--sus-basic-input-bg: 231, 235, 240;--sus-link-input-bg: 221, 225, 230;--sus-border-color: 231, 235, 240;--sus-common-bg: 255, 255, 255;--sus-gray-bg: 230, 230, 233;--sus-plain-bg: 231, 235, 240;--sus-select-bg: 231, 235, 240;--sus-item-bg: 255, 255, 255;--sus-linear-gradient-bg: 188, 190, 190;--sus-item-hover-bg: 231, 235, 240;--sus-avatar-size: 43px;--sus-avatar-color-1: 94, 114, 228;--sus-avatar-color-2: 225, 141, 172;--sus-avatar-color-3: 175, 94, 83;--sus-avatar-color-4: 31, 54, 150;--sus-avatar-color-5: 149, 80, 159;--sus-item-left-margin: 22px;--sus-item-bottom-margin: 20px;--sus-item-hover-opacity: .5;--sus-item-opacity: 1;--sus-item-primary-opacity: .8;--sus-item-padding: 24px 28px 15px;--sus-item-child-padding: 3px 11px;--sus-item-gap: 15px}.sus-comment [data-type=emoji] img,.sus-comment .emoji,.sus-comment-item [data-type=emoji] img,.sus-comment-item .emoji{display:inline;width:22px;margin:0 2px;vertical-align:middle}.sus-comment .ProseMirror,.sus-comment-item .ProseMirror{position:unset!important;height:160px;border-radius:5px;border-color:transparent;outline:none}.sus-comment .ProseMirror pre,.sus-comment-item .ProseMirror pre{padding:1em;margin:.5em 0;color:#ccc;border-radius:5px;overflow-x:scroll!important;overflow-y:hidden!important;background-color:#2d2d2d;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-webkit-hyphens:none;hyphens:none}.sus-comment .code-box,.sus-comment-item .code-box{position:relative}.sus-comment .code-select,.sus-comment-item .code-select{position:absolute;top:5px;right:5px;padding:4px 8px;text-align:center;width:min-content;background:rgba(var(--sus-common-bg),.9);border:1px solid rgba(var(--sus-border-color),.5);border-radius:0;outline:none;color:rgb(var(--sus-primary-color));cursor:pointer;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:all .3s ease}.sus-comment .code-select:hover,.sus-comment-item .code-select:hover{background:rgba(var(--sus-primary-color),.1)}.sus-comment p.is-editor-empty:first-child:before,.sus-comment-item p.is-editor-empty:first-child:before{color:rgba(var(--sus-font-color),.4);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.sus-comment .tiptap input,.sus-comment .tiptap button,.sus-comment-item .tiptap input,.sus-comment-item .tiptap button{padding:5px 7px;margin:0 3px;background-color:rgba(var(--sus-gray-bg));border-radius:5px;border-color:transparent;outline:none}.sus-comment .tiptap .button-group,.sus-comment-item .tiptap .button-group{margin-bottom:3px}.sus-avatar{border-radius:0;width:100%;height:100%;object-fit:cover;filter:sepia(8%);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-avatar:hover{filter:sepia(0%)}.sus-comment-avatar{width:var(--sus-avatar-size);height:var(--sus-avatar-size);min-width:var(--sus-avatar-size);margin:5px 12px 5px 0;border:1px solid rgba(var(--sus-border-color),.5);transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-comment-avatar:hover{border-color:rgba(var(--sus-primary-color),.4);transform:scale(1.02);box-shadow:0 2px 8px rgba(var(--sus-primary-color),.12)}.sus-input{display:block;color:inherit;width:100%;height:38px;min-width:120px;padding:0 12px;background-color:rgba(var(--sus-basic-input-bg));border-radius:0;border:1px solid rgba(var(--sus-border-color),.5);outline:none;font-size:14px;letter-spacing:.02em;transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-input:focus{border-color:rgba(var(--sus-decorate-color),.5);box-shadow:0 0 0 3px rgba(var(--sus-decorate-color),.05);background-color:rgba(var(--sus-common-bg),1)}.sus-input:hover:not(:focus){border-color:rgba(var(--sus-border-color),.8)}.sus-input::placeholder{opacity:.5;font-size:90%;font-style:italic}.sus-button{padding:8px 22px;border-radius:0;border:1px solid transparent;outline:none;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative;overflow:hidden}.sus-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.15) 50%,transparent 100%);transition:left .5s ease}.sus-button.ok{color:rgb(var(--sus-primary-fontcolor));background-color:rgb(var(--sus-primary-color))}.sus-button.ok:hover{background-color:rgb(var(--sus-primary-hover-color));transform:translateY(-2px);box-shadow:0 6px 20px rgba(var(--sus-primary-color),.3)}.sus-button.ok:hover:before{left:100%}.sus-button.ok:active{transform:translateY(0);box-shadow:0 2px 8px rgba(var(--sus-primary-color),.2)}.sus-button.cancel{background-color:transparent;border-color:rgba(var(--sus-border-color),.8);color:rgba(var(--sus-font-color),.7)}.sus-button.cancel:after{content:"";position:absolute;bottom:0;left:50%;width:0;height:1px;background:rgba(var(--sus-danger-color),.6);transition:all .35s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%)}.sus-button.cancel:hover{color:rgb(var(--sus-primary-fontcolor));background-color:rgba(var(--sus-danger-color),.9);border-color:rgba(var(--sus-danger-color),.9);transform:translateY(-1px)}.sus-button.cancel:hover:after{width:60%}.sus-comment-avatar{color:rgb(var(--sus-primary-color));background-color:rgba(var(--sus-primary-color),.06)}.sus-avatar-text-container{overflow:hidden;width:100%;height:100%;background-color:rgba(var(--sus-common-bg));border:1px solid rgba(var(--sus-border-color),.3)}.sus-avatar-text-container .sus-avatar-text{display:flex;align-items:center;justify-content:center;width:inherit;height:inherit;color:rgb(var(--sus-avatar-color));background-color:rgba(var(--sus-avatar-color),.08)}.sus-avatar-text-container span{font-size:1.4rem;font-weight:700}.sus-comment__item:nth-child(5n-1),.sus-comment__item-child__item:nth-child(5n-1){--sus-avatar-color: var(--sus-avatar-color-1)}.sus-comment__item:nth-child(5n-2),.sus-comment__item-child__item:nth-child(5n-2){--sus-avatar-color: var(--sus-avatar-color-2)}.sus-comment__item:nth-child(5n-3),.sus-comment__item-child__item:nth-child(5n-3){--sus-avatar-color: var(--sus-avatar-color-3)}.sus-comment__item:nth-child(5n-4),.sus-comment__item-child__item:nth-child(5n-4){--sus-avatar-color: var(--sus-avatar-color-4)}.sus-comment__item:nth-child(5n),.sus-comment__item-child__item:nth-child(5n){--sus-avatar-color: var(--sus-avatar-color-5)}.sus-item__content img{width:auto;max-width:400px;max-height:100px;border-radius:0;border:1px solid rgba(var(--sus-border-color),.3)}.sus-editorial-decoration{display:flex;align-items:center;gap:12px;margin:20px 0}.sus-editorial-decoration .decoration-line{flex:1;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--sus-border-color),.6) 20%,rgba(var(--sus-border-color),.6) 80%,transparent 100%);transition:all .4s ease}.sus-editorial-decoration .decoration-diamond{width:6px;height:6px;border:1px solid rgba(var(--sus-primary-color),.4);transform:rotate(45deg);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-editorial-decoration:hover .decoration-line{background:linear-gradient(90deg,transparent 0%,rgba(var(--sus-primary-color),.3) 20%,rgba(var(--sus-primary-color),.3) 80%,transparent 100%)}.sus-editorial-decoration:hover .decoration-diamond{border-color:rgba(var(--sus-primary-color),.7);transform:rotate(45deg) scale(1.2)}.sus-editorial-header{position:relative;padding-bottom:16px;margin-bottom:24px}.sus-editorial-header:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:2px;background:rgb(var(--sus-primary-color));transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-editorial-header:hover:after{width:100px;background:linear-gradient(90deg,rgb(var(--sus-primary-color)),rgba(var(--sus-primary-color),.3))}.sus-emoji-panel[data-v-f33fbd53]{display:grid;z-index:2;grid-template-columns:repeat(7,1fr);padding:9px 7px;width:fit-content;border-radius:3px;border:rgba(var(--sus-primary-color),.2) solid 1px;background-color:rgba(var(--sus-common-bg),.6);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.sus-emoji-item[data-v-f33fbd53]{margin:2px;width:25px;height:25px;transition:all .2s}.sus-emoji-item[data-v-f33fbd53]:hover{scale:1.3}.slide-up-enter-active[data-v-f33fbd53],.slide-up-leave-active[data-v-f33fbd53]{transition:transform .5s ease,opacity .5s ease}.slide-up-enter-from[data-v-f33fbd53]{transform:translate3d(0,30%,0);opacity:0}.slide-up-enter-to[data-v-f33fbd53],.slide-up-leave-from[data-v-f33fbd53]{transform:translateZ(0);opacity:1}.slide-up-leave-to[data-v-f33fbd53]{transform:translate3d(0,30%,0);opacity:0}.sus-bubble-mask[data-v-1bbeca5c]{position:absolute;inset:0}.sus-link[data-v-1bbeca5c]{position:absolute;display:inline-flex;top:3px;left:3px;align-items:center;padding:5px 9px;border-radius:9px;background-color:rgba(var(--sus-common-bg),.8);box-shadow:0 16px 48px #1118270a,0 12px 24px #1118270a,0 6px 8px #11182705,0 2px 3px #11182705}.sus-link-input[data-v-1bbeca5c]{outline:none;border:none;margin-right:3px;background-color:rgba(var(--sus-link-input-bg))}.sus-link button[data-v-1bbeca5c]{display:flex;padding:5px}.sus-bubble-menu[data-v-1bbeca5c]{display:inline-flex;align-items:center;background-color:rgba(var(--sus-common-bg),.8);border-radius:12px;padding:3px 12px;box-shadow:0 12px 33px #0000000f,0 3.618px 9.949px #0000000a}.sus-bubble-menu button[data-v-1bbeca5c]{padding:5px 11px}button[data-v-1bbeca5c]{border:none;border-radius:8px;background-color:transparent}button[data-v-1bbeca5c]:hover{background-color:rgba(var(--sus-select-bg))}.sus-code-block-wrapper[data-v-d8f02dfd]{position:relative;margin:1rem 0}.sus-code-block-wrapper.is-selected .sus-code-block-toolbar[data-v-d8f02dfd]{opacity:1}.sus-code-block-toolbar[data-v-d8f02dfd]{position:absolute;top:3px;right:0;opacity:1;transition:opacity .2s;z-index:5}.sus-code-block-language-btn[data-v-d8f02dfd]{display:flex;align-items:center;gap:4px;padding:4px 8px;background-color:rgba(var(--sus-common-bg),.8);border:1px solid rgba(var(--sus-border-color));border-radius:4px;font-size:12px;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #0000001a}.sus-code-block-language-btn[data-v-d8f02dfd]:hover{background-color:rgba(var(--sus-select-bg))}.sus-code-block-language-btn svg[data-v-d8f02dfd]{width:12px;height:12px}.sus-code-block-language-selector[data-v-d8f02dfd]{position:absolute;top:100%;right:0;margin-top:4px;background-color:rgba(var(--sus-common-bg),.95);border:1px solid rgba(var(--sus-border-color),.2);border-radius:6px;box-shadow:0 4px 12px #00000026;max-height:200px;overflow-y:auto;z-index:5;min-width:80px;padding:4px 0}.sus-code-block-language-item[data-v-d8f02dfd]{padding:6px 12px;font-size:90%;cursor:pointer;transition:background-color .2s}.sus-code-block-language-item[data-v-d8f02dfd]:hover{background-color:rgba(var(--sus-select-bg))}.sus-code-block-language-item.active[data-v-d8f02dfd]{background-color:rgba(var(--sus-primary-color),.2);color:rgba(var(--sus-primary-color))}.sus-code-block-content[data-v-d8f02dfd]{margin:0;padding:1rem;background-color:rgba(var(--sus-code-bg, 245, 245, 245),1);border-radius:4px;overflow-x:auto;font-family:Courier New,Courier,monospace;font-size:14px;line-height:1.5}.sus-code-block-content code[data-v-d8f02dfd]{display:block;white-space:pre}.sus-comment[data-v-b5bf8cb4]{position:relative;display:flex;flex-direction:row;width:100%;min-height:220px;color:inherit;padding:30px 22px;background:linear-gradient(135deg,rgba(var(--sus-common-bg),.98),rgba(var(--sus-basic-input-bg),.95));border:1px solid rgba(var(--sus-border-color),.6);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment[data-v-b5bf8cb4]:hover{border-color:rgba(var(--sus-decorate-color),.3);box-shadow:0 8px 32px rgba(var(--sus-item-bg),.08)}.sus-comment__decoration[data-v-b5bf8cb4]{position:absolute;inset:8px;pointer-events:none}.sus-comment .sus-decoration-corner[data-v-b5bf8cb4]{position:absolute;width:12px;height:12px;opacity:.4;transition:opacity .3s ease}.sus-comment .sus-decoration-corner[data-v-b5bf8cb4]:before,.sus-comment .sus-decoration-corner[data-v-b5bf8cb4]:after{content:"";position:absolute;background:rgba(var(--sus-decorate-color),.5)}.sus-comment .sus-decoration-corner.top-left[data-v-b5bf8cb4]{top:0;left:0}.sus-comment .sus-decoration-corner.top-left[data-v-b5bf8cb4]:before{width:12px;height:1px;top:0;left:0}.sus-comment .sus-decoration-corner.top-left[data-v-b5bf8cb4]:after{width:1px;height:12px;top:0;left:0}.sus-comment .sus-decoration-corner.top-right[data-v-b5bf8cb4]{top:0;right:0}.sus-comment .sus-decoration-corner.top-right[data-v-b5bf8cb4]:before{width:12px;height:1px;top:0;right:0}.sus-comment .sus-decoration-corner.top-right[data-v-b5bf8cb4]:after{width:1px;height:12px;top:0;right:0}.sus-comment .sus-decoration-corner.bottom-left[data-v-b5bf8cb4]{bottom:0;left:0}.sus-comment .sus-decoration-corner.bottom-left[data-v-b5bf8cb4]:before{width:12px;height:1px;bottom:0;left:0}.sus-comment .sus-decoration-corner.bottom-left[data-v-b5bf8cb4]:after{width:1px;height:12px;bottom:0;left:0}.sus-comment .sus-decoration-corner.bottom-right[data-v-b5bf8cb4]{bottom:0;right:0}.sus-comment .sus-decoration-corner.bottom-right[data-v-b5bf8cb4]:before{width:12px;height:1px;bottom:0;right:0}.sus-comment .sus-decoration-corner.bottom-right[data-v-b5bf8cb4]:after{width:1px;height:12px;bottom:0;right:0}.sus-comment:hover .sus-decoration-corner[data-v-b5bf8cb4]{opacity:.8}.sus-comment-avatar[data-v-b5bf8cb4]{border:1px solid rgba(var(--sus-border-color),.5);transition:all .3s ease}.sus-comment__info[data-v-b5bf8cb4]{display:inline-flex;flex-wrap:wrap;gap:8px;margin-bottom:.25rem;margin-top:.25rem;width:100%;border-bottom:1px solid rgba(var(--sus-border-color),.3)}.sus-comment__info-input[data-v-b5bf8cb4]{position:relative;display:flex;flex:1}.sus-comment-label[data-v-b5bf8cb4]{z-index:1;position:absolute;top:-8px;left:10px;padding:0 4px;background:rgba(var(--sus-basic-input-bg));font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}.sus-comment__editor-wrapper[data-v-b5bf8cb4]{position:relative;margin-bottom:5px}.sus-comment__editor[data-v-b5bf8cb4]{border:1px solid rgba(var(--sus-border-color),.5);background:rgba(var(--sus-basic-input-bg),.8);transition:all .3s ease}.sus-comment__editor[data-v-b5bf8cb4]:focus-within{border-color:rgba(var(--sus-decorate-color),.5);box-shadow:0 0 0 3px rgba(var(--sus-decorate-color),.05)}.sus-comment__footer[data-v-b5bf8cb4]{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid rgba(var(--sus-border-color),.2)}.sus-comment__footer-toolbar[data-v-b5bf8cb4]{display:flex}.sus-comment__footer-icon[data-v-b5bf8cb4]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid transparent;transition:all .3s ease}.sus-comment__footer-icon svg[data-v-b5bf8cb4]{width:20px;height:20px;color:rgba(var(--sus-font-color),.5);transition:color .3s ease}.sus-comment__footer-icon[data-v-b5bf8cb4]:hover{border-color:rgba(var(--sus-border-color),.5);background:rgba(var(--sus-basic-input-bg),.5)}.sus-comment__footer-icon:hover svg[data-v-b5bf8cb4]{color:rgba(var(--sus-primary-color),.8)}.sus-comment__footer-actions[data-v-b5bf8cb4]{display:flex;gap:8px}.sus-button[data-v-b5bf8cb4]{min-width:90px}.sus-comment-privacy[data-v-b5bf8cb4]{margin-top:12px;padding-top:12px;border-top:1px dashed rgba(var(--sus-border-color),.3)}.sus-comment__extend[data-v-b5bf8cb4]{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--sus-border-color),.2)}.sus-comment__extend-item[data-v-b5bf8cb4]{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid rgba(var(--sus-border-color),.5);background:rgba(var(--sus-basic-input-bg),.3);cursor:pointer;transition:all .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment__extend-item[data-v-b5bf8cb4]:hover{border-color:rgba(var(--sus-primary-color),.4);box-shadow:0 4px 16px rgba(var(--sus-primary-color),.1);transform:translateY(-2px)}.sus-comment__extend-item:hover .sus-comment__extend-mask[data-v-b5bf8cb4]{opacity:1}.sus-comment__extend-item:hover .sus-preview-index[data-v-b5bf8cb4]{opacity:0}.sus-preview-frame[data-v-b5bf8cb4]{position:relative;width:100%;height:100%}.sus-preview-frame .sus-img-item[data-v-b5bf8cb4]{width:100%;height:100%;object-fit:cover;display:block;filter:sepia(5%);transition:filter .4s ease,transform .4s ease}.sus-preview-frame:hover .sus-img-item[data-v-b5bf8cb4]{filter:sepia(0%) brightness(.7);transform:scale(1.05)}.sus-preview-index[data-v-b5bf8cb4]{position:absolute;top:4px;left:4px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;padding:0 4px;font-size:10px;font-weight:700;letter-spacing:.05em;color:rgba(var(--sus-primary-fontcolor));background:rgba(var(--sus-primary-color),.75);transition:opacity .25s ease;pointer-events:none}.sus-comment__extend-mask[data-v-b5bf8cb4]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;background:rgba(var(--sus-common-bg),.15);transition:opacity .3s ease}.sus-comment__extend-mask .sus-mask-inner[data-v-b5bf8cb4]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid rgba(var(--sus-danger-font-color),.6);color:rgba(var(--sus-danger-font-color));background:rgba(var(--sus-common-bg),.85);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:all .25s ease}.sus-comment__extend-mask .sus-mask-inner[data-v-b5bf8cb4]:hover{background:rgba(var(--sus-danger-font-color),.9);color:rgba(var(--sus-primary-fontcolor));border-color:transparent;transform:scale(1.1)}.sus-preview-enter-active[data-v-b5bf8cb4]{transition:all .4s cubic-bezier(.34,1.56,.64,1)}.sus-preview-leave-active[data-v-b5bf8cb4]{transition:all .25s cubic-bezier(.55,0,1,.45)}.sus-preview-enter-from[data-v-b5bf8cb4]{opacity:0;transform:scale(.6)}.sus-preview-leave-to[data-v-b5bf8cb4]{opacity:0;transform:scale(.8)}.sus-preview-move[data-v-b5bf8cb4]{transition:transform .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment__main[data-v-b5bf8cb4]{width:inherit;height:inherit;transition:inherit}.sus-comment__editor[data-v-b5bf8cb4]{margin:0 2px;min-height:180px;transition:all .25s}.sus-comment__toolbar[data-v-b5bf8cb4]{position:relative;display:flex;width:100%;text-align:end;font-size:90%;margin:3px}.sus-comment__toolbar-mask[data-v-b5bf8cb4]{position:absolute;inset:0;background-color:rgba(var(--sus-common-bg),.5)}.sus-upload #upload-input[data-v-b5bf8cb4]{display:none}.sus-upload label[data-v-b5bf8cb4]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;cursor:pointer}.sus-comment__footer-notify[data-v-b5bf8cb4]{display:flex;align-items:center}.sus-comment-input{padding:14px 16px;border-radius:0;background-color:rgba(var(--sus-basic-input-bg),.5);overflow-y:scroll}.sus-comment-input .is-empty.is-editor-empty{font-size:90%}.sus-link-input{padding:6px 10px;border-radius:0;background-color:rgba(var(--sus-basic-input-bg));border:1px solid rgba(var(--sus-border-color),.5)}.sus-comment-input a{pointer-events:auto;cursor:pointer;color:rgba(var(--sus-primary-color),.9);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.sus-comment-input a:active{pointer-events:none}.sus-emoji-panel-position{position:absolute;bottom:.5rem;left:.25rem;z-index:11}.sus-emoji-panel-position{border:1px solid rgba(var(--sus-border-color),.5);background:rgba(var(--sus-common-bg),.98);box-shadow:0 8px 32px rgba(var(--sus-item-bg),.12)}.sus-comment__item[data-v-40c401e6]{position:relative;display:flex;padding:var(--sus-item-padding);margin-bottom:12px;transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment__item[data-v-40c401e6]:before{content:"";position:absolute;inset:0 -12px;background:transparent;border-left:3px solid transparent;transition:all .4s cubic-bezier(.25,.46,.45,.94);pointer-events:none}.sus-comment__item[data-v-40c401e6]:after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--sus-border-color),0) 10%,rgba(var(--sus-border-color),.3) 50%,rgba(var(--sus-border-color),0) 90%,transparent 100%);opacity:0;transition:opacity .4s ease;pointer-events:none}.sus-comment__item[data-v-40c401e6]:hover:before{background:linear-gradient(135deg,rgba(var(--sus-primary-color),.02),rgba(var(--sus-primary-color),.04))}.sus-comment__item[data-v-40c401e6]:hover:after{opacity:1}.sus-comment__item:hover .sus-item--lead-mark[data-v-40c401e6]{color:rgba(var(--sus-primary-color),.35);transform:scale(1.05) rotate(-2deg);text-shadow:2px 2px 4px rgba(var(--sus-primary-color),.1)}.sus-comment__item:hover .sus-comment-meta-actions[data-v-40c401e6]{opacity:1;transform:translate(0)}.sus-comment__item:hover .sus-comment-tail-avatar[data-v-40c401e6]{border-color:rgba(var(--sus-primary-color),.4);transform:scale(1.02);box-shadow:0 2px 8px rgba(var(--sus-primary-color),.15)}.sus-comment__item:hover .sus-comment-content-body[data-v-40c401e6]{color:rgb(var(--sus-font-color))}.sus-comment__item:hover .sus-comment-meta-author .sus-comment-author-name[data-v-40c401e6]{color:rgba(var(--sus-primary-color),.85)}.sus-comment__item:hover .sus-comment__item__meta[data-v-40c401e6]{border-top-color:rgba(var(--sus-primary-color),.15)}.sus-comment__item:hover .sus-comment-floor-body[data-v-40c401e6]{opacity:.8;color:rgba(var(--sus-primary-color))}.sus-comment__item__lead[data-v-40c401e6]{display:flex;min-width:36px;justify-content:center;padding-top:4px}.sus-comment__item__lead .sus-item--lead-mark[data-v-40c401e6]{font-family:Playfair Display,serif;font-size:2.5rem;font-weight:700;line-height:1;color:rgba(var(--sus-primary-color),.12);transition:all .4s cubic-bezier(.25,.46,.45,.94);display:inline-block}.sus-comment__item__main[data-v-40c401e6]{position:relative;flex:1;overflow:hidden}.sus-comment-content-body[data-v-40c401e6]{line-height:1.85;transition:color .4s ease}.sus-comment-content-body .sus-comment-content-text[data-v-40c401e6]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}.sus-comment-content-body img[data-v-40c401e6]{display:block;max-width:100%;margin:16px 0;border:1px solid rgba(var(--sus-border-color),.3);transition:border-color .35s ease,box-shadow .35s ease}.sus-comment-content-body img[data-v-40c401e6]:hover{border-color:rgba(var(--sus-primary-color),.2);box-shadow:0 4px 16px rgba(var(--sus-primary-color),.08)}.sus-comment-content-body[data-v-40c401e6] pre{margin:16px 0;padding:16px;background:rgba(var(--sus-font-color),.03);border:1px solid rgba(var(--sus-border-color),.2);overflow-x:auto;font-size:13px}.sus-comment__sus-comment-content-private[data-v-40c401e6]{position:relative;min-height:60px;display:flex;align-items:center;justify-content:center}.sus-comment__sus-comment-content-private .sus-comment-private-pattern[data-v-40c401e6]{position:absolute;inset:0;background:repeating-linear-gradient(-45deg,transparent,transparent 8px,rgba(var(--sus-linear-gradient-bg),.1) 8px,rgba(var(--sus-linear-gradient-bg),.1) 16px)}.sus-comment__sus-comment-content-private .sus-comment-private-text[data-v-40c401e6]{font-style:italic;color:rgba(var(--sus-font-color),.4)}.sus-comment-content-expand[data-v-40c401e6]{margin-bottom:5px;display:flex;justify-content:flex-end;margin-top:-8px}.sus-comment-content-expand button[data-v-40c401e6]{display:inline-flex;align-items:center;gap:8px;padding:6px 0;font-size:80%;font-style:italic;letter-spacing:.05em;color:rgba(var(--sus-primary-color),.8);background:none;border:none;cursor:pointer;transition:all .35s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-comment-content-expand button[data-v-40c401e6]:before{content:"—";opacity:.8;transition:opacity .35s ease}.sus-comment-content-expand button[data-v-40c401e6]:after{content:"";position:absolute;bottom:4px;left:0;right:0;height:1px;background:linear-gradient(90deg,rgba(var(--sus-primary-color),.3),rgba(var(--sus-primary-color),0));transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment-content-expand button[data-v-40c401e6]:hover{color:rgba(var(--sus-primary-color),.9);letter-spacing:.08em}.sus-comment-content-expand button[data-v-40c401e6]:hover:before{opacity:.7}.sus-comment-content-expand button[data-v-40c401e6]:hover:after{transform:scaleX(1)}.sus-comment-content-expand button span[data-v-40c401e6]{position:relative}.sus-comment__item__meta[data-v-40c401e6]{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px 20px;padding-top:12px;border-top:1px solid rgba(var(--sus-border-color),.12);transition:border-color .4s ease}.sus-comment-meta-author[data-v-40c401e6]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sus-comment-meta-author .sus-comment-author-name[data-v-40c401e6]{font-weight:700;text-decoration:none;transition:all .35s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-comment-meta-author .sus-comment-author-name[data-v-40c401e6]:after{content:"";position:absolute;bottom:-1px;left:0;width:0;height:1px;background:rgba(var(--sus-primary-color),.6);transition:width .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment-meta-author .sus-comment-author-name[data-v-40c401e6]:hover{color:rgba(var(--sus-primary-color),.85)}.sus-comment-meta-author .sus-comment-author-name[data-v-40c401e6]:hover:after{width:100%}.sus-comment-meta-author .sus-comment-author-tag[data-v-40c401e6]{position:relative;font-size:clamp(11px,70%,13px);font-weight:700;text-transform:uppercase;border-radius:2px;padding:2px 7px;color:rgb(var(--sus-primary-fontcolor));opacity:.7;background:rgba(var(--sus-primary-color))}.sus-comment-meta-author .sus-comment-author-tag[data-v-40c401e6]:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#ffffff4d}.sus-comment-meta-author .sus-item--reply-hint[data-v-40c401e6]{font-size:clamp(11px,80%,13px);color:rgba(var(--sus-font-color),.4);background-color:rgba(var(--sus-plain-bg));border-radius:3px;padding:2px 5px}.sus-comment-meta-info[data-v-40c401e6]{display:flex;align-items:center;gap:13px;margin-left:auto;opacity:.6}.sus-comment-meta-info .sus-comment-info-time[data-v-40c401e6]{font-family:ui-monospace,Cascadia Mono,Consolas,Courier New,monospace;font-size:12px}.sus-comment-meta-actions[data-v-40c401e6]{display:flex;gap:var(--sus-item-gap);opacity:0;transform:translate(8px);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment-meta-actions .sus-comment-action-link[data-v-40c401e6]{position:relative;font-size:85%;font-weight:600;letter-spacing:.12em;text-transform:uppercase;background:none;opacity:.7;border:none;padding:4px 0;cursor:pointer;transition:all .35s cubic-bezier(.25,.46,.45,.94);color:rgba(var(--sus-font-color),.5)}.sus-comment-meta-actions .sus-comment-action-link[data-v-40c401e6]:before{content:"";position:absolute;bottom:0;left:50%;width:0;height:1px;background:currentColor;transition:all .35s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%)}.sus-comment-meta-actions .sus-comment-action-link[data-v-40c401e6]:after{content:"";position:absolute;bottom:-2px;left:50%;width:0;height:3px;background:rgba(var(--sus-primary-color),.15);transition:all .35s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%)}.sus-comment-meta-actions .sus-comment-action-link[data-v-40c401e6]:hover{opacity:1;color:rgba(var(--sus-font-color),.85)}.sus-comment-meta-actions .sus-comment-action-link[data-v-40c401e6]:hover:before{width:100%}.sus-comment-meta-actions .sus-comment-action-link[data-v-40c401e6]:hover:after{width:120%}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-40c401e6]{color:rgba(var(--sus-primary-color),.55)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-40c401e6]:before{background:rgba(var(--sus-primary-color),.8)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-40c401e6]:after{background:rgba(var(--sus-primary-color),.12)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-40c401e6]:hover{color:rgba(var(--sus-primary-color),1)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-40c401e6]:hover:before{width:100%;background:rgba(var(--sus-primary-color),1)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-40c401e6]:hover:after{width:120%;background:rgba(var(--sus-primary-color),.2)}.sus-comment__item__footer[data-v-40c401e6]{display:flex;justify-content:flex-end;gap:var(--sus-item-gap);margin-top:8px;padding-top:8px}.sus-comment__item__footer .sus-comment-footer-item[data-v-40c401e6]{opacity:.6;font-size:11px}.sus-comment-tail-avatar[data-v-40c401e6]{width:28px;height:28px;border:1px solid rgba(var(--sus-border-color),.3);overflow:hidden;transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment-tail-avatar img[data-v-40c401e6]{width:100%;height:100%;object-fit:cover;filter:sepia(5%);transition:filter .4s ease}.sus-comment-tail-avatar .sus-comment-avatar-letter[data-v-40c401e6]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:Playfair Display,serif;font-size:12px;font-weight:700;color:rgba(var(--sus-primary-color),.5);background:rgba(var(--sus-primary-color),.05);transition:all .4s ease}.sus-comment__item__watermark[data-v-40c401e6]{position:absolute;right:-25px;bottom:-25px;width:110px;height:110px;color:rgba(var(--sus-font-color),.03);transform-origin:50% 50%;transform:rotate(-20deg);pointer-events:none}.sus-comment-info-floor[data-v-40c401e6]{position:absolute;right:5px;top:5px;display:flex;align-items:stretch;gap:6px;height:28px}.sus-comment-info-floor .sus-comment-floor-rule[data-v-40c401e6]{width:2px;height:60%;align-self:center;background:rgba(var(--sus-border-color),.7);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment-info-floor .sus-comment-floor-body[data-v-40c401e6]{display:flex;flex-direction:column;align-items:center;justify-content:center;writing-mode:vertical-lr;gap:2px;opacity:.2;transition:opacity .4s ease}.sus-comment-info-floor .sus-comment-floor-label[data-v-40c401e6]{font-family:Playfair Display,serif;font-size:7px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;line-height:1}.sus-comment-info-floor .sus-comment-floor-num[data-v-40c401e6]{font-family:Libre Baskerville,serif;font-size:11px;font-weight:700;transition:color .4s ease;line-height:1;letter-spacing:.05em}.sus-comment-list[data-v-8dbeda3c]{position:relative;background:rgba(var(--sus-common-bg),.6);border:1px solid rgba(var(--sus-border-color),.25)}.sus-comment__item__thread[data-v-8dbeda3c]{border-top:1px solid rgba(var(--sus-border-color),.15)}.sus-item__thread-header[data-v-8dbeda3c]{display:flex;align-items:center;gap:16px;margin-bottom:5px}.sus-item__thread-line[data-v-8dbeda3c]{flex:1;height:1px;background:rgba(var(--sus-border-color),.2)}.sus-item__thread-label[data-v-8dbeda3c]{display:flex;align-items:baseline;gap:6px}.sus-item__thread-label .sus-item__thread-count[data-v-8dbeda3c]{font-family:Playfair Display,serif;font-size:1.25rem;font-weight:700;color:rgba(var(--sus-primary-color),.5)}.sus-item__thread-label .sus-item__thread-text[data-v-8dbeda3c]{font-size:12px;font-style:italic;color:rgba(var(--sus-font-color),.4)}.sus-item__thread-content[data-v-8dbeda3c]{padding-left:var(--sus-item-left-margin);border-left:2px solid rgba(var(--sus-border-color),.15)}.sus-item__thread-item[data-v-8dbeda3c]{background:rgba(var(--sus-common-bg),.5);border:1px solid rgba(var(--sus-border-color),.15);transition:all .3s ease}.sus-item__thread-item[data-v-8dbeda3c]:last-child{margin-bottom:0}.sus-item__thread-item[data-v-8dbeda3c]:hover{background:rgba(var(--sus-common-bg),.9);border-color:rgba(var(--sus-border-color),.3)}.sus-item__thread-more[data-v-8dbeda3c]{margin-top:12px;padding-left:0}.sus-item--more-trigger[data-v-8dbeda3c]{display:flex;justify-content:center}.sus-more-trigger-btn[data-v-8dbeda3c]{display:inline-flex;align-items:baseline;gap:8px;padding:6px 18px 9px;background:transparent;border:1px dashed rgba(var(--sus-primary-color),.25);cursor:pointer;transition:all .3s ease}.sus-more-trigger-btn[data-v-8dbeda3c]:hover{background:rgba(var(--sus-primary-color),.03);border-style:solid;border-color:rgba(var(--sus-primary-color),.4)}.sus-more-trigger-btn:hover .sus-item--more-count[data-v-8dbeda3c]{color:rgba(var(--sus-primary-color),.9)}.sus-more-trigger-btn .sus-item--more-count[data-v-8dbeda3c]{font-family:Playfair Display,serif;font-size:1.25rem;font-weight:700;color:rgba(var(--sus-primary-color),.6);transition:color .3s ease}.sus-more-trigger-btn .sus-item--more-text[data-v-8dbeda3c]{font-size:13px;font-style:italic;color:rgba(var(--sus-font-color),.8)}.sus-top-item[data-v-dc19b905]{display:flex;align-items:flex-start;padding:10px 12px;overflow:hidden;width:inherit;max-height:80px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;border:1px solid transparent;border-left:2px solid transparent;transition:all .3s ease}.sus-top-info[data-v-dc19b905]{display:inline-flex;margin-right:6px}.sus-top-name[data-v-dc19b905]{font-weight:600;white-space:nowrap;transition:color .3s ease}.sus-top-text[data-v-dc19b905]{width:100%;line-height:1.5}.sus-top-item[data-v-dc19b905]{display:flex;align-items:flex-start;padding:.375rem;overflow:hidden;width:inherit;max-height:80px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sus-top-item[data-v-dc19b905]:hover{border-radius:5px;background-color:rgba(var(--sus-select-bg));transition:all .25s}.sus-top-item__info[data-v-dc19b905]{display:inline-flex;margin-right:.25rem}.sus-top-item__user[data-v-dc19b905],.sus-top-item__reply[data-v-dc19b905]{white-space:nowrap}.sus-top-item__content[data-v-dc19b905]{width:100%;color:inherit;line-height:1.5}.sus-top-item__reply[data-v-dc19b905]{font-size:90%;width:fit-content;border-radius:3px;background-color:rgba(var(--sus-item-bg),var(--sus-item-opacity));opacity:.8}.sus-top-item[data-v-0a6b4c37]{padding:12px 14px;cursor:pointer;overflow:hidden;max-height:90px;border:1px solid transparent;border-left:2px solid transparent;transition:all .3s ease}.sus-top-item[data-v-0a6b4c37]:hover{background:linear-gradient(90deg,rgba(var(--sus-primary-color),.03) 0%,transparent 100%);border-left-color:rgba(var(--sus-primary-color),.6)}.sus-top-item:hover .sus-top-username[data-v-0a6b4c37]{color:rgba(var(--sus-primary-color),.9)}.sus-top-item[data-v-0a6b4c37]:not(:last-child){border-bottom:1px solid rgba(var(--sus-border-color),.2)}.sus-top-user[data-v-0a6b4c37]{display:flex;align-items:center;margin-bottom:6px}.sus-top-avatar[data-v-0a6b4c37]{margin-right:10px;width:26px;height:26px;border:1px solid rgba(var(--sus-border-color),.4)}.sus-top-avatar .sus-avatar[data-v-0a6b4c37]{object-fit:cover;object-position:top;filter:sepia(5%)}.sus-top-username[data-v-0a6b4c37]{padding:3px 8px;font-size:13px;font-weight:600;background:rgba(var(--sus-basic-input-bg),.5);border:1px solid rgba(var(--sus-border-color),.3);transition:color .3s ease}.sus-top-reply[data-v-0a6b4c37]{margin-left:8px;font-size:11px;font-style:italic;color:rgba(var(--sus-primary-color),.6)}.sus-top-content[data-v-0a6b4c37]{padding:4px 0;display:-webkit-box;color:rgba(var(--sus-font-color),.7);font-size:13px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-y:hidden}.sus-top-content .sus-code-toolbar[data-v-0a6b4c37]{display:none}.sus-top-item[data-v-0a6b4c37]{padding:.375rem;cursor:pointer;overflow:hidden;max-height:80px}.sus-top-item[data-v-0a6b4c37]:hover{border-radius:5px;background-color:rgba(var(--sus-item-hover-bg),.5);transition:all .25s}.sus-top-item__content[data-v-0a6b4c37]{padding:.25rem;display:-webkit-box;margin:3px 1px 0;color:inherit;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-y:hidden}.sus-top-item__user[data-v-0a6b4c37]{display:flex;align-items:center;font-size:90%}.sus-top-item__user-owner[data-v-0a6b4c37]{padding:3px 6px;width:fit-content;background-color:rgba(var(--sus-basic-input-bg),var(--sus-item-opacity));border-radius:7px}.sus-top-item__user-avatar[data-v-0a6b4c37]{margin-left:.25rem;margin-right:.5rem;width:28px;height:28px}.sus-top-item__user-avatar .sus-avatar[data-v-0a6b4c37]{border:thin solid;object-fit:cover;object-position:top;box-shadow:.1em .1em 0 -.05em;color:rgba(var(--sus-font-color),.1)}.sus-top-item__user-reply[data-v-0a6b4c37]{margin-left:.75rem;opacity:.7}.sus-top-item .sus-code-toolbar[data-v-0a6b4c37]{display:none}
1
+ @charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap";html{--sus-font-color: 51, 51, 51;--sus-danger-font-color: 245, 108, 108;--sus-decorate-color: 52, 73, 94;--sus-primary-color: 94, 114, 228;--sus-primary-hover-color: 61, 85, 223;--sus-danger-color: 245, 108, 108;--sus-primary-fontcolor: 255, 255, 255;--sus-basic-input-bg: 231, 235, 240;--sus-link-input-bg: 221, 225, 230;--sus-border-color: 231, 235, 240;--sus-common-bg: 255, 255, 255;--sus-gray-bg: 230, 230, 233;--sus-plain-bg: 231, 235, 240;--sus-select-bg: 231, 235, 240;--sus-item-bg: 255, 255, 255;--sus-linear-gradient-bg: 188, 190, 190;--sus-item-hover-bg: 231, 235, 240;--sus-avatar-size: 43px;--sus-avatar-color-1: 94, 114, 228;--sus-avatar-color-2: 225, 141, 172;--sus-avatar-color-3: 175, 94, 83;--sus-avatar-color-4: 31, 54, 150;--sus-avatar-color-5: 149, 80, 159;--sus-item-left-margin: 22px;--sus-item-bottom-margin: 20px;--sus-item-hover-opacity: .5;--sus-item-opacity: 1;--sus-item-primary-opacity: .8;--sus-item-padding: 24px 28px 15px;--sus-item-child-padding: 3px 11px;--sus-item-gap: 15px}.sus-comment [data-type=emoji] img,.sus-comment .emoji,.sus-comment-item [data-type=emoji] img,.sus-comment-item .emoji{display:inline;width:22px;margin:0 2px;vertical-align:middle}.sus-comment .ProseMirror,.sus-comment-item .ProseMirror{position:unset!important;height:160px;border-radius:5px;border-color:transparent;outline:none}.sus-comment .ProseMirror pre,.sus-comment-item .ProseMirror pre{padding:1em;margin:.5em 0;color:#ccc;border-radius:5px;overflow-x:scroll!important;overflow-y:hidden!important;background-color:#2d2d2d;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-webkit-hyphens:none;hyphens:none}.sus-comment .code-box,.sus-comment-item .code-box{position:relative}.sus-comment .code-select,.sus-comment-item .code-select{position:absolute;top:5px;right:5px;padding:4px 8px;text-align:center;width:min-content;background:rgba(var(--sus-common-bg),.9);border:1px solid rgba(var(--sus-border-color),.5);border-radius:0;outline:none;color:rgb(var(--sus-primary-color));cursor:pointer;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:all .3s ease}.sus-comment .code-select:hover,.sus-comment-item .code-select:hover{background:rgba(var(--sus-primary-color),.1)}.sus-comment p.is-editor-empty:first-child:before,.sus-comment-item p.is-editor-empty:first-child:before{color:rgba(var(--sus-font-color),.4);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.sus-comment .tiptap input,.sus-comment .tiptap button,.sus-comment-item .tiptap input,.sus-comment-item .tiptap button{padding:5px 7px;margin:0 3px;background-color:rgba(var(--sus-gray-bg));border-radius:5px;border-color:transparent;outline:none}.sus-comment .tiptap .button-group,.sus-comment-item .tiptap .button-group{margin-bottom:3px}.sus-avatar{border-radius:0;width:100%;height:100%;object-fit:cover;filter:sepia(8%);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-avatar:hover{filter:sepia(0%)}.sus-comment-avatar{width:var(--sus-avatar-size);height:var(--sus-avatar-size);min-width:var(--sus-avatar-size);margin:5px 12px 5px 0;border:1px solid rgba(var(--sus-border-color),.5);transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-comment-avatar:hover{border-color:rgba(var(--sus-primary-color),.4);transform:scale(1.02);box-shadow:0 2px 8px rgba(var(--sus-primary-color),.12)}.sus-input{display:block;color:inherit;width:100%;height:38px;min-width:120px;padding:0 12px;background-color:rgba(var(--sus-basic-input-bg));border-radius:0;border:1px solid rgba(var(--sus-border-color),.5);outline:none;font-size:14px;letter-spacing:.02em;transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-input:focus{border-color:rgba(var(--sus-decorate-color),.5);box-shadow:0 0 0 3px rgba(var(--sus-decorate-color),.05);background-color:rgba(var(--sus-common-bg),1)}.sus-input:hover:not(:focus){border-color:rgba(var(--sus-border-color),.8)}.sus-input::placeholder{opacity:.5;font-size:90%;font-style:italic}.sus-button{padding:8px 22px;border-radius:0;border:1px solid transparent;outline:none;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative;overflow:hidden}.sus-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.15) 50%,transparent 100%);transition:left .5s ease}.sus-button.ok{color:rgb(var(--sus-primary-fontcolor));background-color:rgb(var(--sus-primary-color))}.sus-button.ok:hover{background-color:rgb(var(--sus-primary-hover-color));transform:translateY(-2px);box-shadow:0 6px 20px rgba(var(--sus-primary-color),.3)}.sus-button.ok:hover:before{left:100%}.sus-button.ok:active{transform:translateY(0);box-shadow:0 2px 8px rgba(var(--sus-primary-color),.2)}.sus-button.cancel{background-color:transparent;border-color:rgba(var(--sus-border-color),.8);color:rgba(var(--sus-font-color),.7)}.sus-button.cancel:after{content:"";position:absolute;bottom:0;left:50%;width:0;height:1px;background:rgba(var(--sus-danger-color),.6);transition:all .35s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%)}.sus-button.cancel:hover{color:rgb(var(--sus-primary-fontcolor));background-color:rgba(var(--sus-danger-color),.9);border-color:rgba(var(--sus-danger-color),.9);transform:translateY(-1px)}.sus-button.cancel:hover:after{width:60%}.sus-comment-avatar{color:rgb(var(--sus-primary-color));background-color:rgba(var(--sus-primary-color),.06)}.sus-avatar-text-container{overflow:hidden;width:100%;height:100%;background-color:rgba(var(--sus-common-bg));border:1px solid rgba(var(--sus-border-color),.3)}.sus-avatar-text-container .sus-avatar-text{display:flex;align-items:center;justify-content:center;width:inherit;height:inherit;color:rgb(var(--sus-avatar-color));background-color:rgba(var(--sus-avatar-color),.08)}.sus-avatar-text-container span{font-size:1.4rem;font-weight:700}.sus-comment__item:nth-child(5n-1),.sus-comment__item-child__item:nth-child(5n-1){--sus-avatar-color: var(--sus-avatar-color-1)}.sus-comment__item:nth-child(5n-2),.sus-comment__item-child__item:nth-child(5n-2){--sus-avatar-color: var(--sus-avatar-color-2)}.sus-comment__item:nth-child(5n-3),.sus-comment__item-child__item:nth-child(5n-3){--sus-avatar-color: var(--sus-avatar-color-3)}.sus-comment__item:nth-child(5n-4),.sus-comment__item-child__item:nth-child(5n-4){--sus-avatar-color: var(--sus-avatar-color-4)}.sus-comment__item:nth-child(5n),.sus-comment__item-child__item:nth-child(5n){--sus-avatar-color: var(--sus-avatar-color-5)}.sus-item__content img{width:auto;max-width:400px;max-height:100px;border-radius:0;border:1px solid rgba(var(--sus-border-color),.3)}.sus-editorial-decoration{display:flex;align-items:center;gap:12px;margin:20px 0}.sus-editorial-decoration .decoration-line{flex:1;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--sus-border-color),.6) 20%,rgba(var(--sus-border-color),.6) 80%,transparent 100%);transition:all .4s ease}.sus-editorial-decoration .decoration-diamond{width:6px;height:6px;border:1px solid rgba(var(--sus-primary-color),.4);transform:rotate(45deg);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-editorial-decoration:hover .decoration-line{background:linear-gradient(90deg,transparent 0%,rgba(var(--sus-primary-color),.3) 20%,rgba(var(--sus-primary-color),.3) 80%,transparent 100%)}.sus-editorial-decoration:hover .decoration-diamond{border-color:rgba(var(--sus-primary-color),.7);transform:rotate(45deg) scale(1.2)}.sus-editorial-header{position:relative;padding-bottom:16px;margin-bottom:24px}.sus-editorial-header:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:2px;background:rgb(var(--sus-primary-color));transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-editorial-header:hover:after{width:100px;background:linear-gradient(90deg,rgb(var(--sus-primary-color)),rgba(var(--sus-primary-color),.3))}.sus-emoji-panel[data-v-f33fbd53]{display:grid;z-index:2;grid-template-columns:repeat(7,1fr);padding:9px 7px;width:fit-content;border-radius:3px;border:rgba(var(--sus-primary-color),.2) solid 1px;background-color:rgba(var(--sus-common-bg),.6);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.sus-emoji-item[data-v-f33fbd53]{margin:2px;width:25px;height:25px;transition:all .2s}.sus-emoji-item[data-v-f33fbd53]:hover{scale:1.3}.slide-up-enter-active[data-v-f33fbd53],.slide-up-leave-active[data-v-f33fbd53]{transition:transform .5s ease,opacity .5s ease}.slide-up-enter-from[data-v-f33fbd53]{transform:translate3d(0,30%,0);opacity:0}.slide-up-enter-to[data-v-f33fbd53],.slide-up-leave-from[data-v-f33fbd53]{transform:translateZ(0);opacity:1}.slide-up-leave-to[data-v-f33fbd53]{transform:translate3d(0,30%,0);opacity:0}.sus-bubble-mask[data-v-1bbeca5c]{position:absolute;inset:0}.sus-link[data-v-1bbeca5c]{position:absolute;display:inline-flex;top:3px;left:3px;align-items:center;padding:5px 9px;border-radius:9px;background-color:rgba(var(--sus-common-bg),.8);box-shadow:0 16px 48px #1118270a,0 12px 24px #1118270a,0 6px 8px #11182705,0 2px 3px #11182705}.sus-link-input[data-v-1bbeca5c]{outline:none;border:none;margin-right:3px;background-color:rgba(var(--sus-link-input-bg))}.sus-link button[data-v-1bbeca5c]{display:flex;padding:5px}.sus-bubble-menu[data-v-1bbeca5c]{display:inline-flex;align-items:center;background-color:rgba(var(--sus-common-bg),.8);border-radius:12px;padding:3px 12px;box-shadow:0 12px 33px #0000000f,0 3.618px 9.949px #0000000a}.sus-bubble-menu button[data-v-1bbeca5c]{padding:5px 11px}button[data-v-1bbeca5c]{border:none;border-radius:8px;background-color:transparent}button[data-v-1bbeca5c]:hover{background-color:rgba(var(--sus-select-bg))}.sus-code-block-wrapper[data-v-d8f02dfd]{position:relative;margin:1rem 0}.sus-code-block-wrapper.is-selected .sus-code-block-toolbar[data-v-d8f02dfd]{opacity:1}.sus-code-block-toolbar[data-v-d8f02dfd]{position:absolute;top:3px;right:0;opacity:1;transition:opacity .2s;z-index:5}.sus-code-block-language-btn[data-v-d8f02dfd]{display:flex;align-items:center;gap:4px;padding:4px 8px;background-color:rgba(var(--sus-common-bg),.8);border:1px solid rgba(var(--sus-border-color));border-radius:4px;font-size:12px;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #0000001a}.sus-code-block-language-btn[data-v-d8f02dfd]:hover{background-color:rgba(var(--sus-select-bg))}.sus-code-block-language-btn svg[data-v-d8f02dfd]{width:12px;height:12px}.sus-code-block-language-selector[data-v-d8f02dfd]{position:absolute;top:100%;right:0;margin-top:4px;background-color:rgba(var(--sus-common-bg),.95);border:1px solid rgba(var(--sus-border-color),.2);border-radius:6px;box-shadow:0 4px 12px #00000026;max-height:200px;overflow-y:auto;z-index:5;min-width:80px;padding:4px 0}.sus-code-block-language-item[data-v-d8f02dfd]{padding:6px 12px;font-size:90%;cursor:pointer;transition:background-color .2s}.sus-code-block-language-item[data-v-d8f02dfd]:hover{background-color:rgba(var(--sus-select-bg))}.sus-code-block-language-item.active[data-v-d8f02dfd]{background-color:rgba(var(--sus-primary-color),.2);color:rgba(var(--sus-primary-color))}.sus-code-block-content[data-v-d8f02dfd]{margin:0;padding:1rem;background-color:rgba(var(--sus-code-bg, 245, 245, 245),1);border-radius:4px;overflow-x:auto;font-family:Courier New,Courier,monospace;font-size:14px;line-height:1.5}.sus-code-block-content code[data-v-d8f02dfd]{display:block;white-space:pre}.sus-comment[data-v-b5bf8cb4]{position:relative;display:flex;flex-direction:row;width:100%;min-height:220px;color:inherit;padding:30px 22px;background:linear-gradient(135deg,rgba(var(--sus-common-bg),.98),rgba(var(--sus-basic-input-bg),.95));border:1px solid rgba(var(--sus-border-color),.6);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment[data-v-b5bf8cb4]:hover{border-color:rgba(var(--sus-decorate-color),.3);box-shadow:0 8px 32px rgba(var(--sus-item-bg),.08)}.sus-comment__decoration[data-v-b5bf8cb4]{position:absolute;inset:8px;pointer-events:none}.sus-comment .sus-decoration-corner[data-v-b5bf8cb4]{position:absolute;width:12px;height:12px;opacity:.4;transition:opacity .3s ease}.sus-comment .sus-decoration-corner[data-v-b5bf8cb4]:before,.sus-comment .sus-decoration-corner[data-v-b5bf8cb4]:after{content:"";position:absolute;background:rgba(var(--sus-decorate-color),.5)}.sus-comment .sus-decoration-corner.top-left[data-v-b5bf8cb4]{top:0;left:0}.sus-comment .sus-decoration-corner.top-left[data-v-b5bf8cb4]:before{width:12px;height:1px;top:0;left:0}.sus-comment .sus-decoration-corner.top-left[data-v-b5bf8cb4]:after{width:1px;height:12px;top:0;left:0}.sus-comment .sus-decoration-corner.top-right[data-v-b5bf8cb4]{top:0;right:0}.sus-comment .sus-decoration-corner.top-right[data-v-b5bf8cb4]:before{width:12px;height:1px;top:0;right:0}.sus-comment .sus-decoration-corner.top-right[data-v-b5bf8cb4]:after{width:1px;height:12px;top:0;right:0}.sus-comment .sus-decoration-corner.bottom-left[data-v-b5bf8cb4]{bottom:0;left:0}.sus-comment .sus-decoration-corner.bottom-left[data-v-b5bf8cb4]:before{width:12px;height:1px;bottom:0;left:0}.sus-comment .sus-decoration-corner.bottom-left[data-v-b5bf8cb4]:after{width:1px;height:12px;bottom:0;left:0}.sus-comment .sus-decoration-corner.bottom-right[data-v-b5bf8cb4]{bottom:0;right:0}.sus-comment .sus-decoration-corner.bottom-right[data-v-b5bf8cb4]:before{width:12px;height:1px;bottom:0;right:0}.sus-comment .sus-decoration-corner.bottom-right[data-v-b5bf8cb4]:after{width:1px;height:12px;bottom:0;right:0}.sus-comment:hover .sus-decoration-corner[data-v-b5bf8cb4]{opacity:.8}.sus-comment-avatar[data-v-b5bf8cb4]{border:1px solid rgba(var(--sus-border-color),.5);transition:all .3s ease}.sus-comment__info[data-v-b5bf8cb4]{display:inline-flex;flex-wrap:wrap;gap:8px;margin-bottom:.25rem;margin-top:.25rem;width:100%;border-bottom:1px solid rgba(var(--sus-border-color),.3)}.sus-comment__info-input[data-v-b5bf8cb4]{position:relative;display:flex;flex:1}.sus-comment-label[data-v-b5bf8cb4]{z-index:1;position:absolute;top:-8px;left:10px;padding:0 4px;background:rgba(var(--sus-basic-input-bg));font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}.sus-comment__editor-wrapper[data-v-b5bf8cb4]{position:relative;margin-bottom:5px}.sus-comment__editor[data-v-b5bf8cb4]{border:1px solid rgba(var(--sus-border-color),.5);background:rgba(var(--sus-basic-input-bg),.8);transition:all .3s ease}.sus-comment__editor[data-v-b5bf8cb4]:focus-within{border-color:rgba(var(--sus-decorate-color),.5);box-shadow:0 0 0 3px rgba(var(--sus-decorate-color),.05)}.sus-comment__footer[data-v-b5bf8cb4]{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid rgba(var(--sus-border-color),.2)}.sus-comment__footer-toolbar[data-v-b5bf8cb4]{display:flex}.sus-comment__footer-icon[data-v-b5bf8cb4]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid transparent;transition:all .3s ease}.sus-comment__footer-icon svg[data-v-b5bf8cb4]{width:20px;height:20px;color:rgba(var(--sus-font-color),.5);transition:color .3s ease}.sus-comment__footer-icon[data-v-b5bf8cb4]:hover{border-color:rgba(var(--sus-border-color),.5);background:rgba(var(--sus-basic-input-bg),.5)}.sus-comment__footer-icon:hover svg[data-v-b5bf8cb4]{color:rgba(var(--sus-primary-color),.8)}.sus-comment__footer-actions[data-v-b5bf8cb4]{display:flex;gap:8px}.sus-button[data-v-b5bf8cb4]{min-width:90px}.sus-comment-privacy[data-v-b5bf8cb4]{margin-top:12px;padding-top:12px;border-top:1px dashed rgba(var(--sus-border-color),.3)}.sus-comment__extend[data-v-b5bf8cb4]{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--sus-border-color),.2)}.sus-comment__extend-item[data-v-b5bf8cb4]{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid rgba(var(--sus-border-color),.5);background:rgba(var(--sus-basic-input-bg),.3);cursor:pointer;transition:all .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment__extend-item[data-v-b5bf8cb4]:hover{border-color:rgba(var(--sus-primary-color),.4);box-shadow:0 4px 16px rgba(var(--sus-primary-color),.1);transform:translateY(-2px)}.sus-comment__extend-item:hover .sus-comment__extend-mask[data-v-b5bf8cb4]{opacity:1}.sus-comment__extend-item:hover .sus-preview-index[data-v-b5bf8cb4]{opacity:0}.sus-preview-frame[data-v-b5bf8cb4]{position:relative;width:100%;height:100%}.sus-preview-frame .sus-img-item[data-v-b5bf8cb4]{width:100%;height:100%;object-fit:cover;display:block;filter:sepia(5%);transition:filter .4s ease,transform .4s ease}.sus-preview-frame:hover .sus-img-item[data-v-b5bf8cb4]{filter:sepia(0%) brightness(.7);transform:scale(1.05)}.sus-preview-index[data-v-b5bf8cb4]{position:absolute;top:4px;left:4px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;padding:0 4px;font-size:10px;font-weight:700;letter-spacing:.05em;color:rgba(var(--sus-primary-fontcolor));background:rgba(var(--sus-primary-color),.75);transition:opacity .25s ease;pointer-events:none}.sus-comment__extend-mask[data-v-b5bf8cb4]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;background:rgba(var(--sus-common-bg),.15);transition:opacity .3s ease}.sus-comment__extend-mask .sus-mask-inner[data-v-b5bf8cb4]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid rgba(var(--sus-danger-font-color),.6);color:rgba(var(--sus-danger-font-color));background:rgba(var(--sus-common-bg),.85);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:all .25s ease}.sus-comment__extend-mask .sus-mask-inner[data-v-b5bf8cb4]:hover{background:rgba(var(--sus-danger-font-color),.9);color:rgba(var(--sus-primary-fontcolor));border-color:transparent;transform:scale(1.1)}.sus-preview-enter-active[data-v-b5bf8cb4]{transition:all .4s cubic-bezier(.34,1.56,.64,1)}.sus-preview-leave-active[data-v-b5bf8cb4]{transition:all .25s cubic-bezier(.55,0,1,.45)}.sus-preview-enter-from[data-v-b5bf8cb4]{opacity:0;transform:scale(.6)}.sus-preview-leave-to[data-v-b5bf8cb4]{opacity:0;transform:scale(.8)}.sus-preview-move[data-v-b5bf8cb4]{transition:transform .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment__main[data-v-b5bf8cb4]{width:inherit;height:inherit;transition:inherit}.sus-comment__editor[data-v-b5bf8cb4]{margin:0 2px;min-height:180px;transition:all .25s}.sus-comment__toolbar[data-v-b5bf8cb4]{position:relative;display:flex;width:100%;text-align:end;font-size:90%;margin:3px}.sus-comment__toolbar-mask[data-v-b5bf8cb4]{position:absolute;inset:0;background-color:rgba(var(--sus-common-bg),.5)}.sus-upload #upload-input[data-v-b5bf8cb4]{display:none}.sus-upload label[data-v-b5bf8cb4]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;cursor:pointer}.sus-comment__footer-notify[data-v-b5bf8cb4]{display:flex;align-items:center}.sus-comment-input{padding:14px 16px;border-radius:0;background-color:rgba(var(--sus-basic-input-bg),.5);overflow-y:scroll}.sus-comment-input .is-empty.is-editor-empty{font-size:90%}.sus-link-input{padding:6px 10px;border-radius:0;background-color:rgba(var(--sus-basic-input-bg));border:1px solid rgba(var(--sus-border-color),.5)}.sus-comment-input a{pointer-events:auto;cursor:pointer;color:rgba(var(--sus-primary-color),.9);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.sus-comment-input a:active{pointer-events:none}.sus-emoji-panel-position{position:absolute;bottom:.5rem;left:.25rem;z-index:11}.sus-emoji-panel-position{border:1px solid rgba(var(--sus-border-color),.5);background:rgba(var(--sus-common-bg),.98);box-shadow:0 8px 32px rgba(var(--sus-item-bg),.12)}.sus-comment__item[data-v-a0ea9452]{position:relative;display:flex;padding:var(--sus-item-padding);margin-bottom:12px;transition:all .4s cubic-bezier(.25,.46,.45,.94);background:rgba(var(--sus-common-bg),.6)}.sus-comment__item[data-v-a0ea9452]:before{content:"";position:absolute;inset:0 -1px;background:transparent;border-left:3px solid transparent;transition:all .4s cubic-bezier(.25,.46,.45,.94);pointer-events:none}.sus-comment__item[data-v-a0ea9452]:after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--sus-border-color),0) 10%,rgba(var(--sus-border-color),.3) 50%,rgba(var(--sus-border-color),0) 90%,transparent 100%);opacity:0;transition:opacity .4s ease;pointer-events:none}.sus-comment__item[data-v-a0ea9452]:hover{background:rgba(var(--sus-common-bg),.9);border-color:rgba(var(--sus-border-color),.3)}.sus-comment__item[data-v-a0ea9452]:hover:before{background:linear-gradient(135deg,rgba(var(--sus-primary-color),.02),rgba(var(--sus-primary-color),.04))}.sus-comment__item[data-v-a0ea9452]:hover:after{opacity:1}.sus-comment__item:hover .sus-item--lead-mark[data-v-a0ea9452]{color:rgba(var(--sus-primary-color),.35);transform:scale(1.05) rotate(-2deg);text-shadow:2px 2px 4px rgba(var(--sus-primary-color),.1)}.sus-comment__item:hover .sus-comment-meta-actions[data-v-a0ea9452]{opacity:1;transform:translate(0)}.sus-comment__item:hover .sus-comment-tail-avatar[data-v-a0ea9452]{border-color:rgba(var(--sus-primary-color),.4);transform:scale(1.02);box-shadow:0 2px 8px rgba(var(--sus-primary-color),.15)}.sus-comment__item:hover .sus-comment-content-body[data-v-a0ea9452]{color:rgb(var(--sus-font-color))}.sus-comment__item:hover .sus-comment-meta-author .sus-comment-author-name[data-v-a0ea9452]{color:rgba(var(--sus-primary-color),.85)}.sus-comment__item:hover .sus-comment__item__meta[data-v-a0ea9452]{border-top-color:rgba(var(--sus-primary-color),.15)}.sus-comment__item:hover .sus-comment-floor-body[data-v-a0ea9452]{opacity:.7;color:rgba(var(--sus-primary-color))}.sus-comment__item__lead[data-v-a0ea9452]{display:flex;min-width:36px;justify-content:center;padding-top:4px}.sus-comment__item__lead .sus-item--lead-mark[data-v-a0ea9452]{font-family:Playfair Display,serif;font-size:2.5rem;font-weight:700;line-height:1;color:rgba(var(--sus-primary-color),.12);transition:all .4s cubic-bezier(.25,.46,.45,.94);display:inline-block}.sus-comment__item__main[data-v-a0ea9452]{position:relative;flex:1;overflow:hidden}.sus-comment-content-body[data-v-a0ea9452]{line-height:1.85;margin-bottom:10px;transition:color .4s ease}.sus-comment-content-body .sus-comment-content-text[data-v-a0ea9452]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}.sus-comment-content-body img[data-v-a0ea9452]{display:block;max-width:100%;margin:16px 0;border:1px solid rgba(var(--sus-border-color),.3);transition:border-color .35s ease,box-shadow .35s ease}.sus-comment-content-body img[data-v-a0ea9452]:hover{border-color:rgba(var(--sus-primary-color),.2);box-shadow:0 4px 16px rgba(var(--sus-primary-color),.08)}.sus-comment__sus-comment-content-private[data-v-a0ea9452]{position:relative;min-height:60px;display:flex;align-items:center;justify-content:center}.sus-comment__sus-comment-content-private .sus-comment-private-pattern[data-v-a0ea9452]{position:absolute;inset:0;background:repeating-linear-gradient(-45deg,transparent,transparent 8px,rgba(var(--sus-linear-gradient-bg),.1) 8px,rgba(var(--sus-linear-gradient-bg),.1) 16px)}.sus-comment__sus-comment-content-private .sus-comment-private-text[data-v-a0ea9452]{font-style:italic;color:rgba(var(--sus-font-color),.4)}.sus-comment-content-expand[data-v-a0ea9452]{margin-bottom:5px;display:flex;justify-content:flex-end;margin-top:-8px}.sus-comment-content-expand button[data-v-a0ea9452]{display:inline-flex;align-items:center;gap:8px;padding:6px 0;font-size:80%;font-style:italic;letter-spacing:.05em;color:rgba(var(--sus-primary-color),.8);background:none;border:none;cursor:pointer;transition:all .35s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-comment-content-expand button[data-v-a0ea9452]:before{content:"—";opacity:.8;transition:opacity .35s ease}.sus-comment-content-expand button[data-v-a0ea9452]:after{content:"";position:absolute;bottom:4px;left:0;right:0;height:1px;background:linear-gradient(90deg,rgba(var(--sus-primary-color),.3),rgba(var(--sus-primary-color),0));transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment-content-expand button[data-v-a0ea9452]:hover{color:rgba(var(--sus-primary-color),.9);letter-spacing:.08em}.sus-comment-content-expand button[data-v-a0ea9452]:hover:before{opacity:.7}.sus-comment-content-expand button[data-v-a0ea9452]:hover:after{transform:scaleX(1)}.sus-comment-content-expand button span[data-v-a0ea9452]{position:relative}.sus-comment__item__meta[data-v-a0ea9452]{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px 20px;padding-top:12px;border-top:1px solid rgba(var(--sus-border-color),.12);transition:border-color .4s ease}.sus-comment-meta-author[data-v-a0ea9452]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sus-comment-meta-author .sus-comment-author-name[data-v-a0ea9452]{font-weight:700;text-decoration:none;transition:all .35s cubic-bezier(.25,.46,.45,.94);position:relative}.sus-comment-meta-author .sus-comment-author-name[data-v-a0ea9452]:after{content:"";position:absolute;bottom:-1px;left:0;width:0;height:1px;background:rgba(var(--sus-primary-color),.6);transition:width .35s cubic-bezier(.25,.46,.45,.94)}.sus-comment-meta-author .sus-comment-author-name[data-v-a0ea9452]:hover{color:rgba(var(--sus-primary-color),.85)}.sus-comment-meta-author .sus-comment-author-name[data-v-a0ea9452]:hover:after{width:100%}.sus-comment-meta-author .sus-comment-author-tag[data-v-a0ea9452]{position:relative;font-size:clamp(11px,70%,13px);font-weight:700;text-transform:uppercase;border-radius:2px;padding:2px 7px;color:rgb(var(--sus-primary-fontcolor));opacity:.7;background:rgba(var(--sus-primary-color))}.sus-comment-meta-author .sus-comment-author-tag[data-v-a0ea9452]:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px}.sus-comment-meta-author .sus-item--reply-hint[data-v-a0ea9452]{font-size:clamp(11px,80%,13px);color:rgba(var(--sus-font-color),.4);background-color:rgba(var(--sus-plain-bg));border-radius:3px;padding:2px 5px}.sus-comment-meta-info[data-v-a0ea9452]{display:flex;align-items:center;gap:13px;margin-left:auto;opacity:.6}.sus-comment-meta-info .sus-comment-info-time[data-v-a0ea9452]{font-family:ui-monospace,Cascadia Mono,Consolas,Courier New,monospace;font-size:12px}.sus-comment-meta-actions[data-v-a0ea9452]{display:flex;gap:var(--sus-item-gap);opacity:0;transform:translate(8px);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment-meta-actions .sus-comment-action-link[data-v-a0ea9452]{position:relative;font-size:85%;font-weight:600;letter-spacing:.12em;text-transform:uppercase;background:none;opacity:.7;border:none;padding:4px 0;cursor:pointer;transition:all .35s cubic-bezier(.25,.46,.45,.94);color:rgba(var(--sus-font-color),.5)}.sus-comment-meta-actions .sus-comment-action-link[data-v-a0ea9452]:before{content:"";position:absolute;bottom:0;left:50%;width:0;height:1px;background:currentColor;transition:all .35s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%)}.sus-comment-meta-actions .sus-comment-action-link[data-v-a0ea9452]:after{content:"";position:absolute;bottom:-2px;left:50%;width:0;height:3px;background:rgba(var(--sus-primary-color),.15);transition:all .35s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%)}.sus-comment-meta-actions .sus-comment-action-link[data-v-a0ea9452]:hover{opacity:1;color:rgba(var(--sus-font-color),.85)}.sus-comment-meta-actions .sus-comment-action-link[data-v-a0ea9452]:hover:before{width:100%}.sus-comment-meta-actions .sus-comment-action-link[data-v-a0ea9452]:hover:after{width:120%}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-a0ea9452]{color:rgba(var(--sus-primary-color),.55)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-a0ea9452]:before{background:rgba(var(--sus-primary-color),.8)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-a0ea9452]:after{background:rgba(var(--sus-primary-color),.12)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-a0ea9452]:hover{color:rgba(var(--sus-primary-color),1)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-a0ea9452]:hover:before{width:100%;background:rgba(var(--sus-primary-color),1)}.sus-comment-meta-actions .sus-comment-action-link.sus-comment-action-reply[data-v-a0ea9452]:hover:after{width:120%;background:rgba(var(--sus-primary-color),.2)}.sus-comment__item__footer[data-v-a0ea9452]{display:flex;justify-content:flex-end;gap:var(--sus-item-gap);margin-top:8px;padding-top:8px}.sus-comment__item__footer .sus-comment-footer-item[data-v-a0ea9452]{opacity:.6;font-size:11px}.sus-comment-tail-avatar[data-v-a0ea9452]{width:28px;height:28px;border:1px solid rgba(var(--sus-border-color),.3);overflow:hidden;transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment-tail-avatar img[data-v-a0ea9452]{width:100%;height:100%;object-fit:cover;filter:sepia(5%);transition:filter .4s ease}.sus-comment-tail-avatar .sus-comment-avatar-letter[data-v-a0ea9452]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:Playfair Display,serif;font-size:12px;font-weight:700;color:rgba(var(--sus-primary-color),.5);background:rgba(var(--sus-primary-color),.05);transition:all .4s ease}.sus-comment__item__watermark[data-v-a0ea9452]{position:absolute;right:-25px;bottom:-25px;width:110px;height:110px;color:rgba(var(--sus-font-color),.03);transform-origin:50% 50%;transform:rotate(-20deg);pointer-events:none}.sus-comment-info-floor[data-v-a0ea9452]{position:absolute;right:8px;top:5px;display:flex;align-items:stretch;gap:6px;height:28px}.sus-comment-info-floor .sus-comment-floor-rule[data-v-a0ea9452]{width:2px;height:60%;align-self:center;background:rgba(var(--sus-border-color),.7);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.sus-comment-info-floor .sus-comment-floor-body[data-v-a0ea9452]{display:flex;flex-direction:column;align-items:center;justify-content:center;writing-mode:vertical-lr;gap:2px;opacity:.2;transition:opacity .4s ease}.sus-comment-info-floor .sus-comment-floor-label[data-v-a0ea9452]{font-family:Playfair Display,serif;font-size:7px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;line-height:1}.sus-comment-info-floor .sus-comment-floor-num[data-v-a0ea9452]{font-family:Libre Baskerville,serif;font-size:11px;font-weight:700;transition:color .4s ease;line-height:1;letter-spacing:.05em}.sus-comment-list[data-v-35d62865]{margin-top:10px;position:relative;border:1px solid rgba(var(--sus-border-color),.25)}.sus-comment__item__thread[data-v-35d62865]{border-top:1px solid rgba(var(--sus-border-color),.15)}.sus-item__thread-header[data-v-35d62865]{display:flex;align-items:center;gap:16px;margin-bottom:7px}.sus-item__thread-line[data-v-35d62865]{flex:1;height:1px;background:rgba(var(--sus-border-color),.2)}.sus-item__thread-label[data-v-35d62865]{display:flex;align-items:baseline;gap:6px}.sus-item__thread-label .sus-item__thread-count[data-v-35d62865]{font-family:Playfair Display,serif;font-size:1.25rem;font-weight:700;color:rgba(var(--sus-primary-color),.5)}.sus-item__thread-label .sus-item__thread-text[data-v-35d62865]{font-size:12px;font-style:italic;color:rgba(var(--sus-font-color),.4)}.sus-item__thread-content[data-v-35d62865]{padding-left:var(--sus-item-left-margin);border-left:2px solid rgba(var(--sus-border-color),.15)}.sus-item__thread-item[data-v-35d62865]{border:1px solid rgba(var(--sus-border-color),.15);transition:all .3s ease}.sus-item__thread-more[data-v-35d62865]{margin-top:12px;padding-left:0}.sus-item--more-trigger[data-v-35d62865]{display:flex;justify-content:center}.sus-more-trigger-btn[data-v-35d62865]{display:inline-flex;align-items:baseline;gap:8px;padding:6px 18px 9px;background:transparent;border:1px dashed rgba(var(--sus-primary-color),.25);cursor:pointer;transition:all .3s ease}.sus-more-trigger-btn[data-v-35d62865]:hover{background:rgba(var(--sus-primary-color),.03);border-style:solid;border-color:rgba(var(--sus-primary-color),.4)}.sus-more-trigger-btn:hover .sus-item--more-count[data-v-35d62865]{color:rgba(var(--sus-primary-color),.9)}.sus-more-trigger-btn .sus-item--more-count[data-v-35d62865]{font-family:Playfair Display,serif;font-size:1.15rem;font-weight:700;color:rgba(var(--sus-primary-color),.6);transition:color .3s ease}.sus-more-trigger-btn .sus-item--more-text[data-v-35d62865]{font-size:90%;font-style:italic;color:rgba(var(--sus-font-color),.8)}.sus-top-item[data-v-dc19b905]{display:flex;align-items:flex-start;padding:10px 12px;overflow:hidden;width:inherit;max-height:80px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;border:1px solid transparent;border-left:2px solid transparent;transition:all .3s ease}.sus-top-info[data-v-dc19b905]{display:inline-flex;margin-right:6px}.sus-top-name[data-v-dc19b905]{font-weight:600;white-space:nowrap;transition:color .3s ease}.sus-top-text[data-v-dc19b905]{width:100%;line-height:1.5}.sus-top-item[data-v-dc19b905]{display:flex;align-items:flex-start;padding:.375rem;overflow:hidden;width:inherit;max-height:80px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sus-top-item[data-v-dc19b905]:hover{border-radius:5px;background-color:rgba(var(--sus-select-bg));transition:all .25s}.sus-top-item__info[data-v-dc19b905]{display:inline-flex;margin-right:.25rem}.sus-top-item__user[data-v-dc19b905],.sus-top-item__reply[data-v-dc19b905]{white-space:nowrap}.sus-top-item__content[data-v-dc19b905]{width:100%;color:inherit;line-height:1.5}.sus-top-item__reply[data-v-dc19b905]{font-size:90%;width:fit-content;border-radius:3px;background-color:rgba(var(--sus-item-bg),var(--sus-item-opacity));opacity:.8}.sus-top-item[data-v-0a6b4c37]{padding:12px 14px;cursor:pointer;overflow:hidden;max-height:90px;border:1px solid transparent;border-left:2px solid transparent;transition:all .3s ease}.sus-top-item[data-v-0a6b4c37]:hover{background:linear-gradient(90deg,rgba(var(--sus-primary-color),.03) 0%,transparent 100%);border-left-color:rgba(var(--sus-primary-color),.6)}.sus-top-item:hover .sus-top-username[data-v-0a6b4c37]{color:rgba(var(--sus-primary-color),.9)}.sus-top-item[data-v-0a6b4c37]:not(:last-child){border-bottom:1px solid rgba(var(--sus-border-color),.2)}.sus-top-user[data-v-0a6b4c37]{display:flex;align-items:center;margin-bottom:6px}.sus-top-avatar[data-v-0a6b4c37]{margin-right:10px;width:26px;height:26px;border:1px solid rgba(var(--sus-border-color),.4)}.sus-top-avatar .sus-avatar[data-v-0a6b4c37]{object-fit:cover;object-position:top;filter:sepia(5%)}.sus-top-username[data-v-0a6b4c37]{padding:3px 8px;font-size:13px;font-weight:600;background:rgba(var(--sus-basic-input-bg),.5);border:1px solid rgba(var(--sus-border-color),.3);transition:color .3s ease}.sus-top-reply[data-v-0a6b4c37]{margin-left:8px;font-size:11px;font-style:italic;color:rgba(var(--sus-primary-color),.6)}.sus-top-content[data-v-0a6b4c37]{padding:4px 0;display:-webkit-box;color:rgba(var(--sus-font-color),.7);font-size:13px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-y:hidden}.sus-top-content .sus-code-toolbar[data-v-0a6b4c37]{display:none}.sus-top-item[data-v-0a6b4c37]{padding:.375rem;cursor:pointer;overflow:hidden;max-height:80px}.sus-top-item[data-v-0a6b4c37]:hover{border-radius:5px;background-color:rgba(var(--sus-item-hover-bg),.5);transition:all .25s}.sus-top-item__content[data-v-0a6b4c37]{padding:.25rem;display:-webkit-box;margin:3px 1px 0;color:inherit;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-y:hidden}.sus-top-item__user[data-v-0a6b4c37]{display:flex;align-items:center;font-size:90%}.sus-top-item__user-owner[data-v-0a6b4c37]{padding:3px 6px;width:fit-content;background-color:rgba(var(--sus-basic-input-bg),var(--sus-item-opacity));border-radius:7px}.sus-top-item__user-avatar[data-v-0a6b4c37]{margin-left:.25rem;margin-right:.5rem;width:28px;height:28px}.sus-top-item__user-avatar .sus-avatar[data-v-0a6b4c37]{border:thin solid;object-fit:cover;object-position:top;box-shadow:.1em .1em 0 -.05em;color:rgba(var(--sus-font-color),.1)}.sus-top-item__user-reply[data-v-0a6b4c37]{margin-left:.75rem;opacity:.7}.sus-top-item .sus-code-toolbar[data-v-0a6b4c37]{display:none}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahzoo/sus",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "评论组件",
5
5
  "author": "ahzoo(https://github.com/ooahz)",
6
6
  "keyworkd": [